jsr372-experts@javaserverfaces-spec-public.java.net

[jsr372-experts] HTML served as a resource

From: Kito Mann <kito.mann_at_virtua.com>
Date: Wed, 14 Sep 2016 11:39:44 -0400

Hello experts,

I'm working on my Web Components and JSF
<https://oracle.rainfocus.com/scripts/catalog/oow16.jsp?event=javaone&search=jsf%20web%20components%20&search.event=javaone>
presentation for JavaOne next week. One of the things that would help for
integrating JSF with libraries like Polymer <http://www.polymer-project.org>
(which uses HTML Imports <http://w3c.github.io/webcomponents/spec/imports/>),
is the ability to serve an HTML file as a resource (complete with parsing
of expressions), just like a CSS or a JavaScript file.

This is somewhat possible now:

<link rel="import" href="#{resource['jsf-polymer:take1.html']}"/>

However, it looks like all JSF expressions, etc., are being stripped. So, I
have two questions: (a) does anyone know why the expressions are being
stripped, and how to change that behavior, and (b) has anyone given thought
to serving stateless view "fragments" as resources?
___

Kito D. Mann | @kito99 | Author, JSF in Action
Web Components, Polymer, JSF, PrimeFaces, Java EE, and Liferay training and
consulting
Virtua, Inc. | virtua.tech
JSFCentral.com | @jsfcentral | knowesis.io
<http://knowesis.io/web/webcomponents> - fresh Web Components info
+1 203-998-0403

* Listen to the Enterprise Java Newscast: *http://
<http://blogs.jsfcentral.com/JSFNewscast/>enterprisejavanews.com
<http://ww.enterprisejavanews.com>*