Re: Submit form without t:form component

David Diaz <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <CAFJfbrFbmcjZXqR5n6aM34uW5TiLCSUgTUGj4TscJ+x0mCnU1Q@mail.gmail.com>
Awesome! Thank you very much :)

On Sat, Dec 10, 2016 at 12:13 AM, Thiago H. de Paula Figueiredo <
[email protected]> wrote:

> Or use an event URL, created through @Inject'ing ComponentResources and
> using its createEventLink() method.
>
>
>
> On Fri, Dec 9, 2016 at 11:11 AM, Thiago H. de Paula Figueiredo <
> [email protected]> wrote:
>
> > Another option would be to have a pure HTML form (no usage of the Form
> > component) have its action attribute pointing to a Tapestry page URL (you
> > can get it using PageRenderLinkSource) and use the Request methods to get
> > the query parameters.
> >
> > On Fri, Dec 9, 2016 at 11:09 AM, Thiago H. de Paula Figueiredo <
> > [email protected]> wrote:
> >
> >> Hi!
> >>
> >> You can use a Form component, so you can handle its submission through
> an
> >> onSuccess*() method in usual Tapestry fashion, and use pure HTML fields
> >> (i.e. not using the Tapestry form field components), @Inject Request and
> >> use Request.getParameter*() methods to get its values and
> >> Request.getParameterNames() to get the query parameter names.
> >>
> >> On Thu, Dec 8, 2016 at 9:22 PM, David Diaz <[email protected]> wrote:
> >>
> >>> Hi guys,
> >>>
> >>> I was wondering if there was any way to submit a form without having a
> >>> t:form component and retrieve the data being sent? (e.g ideally a map
> >>> would
> >>> be accessible and I could just retrieve that data).
> >>>
> >>> I need to support this functionality (dynamic forms) and currently I'm
> >>> doing it by converting it to a JSON object and then sending the JSON
> >>> object
> >>> to the server in an event - I would rather not have to have my forms
> rely
> >>> on Javascript to function.
> >>>
> >>> Thanks,
> >>> David.
> >>>
> >>
> >>
> >>
> >> --
> >> Thiago
> >>
> >
> >
> >
> > --
> > Thiago
> >
>
>
>
> --
> Thiago
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.