Hi Geert,

it turned out I needed to use get*NAMED*InputBean instead of getInputBean. Not sure when I can use the named or the plain one though.
Thanks

Henk

Geert Bevin wrote:
Hi Henk,

can you also provide the implementation of the bean?

A minimal standalone testcase that I can run would be very handy indeed.

Best regards,

Geert

On 02 Nov 2006, at 13:06, Henk wrote:

This is the first element :
<element implementation="NewTrack">
   <exit name="form" />
   <input name="gID" />
   <submission name="tracksubmission">
       <bean classname="TrackSubmissionBean"/>
   </submission>
<outbean name="trackformbean" classname="TrackSubmissionBean" prefix="subm_"/>
</element>

this is the second :
<element implementation="NewTrackFormElement">
<inbean name="trackformbean" classname="TrackSubmissionBean" prefix="subm_"/>
</element>

and this is how they are linked :
<element id="NEWTRACK" file="dp/newtrack.xml" url="/newtrack">
           <flowlink srcexit="form" destid="NEWTRACKFORM">
<datalink srcoutbean="trackformbean" destinbean="trackformbean" />
           </flowlink>
</element>
<element id="NEWTRACKFORM" file="dp/newtrackform.xml" url="/newtrackform" />
      The NewTrackFormElement :
public void processElement() throws EngineException {
TrackSubmissionBean bean = (TrackSubmissionBean)getInputBean(TrackSubmissionBean.class,"trackformbean");
       System.out.println(bean.getBand_id());
   }
the bean is emtpy.

I will try a standalone testcase.
thanks

Henk

Emmanuel Okyere wrote:
How do you know the outputbean is not being set? How does your site
structure look like? Do you have a test case?

Cheers,
Emmanuel

On 11/1/06, Henk <[EMAIL PROTECTED]> wrote:
Hi,

I have a form handled by element1, after a successful submission the
results have to be handled by element2.
I have this code in element1 :
TrackSubmissionBean trackBean =
(TrackSubmissionBean)getSubmissionBean(TrackSubmissionBean.class);
        if (trackBean != null) {
            Validated val = (Validated)trackBean;
            if (val.validate()) {
                setOutputBean(trackBean,"trackformbean");
                exit("element2");
            } else {
                Set errors = val.getValidationErrors();
                ValidationBuilderXhtml builder = new
ValidationBuilderXhtml();
builder.generateErrorMarkings(templ, errors, null, null);

            }
        }

Apparently, the exit to element2 does not receive the output bean
values.  Is there another way I need to follow ?

Thanks

Henkl
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users




_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users



_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to