You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by alanhay99 <al...@hotmail.com> on 2011/10/03 16:03:23 UTC

Tapestry 4.1.6 Dynamic Form

I'm trying to get some Ajax functionality working in tapestry 4.1.6.

I can get the following working using okay with an action listener defined:

@EventListener( targets = "benefitSelect", events = "onchange",
submitForm="frequencyForm")
public void doStuff() 


	
		

			
					
										
					
				
			
			
	


While the above works, haveing everything in one form means of course that
all values are submitted when 
a checkbox is toggled. For various reasons, I would like each each control
to be in it's own form so that only that value is submitted i.e. something
like.


	

		
				
					
					
					
				
			
		
		


I have removed the event listener for now and am trying a synchronous form
submit. 
All the checkboxes generate an event however the problem is however is that
they are all 
fire an event for the first element in the list i.e. setSelected is always
called for that element at 
benefits[0].

Can anyone offer any advice on this?

Thanks.

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-4-1-6-Dynamic-Form-tp4864970p4864970.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Tapestry 4.1.6 Dynamic Form

Posted by alanhay99 <al...@hotmail.com>.
I'm trying to get some Ajax functionality working in tapestry 4.1.6.

I can get the following working using okay with an action listener defined:



While the above works, haveing everything in one formmeans of course that
all values are submitted when 
a checkbox is toggled. For various reasons, I would like each each control
to be in it's own form so that only that
value is submitted i.e. something like.



I have removed the event listener for now and am trying a synchronous form
submit. 
All the checkboxes generate an event however the problem is however is that
they are all 
fire an event for the first element in the list i.e. setSelected is always
called for that element at 
benefits[0].

Can anyone offer any advice on this?

Thanks.

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-4-1-6-Dynamic-Form-tp4864970p4864975.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org