Re: Rendered html to string

2009-09-30 Thread Luca Provenzani
it seems to be interesting for us... can you send a code example?

2009/9/30 Martin Sachs 

> if you want just one component in the hierarchie to be rendered to a
> String you have to make a Behaviour and use the StringResponse-class to
> replace the hole Response in beforeRender for this component.
> in onRendered you can add the string again to the hole Response. We do
> this for caching HTML Fragments  via  EHCache.
>
> Martin
>
> Luca Provenzani schrieb:
> > oops, yes, you are right! :-)
> >
> > 2009/9/30 Peter Arnulf Lustig 
> >
> >
> >> getMarkupStream().toString();
> >> maybe?
> >>
> >>
> >>
> >>
> >> - Ursprüngliche Mail 
> >> Von: Luca Provenzani 
> >> An: users@wicket.apache.org
> >> Gesendet: Mittwoch, den 30. September 2009, 12:32:19 Uhr
> >> Betreff: Rendered html to string
> >>
> >> Hi all,
> >>
> >> does someone know how to render a wicket component into a String?
> >>
> >> Thanks
> >> Luca
> >>
> >>
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >>
> >
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Rendered html to string

2009-09-30 Thread Martin Sachs
if you want just one component in the hierarchie to be rendered to a
String you have to make a Behaviour and use the StringResponse-class to
replace the hole Response in beforeRender for this component.
in onRendered you can add the string again to the hole Response. We do
this for caching HTML Fragments  via  EHCache. 

Martin

Luca Provenzani schrieb:
> oops, yes, you are right! :-)
>
> 2009/9/30 Peter Arnulf Lustig 
>
>   
>> getMarkupStream().toString();
>> maybe?
>>
>>
>>
>>
>> - Ursprüngliche Mail 
>> Von: Luca Provenzani 
>> An: users@wicket.apache.org
>> Gesendet: Mittwoch, den 30. September 2009, 12:32:19 Uhr
>> Betreff: Rendered html to string
>>
>> Hi all,
>>
>> does someone know how to render a wicket component into a String?
>>
>> Thanks
>> Luca
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>> 
>
>   


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



Re: Rendered html to string

2009-09-30 Thread Luca Provenzani
oops, yes, you are right! :-)

2009/9/30 Peter Arnulf Lustig 

> getMarkupStream().toString();
> maybe?
>
>
>
>
> - Ursprüngliche Mail 
> Von: Luca Provenzani 
> An: users@wicket.apache.org
> Gesendet: Mittwoch, den 30. September 2009, 12:32:19 Uhr
> Betreff: Rendered html to string
>
> Hi all,
>
> does someone know how to render a wicket component into a String?
>
> Thanks
> Luca
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Rendered html to string

2009-09-30 Thread Martin Makundi
http://mail-archives.apache.org/mod_mbox/wicket-users/200811.mbox/%3c5de41c7d0811050222r5948a447r5fd68b5cefac5...@mail.gmail.com%3e

2009/9/30 Peter Arnulf Lustig :
> getMarkupStream().toString();
> maybe?
>
>
>
>
> - Ursprüngliche Mail 
> Von: Luca Provenzani 
> An: users@wicket.apache.org
> Gesendet: Mittwoch, den 30. September 2009, 12:32:19 Uhr
> Betreff: Rendered html to string
>
> Hi all,
>
> does someone know how to render a wicket component into a String?
>
> Thanks
> Luca
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



AW: Rendered html to string

2009-09-30 Thread Peter Arnulf Lustig
getMarkupStream().toString();
maybe?




- Ursprüngliche Mail 
Von: Luca Provenzani 
An: users@wicket.apache.org
Gesendet: Mittwoch, den 30. September 2009, 12:32:19 Uhr
Betreff: Rendered html to string

Hi all,

does someone know how to render a wicket component into a String?

Thanks
Luca





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



Rendered html to string

2009-09-30 Thread Luca Provenzani
Hi all,

does someone know how to render a wicket component into a String?

Thanks
Luca