You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by mango-object <he...@objectconsulting.com.au> on 2011/11/01 02:58:29 UTC
Getting the html output of a wicket panel
we are trying to get the rendered output of a wicket panel (inside the
current page) into a string variable so that it can be embedded into a email
or let the user edit it in an editor such as TinyMCE.
I found this post that is really helpful, but we only need the output of a
panel, not the current page.
http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tt2993717.html
first thought would be to get the output from the whole page and parse and
extract the panel content, but is there a better way?
thanks for any help
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Getting-the-html-output-of-a-wicket-panel-tp3962290p3962290.html
Sent from the Users forum 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: Getting the html output of a wicket panel
Posted by mango-object <he...@objectconsulting.com.au>.
this is very helpful. thank you very much for taking the time/effort to do
the example.
my head is still spinning a bit, but you gave me a lot of pointers.
thanks again
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Getting-the-html-output-of-a-wicket-panel-tp3962290p3971626.html
Sent from the Users forum 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: Getting the html output of a wicket panel
Posted by Brian Mulholland <bl...@gmail.com>.
I found that an AbstractTransformerBehavior can be plugged into the
component and gets a callback that tells it the HTML it is going to
render, and gives it a chance to modify it.
Brian Mulholland
On Tue, Nov 1, 2011 at 9:56 AM, Martin Grigorov <mg...@apache.org> wrote:
> See http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/asemail/
>
> On Tue, Nov 1, 2011 at 11:01 AM, Martin Grigorov <mg...@apache.org> wrote:
>> I'll extend the examples with this use case soon
>>
>> On Tue, Nov 1, 2011 at 3:58 AM, mango-object
>> <he...@objectconsulting.com.au> wrote:
>>> we are trying to get the rendered output of a wicket panel (inside the
>>> current page) into a string variable so that it can be embedded into a email
>>> or let the user edit it in an editor such as TinyMCE.
>>>
>>> I found this post that is really helpful, but we only need the output of a
>>> panel, not the current page.
>>>
>>> http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tt2993717.html
>>>
>>> first thought would be to get the output from the whole page and parse and
>>> extract the panel content, but is there a better way?
>>>
>>> thanks for any help
>>>
>>> --
>>> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Getting-the-html-output-of-a-wicket-panel-tp3962290p3962290.html
>>> Sent from the Users forum 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
>>>
>>>
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Getting the html output of a wicket panel
Posted by Martin Grigorov <mg...@apache.org>.
See http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/asemail/
On Tue, Nov 1, 2011 at 11:01 AM, Martin Grigorov <mg...@apache.org> wrote:
> I'll extend the examples with this use case soon
>
> On Tue, Nov 1, 2011 at 3:58 AM, mango-object
> <he...@objectconsulting.com.au> wrote:
>> we are trying to get the rendered output of a wicket panel (inside the
>> current page) into a string variable so that it can be embedded into a email
>> or let the user edit it in an editor such as TinyMCE.
>>
>> I found this post that is really helpful, but we only need the output of a
>> panel, not the current page.
>>
>> http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tt2993717.html
>>
>> first thought would be to get the output from the whole page and parse and
>> extract the panel content, but is there a better way?
>>
>> thanks for any help
>>
>> --
>> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Getting-the-html-output-of-a-wicket-panel-tp3962290p3962290.html
>> Sent from the Users forum 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
>>
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Getting the html output of a wicket panel
Posted by Martin Grigorov <mg...@apache.org>.
I'll extend the examples with this use case soon
On Tue, Nov 1, 2011 at 3:58 AM, mango-object
<he...@objectconsulting.com.au> wrote:
> we are trying to get the rendered output of a wicket panel (inside the
> current page) into a string variable so that it can be embedded into a email
> or let the user edit it in an editor such as TinyMCE.
>
> I found this post that is really helpful, but we only need the output of a
> panel, not the current page.
>
> http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tt2993717.html
>
> first thought would be to get the output from the whole page and parse and
> extract the panel content, but is there a better way?
>
> thanks for any help
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Getting-the-html-output-of-a-wicket-panel-tp3962290p3962290.html
> Sent from the Users forum 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
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org