Take a look on this thread:
http://www.nabble.com/forum/Search.jtp?forum=13974&local=y&query=IRequestTargetUrlCodingStrategy+service
Thread
The idea is not to create a page, but to mount a
requestTargetUrlCodingStrategy... kind'a servlet....
First, you must implement IRequestTargetUrlCodingStrategy & IRequestTarget
interfaces. Then, mount your implementation in wicket Application class,
like this:
[code]
protected void init() {
mount(new MyRequestTargetUrlCodingStrategy("api"));
//..
}
[code]
Hope it helps.
Alex Objelean
Bruno Borges wrote:
>
> I've read that thread, but it discuss more about URLs. What I'm looking
> for
> is something related to output content dynamically.
> I have this idea of developing simple restful web services integrating
> XStream and Wicket. :-)
>
> So... any thoughts on how would be a subclass of Component and Page
> without
> markup? And where/how should I render the output?
>
> Thanks,
> Bruno
>
> On Oct 27, 2008 5:25pm, Nino Saturnino Martinez Vazquez Wael
> <[EMAIL PROTECTED]> wrote:
>> Hmm I think it's been up before on the list
>>
>>
>>
>>
> http://www.nabble.com/hi-everyone%2C-does-anyone-know-how-can-we-use-RESTFUL-in-wicket--td17473242.html#a17473242
>>
>>
>>
>>
>>
>> [EMAIL PROTECTED] wrote:
>>
>>
>> What would be the best way to have a subclass of Page and another one for
> Component, to provide content without markup (ie. .html) files?
>>
>>
>>
>> The output will be generated during request, and the idea is to take
> advantage of Wicket's nested models architecture, CompoundPropertyModels,
> URL Strategies and PageParameters, to provide a set of components to
> create
> RESTful Web Services.
>>
>>
>>
>> Cheers,
>>
>> Bruno Borges
>>
>>
>>
>>
>>
>>
>> --
>>
>> -Wicket for love
>>
>>
>>
>> Nino Martinez Wael
>>
>> Java Specialist @ Jayway DK
>>
>> http://www.jayway.dk
>>
>> +45 2936 7684
>>
>>
>>
>
>
> -----
> Bruno Borges
> blog.brunoborges.com.br
> +55 21 76727099
>
> "The glory of great men should always be
> measured by the means they have used to
> acquire it."
> - Francois de La Rochefoucauld
>
--
View this message in context:
http://www.nabble.com/How-to-have-Page-and-Components-without-markup--tp20194231p20204625.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.