You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Michał Więckowski <mi...@gmail.com> on 2018/01/24 15:37:28 UTC
ProgressiveDisplay
Hi Tapestry Users,
I've got a question regarding ProgressiveDisplay component. I try to use it
combined with form element but each time it is complaining that there is no
form (*Component must be enclosed by a Form component*).
I want to use *progressivedisplay *because data for my select are loading
long.
Example page:
*Tml page:*
<form t:type="form" t:id="myForm">
<div>
<t:label for="data1">Data 1</t:label>
<t:textfield t:id="data1" value="...." />
</div>
<div>
<t:label for="data2">Data2</t:label>
<t:progressivedisplay t:id="showSelect">
<t:select t:id="data2" t:model="myModel" t:value="......"/>
</t:progressivedisplay>
</div>
</t:form>
Any ideas how this can get working will be appreciated :)
Re: ProgressiveDisplay
Posted by Michał Więckowski <mi...@gmail.com>.
Hi Thiago,
Finally I change the whole idea, but this is a very good advice for the
future.
So many thanks to you :)
2018-01-25 12:22 GMT+01:00 Thiago H. de Paula Figueiredo <thiagohp@gmail.com
>:
> Is you form inside ProgressiveDisplay or the other way around? If not, then
> the error is expected, since part of the form would be loaded in a request
> and the rest in another.
>
> The solution for your problem is creating a component which is basically
> the Select component but loading the options through AJAX (or finding some
> existing one that does that).
>
> On Wed, Jan 24, 2018 at 1:37 PM, Michał Więckowski <
> michal.wieckowskii@gmail.com> wrote:
>
> > Hi Tapestry Users,
> >
> > I've got a question regarding ProgressiveDisplay component. I try to use
> it
> > combined with form element but each time it is complaining that there is
> no
> > form (*Component must be enclosed by a Form component*).
> >
> > I want to use *progressivedisplay *because data for my select are loading
> > long.
> >
> >
> > Example page:
> >
> > *Tml page:*
> >
> > <form t:type="form" t:id="myForm">
> > <div>
> > <t:label for="data1">Data 1</t:label>
> > <t:textfield t:id="data1" value="...." />
> > </div>
> > <div>
> > <t:label for="data2">Data2</t:label>
> > <t:progressivedisplay t:id="showSelect">
> > <t:select t:id="data2" t:model="myModel" t:value="......"/>
> > </t:progressivedisplay>
> > </div>
> > </t:form>
> >
> >
> > Any ideas how this can get working will be appreciated :)
> >
>
>
>
> --
> Thiago
>
--
pozdrawiam
Michał Więckowski
Re: ProgressiveDisplay
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Is you form inside ProgressiveDisplay or the other way around? If not, then
the error is expected, since part of the form would be loaded in a request
and the rest in another.
The solution for your problem is creating a component which is basically
the Select component but loading the options through AJAX (or finding some
existing one that does that).
On Wed, Jan 24, 2018 at 1:37 PM, Michał Więckowski <
michal.wieckowskii@gmail.com> wrote:
> Hi Tapestry Users,
>
> I've got a question regarding ProgressiveDisplay component. I try to use it
> combined with form element but each time it is complaining that there is no
> form (*Component must be enclosed by a Form component*).
>
> I want to use *progressivedisplay *because data for my select are loading
> long.
>
>
> Example page:
>
> *Tml page:*
>
> <form t:type="form" t:id="myForm">
> <div>
> <t:label for="data1">Data 1</t:label>
> <t:textfield t:id="data1" value="...." />
> </div>
> <div>
> <t:label for="data2">Data2</t:label>
> <t:progressivedisplay t:id="showSelect">
> <t:select t:id="data2" t:model="myModel" t:value="......"/>
> </t:progressivedisplay>
> </div>
> </t:form>
>
>
> Any ideas how this can get working will be appreciated :)
>
--
Thiago