Meaningless Drivel is fun!*
The moose likes JSF and the fly likes Different Tags, different implementations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Different Tags, different implementations" Watch "Different Tags, different implementations" New topic
Author

Different Tags, different implementations

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

I have been fooling around with JSF and I have been very confused because I have seen numerous tags with different names for the same thing.

for instance (ignore the prefix, but assume the usual)

<hutputText>
<hutputLabel>



bad example there since they are different, but I just see that if you are using MyFaces, there is their set of tags, and if you use Facelets, it is different, and if you use Sun's RI it is a different set, and I am getting confused on which to use? Plus I think tags changed on versions of JSF. I am also using JBoss's Seam which adds some other tags. Sometimes when reading I see a sample with tags, and I try it on my page and those tags are not valid, or some attribute of the tag that was in the text doesn't work.

What is the simplest and most common way to find out which tags are valid and which to use.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Personally I work as much as possible with Sun's JSF RI. When I need some special tag, then I just write my own custom tag for it.

Here is an useful overwiew of the RI tags: http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/index.html
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Thanks

Mark
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

I think my main issue was with Facelets, while it looks cool to have shorter tags, it makes you believe that you can use a tag like ui:table and it works, but you have to declare what ui:table maps to in regular JSF, which I think is correct? BUt I could be wrong.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Different Tags, different implementations
 
Similar Threads
Issue in converting Struts view to JSF view using struts-faces integration library
Should all HTML be banned from JSP pages in JSF?
Iterating over hashMap in facelets not working
JSF Replacement for Struts?
How to Write jQuery into RichFaces?