Alex MacFarlane

Greenhorn
+ Follow
since Aug 13, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Alex MacFarlane

We are starting a new JSF project and are having trouble deciding which framework to use for managing the JSF beans. Our choices are pretty open (developers will use Jetty, Production will use Tomcat, we have a service layer that uses spring internally already), but what we really need is a breakdown of what the advantages/disadvantages are for the various frameworks.

Any advice would be most appreciated.
10 years ago
JSF
For all those interested, this is what we have found so far.

  • Templates can be easily dynamically swapped out by using a custom ResourceResolver that overrides the DefaultResourceResolver and is set using the 'facelets.RESOURCE_RESOLVER' context-param.
  • Currently using EL for CSS, looking for a better solution.
  • Suspect that for swapping out view/components we can use event listeners (i.e. PreRenderViewEvent), still looking into this, any tips would be most welcome.

  • 10 years ago
    JSF
    Looking for ideas/concepts on how to perform rendered page fragment caching.

    Seam has one idea, but its very light on details, not very extendable and of course requires seam (http://docs.jboss.org/seam/1.2.0.GA/reference/en/html/cache.html).

    Are there no tools for very high performance web sites using JSF? Or is this a valid technology for our 2-3million unique visitors per day site?
    10 years ago
    JSF
    TL;DR: Looking for ideas on how to do advanced theming in JSF, looking for more than just CSS/image libs tricks, need full ‘view’ customization. Any ideas or concepts would be appreciated.

    We are attempting to build advanced themeing into a new version of our web application, to allow us to use one platform to provide many different brand/white label shops. Specifically, we need to have more customizability than pure CSS+image libraries+localization can provide.

    Has anybody had any experience with this or as any concepts/ideas on one how would do this?

    We are looking at ways we can modify/swap out the view based on runtime configuration, two concepts we have so far are:
  • Augment the JSF life cycle, allowing components to be swapped out with the themed versions as the request is being processed. Seems like a clean way which would provide the ability to provide defaulting if a themed version is missing? One problem, we have no idea how to do this, or if this is even possible, any pointers would be much appreciated.
  • Use includes with EL’s to replace ‘abstract’ the actual components i.e. <ui: include src="login_#{theme.shortname}.xhtml"/>. This is ugly but relatively easy.


  • One of the current proposals is using Spring MVC is to use a custom view resolver to use serve up different templates based on the request domain. However we really want to use a component based framework to take advantages of the benefits it brings.

    Any input would be most welcome and some of us really don’t want to build another shop in Spring MVC!
    10 years ago
    JSF