I don't have a solution, nor have I had that problem, but I have some
comments. We're still using the deprecated submitOnChange parameter for the
PropertySelection components. The documentation says of that parameter: "If
true, then additional JavaScript is added to submit the containing form when
select is changed. Equivalent to specifying a JavaScript event handler of
this.form.submit()."

Wouldn't you want to use "this.form.submit()" instead of "
this.form.events.submit()"? I couldn't find "form.events" in my javascript
reference book, so I'm not sure what that means.

On 10/22/05, Derek Brown <[EMAIL PROTECTED]> wrote:
>
> Anyone else encounter this problem? Do I need to
> change something if I put this in a component?
>
> Thanks
>
> --- Derek Brown <[EMAIL PROTECTED]> wrote:
>
> > In my home page I have something like:
> >
> > <form jwcid="@Form">
> > <span jwcid="@PropertySelection"
> >
> model="ognl:@[EMAIL PROTECTED]"
> >
> > value="ognl:currentSelection"
> >
> onchange="literal:javascript:this.form.events.submit();"/>
> > </form>
> >
> > This code works fine when its on the home page. If I
> > move it into another component and then include the
> > component in the Home page, I always get the error,
> > component ($Form) not found in home page.
> >
> > Any Ideas?
> >
> > Component [EMAIL PROTECTED] does not
> > contain
> > a component $Form.
> >
> org.apache.tapestry.AbstractComponent.getComponent(AbstractComponent.java
> :344)
> >
> org.apache.tapestry.AbstractPage.getNestedComponent(AbstractPage.java:229)
> >
> org.apache.tapestry.engine.DirectService.service(DirectService.java:101)
> >
> > Thanks
> >
> >
> >
> > __________________________________
> > Start your day with Yahoo! - Make it your home page!
> >
> > http://www.yahoo.com/r/hs
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
>
>
> __________________________________
> Start your day with Yahoo! - Make it your home page!
> http://www.yahoo.com/r/hs
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to