EL in web.xml problem (Wildfly 14)

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
paulkeogh
Posts: 45
Joined: 04 Apr 2013, 23:00
Location: Dublin, Ireland
Contact:

27 Nov 2018, 17:29

The stanza in web.xml of;

Code: Select all

	<context-param>
		<param-name>primefaces.THEME</param-name>
		<param-value>babylon-#{guestPreferences.theme}</param-value>
	</context-param>
Does not work when I deploy to Wildfly 14 - the #{...} expression returns an empty string and the theme of course cannot be found.

The GuestPreference bean is definitely part of the deployed WAR and I have tried both the JSF (default) and CDI managed bean approach but neither works.

Is there something in Wildfly 14 that I explicitly need to enable to get this to work ?
Primefaces 6.2 Atmosphere 2.5
Red Hat Developer Studio 12.9 GA
Wildfly 14
Linux RHEL 7/CentOS 7

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

29 Nov 2018, 13:52

Interesting! Most of our users use Wildfly and an issue like this has not been reported by them. Could you please try sample project instead of .war?

Best Regards,

paulkeogh
Posts: 45
Joined: 04 Apr 2013, 23:00
Location: Dublin, Ireland
Contact:

03 Dec 2018, 13:14

I finally found the problem.

It is a complicated and random interaction of WAR and nested JAR project, Maven builds and JBoss Tools hot deploy - essentially the hot deployer is too hot and deploys the exploded WAR with missing classes - the simple but not obvious solution is to Refresh each JAR project in Maven before building the WAR.

The EL expansion in web.xml could of course not succeed if the GuestPreferences bean is not injected into the container in the first place.
Primefaces 6.2 Atmosphere 2.5
Red Hat Developer Studio 12.9 GA
Wildfly 14
Linux RHEL 7/CentOS 7

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

03 Dec 2018, 15:04

Thanks a lot for the update!

Best Regards,

Post Reply

Return to “Babylon - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest