Hi
probably this is not a strictly Seam related question, but here it is...
Displaying a form i need to display the proper input type (textarea,
checkbox,radio etcetc) based on the type of the element.
One possibility I see is to use for example jstl tags to create an if-else
sequence. Given that the possible types are limited and fixed this doesn't
seem to be a problem.
Nevertheless it doesn't appeal me much, so I'd like to hear your opininon about
this...
Another possibility could be having a method like getFormElement(Type)
that would add the element through
| facesContext.getViewRoot().findComponent("theform").getChildren();
| ...
|
But doing this I loose readability of the page code, providing a flexibility
that probably is not needed...
Any hint?
Cheers
Francesco
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940122#3940122
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940122
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user