Perfect, I'm looking forward to get the next OGNL release that will fix the
problem of the converters returning a null value (value which is considered
as a failure ...)
Cheers.

Richard HALLIER
Chef de projet
[EMAIL PROTECTED]
01.40.12.41.52
www.uniclick.org
UNICLICK


-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de
Matt Ho
Envoye : mercredi 22 octobre 2003 10:26
A : [EMAIL PROTECTED]
Objet : [OS-webwork] added a NullHandler to the ParameterInterceptor


I just added a NullHandler to the ParameterInterceptor in xwork.  This
means that the ParameterInterceptor will automatically instantiates
objects as necessary while populating your action.

For example:

public class SimpleAction implements Action {
     private Person person;
     public Person getPerson() { return this.person ;}
     public void setPerson(Person person) { this.person = person ; }
     ...
}

class Person {
   private String name;
   public void setName(String name) { this.name = name; }
   public String getName() { return this.name ; }
}

if the the user passed in the input parameter,

        person.name = "Matt"

then the parameter interceptor would automatically instantiate the
Person object (assuming Person has a default constructor) and then
populate the name field with Matt.  Previously, you had to create the
Person object yourself.

M





-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to