Dear List,

i have a problem displaying a list of items in a panel. That panel is
used in different forms.

this panel contains a AjaxFallBackLink to add a new item (address) to
the list. The list itself
is wrapped inside a WMC. There are also a few validators on the input
fields as well a formvalidator
against 2 of the input fields. this all works nice as long as the user
presses add, fills in data and
than saves. But, if the user changes data in one of the displayed
items and then presses the 'add' link
all changes made by the user are lost.

As far as i understand, the values from the form field are not pushed
into the models backing the list.
Changing the AjaxFallBackLink to a AjaxSubmitLink does this, but then
i have the problem that the
panel does not have a feedbackpanel, only the form has and i have no
clean way to display validation
messages. Also, i would prefer the do the push the models only when
the user presses the save button
on the form.

I tried using a RefreshingView, but here i ran into the problem with
the FormValidator and the
IItemReuseStrategy. Without providing one, new items would be provided
for each 'add' link pressed
and i would receive validation errors from items not in the form anymore.


How would you implement this? Or perhaps a pointer if and how i can
use the ReuseIfModelsEqualStrategy?

thank you in advance for your help
Bert

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to