• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Stuck inside Spring command object, can't bind to command obj it self

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a command object, and a details object inside it. I am able to bind form fields to the details object, but I want to bind to a field on the command object itself. However, when I load the page, I get the error that
myCommandObject.fieldToBindTo

is not a member of the details object, which is true, so it is like its scope is assuming we're looking at the commandObject.detailsObject, so anything I ask for must be a part of the details object. As if I was inside a <spring:nestedPath path="myDetailsObject">. I can however access my command object with "${myCommandObject.fieldIWant}"

Anyone know how I can reset it so I can bind my fields to the command object?

Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic