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