sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Munteanu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SLING-6884) Sling Servlet get is lowering case html markup required by angular 2 binding
Date Sat, 27 May 2017 07:29:04 GMT

     [ https://issues.apache.org/jira/browse/SLING-6884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Munteanu updated SLING-6884:
-----------------------------------
    Affects Version/s:     (was: Servlets Get 2.1.14)

> 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
>            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)

Mime
View raw message