Tapestry 4.1.1: Palette Selection

2007-05-11 Thread Tine

Hello,

I have a problem at the contrib Palette component. 
When I submit my form only the highlighted/slected values but not all values
in the right box (selected box) are sumitted.

My .page file looks like: 

component id=selectionForm type=Form
binding name=clientValidationEnabled value=true/
/component

component id=employeeSelectionBox type=contrib:Palette
binding name=model value=employeeSelectionModel/
binding name=selected value=selectedList/
binding name=sort
value=@[EMAIL PROTECTED]/
binding name=validators value=validators:required/
/component

component id=submitSelection type=LinkSubmit
binding name=action value=listener:submitSelection/
/component


In the generated source file is a JavaScript function like:

tapestry.onsubmit_employeeSelectionBox=function(event){
  tapestry.palette.clearSelections(dojo.byId(employeeSelectionBox_avail));
  tapestry.palette.selectAll(dojo.byId('employeeSelectionBox'));
}

but this function is never called.

Does anyone have an idea what's wrong on this?

Thanks Christine

-- 
View this message in context: 
http://www.nabble.com/Tapestry-4.1.1%3A-Palette-Selection-tf3726079.html#a10427771
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tapestry 4.1.1: Palette Selection

2007-05-11 Thread Jesse Kuhnert

I remember some kind of problem related to this.  It's been fixed in 4.1.2.

On 5/11/07, Tine [EMAIL PROTECTED] wrote:



Hello,

I have a problem at the contrib Palette component.
When I submit my form only the highlighted/slected values but not all
values
in the right box (selected box) are sumitted.

My .page file looks like:

component id=selectionForm type=Form
binding name=clientValidationEnabled value=true/
/component

component id=employeeSelectionBox type=contrib:Palette
binding name=model value=employeeSelectionModel/
binding name=selected value=selectedList/
binding name=sort
value=@[EMAIL PROTECTED]/
binding name=validators value=validators:required/
/component

component id=submitSelection type=LinkSubmit
binding name=action value=listener:submitSelection/
/component


In the generated source file is a JavaScript function like:

tapestry.onsubmit_employeeSelectionBox=function(event){
  tapestry.palette.clearSelections(dojo.byId
(employeeSelectionBox_avail));
  tapestry.palette.selectAll(dojo.byId('employeeSelectionBox'));
}

but this function is never called.

Does anyone have an idea what's wrong on this?

Thanks Christine

--
View this message in context:
http://www.nabble.com/Tapestry-4.1.1%3A-Palette-Selection-tf3726079.html#a10427771
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com