struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcos Mendonça" <marc...@gmail.com>
Subject Re: [struts2] s:generator not generating output
Date Mon, 29 Oct 2007 14:08:23 GMT
Yes, I realized that after I posted the question.

generator working ok now...

Thanks, just one more question:

Say I want to generate input fields and name them according to the
iterator value. How would I do that?

<s:generator val="%{getTamanhoGrupo()}" separator=""
count="%{getTamanhoGrupo()}">
        <s:iterator value="%{top}">
		    <s:textfield name="dynaField.area" size="2" value="11">
		    </s:textfield>
        </s:iterator>
</s:generator>

I'd like to create each field with names say area1, area2, area3.

On 10/29/07, Dave Newton <newton.dave@yahoo.com> wrote:
> --- Marcos Mendonça <marcosm@gmail.com> wrote:
> >     <s:generator val="" separator=","
>
> Isn't the "val" attribute what's parsed to create the
> iterator?
>
> d.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message