Hi all

As I'm new to wicket, I often wonder (especially when I encounter
hurdles ;)) if the approach I take is the good one. So, if you don't
mind, I will quickly introduce what I try to do, then present the
solution I've retained up to now and, finally, the current hurdle ;).
Feel free to comment on any of these points!

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".

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 ?

Thanks in advance
Joseph, aka ZedroS

-------------------------------------------------------------------------
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