> So, the need is basically to browse a set to be able to
> increase/decrease the value of each element. So, for each element, it
> should look like this:
> ElementName
> ElementValue  + -
>
> + and – are links that the user can click on.
>
> Then I would like a submit button under this to be able to submit the
> whole stuff. As I'm Ajax curious, I would like the action on the + or
> – to be done through Ajax.

> Currently, I'm using a RefreshingView with, for each element of the
> Set, some Labels (elementName, elementValue) and an action panel with
> two AjaxLink, one for "plus" and one for "minus".

Sounds good.

> Up to now, I manage to retrieve on which AjaxLink the user has
> clicked, but I don't manage to refresh the RefreshingView afterwards.
> I've two issues : how to tell the View to refresh and how to deal with
> the model, since I want to update it but not to save it to the
> database…NB : I give to the Panel containing the RefreshingView the
> model object containing the set.
>
> Do you have any comment/question/clue ?

Yep, it's one of the common questions here. Please read
http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to