On Sat, 2008-01-05 at 00:43 +0100, simon wrote:
> JSF presentation layouts (jsp pages, facelets pages, etc) are not meant
> to be programming languages. They are meant only to select specific
> parts of a model for presentation to the user.
> 
> But EL isn't designed for invoking backing bean methods *passing* data
> from the "customers model"; that is crossing the border from "selecting
> data from the model" into a generic computing language.

In hindsight, I may have been a little too simplistic with my earlier
reply. It *is* a good idea to avoid logic in pages, and to restrict them
to just selecting data for display. But sometimes function calls with
parameters *are* useful.

You don't mention which version of JSF you are using.

There is a wiki page here about passing parameters when using JSF1.1:
  http://wiki.apache.org/myfaces/Parameters_In_EL_Functions

I believe it is *much* easier in JSF1.2 (which uses the new "unified
EL"). However I haven't used that myself, so someone else will have to
provide the details on that.

Regards,

Simon


Reply via email to