Maris Orbidans wrote: > Hello > > I would like to have styleId different for each <html:text> element. How to achieve >it ? > > <logic:iterate id="element" name="Zurnals4Zem6" property="saraksts" > type="lv.datapro.lad.pri.utils.Zurnals4BaseView"> > > <td class="small3"> > <html:text name="element" styleId="123" property="iesniegsanaDatums"/> > > I want this because I will generate some JavaScript that will validate those date >fields. > Since property is the same then I need styleId different to distinguish my date >fields in script. > > Or maybe there is some better way to do it ? > > > Maris > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > >
From the documentation: http://jakarta.apache.org/struts/userGuide/struts-html.html#text styleId: Identifier to be assigned to this HTML element (renders an "id" attribute). (RT EXPR) So technically you should be able to assign self generated ids using a Runtime expression. I think you should first check out if the Struts Validator does not implement what you try to code. Patrick -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

