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.
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.
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.