I'm all for (optionally) getting rid of boiler plate and I think there is a
way to get rid of even more here. i would suggest putting the mixin at the
form level and have it control all the contained elements. For example

<t:form t:mixins="forminline"> or <t:form t:mixins="formhorizontal">
<t:textfield t:id="name"/>
<t:textfield t:id="email/>
<t:submit />
</t:form>

or

<t:beaneditform t:mixins="formhorizontal"/>

This makes it easy to switch between form types and makes your code more
future proof because new form types can be added but just changing the base
components. You can also automatically add one of the form types to all the
form component and have the whole site use the same form type.

The same can apply to the grid. For example


<t:grid t:mixins="striped"/>



 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Idea-for-5-4-ControlGroup-mixin-tp5718691p5718722.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to