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 "xap/XAPStruts" by Robert Buffone
Date Thu, 01 Mar 2007 06:02:24 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 Robert Buffone:
http://wiki.apache.org/incubator/xap/XAPStruts

------------------------------------------------------------------------------
  from the UI definition.  This is important when building enterprise applications because,
  if makes the application much easier to maintain.
  
- * ''xap/xal-actions/listPeople.ftl'' - Contains the xModify and XAL markup used to a display
table of person objects.
+ * ''xap/xal-actions/listPeople.ftl'' - Contains the xModify and XAL markup used to a display
table of person objects. A xModify '''replace-children''' statement is used to update the
'''contentPane''' with a table that display all of the "Person" objects.
  
- * ''xap/xal-actions/newPeople.ftl'' - Contains the xModify and XAL markup used to cisplay
a form to create a new person.  
+ 
+ * ''xap/xal-actions/newPeople.ftl'' - Contains the xModify and XAL markup used to cisplay
a form to create a new person.  A xModify '''replace-children''' statement is used to update
the '''contentPane''' with UI used to create .
  
  * ''xap/src-js/DisplayUIDocument.js'' - Contains the code for the Managed Client Object.
 There are two functions contained in the file.
  
- ** ''displayAlert'' - Show what is in XAP's UI Document.  The UI document is what you change
inorder to update the screen.
+ ** ''displayAlert'' - Show what is in XAP's UI Document.  The UI document is what you make
changes to in order to update the screen.
  
  ** ''newPersonAction'' - Called from the new person form.
  
- The request service is used to send the ui information to the
+ Using the request service, ui information is sent to the
- struts action, once sent the struts action is executed in the same way 
+ struts action. Once sent, the struts action is executed in the same way 
  a HTML for is handled. 
      
- The information for the ui components is passed into the javascript method
- using the expression syntax for an event handler, which is defined in the 
- newPerson.tfl file.
-     
- The action handler for the "Add Person" button is as follows
- onCommand="mco:strutsMco.newPersonAction(event, name.text, lastName.text)"
- In english the reads call the "newPersonAction" function on the "strutsMco"
- object.  Pass into the function the "event" object, the "text" attribute of the
- "name" textField and the "text" attribute of the "lastName" textField.
- 
  * ''All other documents'' are used in the XAP runtime.
  

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


Mime
View raw message