This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MARQUEE componenet in JSF ???

 
Sajan Patel
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

Do we have any JSF componenet which does same thing like HTML MARQUEE tag does. Is there anything we can do with css so outputtext tag can be used as Marquee.

Thanks in Advance
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<f:verbatim><marquee>hello world!</marquee></f:verbatim>
 
Sajan Patel
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your input!! I am more interested in keeping pure JSF rather than mix match. Here I want to use <hutputText for printing "hello world!" so I can print that text from db.
I know if I don't find anything than I may use as you mentioned. I might have to use verbatim two time.
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can create a custom component . it should be pretty easy !!

Thanks,
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok I just wrote a custom marquee component. It didnt take more than 30 minutes ( I messed up the tld file and it took more time ). if you want I can share the code , else you can give it a shot good luck !!

Thanks,
 
Sajan Patel
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure!! It would be great if you share Code with all of us.
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I havent included valuebinding in component class for value attribute which you can do it yourself

Thanks,

JSF Marquee Comp
[ March 31, 2008: Message edited by: Rajeev Ravindran ]
 
Sajan Patel
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks very promising.

And Thanks, I learn new thing today.
 
anitha meena
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks alot Rajeev Ravindran ,

It is a very easy example , can you tell us where we have to put tld file and how to compile and deploy the full example
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since JSF 1.2 it´s not a pain to mix plain HTML in a JSF page. You don´t need the f:verbatim tags anymore.
 
Duygu Colak
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please add value binding process to the 'Marquee' component in this page.
I've been trying it, but i couldn't make it.
I' ll be appreciate it so much.
Thanks.
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF Marquee
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic