Re: multiple models for PropertySelection inside a ForEach

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: multiple models for PropertySelection inside a ForEach

Todd O'Bryan
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: [hidden email]
For additional commands, e-mail: [hidden email]