File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Different Tags, different implementations

 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17276
6
IntelliJ IDE Mac Spring
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic