1 Reply Latest reply on Feb 28, 2009 8:46 AM by nbelaevski

    usage of modalpanel

    ajanz

      i got a seamgen app. with around 10 modalpanels. i got some trouble with the modalpanels. sometimes the function sometimes not...

      i got modalpanels in masterpage.xhtml, mywork.xhtml, home.xhtml

      did i put the modalpanels on the right place?

      here is the code of home.xhtml which includes all pages and modal panels.

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!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:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich" template="layout/template.xhtml">
      
       <head>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      
       </head>
      
       <ui:define name="body">
       <ui:include src="layout/settings.xhtml">
       </ui:include>
      
       <rich:tabPanel rendered="true" selectedTab="#{Session.activetab}" switchType="server" id="tabpanel"
       height="700" width="1180">
       <rich:tab id="tabworkflow" rendered="true" label="Workflow">
       <ui:include src="layout/masterpage.xhtml"/>
       </rich:tab>
      
       <rich:tab id="tabverlauftext" rendered="true" label="Text" disabled="#{Session.edit}" >
       <ui:include src="layout/text.xhtml">
       </ui:include>
       </rich:tab>
       <rich:tab id="tabmeineworkflows" label="Work" disabled="#{Session.edit}" >
       <ui:include src="layout/mywork.xhtml">
       </ui:include>
      
       </rich:tab>
       <rich:tab id="tabstart" label="Start" rendered="true" disabled="#{Session.edit}" >
       <ui:include src="layout/start.xhtml" />
       </rich:tab>
       </rich:tabPanel>
       <ui:include src="layout/modalpanel1.xhtml">
       </ui:include>
       <ui:include src="layout/modalpanel2.xhtml">
       </ui:include>
      
      
      
       </ui:define>
      </ui:composition>