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

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



On Tue, Aug 16, 2022, 09:06 reza_rahman@xxxxxxxxx <reza_rahman@xxxxxxxxx> wrote:
Any change that still works with Payara is totally fine. This seems like possibly minor syntax fixes.
 

From: cargotracker-dev <cargotracker-dev-bounces@xxxxxxxxxxx> on behalf of Chanun Ong <ocseal@xxxxxxxxx>
Sent: Tuesday, August 16, 2022 11:19 AM
To: cargotracker developer discussions <cargotracker-dev@xxxxxxxxxxx>
Subject: Re: [cargotracker-dev] Swapping to Production stage for Faces in web.xml
 
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

On Tue, Aug 16, 2022 at 7:38 AM hantsy bai <hantsy@xxxxxxxxx> wrote:
Hi Reza,

As I know, `f:metadata` should be put in a `f:view`, see my example project: https://github.com/hantsy/jakartaee-faces-sample/blob/master/src/main/webapp/WEB-INF/layout/template.xhtml

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>

---

Regards,

Hantsy Bai

Self-employed consultant, fullstack developer, agile coach, freelancer/remote worker

GitHub: https://github.com/hantsy

Twitter: https://twitter.com/@hantsy

Medium: https://medium.com/@hantsy


On Tue, Aug 16, 2022 at 10:19 PM Chanun Ong <ocseal@xxxxxxxxx> wrote:
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

On Fri, Aug 12, 2022 at 7:56 PM reza_rahman@xxxxxxxxx <reza_rahman@xxxxxxxxx> wrote:
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
_______________________________________________
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

Back to the top