2 Replies Latest reply on Sep 26, 2011 9:29 AM by Ani Capil

    Previous and Next link is not shown in page!

    Ani Capil Newbie

      Previous and Next link is not shown in page!

      Hi,

      Only Back link is shown on the page. I want to show Previous and Next Link too on the page.

      appericiating your help :-)

       


      <ui:define name="extrainfo">

          <InternalPackage:messageAndNavigation hasHistoryLink="#{viewModelDescriptionItem.showHistory}" hasBackLink="true">

              <ui:define name="history">

                  <h:commandLink action="#{viewModelDescriptionHistoryItem.show}"

                                 rendered="#{viewModelDescriptionItem.showHistory}" value="History">

                      <f:setPropertyActionListener value="#{viewModelDescriptionItem.model.id}"

                                                   target="#{viewModelDescriptionHistoryItem.modelId}"/>

                      <f:setPropertyActionListener value="#{viewModelDescriptionItem.model.modelNumber}"

                                                   target="#{viewModelDescriptionHistoryItem.modelNumber}"/>

                      <f:setPropertyActionListener value="#{viewModelDescriptionItem.model.productId}"

                                                   target="#{viewModelDescriptionHistoryItem.productId}"/>

                      <f:setPropertyActionListener value="viewmodeldescription" target="#{navItem.fromViewName}"/>

                      <f:param name="useLazy" value="#{navItem.useLazy}"/>

                  </h:commandLink>

              </ui:define>

              <ui:define name="prev">

                  <h:commandLink action="#{viewModelDescriptionItem.load}" value="Previous"

                      rendered="#{viewModelDescriptionItem.localeModel != null}">

                      <f:setPropertyActionListener value="#{navItem.prevObject}"

                                                   target="#{viewModelDescriptionItem.localeModel}"/>

                      <f:param name="useLazy" value="#{navItem.useLazy}"/>

                  </h:commandLink>

              </ui:define>

              <ui:define name="next">

                  <h:commandLink action="#{viewModelDescriptionItem.load}" value="Next"

                      rendered="#{viewModelDescriptionItem.localeModel != null}">

                      <f:setPropertyActionListener value="#{navItem.nextObject}"

                                                   target="#{viewModelDescriptionItem.localeModel}"/>

                      <f:param name="useLazy" value="#{navItem.useLazy}"/>

                  </h:commandLink>

              </ui:define>

              <ui:define name="back">

                  <h:commandLink action="#{navItem.back}" value="Back">

                      <f:param name="useLazy" value="#{navItem.useLazy}"/>

                  </h:commandLink>

              </ui:define>

          </InternalPackage:messageAndNavigation>

      </ui:define>

      <ui:define name="content">