You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "ken.p" <ke...@gmail.com> on 2009/01/25 01:55:53 UTC
Obtain Rendered HTML programmatically
Hi,
I have a requirement which needed to obtain final rendered html as string.
E.g:
java:
add(new Panel1("p1"));
html:
<div wicket:id="p1"></div>
I need to be able to captured rendered HTML for the above.
Any example is appreciated.
--
View this message in context: http://www.nabble.com/Obtain-Rendered-HTML-programmatically-tp21647328p21647328.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Obtain Rendered HTML programmatically
Posted by "ken.p" <ke...@gmail.com>.
Thanks. Managed to get HTML for a web page. However, when I try to render a
component, I run to problems as the component is manually rendered and
attached to HTML body through ajax. As such, it will throw page not found.
When I try to add the component to a dummy website and render, the component
appears correctly but ajax behavior will throw page expired exception.
Any help?
ptrthomas wrote:
>
> On Sun, Jan 25, 2009 at 6:25 AM, ken.p <ke...@gmail.com> wrote:
>
>>
>> Hi,
>>
>> I have a requirement which needed to obtain final rendered html as
>> string.
>> E.g:
>> java:
>> add(new Panel1("p1"));
>> html:
>> <div wicket:id="p1"></div>
>>
>> I need to be able to captured rendered HTML for the above.
>> Any example is appreciated.
>
>
> Have a look at this thread:
>
> http://www.nabble.com/Render-a-Wicket-page-to-a-string-for-HTML-email-tc20325702.html
>
>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Obtain-Rendered-HTML-programmatically-tp21647328p21647328.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Obtain-Rendered-HTML-programmatically-tp21647328p21826698.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Obtain Rendered HTML programmatically
Posted by Peter Thomas <pt...@gmail.com>.
On Sun, Jan 25, 2009 at 6:25 AM, ken.p <ke...@gmail.com> wrote:
>
> Hi,
>
> I have a requirement which needed to obtain final rendered html as string.
> E.g:
> java:
> add(new Panel1("p1"));
> html:
> <div wicket:id="p1"></div>
>
> I need to be able to captured rendered HTML for the above.
> Any example is appreciated.
Have a look at this thread:
http://www.nabble.com/Render-a-Wicket-page-to-a-string-for-HTML-email-tc20325702.html
>
> --
> View this message in context:
> http://www.nabble.com/Obtain-Rendered-HTML-programmatically-tp21647328p21647328.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>