You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Bruce Lombardi <br...@gmail.com> on 2014/08/05 23:07:09 UTC

Can I process a POST with simple non-Json parameters using wicket-restannotations

Hi,

 

I have successfully setup a restful service using Wicketstuff
wicket-restannotation that accepts Json parameters. But I need to write
something in Wicket that will accepts a post of an order confirmation from
another source that does not use Json. Is there a simple way of doing that
with wicket-restannotations? I only see how to process Json. I know that
Json standard for a restful service, so I may have to do something else,
like using @MountPath and pulling the parameters out of the request.

 

Bruce


RE: Can I process a POST with simple non-Json parameters using wicket-restannotations

Posted by Bruce Lombardi <br...@gmail.com>.
Thanks for pointing me in the right direction, I will look at the links you
sent.
I don't care if I get a post of a get, but it I know it will be a post with
an order confirmation.

- Bruce

-----Original Message-----
From: Paul Bors [mailto:paul@bors.ws] 
Sent: Wednesday, August 06, 2014 12:38 AM
To: users@wicket.apache.org
Subject: Re: Can I process a POST with simple non-Json parameters using
wicket-restannotations

I think you might be looking for the query parameters of the
http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/request
/Request.html class.

See Chapter 9 of the Wicket Guide:
http://wicket.apache.org/guide/guide/single.html#requestProcessing

You can get to the Request from any of the Components on your page. Thus you
can have a bookmarkable URL and in the constructor of that page you can grab
the request and extract the parameters from it.

Do you care if the request is POST or GET?
Wicket abstracts that out for you via the query parameters.

~ Thank you,
   Paul Bors

On Aug 5, 2014, at 5:07 PM, Bruce Lombardi <br...@gmail.com> wrote:

> Hi,
> 
> 
> 
> I have successfully setup a restful service using Wicketstuff 
> wicket-restannotation that accepts Json parameters. But I need to 
> write something in Wicket that will accepts a post of an order 
> confirmation from another source that does not use Json. Is there a 
> simple way of doing that with wicket-restannotations? I only see how 
> to process Json. I know that Json standard for a restful service, so I 
> may have to do something else, like using @MountPath and pulling the
parameters out of the request.
> 
> 
> 
> Bruce
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Can I process a POST with simple non-Json parameters using wicket-restannotations

Posted by Paul Bors <pa...@bors.ws>.
I think you might be looking for the query parameters of the http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/request/Request.html class.

See Chapter 9 of the Wicket Guide:
http://wicket.apache.org/guide/guide/single.html#requestProcessing

You can get to the Request from any of the Components on your page. Thus you can have a bookmarkable URL and in the constructor of that page you can grab the request and extract the parameters from it.

Do you care if the request is POST or GET?
Wicket abstracts that out for you via the query parameters.

~ Thank you,
   Paul Bors

On Aug 5, 2014, at 5:07 PM, Bruce Lombardi <br...@gmail.com> wrote:

> Hi,
> 
> 
> 
> I have successfully setup a restful service using Wicketstuff
> wicket-restannotation that accepts Json parameters. But I need to write
> something in Wicket that will accepts a post of an order confirmation from
> another source that does not use Json. Is there a simple way of doing that
> with wicket-restannotations? I only see how to process Json. I know that
> Json standard for a restful service, so I may have to do something else,
> like using @MountPath and pulling the parameters out of the request.
> 
> 
> 
> Bruce
>