[
https://issues.apache.org/jira/browse/TAPESTRY-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship resolved TAPESTRY-2495.
--------------------------------------------
Resolution: Invalid
Assignee: Howard M. Lewis Ship
> @Property tag with @Parameter used with Palette Component blanking "selected"
> parameter
> ---------------------------------------------------------------------------------------
>
> Key: TAPESTRY-2495
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2495
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.12
> Environment: WindowsXP, Java 5.0.12, tapestry
> 5.0.12-20080603-110024-79
> Reporter: Brian Lough
> Assignee: Howard M. Lewis Ship
> Priority: Minor
>
> Have a component AssignUsersToObject.[java/tml]
> Have an Add/Edit page ClientAddEdit.[java/tml] that has a List property
> "selectedUsers", which it uses to reference the above component, ala:
> <t:assignUserToObject selected="selectedUsers"/>
> "selectedUsers" is a collection instantiated by the ClientAddEdit page with
> setters/getters of:
> public List<User> getSelectedUsers() {
> return selectedUsers;
> }
> public void setSelectedUsers(List<User> selectedUsers) {
> this.selectedUsers.clear();
> this.selectedUsers.addAll(selectedUsers);
> }
> In AssignUsersToObject component, there are two distinct behaviors, depending
> upon on the "selected" property is defined:
> 1. (which always blanks or doesn't populated the "selected" collection")
> @Property
> @Parameter(required=true)
> private List<User> selected;
> 2. (which populates the "selected" collection fine)
> @Parameter(required=true)
> private List<User> selected;
> with manually created setters/getters of
> public List<User> getSelected() {
> return selected;
> }
> public void setSelected(List<User> selected) {
> log.debug("Selected: " + selected.size());
> }
> Seems @Property shouldn't make a difference, other than less typing.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]