Re: Populating a model with form data from external site

2009-08-16 Thread NYSophia

Were you able to find a solution?


LLehtinen wrote:
> 
> Hi -
> 
> I have "normal" POST requests coming from an external website. I would 
> like to have a model object's members populated with the matching HTTP 
> parameter values sent in the request. I have a feeling that there is an 
> obvious an elegant way of having Wicket do this for me, but I can't seem 
> to figure it out at this late hour. I would appreciate it if someone 
> could point me to the right direction!
> 
> Right now I'm depending on a bunch of getRequest().getParameter() calls 
> which seems way too servlet-ish to be the "right" way of doing this.
> 
> For clarity:
> 
> Let's say the incoming POST request contains the following parameters: 
> id and name.
> 
> I would like to have Wicket populate a POJO (a model object) like this 
> for me:
> 
> public class ModelObject {
>   private Long id;
>   private String name;
> 
>   .. getters & setters ..
> 
> }
> 
> instead of doing
> 
> Long id = Long.parseLong(getRequest().getParameter("id"));
> String name = getRequest().getParameter("name");
> 
> Thank you all for your quick responses to my earlier questions.
> 
> --
> LL
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Populating-a-model-with-form-data-from-external-site-tp17395075p25000791.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Send file from external page to wicket

2009-08-16 Thread NYSophia

Were you able to find a solution?

Vit Rozkovec-2 wrote:
> 
> Hallo,
> 
> I have an applet, which is run on users computer. In this applet I scan 
> some photo and describe it.
> I would like to send this foto along with the data to a wicket
> application.
> How should I do that?
> 
> I thought of setting the form action parameter in the external 
> non-wicket page to point to a bookmarkable wicket page, where I would 
> handle the POST, but I do not know how should I extract the parameters 
> and file from the POST.
> 
> How would you do it?
> 
> Thank you.
> 
> Vitek
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Send-file-from-external-page-to-wicket-tp18007245p25000788.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Sending data to a wicket form through a POST from an external site

2009-08-16 Thread NYSophia

We came across the same question.  Did you end-up finding a solution?

Thanks

Rahul Pilani-3 wrote:
> 
> I need to get data from an external site via a POST. Is there a way that
> wicket will trigger a form submit on the posted data? Otherwise I have to
> handle the params myself. I looked through the forum archives, and
> previous posts on a similar topic went unreplied.
> 
> Any answer is appreciated.
> 
> - R
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Sending-data-to-a-wicket-form-through-a-POST-from-an-external-site-tp21338922p25000777.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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