How to get the values from a checkBoxes in a abstract component

2006-11-27 Thread jake123
Hi, I am building a page where I have a abstract component that is working on a list of articles in a form. The user should be able to check/uncheck each and everyone of the list content with checkboxes. The question is how do I work with checkboxes in a abstract component? How do I get the value

Re: How to get the values from a checkBoxes in a abstract component

2006-11-27 Thread Shing Hing Man
Have you looked at the source code of org.apache.tapestry.contrib.form.MultiplePropertySelection ? MultiplePropertySelection is an abstract form component that renders its checkbox ? Shing --- jake123 [EMAIL PROTECTED] wrote: Hi, I am building a page where I have a abstract component

Re: How to get the values from a checkBoxes in a abstract component

2006-11-27 Thread jake123
No, but I am looking at it right now, Have you worked with this component your self? Do you have any example on how to use it? Thanks, Jacob Shing Hing Man wrote: Have you looked at the source code of org.apache.tapestry.contrib.form.MultiplePropertySelection ?

Re: How to get the values from a checkBoxes in a abstract component

2006-11-27 Thread Shing Hing Man
There is an example on MultiplePropertySelection at http://lombok.demon.co.uk/tapestry4Demo/app In case you did not know, in the contributed library, there are also simliar componets : CheckboxGroup, ControlCheckbox and ControlledCheckbo Shing --- jake123 [EMAIL PROTECTED] wrote: No,

Re: How to get the values from a checkBoxes in a abstract component

2006-11-27 Thread jake123
Hi Shing, I have looked in to the MultiplePropertySelection component. They all look fine, but the problem is that I am working in a Abstract Component because the DTO object I have in the web layer is a complex structure and I need to iterate through one list to get the actual list that will

Re: How to get the values from a checkBoxes in a abstract component

2006-11-27 Thread Shing Hing Man
During render, have you considered extract the list from your DTO object and then pass the list to MultiplePropertySelection ? During rewind, do the oppose. Shing --- jake123 [EMAIL PROTECTED] wrote: Hi Shing, I have looked in to the MultiplePropertySelection component. They all

Re: How to get the values from a checkBoxes in a abstract component

2006-11-27 Thread jake123
I dont know how to do that...this is how part of my abstract component look like now: if (menuItemIdList != null menuItemIdList.size() 0) { writer.begin(ul); writer.attribute(class, categories); for (Long menuItemId :