0 Replies Latest reply on Jul 10, 2011 8:26 AM by omid pourhadi

    Ajax base seam link

    omid pourhadi Apprentice

      Hi,


      I have a modal panel in which manage my table list and pagination, i implement pagination with s:link as below




      <s:link view="/EbParentList.xhtml"
                  rendered="#{ebParentList.previousExists}"
                     value="#{messages.left}#{messages.left} First Page"
                        id="firstPage">
                <f:param name="firstResult" value="0"/>
              </s:link>
      
              <s:link view="/EbParentList.xhtml"
                  rendered="#{ebParentList.previousExists}"
                     value="#{messages.left} Previous Page"
                        id="previousPage">
                  <f:param name="firstResult"
                          value="#{ebParentList.previousFirstResult}"/>
              </s:link>
      
              <s:link view="/EbParentList.xhtml"
                  rendered="#{ebParentList.nextExists}"
                     value="Next Page #{messages.right}"
                        id="nextPage">
                  <f:param name="firstResult"
                          value="#{ebParentList.nextFirstResult}"/>
              </s:link>
      
              <s:link view="/EbParentList.xhtml"
                  rendered="#{ebParentList.nextExists}"
                     value="Last Page #{messages.right}#{messages.right}"
                        id="lastPage">
                  <f:param name="firstResult"
                          value="#{ebParentList.lastFirstResult}"/>
              </s:link>



      after user clicks in each page navigation, modal is closed


      how can i make all s:link based on Ajax request ?  or what is an alternative approach to do this ?