[ 
https://issues.apache.org/jira/browse/WICKET-462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511564
 ] 

Igor Vaynberg commented on WICKET-462:
--------------------------------------

thats just it, there was no commit. the palette is very different between 1.2.x 
and 1.3. im not sure which change and when fixed it, but its already fixed in 
1.3. so i guess the whole palette has to be backported to 1.2.x.

> The Palette component does not update its (Property-)Model after the 
> underlying list was changed by another part of the program
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-462
>                 URL: https://issues.apache.org/jira/browse/WICKET-462
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.2.5
>         Environment: tomcat 5.5, java 1.5
>            Reporter: Ivana Cace
>            Assignee: Igor Vaynberg
>             Fix For: 1.3.0-beta1
>
>
> The Palette component does not update its (Property-)Model after the 
> underlying list was changed by another part of the program.
> I use a Palette to add individuals to a list of 'members'. For this Palette 
> gets two models, the model for 'selected' is a PropertyModel  of  a field in 
> a regular Java object. 
> In some cases it is not allowed to remove individuals from this field. After 
> submit another part of the software compares the new object to the old one, 
> and returns the removed individuals. 
> To notify the Palette that its model has changed (or should be changed) i 
> call modelChanged(). 
> Regardless, the Palette does not show these changes on screen. 
> Note that i update other field after submit too, and the components that use 
> PropertyModels of these fields do reflect the changes! For example i use a 
> Label to show a String.
> code in the form:
>       opsModel = new Model(allUsers);
>       membersModel = new PropertyModel(project,"members");
>       IChoiceRenderer renderer = new ChoiceRenderer("displayName", "uid");
>       chooseMembers = new Palette("people", membersModel, opsModel, renderer, 
> 12, false);
>       add(chooseMembers);
>  
> public void onSubmit() {
>       super.onSubmit();
>       doSomeLogic(project);
>       chooseMembers.modelChanged(); 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to