Filip, I had actually thought about that, but the explicit cast to Field prompted me ask the list. I hadn't tried that method until you mentioned it, and it does indeed work. If anyone can suggest a cleaner method I'd love to hear it, but for now this will do. Thanks again Filip!
chris Filip S. Adamsen wrote: > Hi Chris, > > Get "contactinfo" through getEmbeddedComponent, get its > ComponentResources, and finally get the component you need through > getEmbeddedComponent and cast it to Field. > > That's the quick and dirty way, anyhow. > > -Filip > > On 2008-08-18 00:13, Chris Lewis wrote: >> Hello list, >> >> I have a page that has a form component, and in the form is another >> component "contactinfo." This component is basically a custom editor for >> a contact bean. In the page I must do some custom validation on the >> server side, and in at least one instance I want to record an error on a >> field within the contactinfo. However I run into the issue that I can't >> use @Component in my page class, because the Field (component) is within >> an embedded component. How can I get at the Field? ComponentResources >> has getEmbeddedComponent, it returns type Component. Any ideas? >> >> Thanks in advance, >> Chris Lewis >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://thegodcode.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]