2 Replies Latest reply on Mar 3, 2009 9:24 AM by niox.nikospara.yahoo.com

    Invoke same page

    jnl1

      Is there an example on how to invoke the same page with Seam.  For example, i have a search page and i want the search results to be displayed as the search criteria.


      thanks

        • 1. Re: Invoke same page
          kragoth

          I'm not quite sure what you are asking here. Maybe try word your question differently or give an example.

          • 2. Re: Invoke same page
            niox.nikospara.yahoo.com
            If you are using JSF:

            Have you tried returning null from your action method? This is standard JSF practice. I.e.:


            /** Search for "Beans" */
            @Name("searcher")
            pubic class Searcher {
              public String search(Criteria c) {
                ...do search, get results...
                return null;
              }
              ...
            }
            



            In facelet:


            <h:commandLink value="Search" action="#{searcher.search}" />