[
https://issues.apache.org/jira/browse/WICKET-5849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14348797#comment-14348797
]
Nick Pratt edited comment on WICKET-5849 at 3/5/15 2:44 PM:
------------------------------------------------------------
Would it be possible for us to define what types are wrapped in the
StyleAndScriptIdentifiers? Make it default to text/javascript, but allow us to
also register (on Application startup) additional template types, like
"text/template" and "text/x-handlebars-template" (our Handlebars template was
what triggered this issue in the first place - we're using
jquery/Handlebars/json-rest along with Wicket)
Edit:
After looking at the filter you mentioned, I see that we can in fact plugin our
own filters to handle this. Is there any reason that the
StyleAndScriptIdentifiers class is final? Furthermore, if the shouldProcess()
method was made protected, we could subclass and override that method to
accommodate our templating method.
was (Author: nickpratt):
Would it be possible for us to define what types are wrapped in the
StyleAndScriptIdentifiers? Make it default to text/javascript, but allow us to
also register (on Application startup) additional template types, like
"text/template" and "text/x-handlebars-template" (our Handlebars template was
what triggered this issue in the first place - we're using
jquery/Handlebars/json-rest along with Wicket)
> error parsing valid HTML during AJAX refresh
> --------------------------------------------
>
> Key: WICKET-5849
> URL: https://issues.apache.org/jira/browse/WICKET-5849
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.17.0, 6.19.0
> Environment: JDK 8u31, OS X, Chrome
> Reporter: Nick Pratt
> Assignee: Sven Meier
> Attachments: myproject.tar.gz
>
>
> See attached quickstart.
> On initial page load, everything is fine - the TestPanel is parsed correctly
> and displayed. Hit the link to reload the TestPanel via AJAX - wicket is
> getting hung up on the non breaking space {code:html} {code} inside the
> template/script definition.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)