Re: T5: Form Field from an embedded component

2008-08-18 Thread Filip S. Adamsen
Hi, Glad it helped. :) Another possible way to do this would be triggering a custom event through ComponentResources#triggerEvent in ContactInfo and pass along whatever you need. Your page could then handle this event and do whatever it needs to do. It's a little cleaner API-wise, and not a l

Re: T5: Form Field from an embedded component

2008-08-18 Thread Chris Lewis
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.

Re: T5: Form Field from an embedded component

2008-08-18 Thread Filip S. Adamsen
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