• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Navigating pages with in a single Portlet

 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have single portlet which has five pages, which on a page in the portal.
This portlet which has 5 pages has "back" and "next" button.

How this can be done?

This is how i am thinking it would work


I will have 2 submit buttons, and when particular button click is clicked i would set one hidden value with onclick and collect them in processAction and control the navigation.

Just want to know if anyone has tried this

Thanks
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This will work. You better create a renderURL, because other than forwarding requests to JSP, this portlet would do no processing. In the doView() method you can create a if-else or switch hierarchy and depending on the flag forward the request to the respective JSP
 
Avishek Banerjee
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, ensure that you set the flag value in the session and depending on the button click, keep manipulating it. I suggest make this flag a counter and the count may map to the page number (1-5).
reply
    Bookmark Topic Watch Topic
  • New Topic