0 Replies Latest reply on May 28, 2009 8:19 PM by qqq qqq

    Bookmarkable urls and a:commandButton

    qqq qqq Newbie

      To make url bookmarkable need to rewrite url (reading the value of the mapped value bindings and
      appending them to the query string).

      This rewriting happens in the following cases:

      the URL generated by Seam command tags (<s:link> and <s:button>)
      JSF postbacks from UICommand components (i.e. <h:commandLink>)
      navigation redirects defined in the page descriptor (pages.xml or *.page.xml)


      pages.xml:
      <page view-id="/search.xhtml">
       <param name="searchPattern" value="#{searchService.searchPattern}"/>
      </page>
      



      search.xhtml:
      <h:form>
       <h:inputText value="#{searchService.searchPattern}"/>
       <h:commandButton value="Search" action="/search.xhtml"/>
      </h:form>
      <s:div id="searchResult">
      ....
      </s:div>
      


      Can i use a4j:commandButton instead of <h:commandButton> to perform bookmarkable search? I want to update only part of page instead of whole page.

      <a:commandButton value="Search" action="#{searchAction.find()}" reRender="searchResult"/>
      


      a:commandButton is usefull for bookmarkable urls?