struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pratt <thechrispr...@gmail.com>
Subject Re: Struts 2: Does the Indexed List Example Work?
Date Fri, 29 Apr 2011 19:28:52 GMT
Try: value="%{name}"
  (*Chris*)
On Apr 29, 2011 12:14 PM, "Dave Newton" <davelnewton@gmail.com> wrote:
> Try the square brackets again.
>
> On Fri, Apr 29, 2011 at 2:52 PM, Joe <fullmitten@lycos.com> wrote:
>> Chris Pratt wrote:
>>
>> Oh, duh, I'm not sure why I didn't see it before.  You can either just
use
>> %{id} and then you don't need the id="bean" on the s:iterate tag.  Or,
you
>> can use %{#bean.id}.
>>
>> No joy.  If I use the tags like so:
>> <s:iterator value="beanList">
>>  <s:textfield theme="simple" name="beanList(%{id}).name" /><br>
>> </s:iterator>
>>
>> the page source looks like what I'd expect, but no values in the text
fields:
>> <input type="text" name="beanList(1).name" value=""
id="prepTest_beanList(1)_name"/><br>
>>
>>
>> If I use the tags like so:
>> <s:iterator value="beanList" var="bean">
>>  <s:textfield theme="simple" name="beanList(%{#bean.id}).name" /><br>
>> </s:iterator>
>>
>> The page source is the same:
>> <input type="text" name="beanList(1).name" value=""
id="prepTest_beanList(1)_name"/><br>
>>
>>
>> Dave Newton-6 wrote:
>> Ah, older version of S2--yeah.
>>
>> Not that old.  I'm using 2.2.1.
>>
>> I really appreciate your time looking at this, guys!
>>
>> ---------------------------------------------------------------------
>> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message