Register | Log in | RSS channel for codegravity.com homepage Bookmark!

232/2NEW projects | 71 services | 212 websites | 712/7NEW freelancers | 1994 topics | advertise



Login:



Forgot your password?
Forgot your username?
Create an account


Countries

17.9%United States United States
17.6%India India
8%Germany Germany
6.2%United Kingdom United Kingdom
5.1%France France

Visitors

Today: 817
Yesterday: 3514
This Week: 15626
Last Week: 23907
This Month: 39533
Last Month: 35248
Total: 112517


Users

Most active users today from total of 32:
limty, victor_rehan, Ghostgames, Ankori, pacc, denzrn, red001, imoralesr, merxmedia69, flexo, mariconson, gdghirardi, Bennethon, suestumounc, wild4gsus, jane_sm, oleggrz, waan, rochele, elektronet
JoomlaWatch Stats 1.2.10_04 by Matej Koval
Partners:

Freelance ColdFusion, Flex, PHP

Olejomalby, abstraktne obrazy

Camping Europe

WinAsm Studio

Vyšné Ružbachy

Sochy, Reštaurovanie

R.E.M.

Valid XHTML 1.0 Transitional

RSS feed:
rss feed

Statistics:
Search Engine Genie Promotion Widget
Home

Icefaces custom tag with facelets

I've been struggling with creating my own icefaces tag that I could use everywhere it's needed. There are many tutorials on the internet, BUT.. I couldn't get it work anyway.

When I looked at the sourcecode on the webpage, the tag     <ticker:ticker />  was there directly in the HTML sourcecode. This is wrong, because I expected the rendered ouput there.

One whole week I tried to solve this problem trying almost everything. But then, finally, I found it.

So, what was the problem? When you are using Facelets with your JSF/Icefaces, the TLD (tag library descriptor) files are for nothing. Even if I tried to place them everywhere. You have to create the equivalent of the TLD file for the Facelets - the XML file describing the tag structure. In this case it's ticker.taglib.xml

 

ticker.taglib.xml
The tag descriptor for the facelets

 

 There you specify the component's class - Ticker, and it's renderer - TickerRenderer. Now, you don't need the TickerTag as suggested when using JSP in many tutorials around the internet.


Also don't forget to tell the JSF to recognize your taglib and place this XML snippet into web.xml (just the first reference to xml, the second is when you want to use also another taglib - eg. the tomahawk components)
web.xml facelets libraries
Put the reference to your tag descriptor into web.xml

  

    <context-param>
        <param-name>facelets.LIBRARIES</param-name>
        <param-value>
            /WEB-INF/ticker.taglib.xml;/WEB-INF/tomahawk.taglib.xml
        </param-value>
    </context-param>

 

  JSF source
JSF source with a custom tag



rendered output
Rendered output

 

I wonder why this 'trick' hasn't been described yet in some tutorial. So, I hope you will find this remark useful and it will help you when creating your own JSF components.

 

 

Comments
Add New Search RSS
Thanks!
Jeff (198.182.194.xxx) 2007-11-09 21:35:22

This was very helpful. Thanks so much for sharing this!!
developer
Tam (206.108.31.xxx) 2008-05-23 21:10:08

Thanks for you answer. I was wondering if you can explain how to write the renderer for the class as most JSF custom components tutorials explain how to build a Tag file.
thanks
same issue
michelle (12.107.188.xxx) 2008-05-28 12:56:50

TLD's seem to be a major headache the only way we've been able to deploy icefaces custom components, we're working on our 3rd custom component is to include the tld, faces-config and the facelets tags in the icefaces-comp-jar itself. The other issue is its really a pain to create the necessary tag java module. On the bright side the api is very rich and coding icefaces components are easier than traditional jsf components.
Java dev (198.140.4.xxx) 2009-10-13 22:41:30

Thanks. This was great and very helpful!
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
:D:):(:0:shock::confused:8):lol::x:P:oops::cry:
:evil::twisted::roll::wink::!::?::idea::arrow:
MathGuard security question, please solve:

K7B         M        
7      5    O E   4T5
CB7   7GT   167      
T S    Y      H   IX9
EFO           1      
Please input the anti-spam code that you can read in the image.
 
Add URL of a programming website
register as a freelancer
submit your project
open freelance projects you can work on
webmaster resources
write for us tips, articles

Recommended: (advertise)
Advertise Here -
Promote your services and get the new customers from the community of webmasters / programmers visiting CodeGravity.com

Add URL of your website -
Submit your programming or software development website to webmaster resouces directory and share it with everyone.

Web hosting -
Rioserver Web Hosting provide ultra-reliable. We offer a range of packages which we believe are better than any other web host simply a cost-by-cost basis.

Outsource your project -
Submit your project description with all the requirements to more than 600 freelancers from around the world for FREE.

Register as a Freelancer -
Submit your project experiences, programming languages and your other skills


Download Joomlawatch 1.2.9

Download the NEW* JoomlaWatch 1.2.9 official from 20.04.2009 available for Joomla 1.5 and Joomla 1.0

RSS Feeds:new

rss Freelance
rss Projects
rss Forum
rss Resources

Popular:
MathGuard
download mathguard
Random screenshot:

linoopz15.jpg


Poll
I've installed JoomlaWatch 1.2.9 and:
 

News:

Registration required
I know that people don't like registering on websites, but I had to do it. From this moment you have to register first, before you download any file. This is better, because this way I can give you quick info about new version of downloadable files (eg. MathGuard) or some necessary security fixes. Thanks for understanding. (26.08.2007)

Books about investing and finance
I'd like to recommend you to read a book by Robert T. Kiyosaki - "Rich Dad, Poor Dad". However many people say it's quite a controversial book, it gave me a good motivation to improve my financial intelligence. (23.08.2007)

Fighting with the spam
All of the forms were protected with my own PHP antispam class - MathGuard, including the forms in the joomla modules I use. (02.05.2007)

Forum
Converted posts from the old punbb forum to the new joomlaboard (25.02.2007)

Improvement
Fixed some issues with the freelance registration, added a possibility to add a new programming resource, reorganized the structure of the programming resources. (24.02.2007)

New content management system
Codegravity.com is now running on joomla cms :) Added features like comments, forum etc. I hope you'll like it. Today I fixed the problem with the comment module which was not showing the correct images. There is also a new URL structure. For the old urls there is a 301 (Moved permanently) http redirect. (10.02.2007)

Moved to another hosting
Codegravity.com has been moved to another web hosting - CustomHosting.sk, from the previous pipni.cz, mainly because of the mod_rewrite problems and slow loading of the website. Sorry for some problems that lasted for about an hour. (19.01.2007)

Bookmark feed
The new feed from the del.icio.us has been added to the homepage codegravity.com. You 'll always have the latest information about the sites I like and you should visit as well! (21.11.2006)

News improved
Today I improved the news feeds. They are sorted into categories and I also added some other feeds that may be interested for you. (31.03.2006)

The Antispam verification
My email form was hijacked by the spam bots and I was recieving a lots of junk into my mailbox everyday. So, I decided to put a simple verification in the end of the form. You have to answer the result of addition of two numbers. Thank you for your understanding. (07.03.2006)

Java SE 6 Beta Mustang is out !
This beta release is a major milestone in the development of Mustang. It provides a complete stable snapshot of the final release functionality. http://mustang.dev.java.net (20.02.2006)

Google analytics, apply online
Apply online to google-analytics.com. They offer the new way of analysis of your website visitors. It is very promising, and when you will recieve the invitation code, you can send me one :) Thank you :) (13.02.2006)

Money Manager 2 - software for mobile accounting

FaceRSS - simple JavaServer Facer (JSF) component
I registered my new project - FaceRSS on freshmeat.net, here is the description: FaceRSS is a simple JavaServer Faces (JSF) component that allows you to display news from a specified URL source in one configurable JSP tag. This allows you to place news feeds on a Web site in a very simple way. It uses rsslib4j and therefore supports RSS version 0.9x, 1.0, and 2.0 with Dublin Core and Syndication namespaces. (06.01.2006)

My new blog :)
Check out my new [jroller.com/page/matto3c] blog on jroller.com website. Here is the RSS feed [http://jroller.com/rss/matto3c] if you'd like to add it into your news reader. (14.12.2005)

Optimizations
Thanks to the SEO company SeoVisions, for the basic optimization of this website. (11.12.2005)

ERM-II and Slovakia
SLOVAKIA, my home country, is now one step closer to adopting the common European currency - EURO. At midnight between November 25 and November 26, the country joined the Exchange Rate Mechanism 2 (ERM-II) (30.11.2005)

www.jground.com
I established a new website - http://www.jground.com, it's all based on JSF and it should be all about Java and all other related things. Enjoy! (25.11.2005)

Swing text antialiasing

Java webhosting
I'm trying a new http://www.move.cz java webhosting on www.move.cz, but it seems they don't respond to my questions about JSF ;( (16.11.2005)

Migration from Weblogic to JBoss
Currently I am working on a task: Migration of one J2EE application from Weblogic to JBoss application server. So, if you have any suggestions or resources, I would be glad if you'll send me some. Thanks (15.11.2005)

Increased Java performance
Java increased its performance on desktop by 58% : [http://www.javalobby.org/java/forums/t54006.html] Java Performance
Improvement (15.11.2005)

Exadel Studio Pro
At this time I'm playing with JSF (Java Server Faces). I want to recommend you a great IDE - Exadel JSF Studio Pro. It costs about $99, and there is 15 days trial available. You can also try MyEclipse which has also like Exadel - WYSIWYG editor for editing JSP, JSF pages. It can save you a lot of time. For more info, visit www.exadel.com (27.09.2005)

Programming directory
added a new programming resources directory, where you can submit your own programming website (14.09.2005)

Programming forum
Now the Programming forum is included in website design. I put there some topics from previous version of this forum. (19.08.2005)

Ubytovanie, podnajom Poprad
Ponuka na podnajom, ubytovanie: Zrekonštruované podkrovie - rodinny dom Poprad-Matejovce - 2 izby + pracovna + kúpelna s kuchynou, strešné a plastové okná, samostatné plynové kúrenie, drevené plávajúce podlahy, garáž, velká záhrada a samostatný vchod. . . Cena: dohodou
Kontakt: 0908 190 372 (18.02.2008)

Stavebny pozemok
Predám stavebný pozemok v prijemnom prostredí kúpelov Vyšné Ružbachy v blízkosti lyžiarskych vlekov. Inžinierske siete v blízkosti. Vhodný na relax ale aj podnikanie. 1767+27m2. 0908 190 372
Privacy policy | Advertise | Donate

Locations of visitors to this page


©2003-2009 Codegravity.com - Home