try setting volatile to true in the @For component

On Wed, Jun 10, 2009 at 6:10 PM, bryans<pant...@gmail.com> wrote:
>
> I've got a page where I want to disable a @Select component. However when
> rewinding the form, it generates a StaleLink because the @For loop which
> populates the select doesn't get rewound due to the @Select being disabled:
>
>
>
> <select jwcid="@Select" disabled="ognl:selectDisabled" multiple="true"
> validators="validators:required">
>    < span jwcid="@For" source="ognl:customers" value="ognl:currentCustomer"
> index="ognl:currentCustomerIndex" >
>        <option jwcid="custopt...@option"
> selected="ognl:selection[currentCustomerIndex]"
> label="ognl:currentCustomer"/>
>    < /span>
> </select>
>
> Since the @Select component doesn't overide the getRenderBodyOnRewind
> method, it doesn't rewind the For loop, and therefore generates a SLE.
>
> Does anyone have any ideas on how to get around this or fix it? Thanks!
>
> -B
> --
> View this message in context: 
> http://www.nabble.com/Stale-Link-Exception-on-Disabled-Select-Component-tp23964397p23964397.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to