You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by David Chang <da...@yahoo.com> on 2010/04/27 14:43:51 UTC

how to build two-state (edit/view) form and form components?

I would like to have a form in which each component (such as input, textarea) has two states. Clicking on a form component's label or something else switches the component between edit (shown as usual input, textarea, etc) or view (normal html display) modes. Finally when a user is okay with everything, he/she can clicks the submit button to send the whole form to the server for further actions. 

Can anyone give me some pointers or tips for doing it in Wicket? 

Thanks and all the best!


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: how to build two-state (edit/view) form and form components?

Posted by Jeremy Thomerson <je...@wickettraining.com>.
There's been some posts on the lists before about this.  You may find them
helpful.  The most basic form is that each field is a panel that shows
either one or the other (input or label typically).

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Apr 27, 2010 at 7:43 AM, David Chang <da...@yahoo.com>wrote:

> I would like to have a form in which each component (such as input,
> textarea) has two states. Clicking on a form component's label or something
> else switches the component between edit (shown as usual input, textarea,
> etc) or view (normal html display) modes. Finally when a user is okay with
> everything, he/she can clicks the submit button to send the whole form to
> the server for further actions.
>
> Can anyone give me some pointers or tips for doing it in Wicket?
>
> Thanks and all the best!
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>