Hi nille,

I appreciate, but I should have precised in my first topic.
Of course, I enclosed the zone previously by the anchors <t:form> and
</t:form> [?]
I am sure it is an Ajax error because the error report comes from Ajax...
and as I explained, when I set visible to true, It works perfectly.
The problem comes from the fact that when I click on my ActionLink ,(Ajax
request, call of javascript method show() ) I get this error.

Thanks,

Thibaut


On Thu, Jun 11, 2009 at 7:48 PM, nille hammer
<tapestry.nilleham...@winfonet.eu> wrote:

> Hi Thibaut,
> this is not an ajax problem. The important part of the error message is
> "The Select component must be enclosed by a Form component" t:select is a
> tapestry component that can only be located somewhere within t:form
> tags.Something similar to the following should work:
> <t:form ...>
> ....
> <t:zone visible="false" t:id="organizationZone" id="organizationZone">
>  <t:select model="listOrganizations" value="organizationSelect"/>
> </t:zone>
> ....
> </t:form>
> Kind regards, nillehammer
>
> ==
> http://www.winfonet.eu
>
> ----- original Nachricht --------
>
> Betreff: How to show a Select component in a zone ?
> Gesendet: Fr, 12. Jun 2009
> Von: Thibaut Gadiolet<thibaut.gadio...@gmail.com>
>
> > Hi folks,
> >
> > Sorry for bothering you again but I want to clarify something with
> tapestry
> > and Ajax.
> >
> > I want to show a Select in a zone.
> >
> > *I have an actionLink:*
> >
> >     Object onActionFromShowZone()
> >     {
> >         return organizationZone.getBody();
> >     }
> >
> > *my tml zone:*
> >
> >     <t:zone visible="false" t:id="organizationZone"
> id="organizationZone">
> >         <t:select model="listOrganizations" value="organizationSelect"/>
> >     </t:zone>
> >
> > Everything works fine when visible="true" (No Ajax request)
> > But when I set visible to false and click on my actionLink to show the
> > Select, I got this Ajax error:
> >
> > *"Communication with the server failed: Render queue error in
> > SetupRender[Profile:select]: The Select component must be enclosed by a
> > Form
> >
> >
> > component.Ajax failure: Status 500 for /gsoc/profile.showzone: Render
> queue
> > error in SetupRender[Profile:select]: The Select component must be
> enclosed
> > by a Form component"*
> >
> > Regards,
> >
> > Thibaut
> >
>
> --- original Nachricht Ende ----
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to