-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, my name's Nick and I'm currently writting an application using ZK framework-Tomcat-Oracle-SSL architecture.
I read the documentation and I have some doubts. I can't find any example of what I'm asking now in that documentation
I don't know how to pass information between pages. I know them explain how to, using send and post events, but without examples
I have an initial page called index.zul. It has a Window, some textboxes, buttons and Captcha component. Index.zul is the Log-on page. Once you've fill out the data, you press the "LOG ON" button.
The "LOG-ON" button has the "HREF" attribute set to "menu.zul", so menu.zul is rendered after pressed this button. I have to check the values of index.zul page in menu.zul page. So, I have to access to the components of index.zul in menul.zul. But, how?
Index.zul and menu.zul are on the same war file
I used the "src" clause, but it makes the two pages rendered at the same time.
I used the getPage method of the Desktop object, but index.zul isn't on the desktop of menu.zul.
I'm a bit confused. Could you please help me? I've already downloaded the html-docs for dev's reference and dev-guide
Thank you in advance
I response myself: you can set parameters in the current session object. For instance.
The page index.zul can execute this sentence:
desktop.getSession().setAttribute ("attrName", "attrValue");
varNam=(String)desktop.getsession().getAttribute("attrName");
Asked: 2008-09-03 14:22:01 +0800
Seen: 205 times
Last updated: Sep 03 '08