-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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?
There are examples in my blog. You can check here
Search for Passing arguments. You will find examples both in MVC and MVVM.
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
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");
Deleted for spaming.
Asked: 2015-03-02 10:24:44 +0800
Seen: 25 times
Last updated: Mar 10 '15