on 06-08-2015 12:55 PM
Hi All,
I'm new to WCEM and this could be a basic query for some.
I have xhtml which need to retrieve "addressLine1" from DTO, where DTO are nested(MainDTO->sub1DTO->sub2DTO->sub3DTO....) inside one another.
In this situation how do I call the specific property("addressLine1") from our xhtml view?
What is the path i should use for,Is it like below code?
#{cc.vch.pickAddressDetails.MainDTO.Sub1DTO.sub2DTO.sub3DTO}
many thanks for clearing this out for me.
Nuwan
Hi Nuwan,
I recommend that you use an expression like
#{cc.vch.addressDetails}
In the viewhandler of the xhtml, you offer a method getAddressDetails(). In this method you should wrap the access to the "subDTOs".
BR,
Steffen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.