This content has been marked as final.
Show 3 replies
-
1. Re: I changed the bean to request and now have this issue.
nbelaevski Apr 30, 2009 7:36 PM (in response to nohacks)Hello Phil,
You can try using a4j:keepAlive component. -
2. Re: I changed the bean to request and now have this issue.
nohacks Apr 30, 2009 11:19 PM (in response to nohacks)Thanks for the quick reply.
I put this in my jsf page.<h:messages layout="table" showDetail="true" style="color: red" /> <a4j:keepAlive beanName = "#{SearchFormBean}"/> <h:form id="f1" >
package com.myApp.java; import java.io.Serializable; public class SearchFormBean extends Object implements Serializable{ private static final long serialVersionUID = 7287950280019980982L; private boolean freeMembers = true; private boolean verifiedMembers = true; private String memberHeightFeet = "5"; private String memberHeightInch = "0";
I get this error..SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /searchMemberZip.jsp(35,0) According to TLD or attribute directive in tag file, attribute beanName does not accept any expressions at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148) at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1174) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393) SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /searchMemberZip.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@13e3940] 2009-04-30 23:10:07,706 ERROR org.ajax4jsf.webapp.BaseXMLFilter org.ajax4jsf.webapp.BaseXMLFilter doXmlFilter - Exception in the filter chain org.apache.jasper.JasperException: /searchMemberZip.jsp(35,0) According to TLD or attribute directive in tag file, attribute beanName does not accept any expressions at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148) at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1174) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343) Apr 30, 2009 11:10:07 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet Faces Servlet threw exception org.apache.jasper.JasperException: /searchMemberZip.jsp(35,0) According to TLD or attribute directive in tag file, attribute beanName does not accept any expressions at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148) at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1174) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343)
-
3. Re: I changed the bean to request and now have this issue.
nohacks May 1, 2009 12:12 AM (in response to nohacks)Works Great !!!!
Thanks a ton guys....
I changed.
<a4j:keepAlive beanName = "#{SearchFormBean}"/>
To this..
<a4j:keepAlive beanName = "SearchFormBean"/>
Thanks again this will help keep memory requirements down with less session beans. Also it works correctly..!!
Thanks
Phil