I have been giving this a lot of thought lately. Since most of my entities will always display a property in the same way (e.g. date, menu, etc) but on many pages. I was considering using annotations on the property which wire it up to a JSF component, validator, converter, etc.
Then you could use a taglib to render a specific property based on whether you are doing input or output. So <z:input property="#{entity.prop}/> may render an inputText but <z:output property="#{entity.prop}/> may be an outputText. Then I guess you could also have a taglib to iterate over all properties on the entity and render the whole form. Simple things like inputText fields would be very easy but I haven't got my head around more advanced things yet - like how to wire up a menu with predefined select items to set a property. My thinking is that this could be used to speed up UI development in most cases, or you could still drop back to hand-coding the JSF/facelets if you need something more advanced. I'd be more than happy to help, or even head up a project to get this happening if there is enough interest. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955758#3955758 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955758 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user