Support JSF 2.1

Description

JSF WABs using tag libraries from other bundles do not currently work out of the box.

See e.g. WarJSFPrimefacesIntegrationTest.

(The test misleadingly passes, but in fact it only checks that <panelGrid> gets rendered verbatim instead of being processed by PrimeFaces.)

In particular, the following JSF 2.1 and Servlet 3.0 requirements do not work at the moment:

  • Discovery of the ServletContainerInitializer of the JSF implementation

  • Discovery of META-INF/faces-config.xml of the taglib bundle

  • Discovery of META-INF/*.taglib.xml of the taglib bundle.

  • Loading static resources from META-INF/resources/ of the taglib bundle.

Environment

None

Activity

Show:
Achim Nierbeck
August 28, 2013, 8:15 PM

yeah, call me "old-school" though a std. JSP without JSF extras does work and the taglib "crawler" which scans through all connected bundles does provide them.
This did work for and to my knowledge it still does.
Does your test work with the 4.0.0-SNAPSHOT ( branch)?

Achim Nierbeck
October 29, 2013, 9:25 PM

fix for trunk

Branch: refs/heads/master
Home: https://github.com/ops4j/org.ops4j.pax.web
Commit: 1e0c019a72733d9d4d8321f9d54c69d47d116ff2
https://github.com/ops4j/org.ops4j.pax.web/commit/1e0c019a72733d9d4d8321f9d54c69d47d116ff2
Date: 2013-10-29 (Tue, 29 Oct 2013)

Achim Nierbeck
November 1, 2013, 8:35 PM

Branch: refs/heads/pax-web-3.0.x
Home: https://github.com/ops4j/org.ops4j.pax.web
Commit: 771a23f7fca62e47d1c947ca6407d52ab629b0a8
https://github.com/ops4j/org.ops4j.pax.web/commit/771a23f7fca62e47d1c947ca6407d52ab629b0a8
Date: 2013-11-01 (Fri, 01 Nov 2013)

Achim Nierbeck
November 1, 2013, 8:35 PM

Merged the branch to master and 3.0.x

Guillaume Nodet
November 27, 2013, 4:13 PM

Note that the OSGi/WAB spec is quite clear and I think the current pax-web implementation does not follow the spec.
It seems to me that the spec, paragraph 128.3.7 says that TLDs can only discovered in the bundle class space, so scanning all transitively wired bundles for tld seems wrong (though I fully understand the idea beneath).

Assignee

Harald Wellmann

Reporter

Harald Wellmann

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure