You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ron Piterman <mp...@vollbio.de> on 2005/05/09 10:57:31 UTC
multiple models for PropertySelection inside a ForEach
Hi,
I am using a PropertySelection inside a ForEach:
<span jwcid="@PropertySelection" model="ognl:allProperties"
value="ognl:property.id.property"/>
the page method getAllProperties() creates on each call a new model:
public IPropertySelectionModel getAllProperties() {
return new MyModel();
}
The constructed model is on each call different, but all "instances" of
the PropertySelection use the same one.
Is this a bug? is there a workaround?
Cheers,
Ron
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: multiple models for PropertySelection inside a ForEach
Posted by Todd O'Bryan <to...@mac.com>.
For the sake of people who might not know how you fixed it, did you
create an array or List of PropertySelections to use in the Foreach,
or something else?
Todd
On May 9, 2005, at 5:11 AM, Ron Piterman wrote:
> It is a bug, but not in tapestry :-), sorry, it was my mistake...
>
>
>> Hi,
>> I am using a PropertySelection inside a ForEach:
>> <span jwcid="@PropertySelection" model="ognl:allProperties"
>> value="ognl:property.id.property"/>
>> the page method getAllProperties() creates on each call a new model:
>> public IPropertySelectionModel getAllProperties() {
>> return new MyModel();
>> }
>> The constructed model is on each call different, but all
>> "instances" of the PropertySelection use the same one.
>> Is this a bug? is there a workaround?
>> Cheers,
>> Ron
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: multiple models for PropertySelection inside a ForEach
Posted by Ron Piterman <mp...@vollbio.de>.
It is a bug, but not in tapestry :-), sorry, it was my mistake...
����� Ron Piterman:
> Hi,
> I am using a PropertySelection inside a ForEach:
>
>
> <span jwcid="@PropertySelection" model="ognl:allProperties"
> value="ognl:property.id.property"/>
>
> the page method getAllProperties() creates on each call a new model:
>
> public IPropertySelectionModel getAllProperties() {
> return new MyModel();
> }
>
> The constructed model is on each call different, but all "instances" of
> the PropertySelection use the same one.
>
> Is this a bug? is there a workaround?
>
> Cheers,
> Ron
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org