Getting/Iterating through the information from the Grid
Hi Guys, Im relatively new to Tapestry and I've tasked with assessing the viability of Tapestry as the primary framework for our project solution. First let me quickly describe the project, I will present the user with a grid of content, at the end of each row will be a check box. when the user selects as many checkboxes as he/she chooses and submits, we are to query an external source for a further list for each of those selected checkboxes. So after much toil, I was able to incorporate the checkboxes into the grid. However, now I need to generate another grid based on what checkboxes were checked. Is there some way to register a list of what checkboxes were checked? or is there a way to iterate through a specific column/row in a grid? really any kind or solution or direction would be greatly appreciated. With many Thanks, C -- View this message in context: http://www.nabble.com/Getting-Iterating-through-the-information-from-the-Grid-tp24355747p24355747.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Getting/Iterating through the information from the Grid
Remember that bindings are just getters and setters. So take off the @Property annotation on your binding for your checkbox and replace with corresponding getter/setter. Now in getter/setter you can store/ query a map, usually of Long,Boolean. ie your entity id and selected state. HTH, J On 6-Jul-09, at 6:50 AM, cajmrn wrote: Hi Guys, ... Is there some way to register a list of what checkboxes were checked? or is there a way to iterate through a specific column/row in a grid? really any kind or solution or direction would be greatly appreciated. With many Thanks, C -- View this message in context: http://www.nabble.com/Getting-Iterating-through-the-information-from-the-Grid-tp24355747p24355747.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Getting/Iterating through the information from the Grid
Hi J, I believe I understand what you are saying. I did use setters and getters for my boolean state and I did see how changing the state from true to false changed what was initially displayed in the grid. I will try to implement your suggestion tonight. If only there was more detailed information on these things. I've been using the Tapestry 5 book from Kolesnikov as a reference and its been helpful to a certain extent but obviously since I've turned to the forums... Thanks, C Julian Wood wrote: Remember that bindings are just getters and setters. So take off the @Property annotation on your binding for your checkbox and replace with corresponding getter/setter. Now in getter/setter you can store/ query a map, usually of Long,Boolean. ie your entity id and selected state. HTH, J On 6-Jul-09, at 6:50 AM, cajmrn wrote: Hi Guys, ... Is there some way to register a list of what checkboxes were checked? or is there a way to iterate through a specific column/row in a grid? really any kind or solution or direction would be greatly appreciated. With many Thanks, C -- View this message in context: http://www.nabble.com/Getting-Iterating-through-the-information-from-the-Grid-tp24355747p24355747.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/Getting-Iterating-through-the-information-from-the-Grid-tp24355747p24365898.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org