Wicket's scope is being a web framework for rendering web pages, and be very
good at that. Connecting to other sites to retrieve data is not inside that
scope.
HttpClient is a useful library for this kind of thing. There is little that
we could improve on that (saying that without any knowledge of said
library).

Martijn

On 1/29/08, Michael Mehrle <[EMAIL PROTECTED]> wrote:
>
> Yeah, that's my plan - turn the XML into a value bean and use it as my
> form model. However, my question is more related to what happens before
> that: Make an HTTP call to the external website, retrieve the XML and
> *then* parse it. Again, my first instinct is to HttpClient, but last
> time I used it was several years go - was wondering if there's anything
> in Wicket I should use instead.
>
> Michael
>
> -----Original Message-----
> From: Ryan Sonnek [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 28, 2008 3:36 PM
> To: [email protected]
> Subject: Re: Web service call inside Wicket?
>
> If your service (http, webservice, whatever) returns some kind of
> business object, it'll be very easy to bind it to form values.
>
> MyObject object = service.find();
>
> add(new TextField("name", new PropertyModel(object, "name"));
>
> make sense?
>
> On Jan 28, 2008 5:32 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote:
> > This is a simple question - I have do make an http call to an external
> > website inside my DAO - it's like a webservice call. The resulting XML
> > then needs to be parsed and used to populate my Wicket form. I was
> > thinking of using the Jakarta Commons HttpClient to retrieve the XML,
> > but was wondering if there is a preferred way of doing stuff like this
> > in Wicket.
> >
> > Thanks!
> >
> > Michael
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0

Reply via email to