Dear Wiki user,

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

The "PropertySelectionForAll" page has been changed by BobHarner.
The comment on this change is: outdated note.
http://wiki.apache.org/tapestry/PropertySelectionForAll?action=diff&rev1=2&rev2=3

--------------------------------------------------

- following we will be include a simple sample for use a property selection
+ || NOTE: This is outdated information that applies only to Tapestry 4. ||
  
+ A simple example for using a property selection
+ 
- The first step is desig a html template. In this template you must include a 
tapestry tag like this.
+ The first step is to design an HTML template. In this template you must 
include a Tapestry tag like this:
  {{{
  ....
  <span jwcid="@PropertySelection" value="ognl:propertyName" 
model="ognl:collectionName"></span>
  ....
  }}}
  
- then you must define a class, this class must implement the 
IPropertySelectionModel Interface. 
+ Next, you must define a class.  This class must implement the 
IPropertySelectionModel Interface:
  
  {{{
  
@@ -82, +84 @@

  
  }}}
  
- this class can contein any object's cain. Please see the constructor with 2 
parameters. the first parameter is an array the objects. this objects will be 
assign to the property and the second parameter, is a String with the method 
name for invoke and obteing the representation for the user in the combo box.
+ This class can contain any object's cain. Please see the constructor with 2 
parameters. The first parameter is an array of objects. These objects will be 
assigned to the property.  The second parameter is a String with the method 
name for invoking and obtaining the representation for the user in the combo 
box.
+ 
- And then in you Page Implementation you must include a code like this.
+ And then in your Page Implementation you must include code like this:
  
  {{{
  public abstract class YourPage implements PageBeginRenderListener{
@@ -115, +118 @@

  
  }}}
  
- when the use make submit the property ''PropertyName'' will be set with de 
object selected in the combo box for the user.
+ When submitted, the property ''Property``Name'' will be set with the object 
selected in the combo box for the user.
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to