Friday, November 23, 2012

Passing the parameters from UI to App Module method

In the Backing bean we can find the operation and add parameters like in here
         
          Number currentRefId = ((Number)rw.getAttribute("RefId"));
           OperationBinding op = findOperation("moveNode");
           op.getParamsMap().put("newParentId", currentRefId);
           op.execute();

The other way could be by editing the method in the bindings of the page and select the attribute value from the bindings(note: attribute value should be added to the bindings before)


FYI: If we have 2 parameters to be sent to AM method,  one parameter  could be sent through backing bean and other through bindings

No comments: