1 Reply Latest reply on Jan 16, 2009 10:46 AM by Nikos Paraskevopoulos

    Seam and Jboss4.2.2

    shaga ramlingareddy Newbie
      javax.el.PropertyNotFoundException: Property 'persist' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_2
              at javax.el.BeanELResolver$BeanProperties.get(BeanELResolver.java:193)
              at javax.el.BeanELResolver$BeanProperties.access$400(BeanELResolver.java:170)
              at javax.el.BeanELResolver.property(BeanELResolver.java:279)
              at javax.el.BeanELResolver.getValue(BeanELResolver.java:60)
              at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
              at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
              at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
              at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
              at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
              at com.sun.facelets.el.ELText$ELTextVariable.toString(ELText.java:174)
              at com.sun.facelets.el.ELText$ELTextComposite.toString(ELText.java:115)
              at com.sun.facelets.compiler.CommentInstruction.write(CommentInstruction.java:38)
              at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
              at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149)
              at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
              at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
              at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
              at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
              at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
              at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
              at java.lang.Thread.run(Thread.java:595)

      my BookBankEdit.xhtml file is


      <!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:a="http://richfaces.org/a4j"
          xmlns:rich="http://richfaces.org/rich"
          template="layout/template.xhtml">

      <ui:define name="body">

          <h:form id="bookbank" styleClass="edit">

              <rich:panel>
                      <s:decorate id="titleField" template="layout/edit.xhtml">
                      <ui:define name="label">Title</ui:define>
                      <h:inputText id="title"
                             required="true"
                                 size="50"
                            maxlength="50"
                                value="#{bookbankHome.title}">
                          <a:support event="onblur" reRender="titleField" bypassUpdates="true" ajaxSingle="true"/>
                      </h:inputText>
                  </s:decorate>


                  <s:decorate id="authorField" template="layout/edit.xhtml">
                      <ui:define name="label">Author</ui:define>
                      <h:inputText id="author"
                             required="true"
                                 size="50"
                            maxlength="50"
                                value="#{bookbankHome.author}">
                          <a:support event="onblur" reRender="authorField" bypassUpdates="true" ajaxSingle="true"/>
                      </h:inputText>
                  </s:decorate>


                  <s:decorate id="priceField" template="layout/edit.xhtml">
                      <ui:define name="label">Price</ui:define>
                      <h:inputText id="price"
                             required="true"
                                value="#{bookbankHome.price}"
                                 size="19">
                          <a:support event="onblur" reRender="priceField" bypassUpdates="true" ajaxSingle="true"/>
                      </h:inputText>
                  </s:decorate>

                  <div style="clear:both">
                      <span class="required">*</span>
                      required fields
                  </div>

              </rich:panel>

              <div class="actionButtons">
                     
                                      <h:commandButton id="confirm" value="Confirm" action="#{bookbankHome.confirm}"/>
                <!--<h:commandButton id="save"
                                value="Save"
                               action="#{bookbankHome.persist}"
                             disabled="#{!bookbankHome.wired}"
                             rendered="#{!bookbankHome.managed}"/>

                  <h:commandButton id="update"
                                value="Save"
                               action="#{bookbankHome.update}"
                             rendered="#{bookbankHome.managed}"/>

                  <h:commandButton id="delete"
                                value="Delete"
                               action="#{bookbankHome.remove}"
                            immediate="true"
                             rendered="#{bookbankHome.managed}"/>

                  <s:button id="cancelEdit"
                         value="Cancel"
                   propagation="end"
                          view="/Bookbank.xhtml"
                      rendered="#{bookbankHome.managed}"/>

                  <s:button id="cancelAdd"
                         value="Cancel"
                   propagation="end"
                          view="/#{empty bookbankFrom ? 'BookbankList' : bookbankFrom}.xhtml"
                      rendered="#{!bookbankHome.managed}"/> -->

              </div>
          </h:form>

      </ui:define>

      </ui:composition>
        • 1. Re: Seam and Jboss4.2.2
          Nikos Paraskevopoulos Novice
          Hi,

          Within XML comments the facelets tags are no longer tags, but plain comment text. So action="#{bookbankHome.persist}" is no longer a special attribute with method binding, but a simple property getter that will look for a method called getProperty() in your object.

          Use the facelets-specific <ui:remove>COMMENTED-OUT CODE HERE</ui:remove> instead.