Hi
Im not trying to redirect or persist arguments...
This is the xml that i have :
<event-handler event="vacancies" access="public">
<notify listener="VacanciesListener" method="getVacancies" />
<event-bean name="vacancy" type="focus-
cms.com.focus.beans.contactExtends.vacancy" reinit="true"/>
<view-page name="vacancies.list" contentArg="layout.content"/>
<view-page name="vacancies.table" contentArg="layout.content"
append="true"/>
<announce event="vacancies.template" copyEventArgs="true"/>
</event-handler>
<event-handler event="process-vacancy" access="public">
<event-bean name="vacancy" type="focus-
cms.com.focus.beans.contactExtends.vacancy"
fields="event_id,title,reference,contact_name,category,location,start_date,information"/
>
<notify listener="VacanciesListener" method="createVacancy"/>
<announce event="vacancies"/>
</event-handler>
The vacancies event display a form that needs to be completed.
When the form is submitted it goes to the 'process-vacancy' event with
the event-bean of vacancy.
The listener processes the bean and then the 'vacancies' event is
announced.
Now, i am assuming that because the vacancy bean is in the event.....
the event bean is reinitialised in the 'vacancies' event, if the bean
already exists... it is overwritten?
Im not sure what im doing wrong so that the bean is emptied/cleared.
On Nov 12, 6:42 pm, "Peter J. Farrell" <
pe...@mach-ii.com> wrote:
> The "persist" attribute takes a boolean and indicates if a persist
> should occur. I think you are referring to the "persistArgs" attribute
> which indicates which args to persist (and will persist the whole Event
> if you do not define this attribute). And yes you are correct if I
> infer, "persistArgs" takes a comma list. If you use "persistArgs"
> (because you want specific event args and not the whole thing), you must
> also use "persist". So "persistArgs" is just a modifier on how what
> data "persist" should well .... persist ;-)
>
> Complete reference here for future reference:
http://greatbiztoolsllc-trac.cvsdude.com/mach-ii/wiki/ConfigFileExpla...