Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [faces-dev] Move Facelets to a standalone spec

I picked up something about Ivar wanting to drop Facelets from MVC

Like EL, I think facelets can be extracted from Faces,  only includes basic template Java codes and facelets taglib(ui), excludes Faces components(h, f, composite, etc)
I remember  in the Mastering JSF book, it describes Facelets having its own standalone lifecycle to render views.
---

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 Mon, Feb 20, 2023 at 10:59 PM Arjan Tijms <arjan.tijms@xxxxxxxxxxx> wrote:
Hi,

On top of the current discussion, I picked up something about Ivar wanting to drop Facelets from MVC. So that would make Faces the only user again of it.

Ivar, can you comment?

Kind regards,
Arjan Tijms



On Sun, 19 Feb 2023 at 17:08, reza_rahman@xxxxxxxxx <reza_rahman@xxxxxxxxx> wrote:
This is essentially what my instinct was. It’s a nice to have, but there probably isn’t a significant enough problem to solve given resources and priorities. I suggest filing a low priority issue and leaving it at that for now.
 

From: faces-dev <faces-dev-bounces@xxxxxxxxxxx> on behalf of Thomas Andraschko <tandraschko@xxxxxxxxxx>
Sent: Sunday, February 19, 2023 10:55 AM
To: faces developer discussions <faces-dev@xxxxxxxxxxx>
Subject: Re: [faces-dev] Move Facelets to a standalone spec
 
I see
but IMO its really hard and time intensiv to cut facelets out of Faces
Facelets was designed as a template engine for Faces only and the code of the Faces impl and facelets is deeply married
In MyFaces we did many adjustments over the time to the initial facelets import

I refactored the whole MyFaces codebase the last years, i sadly know what i talking about - everything is quite complex with state saving and so on, which wouldnt even required for MVC




Am So., 19. Feb. 2023 um 15:27 Uhr schrieb hantsy bai <hantsy@xxxxxxxxx>:
Check my example, https://github.com/hantsy/jakartaee-mvc-sample/blob/master/src/main/webapp/WEB-INF/views/add.xhtml, which uses Faceslet in a MVC example,  almost only use Facelets tag to assemble the page layout.

I do not think the core Facelets taglib is bound to Faces, I know the faces h and f are bound to Faces components, these are not required in a MVC example(I do not use them in my example).

---

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 Sun, Feb 19, 2023 at 8:40 PM Thomas Andraschko <tandraschko@xxxxxxxxxx> wrote:
i dont think its easy possible.
Also checking samples how MVC uses facelets, you see stuff like h:head and so on. This is the whole component API of faces. components + facelets is like 75% of the codebase.

How does exactly integrate MVC facelets/faces?

Am So., 19. Feb. 2023 um 05:19 Uhr schrieb reza_rahman@xxxxxxxxx <reza_rahman@xxxxxxxxx>:
I recall Arjan mentioning this some time ago. What are current thoughts on it? Is this worth the effort?
 

From: faces-dev <faces-dev-bounces@xxxxxxxxxxx> on behalf of hantsy bai <hantsy@xxxxxxxxx>
Sent: Saturday, February 18, 2023 9:58 PM
To: faces-dev@xxxxxxxxxxx <faces-dev@eclipseorg>
Subject: [faces-dev] Move Facelets to a standalone spec
 
Currently Facelet is used in Faces, also can be used in MVC(not neutered Jakarta release, it supports multiple templates, and uses Faceslets as the defacto template engine), but when using  Facelets template in MVC, we have to add the whole Faces.

If possible to move it out of Faces and make it a standalone template engine, thus it can be used freely in Spring Mvc, MVC spec.

The mail spec also can add a specific MailTemplate CDI bean based on Facelets to simplify the mail sending like the JBoss Seam 3 Mail component.
---

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
_______________________________________________
faces-dev mailing list
faces-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/faces-dev
_______________________________________________
faces-dev mailing list
faces-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/faces-dev
_______________________________________________
faces-dev mailing list
faces-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/faces-dev
_______________________________________________
faces-dev mailing list
faces-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/faces-dev
_______________________________________________
faces-dev mailing list
faces-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/faces-dev

Back to the top