Well I figured out my problem. I wasn't quoting the name attirbute for
webwork:bean. Thanks Scott.

It works fine, but I still can't seem to pass in a date object from another
class...?

Here's what I've got:

<webwork:property value="CalendarEvent">
 <td>
  <webwork:bean name="'webwork.util.DateFormatter'" id="formatter">
   <webwork:param name="'date'" value="../startDate"/>
   <webwork:param name="'format'" value="'h:mm a'"/>
  </webwork:bean>
  <webwork:property value="@formatter/formattedDate"/>
 </td>
</webwork:property> 

I've also tried:

<webwork:property id="event" value="CalendarEvent">
 <td>
  <webwork:bean name="'webwork.util.DateFormatter'" id="formatter">
   <webwork:param name="'date'" value="@event/startDate"/>
   <webwork:param name="'format'" value="'h:mm a'"/>
  </webwork:bean>
 <webwork:property value="@formatter/formattedDate"/>
 </td>
</webwork:property> 

If I don't use the param for date, it works fine, but I keep getting an
IllegalArgumentException for the date method. Is there another way to do
this?

Thanks,
rick




_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to