-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello people,, and good day to you all.. I just have a question regarding sending *data from View(zul) to Control(java)* which are from multiple rows by a single click on the 'save button' ? and I also need to convert those info from rows into model too.
for example if I have this input values from different rows
<rows>
<row>
<textbox value="Jason ">
<textbox value="25 years old ">
</row>
<row>
<textbox value="Jason ">
<textbox value="25 years old ">
</row>
<row>
<textbox value="Jason ">
<textbox value="25 years old ">
</row>
<row>
<textbox value="COCO ">
<textbox value="5 years old ">
</row>
<row>
<textbox value="MOLY ">
<textbox value="24 years old ">
</row>
<row>
<textbox value="ROBBIE ">
<textbox value="25 years old ">
</row>
</rows>
and I have model as follows
class Person {
private String name;
private String age;
........ getter and setter methods emitted
}
please help .. and have a good one.
I think you can use MVVM Architecture for that it will very easy to pass data from ZUL page to Java Class .You can bind your bean property @bind(vm.name) and it automatically send your data in to Java code .
Asked: 2012-08-01 07:42:29 +0800
Seen: 92 times
Last updated: Jan 30 '13