Cool!

Mark

On Thu, Jan 8, 2009 at 4:51 AM, Brian FitzGerald
<[email protected]> wrote:
>
> Hey all,
>
> Just thought I would post this here on the Transfer list in case
> anyone was interested.  Since the Mach-II event-bean command doesn't
> quite work with transfer, I wrote a simple filter in response to this
> thread:
>
> http://tinyurl.com/6kzurq
>
> Like the event-bean command in Mach-II, it inspects the args in the
> event object and populates the Transfer object's matching properties
> with the correct values so that you don't have to manually set each
> property on your own.  If you think it would be of any use to you, you
> can find the filter here:
>
> http://tinyurl.com/a8m6nb
>
> This is how it would look in your mach-ii.xml config file:
>
>  <event-handler event="saveCourse" access="public">
>    <filter name="transferBeanConverter">
>      <parameter name="course.Course" value="courseId"/>
>    </filter>
>    <notify listener="courseListener" method="saveCourse"/>
>    <redirect event="manageCourses" args="courseId" persist="true"
> persistArgs="result"/>
>  </event-handler>
>
> Basically you need to specify the name and primary key for the
> Transfer object in a parameter passed to the filter. I'm of course
> open to any thoughts or suggestions on how it could be improved.
>
> Best,
> Brian
> >
>



-- 
E: [email protected]
W: www.compoundtheory.com

--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to