Re: Access to WOComponents of a page

2019-07-24 Thread Chuck Hill via Webobjects-dev
> On Jul 24, 2019, at 2:53 AM, André Rothe via Webobjects-dev > wrote: > > Hi, > > How I can access the WOComponent objects of a page? You should not. Components know their parent, parents don’t know their children (child components). Technically you can, but it is difficult and I won’t

RE: Access to WOComponents of a page

2019-07-24 Thread GILQUIN Pierre via Webobjects-dev
Hi André, The only way (I know) to access a method in a component is to be in an action in the parent : public WOComponent generateCapcha(){ { ERCaptcha captcha = pageWithName(ERCaptcha.class); captcha. setResponse(""); return captcha; } But probably action can be used

Access to WOComponents of a page

2019-07-24 Thread André Rothe via Webobjects-dev
Hi, How I can access the WOComponent objects of a page? I use different WOComponents in a "Main WO" and I try to access the classes behind the components from Main.java to call some public methods on them. In example I would like to call ERCaptcha.setResponse("") on the component which is nam