0

inter-pages communication

asked 2015-03-02 10:24:44 +0800

qdtuxt gravatar image qdtuxt
3

hi, when i clicked a button in page A.zul, it moved to B.zul. how do i get page A's value in page B if don't use sendRedirect() method?

delete flag offensive retag edit

5 Answers

Sort by » oldest newest most voted
0

answered 2015-03-02 10:26:33 +0800

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

There are examples in my blog. You can check here

Search for Passing arguments. You will find examples both in MVC and MVVM.

link publish delete flag offensive edit
0
link publish delete flag offensive edit
0

answered 2015-03-09 09:23:19 +0800

qdtuxt gravatar image qdtuxt
3

updated 2015-03-09 09:25:41 +0800

thanks for your reply. I'm sorry that seems not what i want. i mean i want to hold my value into request object in page A, and then i can get reqeust value from page B. I mean if it has a method, it like struts, forward to page B after button was clicked in page A,and it can take out request value in B . But now I can take out nothing from request object in page B , it is always null . I don't know if page A forward to B how to access the requestscope variables in page B

link publish delete flag offensive edit
0

answered 2015-03-09 13:52:43 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2015-03-09 13:54:49 +0800

Something ike this?

set request Attribute:

Executions.getCurrent().setAttribute("requestAttribute", myObject)

get request Attribute:

Executions.getCurrent().getAttribute("requestAttribute");

set session Attribute:

Executions.getCurrent().getSession().setAttribute("sessionAttribute", myObject)

get session Attribute:

Executions.getCurrent().getSession().getAttribute("sessionAttribute");
link publish delete flag offensive edit
0

answered 2015-03-10 13:53:53 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Deleted for spaming.

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2015-03-02 10:24:44 +0800

Seen: 24 times

Last updated: Mar 10 '15

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