wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernesto Reinaldo Barreiro <reier...@gmail.com>
Subject Re: How can i avoid that urls in src attributes are handled by wicket?
Date Tue, 29 Apr 2014 13:49:59 GMT
There was a patch a few releases ago that made wicket scan inside <script>
tags for for components. Try putting the body inside a CDATA section.


On Tue, Apr 29, 2014 at 3:44 PM, Per Newgro <per.newgro@gmx.ch> wrote:

> Hi *,
>
> we have a page which contains markup like this
>
> ...
> <script type="text/x-handlebars" id="template">
>     <img src="{{ url }}" alt="{{ name }}" />
> </script>
> ...
>
> After rendering the page the markup looks like this
> <script type="text/x-handlebars" id="template">
>     <img src="../{{ url }}" alt="{{ name }}" />
> </script>
>
> Please note the ../ before the {{ url }}
>
> Until now i thought that wicket handles only markup within html tags
> containing a wicket:id.
> But it seems that "Wicket gone wild" here :-).
>
> So my question would be: How can i avoid that wicket handles the src
> attribute in "non-wicket" markup?
>
> Thanks for your support
> Per
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message