You just need to put something after the first closing tag and before
the last opening one.

For the first case it is something like (not tested, and better use
compiled Pattern):

String replaced = original.replaceAll("^(.*?>])(.*)", "$1"+theComment + "$2");

Once again I agree that having the two additional methods in
Behavior.java will simplify these use cases.

On Tue, Oct 23, 2012 at 11:55 AM, Decebal Suiu <decebal.s...@asf.ro> wrote:
> AbstractTransformerBehavior can be a solution but I must parse the output to
> retrieve the component tag body. For a particular situation (Jesse Long
> situation) to parse the output it's not a big deal but in my situation
> (something general for all my markup containers) I don't see a solution.
> Maybe I suppose that all my container markups are divs (<div ...></div>). Is
> it an util class in wicket that can help me with the parsing operation? I
> want to retrieve the component tag body only.
>
> Best regards,
> Decebal
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/something-similar-with-setOutputMarkupContainerClassName-tp4653202p4653252.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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

Reply via email to