How to use EL bind of urlrewrite

Splash Forums Rewrite Users How to use EL bind of urlrewrite

This topic contains 12 replies, has 3 voices, and was last updated by  dolphincn 9 years, 11 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
  • #18141


    I used jsf 2.1 and rurlewrite 1.0 snapshot.

    I add a rule,







    but output following error:

    Jan 28, 2012 2:28:26 PM com.ocpsoft.rewrite.bind.El

    WARNING: No instances of [com.ocpsoft.rewrite.spi.ExpressionLanguageProvider] were configured. EL support is disabled.


    Could you post the dependencies you added to your project. I guess you are missing a maven dependency that includes a ExpressionLanguageProvider. Are you using CDI, Spring or plain JSF?



    I used netbeans 7.1 and tomcat 7.1, so I didn’t use CDI and spring,just plain jsf.

    the lib inlucde:rewrite-servlet.jar,jsf 2.1 dependencies. no other jar.



    I found “rewrite-integration-cdi” has the function, but the lib need jboss lib.

    I don’t want to add jboss lib.


    As far as I can see there are currently only ExpressionLanguageProvider implementations for CDI and Spring.

    @lincoln: What about adding an ExpressionLanguageProvider for JSF. I think this would make sense, doesn’t it?

    @dolphincn: Just a side node from me. If you start a new project you should really don’t use only plain JSF for it. Adding CDI or Spring to you project to manage your beans totally makes sense.



    Thank Christian Kaltepoth. My project doesn’t need CDI and Spring.


    Yes, right now the only options are cdi or spring. The only jboss dependency is solder.

    We can add plain jsf support, but its not there yet. It wasnt implemented because I dont recommend using plain jsf beans. Its of course your choice though :) but the jsf bean container is deprecated.


    Perhaps we should note that of cause you could implement your own ExpressionLanguageProvider for JSF. This should be very easy as you can get everything you need from the FacesContext. Then just register your implementation like described here:

    Let us know if you need any further information! :)



    Thank Lincoln and Christian.



    I found there have a solution about set parameter value to managedbean property of jsf via set.


    If you want to do this, just use PrettyFaces…

    PrettyUrlPhaseListener is not a very complete solution, your original URLs will be exposed in rendered page HTML and forms, redirects will not display the correct location either.



    Thank you very much.

Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘Rewrite Users’ is closed to new topics and replies.

Comments are closed.