[
https://issues.apache.org/jira/browse/SLING-6884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16027265#comment-16027265
]
Gustavo Doriguetto commented on SLING-6884:
-------------------------------------------
Hi [~rombert], i started debugging the issue i'm facing and apparently the
problem lies in a html parser implementation wrapped within
SlingHttpServletResponse.
Since the problem have no relation with Servlets Get 2.1.14 (as you
demonstrated) i will close the issue.
Thank you for the support.
> Sling Servlet get is lowering case html markup required by angular 2 binding
> ----------------------------------------------------------------------------
>
> Key: SLING-6884
> URL: https://issues.apache.org/jira/browse/SLING-6884
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Get 2.1.14
> Reporter: Gustavo Doriguetto
>
> Sling Servlet get is lowering case (parsing?) angular 2 bindings on response
> payload markup
> Sample code:
> {code:java}
> @SlingServlet(paths = { "/bin/test" }, methods = { "GET" })
> public class SimpleServlet extends SlingSafeMethodsServlet {
> @Override
> protected void doGet(final SlingHttpServletRequest req,
> final SlingHttpServletResponse resp) throws ServletException,
> IOException {
> resp.setContentType("text/html");
> PrintWriter out = resp.getWriter();
> out.println("<html>");
> out.println("<body>");
> out.println("<nav>");
> out.println("<a [routerLink]=\"['/Home']\">Home</a>");
> out.println("</nav>");
> out.println("</body>");
> out.println("</html>");
> }
> }
> {code}
> The response payload:
> {noformat}
> <html>
> <body>
> <nav>
> <a [routerlink]="['/Home']">Home</a>
> </nav>
> </body>
> </html>
> {noformat}
> Please note the lower case "l" on "routerLink".
> I have the same results on:
> - Chrome
> - FF
> - IE
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)