How can I just pass the object of an eventlink within a table row?

The following does not work, I don't understand why:

<t:grid source="objects" row="object" add="action">
 <p:actionCell>
  <t:eventLink event="createObject" context="object">Create
Object</t:eventLink>
 </p:actionCell>
</t:grid>


class MyPage {
   @Property
   Object object;

   @Property
   List objects;

   public void onCreateObject(Object object) {
       object.getXX();
   }
}

[ERROR] TapestryModule.RequestExceptionHandler Processing of request failed
with uncaught exception: Exception in method My.onCreateObject($Song),
parameter #1: Could not find a coercion from type java.lang.String to type
$Object.
org.apache.tapestry5.runtime.ComponentEventException: Exception in method
MyPage.onCreateObject($Song), parameter #1: Could not find a coercion from
type java.lang.String to type $Object.




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-pass-the-object-itself-by-eventlink-tp5718208.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to