Package org.jboss.seam.pages

Examples of org.jboss.seam.pages.Action


      page.setScheme( element.attributeValue("scheme") );
     
      ConversationIdParameter param = conversations.get( element.attributeValue("conversation") );
      if (param != null) page.setConversationIdParameter(param);
     
      Action action = parseAction(element, "action");
      if (action!=null) page.getActions().add(action);
      List<Element> childElements = element.elements("action");
      for (Element childElement: childElements)
      {
         page.getActions().add( parseAction(childElement, "execute") );
View Full Code Here


      return page;
   }
  
   private static Action parseAction(Element element, String actionAtt)
   {
      Action action = new Action();
      String methodExpression = element.attributeValue(actionAtt);
      if (methodExpression==null) return null;
      if ( methodExpression.startsWith("#{") )
      {
         MethodBinding methodBinding = Expressions.instance().createMethodBinding(methodExpression);
         action.setMethodBinding(methodBinding);
      }
      else
      {
         action.setOutcome(methodExpression);
      }
      String expression = element.attributeValue("if");
      if (expression!=null)
      {
         action.setValueBinding( Expressions.instance().createValueBinding(expression) );
      }
      return action;
   }
View Full Code Here

TOP

Related Classes of org.jboss.seam.pages.Action

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.