>From: <[EMAIL PROTECTED]> < > Hi > > I was wondering about the usage of this tag. I see it has a > shapeValidator,but I > was wondering what the intended syntax for this tag is, and if the current > var > value is somehow passed along to it? >
The clayForEach uses the "var" attribute like the JSTL var. But, in this case, it's the name of a Map placed in session scope. This component (Clay) pulls the data from the "value" expression and loads a map. The bodyJsfid is the content that is repeated for each item. The "bodyJsfid" can be a html template or XML configuration. The row is a naming container so you can add update able fields and the reason the map is stored in session scope. I thought it would be important to be able to name the session scoped variable since you have to cleanup yourself. The component uses the clay shapeValidator callback event to create the beans that define the shape of the subtree. This callback has the same method signature as the "validator" method binding event but is not associated with the validation phase. I't invoked for the rendering phase. The "clayForEach" shapeValidator event is bound to a managed bean that is loaded in the faces-config from the Clay jar. The "validator" term seemed to work because it validates the shape of the Clay component. The basic idea of this method binding event is to create the Clay subtree at runtime from model data instead of a XML or HTML static configuration file. The tomahawk "dataList" component will do the same thing with more style. > Hermod > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > This email with attachments is solely for the use of the individual or > entity to whom it is addressed. Please also be aware that the DnB NOR Group > cannot accept any payment orders or other legally binding correspondence with > customers as a part of an email. > > This email message has been virus checked by the virus programs used > in the DnB NOR Group. > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >