In latest release note it is mentioned that there is 'Capability in
creating components outside of JSF Flex by providing the component
name + attributes as tag attributes'
So can I use components created in Flex Builder with JSF-FLEX? If yes,
please provide sample code snippet.
Also please provide example of 'Capability to submit the form data
using mxmlButton or mxmlLinkButton tags'
Thanks
First of all thanks for the interest in the project!!!
So here are the answers to the questions you have asked in the previous post :
(1) "can I use components created in Flex Builder with JSF-FLEX?"
The main purpose of this project was to provide integration of
standard Flex components as JSF components while adhering to the
normal method of JSF developement [i.e. value binding, method binding,
and locale support of java web applications], so to be honest
integration with custom mxml components outside the standard package
hasn't been tested yet. In another words, the statement of "components
outside of JSF-Flex" was targeted for any standard components that
hasn't been placed as tags and etcetera within the project. I will
make the change within the main page regarding this note, thanks!!!
However, the thought of integration with custom components was
originally considered and for that reason there exists capability in
setting sourcePath value within mxmlApplication tag [should be a
single String deliminated with a space]. So hopefully, by setting the
sourcePath to the absolute path of where the custom ActionScript file
exists at, one should be able to utilize custom components outside of
standard flex components [in similar manner the project's custom
ActionScript files are integrated as part of a SWC file creation]. In
the later release I will test for such functionality by creating a
custom component and ensuring that it will integrate well with the
project. Another added thought was to allow data binding to these
custom components by providing fields and etcetera for binding, but
that is a side work apart from JSF 2.0 integration. Thanks for your
suggestion and your input, I highly value it!!!
(2) "Capability to submit the form data using mxmlButton or mxmlLinkButton tags"
The example is shown within the mxmlOverallExample.xhtml +
mxmlOverallExample.jsp that one can access respectively from
mxmlIndex.xhtml + mxmlIndex.jsp, but I will elaborate slightly more
here. So as stated within the home page, one can use additional views
outside of MXML when one has set the renderKitId to "MXML_BASIC". In
another words one can use regular html button, mxmlButton, or
mxmlLinkButton for form submission. In both cases one would need to
have mxmlApplication underneath the standard html h:form component and
underneath mxmlApplication component one would have mxmlButton or
mxmlLinkButton with either a method binding to the evaluation of the
action or a simple string [in similar to the regular button actions of
the html buttom components]. One can see the example within .xhtml +
.jsp pages where there are both examples to simple string + method
binding to a JSF managed bean. Now note that if there exists error on
the page [i.e. error validation set using mxmlNumberValidator, the
submission will not occur until the user has fixed the issue and if
one has set the server validation through regular validation such as
validateLongRange, the page will refreshed in the normal flow].
Hopefully that clarified the questions you had and once again thanks
for the interest in the project and in the future the project will
provide more features + easier integration to beans!!!
> --
>
> 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