incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Incubator Wiki] Update of "MyFacesAlchemyProposal" by JihoonKim
Date Mon, 02 Jun 2008 00:29:50 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Incubator Wiki" for change notification.

The following page has been changed by JihoonKim:
http://wiki.apache.org/incubator/MyFacesAlchemyProposal

------------------------------------------------------------------------------
  
  The basic design is as follows [will implement it better later]
  
-     a. All Flex components must be nested within <s:mxmlApplication /> tag as it is
the top component and this tag must be outside the <h:form /> component [due to IE's
use of objects]. {the previous statement regarding <h:form /> might not apply, as currently
am making changes to avoid it}.
+     a. All Flex components must be nested within <s:mxmlApplication /> tag as it is
the top component and this tag must be outside the <h:form /> component [due to IE's
use of objects].
  
      a. There exists replaceMapping XMLs which will tell how to pick the fields from the
components [i.e. by attributes of the UIComponent or by method call for that object].
  
@@ -45, +45 @@

          i. simplySWF : meaning Mxml which has been modified by the user exists, so create
only SWF files and JSON objects [users can use this to modify the mxml file and create a swf
file]
          i. productionEnv : meaning SWF file already exists, so nothing to do here but create
JSON objects [this is the default value to ensure that users do not run the components in
either of the two other modes in an environment that is higher than dev]. One thing to note
is that all directories of Web``Content/swf/* should be copied to their corresponding directory
within the Workspace during the move to higher env [since the system uses servContext.getRealPath(new
String()) as the root directory of preMxml, Mxml, and swf directory and Tom``Cat for example
flushes it out to their cache directory under metadata]. For large components such as Data``Grid,
am planning to write it as a service in retrieving and setting the values.
  
-     a. Uses dojo during the onLoad time to connect all the Form's onsubmit event with pageUnload
function. Also each Flex/Flash app will communicate back to the page when it has finished
setting up on its side [such as setting callBack methods and etcetera], JSON will be passed
to the apps to set the initial values with the check interval set to 500 milliseconds. So
the values will be decoded [for example htmlText allows XML tags and etcetera, so on the Java
side there will be encoding and decoding on the Flex/Flash side] and set to the component's
values.
+     a. Uses dojo during the onLoad time to connect all the Form's onsubmit event with pageUnload
function. Also each Flex/Flash app will communicate back to the page when it has finished
setting up on its side [such as setting callBack methods and etcetera], JSON will be passed
to the apps to set the initial values. So the values will be decoded [for example htmlText
allows XML tags and etcetera, so on the Java side there will be encoding and decoding on the
Flex/Flash side] and set to the component's values.
  
      a. During the form's onsubmit action, pageUnload will return false and make a call to
Flex/Flash app to return the component's values to the page. When returned, nodes will be
appended to the form that was in the process of submission and will submit the page. On the
Flex/Flash side, there will be an Action``Script which will use E4X [love it] to look up within
an XML file the property/attributes that the component must return as JSON objects to the
page, so that the page can create the elements with their attributes as child nodes of the
form element.
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message