4

hi all,how to populate the value in another zule page provided by user inside textbox ? [closed]

asked 2013-07-08 08:17:09 +0800

vikku gravatar image vikku
51 2

how to populate the value in another zule page provided by user inside textbox ?

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by ashishd
close date 2014-01-13 06:26:00

Comments

2

Can u give me the full code for this

vikku ( 2013-07-08 12:58:59 +0800 )edit

3 Answers

Sort by ยป oldest newest most voted
3

answered 2013-07-08 13:29:01 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

You can also see running demo here

For MVC

  1. Click MVC
  2. Click Passing Parameter in the second level menu

For MVVM

  1. Click MVVM
  2. Click Passing Parameter in the second level menu
link publish delete flag offensive edit
4

answered 2013-07-08 09:43:14 +0800

iamsudhir4u gravatar image iamsudhir4u flag of India
545 7
http://corejavasupport.bl...

1.zul

<zk >
<window apply="org.zkoss.bind.BindComposer"  
        viewModel="@id('vm') @init('com.test.TestViewModel')">

<textbox value="@load(vm.caseName)"  />

</window>
</zk>

TestViewModel.java

private String caseName;
    public String getCaseName() {
        return caseName;
    }

    public void setCaseName(String caseName) {
        this.caseName = caseName;
    }

// Write this code in your method for calling your another zul with parameter.
Map args = new HashMap();
args.put("caseName", caseName);
Executions.createComponents("2.zul", view, args);

Collect this caseNumber on the View Model of 2.zul and populate this caseNumber on 2.zul.

private String caseNumber;
@AfterCompose
    public void afterCompose(@ContextParam(ContextType.VIEW) Component view, @ExecutionArgParam("caseNumber") String argCaseNumber){
this.caseNumber=argCaseNumber;
}
link publish delete flag offensive edit
0

answered 2013-07-08 13:26:43 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2623 3 8
http://emrpms.blogspot.in...

You can find more examples here

link publish delete flag offensive edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-07-08 08:17:09 +0800

Seen: 31 times

Last updated: Jul 08 '13

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