0 Replies Latest reply on Oct 31, 2007 7:15 PM by Arbi Sookazian

    modalPanel and referencing multiple SB's via EL

    Arbi Sookazian Master

      So I'm having a problem with the header portion of this modalPanel code below. Before, "securityAuditAction.header" for the header was "noteAction.header" and seemed to be working fine for getting a hard-coded String as the header.

      Now, I'm getting the following exception after I deploy the app and hit the XHTML page:

      javax.el.ELException: /adminSecurityAudit.xhtml @38,70 value="#{securityAuditAction.header}": Error reading 'header' on type org.javassist.tmp.java.lang.Object_$$_javassist_1

      If I comment out the header portion, the exception goes away. getHeader returns a hard-coded string in either case whether it's NoteAction or SecurityAuditAction.

      Both are stateful session beans, difference being in scope, NoteAction has session scope and the other is conversation. The exception only happens the first request to the XHTML after re-deploy, not the 2nd time. What's up???

      <rich:modalPanel id="mp" minHeight="200" minWidth="450"
       height="200" width="500" zindex="2000">
       <f:facet name="header">
       <h:outputText value="#{securityAuditAction.header}"/>
       <f:facet name="controls">
       <h:graphicImage value="/img/icon_edit.gif" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mp')" />
       <a4j:form id="a4jForm">
       <h:panelGrid columns="2" style="vertical-align:middle">
       <h:inputText id="noteText" value="#{noteAction.noteText}"/>
       <h:inputHidden id="rowIndex" value="noteAction.rowIndex"/>
       <h:inputHidden id="colName" value="noteAction.colName"/>
       <h:inputHidden id="siteId" value="noteAction.siteId"/>
       <h:inputHidden id="employeeNumber" value="noteAction.employeeNumber"/>
       <a4j:commandButton value="submit" action="#{noteAction.submit}" onclick="showNoteGraphic();Richfaces.hideModalPanel('mp')"/>