Hello,
 
I'm currently considering to replace my struts/tiles framework with webwork/sitemesh, as it looks very nice and much faster to develop with. But i have some concerns with it, and as a webwork newbie i could have got things all wrong.
 
One thing is that i would like to use the UI tags for the automatic form validation functionality that they give me, but i don't want it to produce the label for me, and i would also like the possibility to change the apperarance of the error message. I know that theese things are changeable in the template jsp files, but this could quickly turn into alot of extra work for small things.
Quite often different pages have special requirements for their form elements (our designers fault :P).
 
I would like to do my form elements something like this:
<ui:textfield name="'name'">
<tr>
<td>User name:</td>
<td><ui:xhtmlelement size="10" style="whitebolded"/><td>
<td><ui:xerror><font color="red">* <ui:xerrormessage/> </font></ui:error></td>
</tr>
</ui:text>
 
The <ui:x tags are ones i made up, xhtmlelement (bad name) would print out the html form element, in this case a textfield since it's nested within a ui:textfield tag. The ui:xerror tag would print out it's body content only if an errro occured with this field, and the ui:xerrormessage tag would print out the actual error message 
This is just a quick draft of how i would like to be able to do this, i haven't really thinked it over but this approach would give my designers the flexibility they need and it would be easy to use for them.
 
Maybe i can do something like this (well, get the same kind of flexibility anyway) with webwork already?
 
Regards,
Johan Isacsson
 
 

Reply via email to