0 Replies Latest reply on Jul 26, 2013 4:27 PM by heidi defense

    How to use JavaScript inside EL expression (ui:param with value)

    heidi defense Newbie

      I want to be able to pass a value of javascript function to an ui:parameter like this:

      <ui:param name="paramName" value="someWidget.function()"/>

      But this obviously does not work (it thinks that: someWidget.function() is a string parameter).

      If I try:

      <ui:param name="paramName" value="#{someWidget.function()}"/>

      It thinks that someWidget is a bean name.

      Is there any way to place there a value of javascript function on a widget? If not, what would be ideal way of including a value of javascript function in a parameter in JSF?