Hi Lance,

i added observe.zone and now the page launch... but :
Every dynamic behavior has stopped working :
the ajaxformloop I have on  my page does not work anymore, my ajaxupload
too, and every zone reloading stopped working... it's like javascript is
disabled. But I tested with a <noscript> tag and javascript is enabled.

If i delete the mixin from the select element and redeploy/reload then ajax
components and zone are working again.

Why the addition of this mixin makes all ajax components stop working ?Am i
missing something ?

2014-09-19 19:29 GMT+02:00 Lance Java <lance.j...@googlemail.com>:

> You're seeing a name clash since both select and observe accept a "zone"
> parameter.
>
> You can qualify the parameter name so that the mixin gets it instead of
> select.
>
> I think you can say observe.zone="foo" (if not it's observe/zone).
> On 19 Sep 2014 17:58, "squallmat ." <squall...@gmail.com> wrote:
>
> > Hi,
> >
> > I'm trying to use the observe mixin from here :
> > http://tapestry-stitch.uklance.cloudbees.net/observedemo
> >
> >
> > I have the code tml :
> > <t:Select t:mixins="observe" clientEvent="change"
> > event="observeSelectApp" zone="formZone"
> > fields="['selectClients']" t:value="selectedApplication"
> > t:id="selectApplications" model="selectApplications"
> > t:encoder="applicatifDtoEncoder" t:zone="formZone" />
> >
> >
> > in controller :
> > Block onObserveSelectApp(ClientDto clientSelected) {
> > selectedClient = clientSelected;
> > return formZone.getBody();
> > }
> >
> >
> > but when I try to launch this page, i have :
> > Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
> > Parameter(s) 'Observe.zone' are required for
> > org.apache.tapestry5.corelib.components.Select, but have not been bound.
> > [at classpath:atos/smt/livraison/pages/NouvelleLivraison.tml, line 42]
> > at
> >
> >
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.verifyRequiredParametersAreBound(ComponentPageElementImpl.java:1189)
> > at
> >
> >
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$2900(ComponentPageElementImpl.java:61)
> > at
> >
> >
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$3.run(ComponentPageElementImpl.java:802)
> > at
> >
> >
> org.apache.tapestry5.internal.structure.PageImpl.invokeCallbacks(PageImpl.java:362)
> > at
> >
> org.apache.tapestry5.internal.structure.PageImpl.loaded(PageImpl.java:231)
> > at
> >
> >
> org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:193)
> > at
> >
> >
> org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:178)
> > at
> >
> >
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
> > ... 92 more
> >
> >
> >
> > But, the zone attribute is here in my code... Do you see why such a
> problem
> > ?
> >
>

Reply via email to