[
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
|
As long as it works in Payara, it's fine.
On 8/17/2022 1:03 PM, Chanun Ong wrote:
Hi Reza,
Do you think switching <h:body> to
<body> and adding the <f:view> tag in the
admin.xhtml and public.xhtml templates would be viable in the
Payara master branch? Just wanted to inquire as Open Liberty
needs these tags to render some pages.
Best,
Chanun
Any change that still works with Payara
is totally fine. This seems like possibly minor
syntax fixes.
Hi Hantsy,
Yes, I had previously been using a similar
approach to avoid the error but wanted to remove as
many changes to the source code as possible so that
a potential merge to the master branch in the future
is smooth. Temporarily that approach works well, so
I'll re-evaluate whether it seems better for the OL
branch to apply that fix for now or add some
documentation to the readme about the warning.
Thanks!
Chanun
Hi Reza,
For cargo simply wrap the h:head and h:body
in a f:view in the base template file.
<f:vew>
<h:head>
<h:body>
<f:view>
Hi Reza,
From what I know, the warning can't be
easily resolved due to it being caused by a
difference in behavior related to
<f:metadata> between MyFaces and
Mojarra. I can add a section to the readme
for the Open Liberty section letting users
know to ignore it.
Thanks!
Chanun
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.
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
_______________________________________________
cargotracker-dev mailing list
cargotracker-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cargotracker-dev
_______________________________________________
cargotracker-dev mailing list
cargotracker-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cargotracker-dev
_______________________________________________
cargotracker-dev mailing list
cargotracker-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cargotracker-dev
_______________________________________________
cargotracker-dev mailing list
cargotracker-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cargotracker-dev
_______________________________________________
cargotracker-dev mailing list
cargotracker-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cargotracker-dev