[jboss-user] [JBoss Seam] - Re: ui:include with dynamic s:link

jbeaken do-not-reply at jboss.com
Wed Oct 31 13:29:38 EDT 2007


And the page to include:

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  | 	xmlns:s="http://jboss.com/products/seam/taglib"
  | 	xmlns:ui="http://java.sun.com/jsf/facelets"
  | 	xmlns:f="http://java.sun.com/jsf/core"
  | 	xmlns:h="http://java.sun.com/jsf/html">
  |      <!-- FIRST -->
  |      <s:div id="tabcontainer" rendered="#{firstItem &lt; batchSize}">
  |         <s:div styleClass="pageresults" rendered="#{itemCount &gt; 0}">
  |                  <div class="middle_highlight">
  |                      <h:outputText value="#{firstItem + 1} ... #{itemCount &lt; firstItem +  batchSize ? itemCount :  firstItem + batchSize}"/>
  |                  </div>
  |         </s:div>
  |         <s:div styleClass="pageresults" rendered="#{itemCount &gt; batchSize}">
  |             <s:link styleClass="middle" action="#{next}" value="#{firstItem + batchSize + 1} ... #{itemCount &lt;= firstItem +  (batchSize * 2) ? itemCount :  firstItem + (batchSize * 2)}"></s:link>
  |         </s:div>
  | ......

To sum up, the dynamic s:link is:

 <s:link styleClass="middle" action="#{next}" value...

can it be done?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100796#4100796

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100796



More information about the jboss-user mailing list