9 Replies Latest reply on Sep 26, 2007 7:32 AM by pmuir

    multiple calls to same method from <s:div rendered...>

    asookazian

      The getSeedSelection method in the SFSB named userRoleSearch is being exec'd six times when the following JSF is rendered. Why?

      filterRoles.xhtml:

      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
      
      
      <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"
       xmlns:c="http://java.sun.com/jstl/core"
       xmlns:rich="http://richfaces.ajax4jsf.org/rich"
       template="layout/template.xhtml">
      
      
      
      
      <ui:define name="body">
      
       <h:messages globalOnly="true" styleClass="message"/>
      
       <rich:panel>
       <h:form>
       <h:panelGrid id="roles_grid" columns="1">
       <h1><h:outputText id="userRoleInfo" value="Filter by Role(s)"/></h1><br/>
      
       <h:selectBooleanCheckbox/>
       <b><h:outputText id="labelViewAll" value="View All"/></b>
       <br/><br/>
      
       <s:div rendered="#{userRoleSearch.seedSelection}">
      
       </h:panelGrid>
       </h:form>
       </rich:panel>
      
      </ui:define>
      </ui:composition>