• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Data Mapping

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to map a field called “Type of Coverage” from the Mapped element “TransactionDocument.CoverageItems.CoverageItem.Companies.FormCompany.Fields.FormField.CoverageType”
I was trying to map like location.coverageType as follows, but I can not see the output text.

I have the beans called “LocationSummaryBean” and “CoverageSummaryBean”. In Location Bean I have the method called getCoverageType() and in Coverage Bean there is another method called getDominionFieldValue().
I would appreciate if someone can help how I can correctly map the field from the Mapped element. Please let me know if you need any other information.

LocationBean:

CoverageBean:

 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check and make sure that your accessor method is really returning a value and not null. If the value is null, nothing will display.

BTW, here's a useful hint:


That should make your element code a little tidier. The "empty" operator does exactly the same test as your explicit logic does.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic