File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Tag used in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Tag used in JSF" Watch "Tag used in JSF" New topic
Author

Tag used in JSF

Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Hi all,
I just noticed that, JSF, like Struts and JSTL, has its own set of custom tags!
I feel there are lots of tags we had already, and still, we need to learn one more. Seems to me that different technologies have their own custom tag library.
I think this makes us difficult to learn, and may cause many confusion on those library.
Are the tags in fact can be combined into 1 single set of the custom tag library?
Nick.


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

IDE has help us the reduce the problem of remembering tag names.


Groovy
Bill Dudney
Author
Ranch Hand

Joined: Sep 05, 2003
Posts: 234
Tags are the way to extends JSP's you should expect that any technology that uses JSP's will have its own set of custom actions that interface to that technology.


TTFN,<br /> <br />-bd-<br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/0471449156/qid=1064343733/sr=2-1/ref=sr_2_1/002-8375300-3666449" target="_blank" rel="nofollow">Jakarta Pitfalls</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471146153/qid=1064343733/sr=1-2/ref=sr_1_2/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">J2EE AntiPatterns</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471462071/qid=1064343733/sr=1-3/ref=sr_1_3/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">Mastering JavaServer Faces</a> | <a href="http://bill.dudney.net/roller/page/bill" target="_blank" rel="nofollow">Blog</a> | <a href="http://www.jroller.com/page/BillDudney" target="_blank" rel="nofollow">Eclipse Blog</a> | <a href="http://www.sourcebeat.com/TitleAction.do?id=2" target="_blank" rel="nofollow">Eclipse 3 Live</a>
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
However, if there does not have a standardize way, more and more tags come out
I think, even with the help of IDEs, developers may still suffer.
Nick.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

Are the tags in fact can be combined into 1 single set of the custom tag library?
The only problem with combining JSTL and JSF is that the JSTL is so widely used outside of JSF.
One of the problems with Struts is that they have tried to duplicate a lot of JSTL in terms of the logic tags and some output tags. I never understood why they didn't just use the JSTL.
Seems to me that different technologies have their own custom tag library
You are semi-correct in this statement. However, the nice thing about JSF is that they didn't try and reinvent the wheel. JSF uses the JSTL. So you won't find hardly any duplication of Tags. And they complement each other. Also note that the JSTL is not really a technology. It is a Tag Library. It uses the J2EE technology. Same with JSF. It's really a Component Oriented Framework for developing J2EE based web application. Therefor, it uses the J2EE technology also.
Sometimes it is difficult to keep track of all the different tags. But as your develop more and more, they become second nature. I think that is just part of being a Developer. If it was easy, everyone would do it.


GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

Originally posted by Pradeep Bhat:
IDE has help us the reduce the problem of remembering tag names.

I would say that an IDE is for rapid development. But not to remember things for us. What if....
You developed a huge web application using your favorite IDE. You install it for the client on their web server. So now, they are having problems with the application. It works great on your test system. But not on theirs. So the only way is to meet with the client at their systems and go through some code trying to debug the problem.
So then you come to a JSP where you think the problem is occuring. YOu open it up in VI to look at the code. The client asks what you think the problem is. All you can say is, "I don't know. I have no idea what these tags are. My IDE just puts them in there when I drag them over to the page."
Probably not exactly what you meant by your statement, but still a scenerio you could avoid by knowing as much about the tags you are using as possible.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tag used in JSF