You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Thibaut Gadiolet <th...@gmail.com> on 2009/06/12 01:21:23 UTC
How to show a Select component in a zone ?
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
Re: How to show a Select component in a zone ?
Posted by Thibaut Gadiolet <th...@gmail.com>.
Thank you Thiago,
Putting the entire Form in my zone is definitely not an ideal solution (I'd
like to show a part of my form, not the whole form)
I tried to use FormFragment with the triggerFragment mixin, but you can just
trigger show() and hide() from a checkbox or a radioButton.
Is there a way to show my Select component from an actionLink, without
rewrite javascript code? (using FormFragment)
Thibaut
On Thu, Jun 11, 2009 at 10:20 PM, Thiago H. de Paula Figueiredo <
thiagohp@gmail.com> wrote:
> Em Thu, 11 Jun 2009 20:21:23 -0300, Thibaut Gadiolet <
> thibaut.gadiolet@gmail.com> escreveu:
>
> <t:zone visible="false" t:id="organizationZone" id="organizationZone">
>> <t:select model="listOrganizations" value="organizationSelect"/>
>> </t:zone>
>>
>
> It's not an ideal solution, but try putting the whole form inside the zone.
> Any field component needs to be rendered inside a Form being rendered,
> hence your situation.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: How to show a Select component in a zone ?
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Thu, 11 Jun 2009 20:21:23 -0300, Thibaut Gadiolet
<th...@gmail.com> escreveu:
> <t:zone visible="false" t:id="organizationZone"
> id="organizationZone">
> <t:select model="listOrganizations" value="organizationSelect"/>
> </t:zone>
It's not an ideal solution, but try putting the whole form inside the zone.
Any field component needs to be rendered inside a Form being rendered,
hence your situation.
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org