Hi, See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources Instead of serving images you can serve whatever you need.
On Tue, May 15, 2012 at 1:19 AM, kamiseq <[email protected]> wrote: > hej, > I have few questions about how to do few things in wicket, right now I > m focusing on 6th version. > > I would like to create global service that returns for example JSON or > html. and given I have stateless page with components that supports > AJAX I would like to point my JS components to this global service. > > I think it best to accomplish this with mounting > 1) mount resource and then use > getRequestCycle().urlFor(resourceReference, parameters); > 2) if I have to return html maybe it is better to mount page > > I ve also found somewhere that I could implement custom renderers that > could render simple html or jason or whatever text I need, but I > cannot find anything about right now. > > what about adding custom RequestCycleListener, or something like that? > > pozdrawiam > Paweł Kamiński > > [email protected] > [email protected] > ______________________ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
