-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello...
I have one problem, that is i have two pages (one is admin page and user page) in both pages i have a common icon( i.e. one search page will come when i click on that icon),inside that icon (that is search page) there is a exit button," WHAT I WANT IS IF SUPPOSE I ENTERED TO SEARCH PAGE FROM ADMIN PAGE( THROUGH ICON),WHEN I CLICKED ON THE EXIT BUTTON THAT ADMIN PAGE SHOULD COME .......SIMILARLY IF SUPPOSE FROM USERPAGE ,IT SHOULD GO TO THE USERPAGE.......
I WANT A LOGIC FOR THE EXIT METHOD INORDER TO GO TO THE ADMIN OR USER PAGE... I THINK IT WILL SOLVE BY COOKIES.....
SO PLZ HELP ME IN THIS .......ITS VERY URGENT.......
i have two login one is admin and another is user......both have their own user id and password ......if admin login's then admin page will open ,if user login's then user page will open.......
In both page one page is common(eg search page , this can use by both)...in that page there is a exit button ......if we opened that search page from admin page at that time if we click on exit button in the search page...then it should come back to admin page not user page....and similarly for user page ....
so plz help me......
then, the destination of your exit button should be decided by outer page(eg: admin or user pages).
you can use macro component for doing this.
i am calling exit() method when clicked on exit button...so inside the exit()method code will decide to go to the perticular page(if search page from admin page) that is admin page ....(if search page from user page then it should go to the userpage)....
The logic should write in the exit button only ...."if we opened that search page by admin page else by userpage"
plz help mme.......
if you want to do "Exit", you must have a destination to go.
If the destination couldn't come from exit() itself (which means you already have a context to get the information, something like page, URL, bookmark, etc...), Then your exit() should except a link as it's Destination.
if you thought page.setVariable() is not good, you can use page.getName()(Don't forget to assign the page's name) to get back current page name.
i just want the logic that is in "if statement ,if suppose the page (search page opened) from admin page then it should go back to admin page only (when clicked on exit button in the search page) else it should go to the user page.....
plz help me.......
Asked: 2009-06-02 11:41:06 +0800
Seen: 803 times
Last updated: Jun 05 '09
ZK studio and eclipse outline problem
ZK Package configuration problem
Eclipse Autocomplete not working in ZUL files...
Syntax Error mark ... help me!
Manual Installation of ZK Studio
Can't see button text whilst running simple demo
Adding Vbox to Center layout in Java