Cutting to the chase....I would like this a part of the JSF EL.... <h:commandLink action="#{myBean.process(3, 2, #{anotherBean.name})}" />
You may have to look at that one sideways but in what I have here is an action call to a method called process that is on an object mapped as myBean. Process is accepting 3 parameters: an int, int, and a String. You can have whatever parameters you would like.... Some advantages: 1. No need to write a JSF or a Seam friendly bean, just use an existing service bean. You are able to use more classes and objects without re-engineering. 2. You can use method overloading. No more needed to think of a mutitude of names for one desired behavior. 3. You can do possible calculations on the fly even with static classes! For example <h:outputText value="#{myBean.a}"/> <h:outputText value="#{myBean.b}"/> <h:outputText value="#{Math.max(#{myBean.a}, #{myBean.b})}" /> One disadvantage 1. Navigation case can be a pain the ass <navigation-rule> <navigation-case> <from-action>#{myBean.process(int, int)}</from-action> <from-outcome>Success</from-outcome> <to-view-id>/index.jsp</to-view-id> </navigation-case> <navigation-case> <from-action>#{myBean.process(int, int, float)}</from-action> <from-outcome>Success</from-outcome> <to-view-id>/index.jsp</to-view-id> </navigation-case> <navigation-case> <from-action>#{myBean.process(int, int, float, double)}</from-action> <from-outcome>Success</from-outcome> <to-view-id>/index.jsp</to-view-id> </navigation-case> </navigation-rule> Let me know what you think View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952451#3952451 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952451 All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user