You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by bryans <pa...@gmail.com> on 2009/06/10 17:10:11 UTC
Stale Link Exception on Disabled Select Component
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="custOption@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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Stale Link Exception on Disabled Select Component
Posted by shekharreddy <sh...@hp.com>.
bryans <panth13 <at> gmail.com> writes:
>
>
> This worked. Thank you.
>
> Andreas Andreou-4 wrote:
> >
> > try setting volatile to true in the @For component
> >
> >
> >
>
hi , @For component having volatile true in html page but still i am getting
stale link exception.
please help to solve this exception.
thanks in advance!
regards,
shekhar reddy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Stale Link Exception on Disabled Select Component
Posted by bryans <pa...@gmail.com>.
This worked. Thank you.
Andreas Andreou-4 wrote:
>
> try setting volatile to true in the @For component
>
>
>
--
View this message in context: http://www.nabble.com/Stale-Link-Exception-on-Disabled-Select-Component-tp23964397p23970088.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Stale Link Exception on Disabled Select Component
Posted by Andreas Andreou <an...@di.uoa.gr>.
try setting volatile to true in the @For component
On Wed, Jun 10, 2009 at 6:10 PM, bryans<pa...@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="custOption@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-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org