0 Replies Latest reply on Jan 16, 2008 5:01 AM by pdaniel

    navigate trough pages

    pdaniel

      Hello. I am in a portal environment. I have a search form. When i click on the search button the search results appears on the same page. I rerender an id. My problem is how can i change the page that is shown in the portlet. So now let's say i have loaded in my portlet the page : search.jspx. I click on the search button. In the same page the results are shown. Now under the resulttable i have a link, an button : next page that calls nextpage.jspx. How can i achieve this ?

      I've tried something like this :
      <h:form>
      <h:commandButton action="nextpage" value="Next page"/>
      </h:form>

      faces-fonfig:


      <navigation-rule>
      <from-view-id>/portlets/myportlet/jsf/search.jspx</from-view-id>
      <navigation-case>
      <from-outcome>nextpage</from-outcome>
      <to-view-id>/portlets/myportlet/jsf/nextpage.jspx</to-view-id>
      </navigation-case>
      </navigation-rule>


      When i click the button i get : request cannot be null

      But this method does not produce an Ajax request. I need something that calls the next page using ajax.