[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: Re: Hidden field and stale links
From: Jamie Orchard-Hays <jamie () dang ! com>
Date: 2004-11-30 3:51:06
Message-ID: 100A9328-4283-11D9-8973-000A95D17A50 () dang ! com
[Download RAW message or body]
Matt, check out FormConditional from Contrib:
http://jakarta.apache.org/tapestry/doc/ComponentReference/
contrib.FormConditional.html
On Nov 29, 2004, at 10:18 PM, Matt Raible wrote:
> I'm trying to do the following:
>
> <th>
> <label class="required" for="username"><span
> key="user.username">Username</span></label>:
> </th>
> <td>
> <div jwcid="@Conditional" condition="ognl:user.username ==
> '' || user.username == null">
> <input jwcid="usernameField" type="text" id="username"/>
> </div>
> <div jwcid="@Conditional" condition="ognl:user.username !=
> null">
> <span jwcid="@Insert" value="ognl:user.username"/>
> <input jwcid="@Hidden" type="hidden"
> value="ognl:user.username" id="username"/>
> </div>
> </td>
>
> But when I submit my form, I get:
>
> You have clicked on a stale link.
>
> Rewind of form userForm/$Form expected allocated id #1 to be
> '$Hidden', but was 'usernameField' (requested by component
> userForm/usernameField).
>
> This is most likely the result of using your browser's back button,
> but can also be an application error.
>
> You may continue by returning to the application's home page.
>
> This happens when my form is initially displayed with a hidden
> username field.
> Thanks,
>
> Matt
>
>
> ---------------------------------------------------------------------
> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic