Re: Returning XML to JS

2008-10-21 Thread Peter Ertl

have a look at XStream :-)


Am 21.10.2008 um 11:25 schrieb [EMAIL PROTECTED]:


Hi,

What's the nice / correct way to do this in Wicket:

I have a client side bit of JS that looks something like

   getData(URL);

It expects to get back an XML document like

   data
 entryfoo/entry
 entrybar/entry
   /data

On the wicket side, I want the Java object that spits back the XML  
to be
part of a component.  This parent component will have supplied the  
URL in

question.

Any ideas how I should do this?

Thanks,

Ambrose Wheatcroft
Analyst / Programmer, JHC PLC

+44 (0)20 7367 6500



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Returning XML to JS

2008-10-21 Thread Maarten Bosteels
for an example, see
http://www.nabble.com/linking-to-a-text-ResourceReference-td19753402.html

Maarten

On Tue, Oct 21, 2008 at 12:07 PM, Peter Ertl [EMAIL PROTECTED] wrote:

 have a look at XStream :-)


 Am 21.10.2008 um 11:25 schrieb [EMAIL PROTECTED]:


  Hi,

 What's the nice / correct way to do this in Wicket:

 I have a client side bit of JS that looks something like

   getData(URL);

 It expects to get back an XML document like

   data
 entryfoo/entry
 entrybar/entry
   /data

 On the wicket side, I want the Java object that spits back the XML to be
 part of a component.  This parent component will have supplied the URL in
 question.

 Any ideas how I should do this?

 Thanks,

 Ambrose Wheatcroft
 Analyst / Programmer, JHC PLC

 +44 (0)20 7367 6500



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]