cancel
Showing results for 
Search instead for 
Did you mean: 

In xhtml, retrieve data in nested DTO

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

steffen_mueller3
Participant
0 Kudos

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