You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Felipe Jaekel <fk...@gmail.com> on 2014/03/27 13:17:55 UTC
Generic value for org.apache.myfaces.EXPRESSION_FACTORY?
I was trying o set org.apache.myfaces.SUPPORT_JSP_AND_FACES_EL to false.
The goal is to improve performance and solve the problem I mentioned
here<http://stackoverflow.com/questions/22641696/jsf-how-to-redirect-to-404-error-page-without-jstl>,
but I was getting this error: HTTP Status 500 - No Factories configured for
this Application.
After a lot of search I found this
post<http://grokbase.com/p/myfaces/users/13b1tv2m9n/performance-params>,
where it's mentioned that I would need to
set org.apache.myfaces.EXPRESSION_FACTORY. I think MyFaces documentation is
great, much better than Mojarra's, but shouldn't be a note about this
here<http://myfaces.apache.org/core22/myfaces-impl/webconfig.html#org_apache_myfaces_SUPPORT_JSP_AND_FACES_EL>
?
Anyway, as I'm using Tomcat, I configured
org.apache.myfaces.EXPRESSION_FACTORY
with org.apache.el.ExpressionFactoryImpl. Its working fine, but I didn't
wan't to make my webapp Tomcat dependent, so is there a MyFaces class that
can delegate to the appropriated container class?
Thanks
Re: Generic value for org.apache.myfaces.EXPRESSION_FACTORY?
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Wed, Apr 9, 2014 at 1:30 PM, Howard W. Smith, Jr. <smithh032772@gmail.com
> wrote:
> s JUEL reliable? JUEL works well. you will have to 'migrate' your XHTML to
> JUEL.
>
> hmmm, i think I had to add '()' (parentheses) to my actionListener="..."
> or action="...". Below is a quick search that I did via TextPad against my
> project; below is first few occurrences.
>
> Searching for: actionlistener
> header_menubar.xhtml(74):
> actionListener="#{pf_rollingStockController.prepareList()}"
> header_menubar.xhtml(77):
> actionListener="#{pf_customerController.prepareList()}"
> header_menubar.xhtml(80):
> actionListener="#{pf_chargesController.prepareList()}"
> header_menubar.xhtml(83):
> actionListener="#{pf_serviceController.prepareList()}"
> header_menubar.xhtml(86):
> actionListener="#{pf_driverController.prepareList()}"
> header_menubar.xhtml(89):
> actionListener="#{pf_vehicleController.prepareList()}"
> header_menubar.xhtml(92):
> actionListener="#{pf_ordersController.prepareUtilitiesMenu()}"
> header_menubar.xhtml(96):
> actionListener="#{pf_usersController.prepareList()}"
> header_menubar.xhtml(100):
> actionListener="#{pf_usersController.prepareChangePassword()}"
> header_menubar.xhtml(103):
> actionListener="#{messengerBean.prepareMessengerForUser()}"
>
> Hmmm, i think if you search google for
>
> site:forum.primefaces.org high expression language
>
> then you may see the forum topic where Thomas recommended JUEL (and
> MyFaces), and I mentioned some of my [migration] challenges. :)
>
For multiple-file-search-and-replace, I use TextPad multiple file
search-and-replace. I used TextPad when I migrated my app to use JUEL (and
MyFaces). :)
Re: Generic value for org.apache.myfaces.EXPRESSION_FACTORY?
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
Is JUEL reliable? JUEL works well. you will have to 'migrate' your XHTML to
JUEL.
hmmm, i think I had to add '()' (parentheses) to my actionListener="..." or
action="...". Below is a quick search that I did via TextPad against my
project; below is first few occurrences.
Searching for: actionlistener
header_menubar.xhtml(74):
actionListener="#{pf_rollingStockController.prepareList()}"
header_menubar.xhtml(77):
actionListener="#{pf_customerController.prepareList()}"
header_menubar.xhtml(80):
actionListener="#{pf_chargesController.prepareList()}"
header_menubar.xhtml(83):
actionListener="#{pf_serviceController.prepareList()}"
header_menubar.xhtml(86):
actionListener="#{pf_driverController.prepareList()}"
header_menubar.xhtml(89):
actionListener="#{pf_vehicleController.prepareList()}"
header_menubar.xhtml(92):
actionListener="#{pf_ordersController.prepareUtilitiesMenu()}"
header_menubar.xhtml(96):
actionListener="#{pf_usersController.prepareList()}"
header_menubar.xhtml(100):
actionListener="#{pf_usersController.prepareChangePassword()}"
header_menubar.xhtml(103):
actionListener="#{messengerBean.prepareMessengerForUser()}"
Hmmm, i think if you search google for
site:forum.primefaces.org high expression language
then you may see the forum topic where Thomas recommended JUEL (and
MyFaces), and I mentioned some of my [migration] challenges. :)
On Wed, Apr 9, 2014 at 1:22 PM, Felipe Jaekel <fk...@gmail.com> wrote:
> Is it reliable? Are there any migration notes?
>
> Thanks
>
>
> 2014-03-27 19:37 GMT-03:00 Howard W. Smith, Jr. <sm...@gmail.com>:
>
> > On Thu, Mar 27, 2014 at 8:22 AM, Thomas Andraschko <
> > andraschko.thomas@gmail.com> wrote:
> >
> > > I just deliver JUEL in all my apps and setting the EXPRESSION_FACTORY
> to
> > > JUEL.
> > >
> >
> > +1 me too.
> >
> > <context-param>
> > <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name>
> > <param-value>de.odysseus.el.ExpressionFactoryImpl</param-value>
> > </context-param>
> >
> > <context-param>
> >
> <param-name>org.apache.myfaces.EL_RESOLVER_COMPARATOR</param-name>
> >
> >
> >
> <param-value>org.apache.myfaces.el.unified.OpenWebBeansELResolverComparator</param-value>
> > </context-param>
> >
> > <context-param>
> >
> > <param-name>org.apache.myfaces.SUPPORT_JSP_AND_FACES_EL</param-name>
> > <param-value>false</param-value>
> > </context-param>
> >
>
Re: Generic value for org.apache.myfaces.EXPRESSION_FACTORY?
Posted by Felipe Jaekel <fk...@gmail.com>.
Is it reliable? Are there any migration notes?
Thanks
2014-03-27 19:37 GMT-03:00 Howard W. Smith, Jr. <sm...@gmail.com>:
> On Thu, Mar 27, 2014 at 8:22 AM, Thomas Andraschko <
> andraschko.thomas@gmail.com> wrote:
>
> > I just deliver JUEL in all my apps and setting the EXPRESSION_FACTORY to
> > JUEL.
> >
>
> +1 me too.
>
> <context-param>
> <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name>
> <param-value>de.odysseus.el.ExpressionFactoryImpl</param-value>
> </context-param>
>
> <context-param>
> <param-name>org.apache.myfaces.EL_RESOLVER_COMPARATOR</param-name>
>
>
> <param-value>org.apache.myfaces.el.unified.OpenWebBeansELResolverComparator</param-value>
> </context-param>
>
> <context-param>
>
> <param-name>org.apache.myfaces.SUPPORT_JSP_AND_FACES_EL</param-name>
> <param-value>false</param-value>
> </context-param>
>
Re: Generic value for org.apache.myfaces.EXPRESSION_FACTORY?
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Thu, Mar 27, 2014 at 8:22 AM, Thomas Andraschko <
andraschko.thomas@gmail.com> wrote:
> I just deliver JUEL in all my apps and setting the EXPRESSION_FACTORY to
> JUEL.
>
+1 me too.
<context-param>
<param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name>
<param-value>de.odysseus.el.ExpressionFactoryImpl</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.EL_RESOLVER_COMPARATOR</param-name>
<param-value>org.apache.myfaces.el.unified.OpenWebBeansELResolverComparator</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.SUPPORT_JSP_AND_FACES_EL</param-name>
<param-value>false</param-value>
</context-param>
Re: Generic value for org.apache.myfaces.EXPRESSION_FACTORY?
Posted by Thomas Andraschko <an...@gmail.com>.
AFAIK you can't.
I just deliver JUEL in all my apps and setting the EXPRESSION_FACTORY to
JUEL.
2014-03-27 13:17 GMT+01:00 Felipe Jaekel <fk...@gmail.com>:
> I was trying o set org.apache.myfaces.SUPPORT_JSP_AND_FACES_EL to false.
> The goal is to improve performance and solve the problem I mentioned
> here<
> http://stackoverflow.com/questions/22641696/jsf-how-to-redirect-to-404-error-page-without-jstl
> >,
> but I was getting this error: HTTP Status 500 - No Factories configured for
> this Application.
>
> After a lot of search I found this
> post<http://grokbase.com/p/myfaces/users/13b1tv2m9n/performance-params>,
> where it's mentioned that I would need to
> set org.apache.myfaces.EXPRESSION_FACTORY. I think MyFaces documentation is
> great, much better than Mojarra's, but shouldn't be a note about this
> here<
> http://myfaces.apache.org/core22/myfaces-impl/webconfig.html#org_apache_myfaces_SUPPORT_JSP_AND_FACES_EL
> >
> ?
>
> Anyway, as I'm using Tomcat, I configured
> org.apache.myfaces.EXPRESSION_FACTORY
> with org.apache.el.ExpressionFactoryImpl. Its working fine, but I didn't
> wan't to make my webapp Tomcat dependent, so is there a MyFaces class that
> can delegate to the appropriated container class?
>
> Thanks
>