You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by albgentius <ge...@gmail.com> on 2012/03/22 19:54:57 UTC

disable editing for the whole page

I am trying to disable the editing for every element in the page (something
like @AuthorizeAction would do) after we click a button and get no errors
back from the user action.

I am assuming this can be done with an ajax request and a form visitor but
am looking for any other ideas that might be easier or more interesting than
mine.

Thank you,

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/disable-editing-for-the-whole-page-tp4496524p4496524.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: disable editing for the whole page

Posted by Dan Retzlaff <dr...@gmail.com>.
You might prefer visiting just the form components, otherwise all your
links will get disabled too. But that's not hard either; just
MarkupContainer#visitChildren() or Form#visitFormComponents().

On Thu, Mar 22, 2012 at 1:20 PM, albgentius <ge...@gmail.com> wrote:

> That sounds very simple and nice.
>
> Thank you,
>
> I was under impression that we need to disable every component.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/disable-editing-for-the-whole-page-tp4496524p4496739.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: disable editing for the whole page

Posted by albgentius <ge...@gmail.com>.
That sounds very simple and nice.

Thank you,

I was under impression that we need to disable every component.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/disable-editing-for-the-whole-page-tp4496524p4496739.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: disable editing for the whole page

Posted by Igor Vaynberg <ig...@gmail.com>.
form.setenabled(false), or even page.setenabled(false)

-igor

On Thu, Mar 22, 2012 at 11:54 AM, albgentius <ge...@gmail.com> wrote:
> I am trying to disable the editing for every element in the page (something
> like @AuthorizeAction would do) after we click a button and get no errors
> back from the user action.
>
> I am assuming this can be done with an ajax request and a form visitor but
> am looking for any other ideas that might be easier or more interesting than
> mine.
>
> Thank you,
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/disable-editing-for-the-whole-page-tp4496524p4496524.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

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