0

how to deal with data from multiple rows?

asked 2012-08-01 07:42:29 +0800

lilalolilalo1 gravatar image lilalolilalo1
12

updated 2013-01-30 06:53:29 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

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.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2013-01-30 06:59:08 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

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 .

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-08-01 07:42:29 +0800

Seen: 92 times

Last updated: Jan 30 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More