I am converting a pre-existing webapp to use Tapestry 4.0.  It uses
hibernate for the business objects and long's for the uid's on those
objects.  I would like to use tapestry to coerce from the uid as a
string into the actual business object

Ultimately what I want to be able to do is to write a direct link like
this...


<span jwcid="@DirectLink" listener="listener:gotoDetails"
parameters="ognl:bizObject">view details</span>

public void gotoDetails( BizObject bizObject ) {
   // rest of code goes here
}

instead of how I am currently doing it as follows...

<span jwcid="@DirectLink" listener="listener:gotoDetails"
parameters="ognl:bizobject.uid">view details</span>

public void gotoDetails( Long  uid ) {
    BizObject bizObject = DAO.getBizObject( uid );
}


I know I need to use the tapestry.coerce.ValueConverter service.  Can
anyone point me in the right direction as to how I would implement this?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to