Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cargotracker-dev] Swapping to Production stage for Faces in web.xml

Can the warning be addressed? The dev mode produces better error messages, which is appropriate as our project is actually most aligned with the development phase of Jakarta EE applications.
 

From: Chanun Ong <ocseal@xxxxxxxxx>
Sent: Friday, August 12, 2022 4:21 PM
To: cargotracker developer discussions <cargotracker-dev@xxxxxxxxxxx>; reza_rahman@xxxxxxxxx <reza_rahman@xxxxxxxxx>
Subject: Swapping to Production stage for Faces in web.xml
 
Hi Reza,

I was wondering if it would be possible to switch the Faces project stage from Development to Production in the web.xml. There is a fundamental difference between Mojarra (what Payara is using) and MyFaces (what Liberty uses) that is causing a repeated warning with <f:metadata>. Using the application in Production mode stops the warnings from appearing for the user. Let me know if you think that's a viable option; if not, it would be okay for me to add a section in the readme about ignoring that warning. 

<!-- Overriding system level defaults is a decent usage of XML. -->

<context-param>

<param-name>javax.faces.PROJECT_STAGE</param-name>

<param-value>Production</param-value>

</context-param>


Thanks!

Chanun

Back to the top