[jboss-user] [JBoss Seam] - boolean property not binding

sbozdag do-not-reply at jboss.com
Tue Oct 9 18:53:05 EDT 2007


Hi,

I have a page as below:


  |  <!-- mypage.xhtml -->
  | 
  |  <ice:form id="someFormId">
  |   ...
  |           <h:selectBooleanCheckbox id="containsHeader" 
  |                                           value="#{bean.checked}"/>
  |   ...
  |  </ice:form>
  | 
  | 

I am trying to show a check box component on the page. And here is my "stateful" session bean,


  | @Stateful
  | @Scope(ScopeType.SESSION)
  | @Name("bean")
  | public class MyBean implements Serializable, IMyBean{
  |     
  |     @In boolean checked;
  |     // other properties
  |     public String someAction() {
  |         //...
  |         return "someOutcome";
  |     }
  |     
  |     @Remove                                                                       
  |     public void destroy() {
  |     }
  | }
  | 

I am getting this error message while trying to load mypage.xhtml given above.


  | Exception during request processing:
  | Caused by javax.faces.FacesException with message: "Problem in renderResponse: javax.el.PropertyNotFoundException: /mypage.xhtml @35,74 value="#{bean.checked}": Property 'checked' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_2"
  | 
  | 
  | What do you think that why the error occurs? 
  | 
  | Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093234#4093234

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093234



More information about the jboss-user mailing list