Hi Fellow Stripes Users,

Is there any obvious reason this shouldn't work?  OneToManyTypeConvertor
seems to work fine for fields bound directly on action beans but I'm having
a problem using it with a nested property. I am always getting a null array
in the search request but the URL clearly contains a
'searchRequest.hospitalPID' value.

If I comment out the validation rules then the content of the related text
box is bound correctly to searchRequest.hospitalPID[0]
I'd like to support entering multiple PIDs and OneToManyTypeConvertor seems
perfect for the job but something is wrong.

Known issue?

*
public class PatientSearchActionBean extends SearchRequestActionBean

    @ValidateNestedProperties({

@Validate(field="hospitalPID",converter=OneToManyTypeConverter.class,required=false)
    })
    private PatientSearchRequest searchRequest=new PatientSearchRequest();


    public PatientSearchRequest getSearchRequest() {

        return searchRequest;
    }


}*
*
public class PatientSearchRequest extends SearchRequest{
    .....

    private String[] hospitalPID;

    public String[] getHospitalPID() {
        return hospitalPID;
    }


    public void setHospitalPID(String[] hospitalPID) {
        this.hospitalPID = hospitalPID;
    }
}*

-- 
Ross Sargant
Software Engineer
p: 954-623-6015 x2108
email: rsarg...@tvrc.com

TVR Communications LLC
541 S. State Road 7,Suite 5,Margate, Florida,33068

http://www.tvrc.com
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to