Re: [Rife-users] exit after form submission

2006-11-02 Thread Emmanuel Okyere

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
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
blog -- http://eokyere.blogspot.com
RIFE Framework -- http://rifers.org
RIFE Training  -- http://rifers.org/training

It is always something
(corollary). Good, Fast, Cheap: Pick any two (you can't have all three).

RFC 1925
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] exit after form submission

2006-11-02 Thread Henk

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
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users






___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] Fwd: London Eclipse Birthday party

2006-11-02 Thread Emmanuel Okyere
if you use eclipse, are in london, and have some free time next week, let's go do it eclipse style :)cheers,Emmanuel-- Forwarded message --From: 
Thibaut Rouffineau [EMAIL PROTECTED]Date: Nov 2, 2006 2:02 PMSubject: London Eclipse Birthday partyTo: 
[EMAIL PROTECTED]


  






Hi Emanuel,
Here are more info about the bday party :D

The Eclipse foundation is
proud to announce and organise the:

http://www.eclipse.org/community/eclipsebirthday5/birthdayparties.php


As it says on the gif!
The venue:

Bar
Kick 
 127 Shoreditch High Street, London. E1 6JE 
http://www.cafekick.co.uk/

There will be an area
booked for the party and one or two football tables as well.


See
you all there!



Stay tuned for more details!
Anyone interested in participating please RSVP on 
http://www.eclipse.org/community/eclipsebirthday5/birthdayparties.php

If you know of any company willing to sponsor the event, let me
know.

Cheers
Thibaut Rouffineau
Symbian Ltd. UK.
Mobile: +44 (0)7768421323







  
** Symbian Software Ltd is a
company registered in England and Wales with registered number
4190020 and registered office at 2-6 Boundary Row, Southwark,
London,  SE1 8HP, UK. This message is intended only for use by the
named addressee and may contain privileged and/or confidential
information. If you are not the named addressee you should not
disseminate, copy or take any action in reliance on it. If you have
received this message in error please notify [EMAIL PROTECTED]
and delete the message and any attachments accompanying it
immediately. Neither Symbian nor any of its Affiliates accepts
liability for any corruption, interception, amendment, tampering or
viruses occurring to this message in transit or for any message
sent by its employees which is not in compliance with Symbian
corporate policy. *
* 

-- blog -- http://eokyere.blogspot.comRIFE Framework -- http://rifers.orgRIFE Training-- 
http://rifers.org/trainingIt is always something(corollary). Good, Fast, Cheap: Pick any two (you can't have all three).RFC 1925
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users