3 Replies Latest reply on Apr 14, 2010 7:34 AM by Nick Belaevski

    illegal syntax for set-operation in rich:tab

    nimo stephan Master

      I have something like this:

       

       

      <rich:tabPanel switchType="ajax" selectedTab="tab_#{myBean.active}" ..>

       

       

      you see, the selectedTab is the concatenation of "tab_#{myBean.active}".

       

      But I get the following error:


      javax.el.PropertyNotWritableException: /myView.xhtml @58,173 selectedTab="tab_#{myBean.active}": Illegal Syntax for Set Operation
          at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:98)
          at org.richfaces.component.UISwitchablePanel.broadcast(UISwitchablePanel.java:130)
          at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:324)
          at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:299)
          at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:256)
          at org.ajax4jsf.component.AjaxViewRoot.processUpdates(AjaxViewRoot.java:435)
          at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:101)
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
          at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
          at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
          at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

       

       

      However, when using switchType="client", all works. The selectedTab is rendered as something like: 'tab_1", tab_2".