2 ideas quicky come to mind:
- use a page global flag indicating the current mode.
 Then have every component on the page overwrite there isEnabled
method to use that flag
- build 2 panel one for read and one for edit, add either one
depending on the mode  to the page (using one id)

Maurice


On Fri, Mar 7, 2008 at 5:03 PM, Serzhas <[EMAIL PROTECTED]> wrote:
>
>  Greetings.
>  Let me explain: suppose we have a page with few components, where page
>  itself
>  can have few different modes - READ-ONLY, EDIT or CREATE mode. When in
>  EDIT/CREATE mode, we want to let user to change components values. In
>  READ-ONLY
>  mode all components should be immutable. What is the best practices to
>  achieve such
>  page behavior (if any)?
>  Thanks.
>  --
>  View this message in context: 
> http://www.nabble.com/Enabling-disabling-components-dynamically-tp15897799p15897799.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to