@Akshay

I understand now. But then I'll have to submit the whole form to (without
validating it) to keep the user input data.
I though there was a more efficient and intuitive method in tapestry. I
like to use tapestry in the best possible way.

Thank you for your time.

*---------------------*
*Muhammad Gelbana*
http://www.linkedin.com/in/mgelbana

On Mon, Dec 15, 2014 at 3:04 AM, Akshay <akshayestat...@gmail.com> wrote:
>
> Hi Muhammad,
>
> That's  what I try to explain in my example, that instead of  making the
> fields driven by select component Ajax, one can use a single form to show
> or hide them, when the select compinent is changed. I tried using if in my
> example, may be if u have multiple fields or logic , you can use a block
> and delegate to them accordingly , keeping eveything in the same single
> form.
>
>
> Regards
> Akshay
>
> -----Original Message-----
> From: "Muhammad Gelbana" <m.gelb...@gmail.com>
> Sent: ‎14-‎12-‎2014 21:09
> To: "Tapestry users" <users@tapestry.apache.org>
> Subject: Re: [5.4-beta-22] Adding forms to a form using ajax
>
> @Thiago
> ​I need the server​ to populate these fields with default values. Also the
> fields will be unexpected until runtime because the selected element in the
> Select component is essential to decide which fields to display. These
> fields are even database driven so the displayed fields cannot be known
> until the Select component is changed.
>
> I really think this is a very reasonable\common requirement.
>
> @Akshay
> May be my question wasn't clear enough. I can do ajax forms, but I'm trying
> to add fields to the form using ajax.
>
> *---------------------*
> *Muhammad Gelbana*
> http://www.linkedin.com/in/mgelbana
>
> On Sun, Dec 14, 2014 at 9:09 PM, Thiago H de Paula Figueiredo <
> thiag...@gmail.com> wrote:
> >
> > On Sun, 14 Dec 2014 07:22:00 -0200, Muhammad Gelbana <
> m.gelb...@gmail.com>
> > wrote:
> >
> >  The ajax-form-loop does it but it doesn't fit my scenario. I need to
> >> display portions of the form based on a Select component changed value.
> >> And even if I try to do it using the Select component change event, I
> >> don't
> >> need to add rows. I just need to update a zone with different form
> fields.
> >>
> >
> > Cannot you use the easy, simple way of having the whole form, with all
> > fields rendered and showing or hiding them?
> >
> > --
> > Thiago H. de Paula Figueiredo
> > Tapestry, Java and Hibernate consultant and developer
> > http://machina.com.br
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>

Reply via email to