I'm interested in create click event and execute a specific custom
function create in AS3 in JSF-Flex.
How can i do that in JSF-Flex?
Thanks!
Regards.
First of all, thanks for your interest in the project!
In order to write Actionscript content that will interact with Flex
components within the to be created SWF file, one will need to use the
default JSP View handler and utilize the <jf:mxmlScript> tag. One can
see the example within mxmlOverallExample.jsp.
{code}
<jf:mxmlScript>
import mx.controls.PopUpButton;
...
private function increaseProgressBar():void{
progressBarRef.setProgress((progressBarRef.value + 10) % 110, 100);
}
...
</jf:mxmlScript>
{/code}
In the future release [i.e. 1.1b], there will be support where users
can hook to certain events to perform changes to the Flex components
by binding the tag's attribute to JSF's managed bean's method. This is
accordance to the JSF-Flex's goal, which is to rid of users needing to
write Actionscript content for any generic tasks [i.e. if a combo
box's field changes, there should be a simple linkage by
MethodExpression on the Java side, where another Flex components field
changes and etcetera]. Of course by utilizing MethodExpression, one
can also support not only JSP View Handler but also Facelet View
Handler, since usage of <jf:mxmlScript> content is only supported for
JSP View Handler.
Thanks!
> --
> You received this message because you are subscribed to the Google Groups "JSF-Flex" group.
> To post to this group, send email to jsf-...@googlegroups.com.
> To unsubscribe from this group, send email to jsf-flex+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jsf-flex?hl=en.
>
>
>
>
--
Sincerely,
Ji Hoon Kim