0 Replies Latest reply on Jun 20, 2011 3:30 AM by sv kap

    rf 4 + popup panel

    sv kap Newbie

      Hello.

       

      I am trying to migrate my code from RF 3.3. I have a popup panel with dynamically generated content.

       

       

      ValueExpression okButtonValueExpression = expressionFactory
              .createValueExpression(
                      elContext,
                      "if (#{facesContext.maximumSeverity==null}) "
                              + "#{rich:component('popup')}.hide();",
                      String.class);
      okButton.setValueExpression("oncomplete",
              okButtonValueExpression);
                          
      ValueExpression cancelButtonValueExpression = expressionFactory
              .createValueExpression(elContext,
                      "#{rich:component('popup')}.hide();",
                      String.class);
      cancelButton.setValueExpression("onclick", cancelButtonValueExpression);
      

       

      I get the following exception:

       

       

      Caused by: javax.faces.el.EvaluationException: javax.el.ELException: Function 'rich:component' not found

          at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)

          at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

       

      What is the right way to do that with RF 4?