Component self updating when Ajax call changed a commun model ?

View: New views
5 Messages — Rating Filter:   Alert me  

Component self updating when Ajax call changed a commun model ?

by ZedroS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I've the following issue : in a panel a checkbox needs to be disabled depending on a "ajax updated" list in a sub panel (if there is something in the list the checkbox is disabled).

Currently I give the checkbox reference to the other panel and then use it in the sub panel "add" AjaxLink.  

However, I will have soon more components on which this checkbox will depend for its state (lists in other sub panels).

As such, I wonder if there is a way for this checkbox to be updated each time one of the sub panels list is changed, knowing that they all share the same model.

What do you think of it ?

NB : I saw this discussion http://www.nabble.com/Updating-distant-(unrelated)-components-via-Ajax-when-a-shared-model-changes-to13165777.html#a13165777 but I'm not sure it's the only way...

Let's see if Wicket surprises me one more time ;)

++
zedros

Re: Component self updating when Ajax call changed a commun model ?

by Johan Compagner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

see the post Timo did in the other thread about this.


On Wed, Jul 9, 2008 at 9:15 AM, ZedroS <zedros.schwartz@...> wrote:

>
> Hi
>
> I've the following issue : in a panel a checkbox needs to be disabled
> depending on a "ajax updated" list in a sub panel (if there is something in
> the list the checkbox is disabled).
>
> Currently I give the checkbox reference to the other panel and then use it
> in the sub panel "add" AjaxLink.
>
> However, I will have soon more components on which this checkbox will
> depend
> for its state (lists in other sub panels).
>
> As such, I wonder if there is a way for this checkbox to be updated each
> time one of the sub panels list is changed, knowing that they all share the
> same model.
>
> What do you think of it ?
>
> NB : I saw this discussion
>
> http://www.nabble.com/Updating-distant-(unrelated)-components-via-Ajax-when-a-shared-model-changes-to13165777.html#a13165777<http://www.nabble.com/Updating-distant-%28unrelated%29-components-via-Ajax-when-a-shared-model-changes-to13165777.html#a13165777>
> but I'm not sure it's the only way...
>
> Let's see if Wicket surprises me one more time ;)
>
> ++
> zedros
> --
> View this message in context:
> http://www.nabble.com/Component-self-updating-when-Ajax-call-changed-a-commun-model---tp18355808p18355808.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

Re: Component self updating when Ajax call changed a commun model ?

by ZedroS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Thanks again !

Were you thinking of this discussion : http://www.nabble.com/AJAX-validation-and-multiple-requests-td15546309.html ?

If so it looks like there is no "real" feature for this need in the framework and that it should be done "by hand" each time, do we agree ?

++

Re: Component self updating when Ajax call changed a commun model ?

by Timo Rantalaiho :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 10 Jul 2008, ZedroS wrote:
> Were you thinking of this discussion :
> http://www.nabble.com/AJAX-validation-and-multiple-requests-td15546309.html

Maybe this one

  http://www.nabble.com/generics-td18083910i60.html#a18347087

but it's a good idea to browse other messages on the list
about the ajax updates, there are several different ways
that people have come up with.

Best wishes,
Timo

--
Timo Rantalaiho          
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

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


Re: Component self updating when Ajax call changed a commun model ?

by freak182 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
You can try this one, maybe i can help you... Timo suggested it to me and it work great..

http://www.nabble.com/How-to-update-parent-component-from-a-panel--td17748294.html

Cheers...

ZedroS wrote:
Hi

I've the following issue : in a panel a checkbox needs to be disabled depending on a "ajax updated" list in a sub panel (if there is something in the list the checkbox is disabled).

Currently I give the checkbox reference to the other panel and then use it in the sub panel "add" AjaxLink.  

However, I will have soon more components on which this checkbox will depend for its state (lists in other sub panels).

As such, I wonder if there is a way for this checkbox to be updated each time one of the sub panels list is changed, knowing that they all share the same model.

What do you think of it ?

NB : I saw this discussion http://www.nabble.com/Updating-distant-(unrelated)-components-via-Ajax-when-a-shared-model-changes-to13165777.html#a13165777 but I'm not sure it's the only way...

Let's see if Wicket surprises me one more time ;)

++
zedros
LightInTheBox - Buy quality products at wholesale price