Re: Submit form without t:form component

"Thiago H. de Paula Figueiredo" <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <CAE_88GaHcWM1ayYigWUpvrDw+3=_gixAkDm-G4esmpjdcZTe_Q@mail.gmail.com>
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
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.