Error url with several parameters [No error in rewrite]

Splash Forums Rewrite Users Error url with several parameters [No error in rewrite]

This topic contains 1 reply, has 2 voices, and was last updated by  Christian Kaltepoth 2 weeks, 3 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27428

    Jakofff
    Participant

    I have this code:

    addRule(Join.path("/modulo/{opcion}/{modulo}/{accion}").to("/vistas/{modulo}/{accion}_{modulo}.xhtml"))
                   .where("opcion").bindsTo(PhaseBinding.to(El.property("#{menu.opcion}")).after(PhaseId.RESTORE_VIEW))
                   .where("modulo").bindsTo(PhaseBinding.to(El.property("#{menu.modulo}")).after(PhaseId.RESTORE_VIEW))
                   .where("accion").bindsTo(PhaseBinding.to(El.property("#{menu.accion}")).after(PhaseId.RESTORE_VIEW));

    but generates this error:

    java.lang.IllegalArgumentException: [/sipc/modulo/#{opcion}/#{modulo}/listado] is not a valid URL fragment. Consider encoding relevant portions of the URL with [class org.ocpsoft.urlbuilder.util.Encoder]

    just take the third parameter takes the value!

    someone who can help me solve this problem?, i have version 2.0.12.Final, and with 3.0.0.Alpha10 of maven repostory, it does not work…


    The error in reading was properties

    • This topic was modified 2 weeks, 3 days ago by  Jakofff.
    #27430

    Could you try to use:

    El.property("menu.opcion")
    

    instead of:

    El.property("#{menu.opcion}")
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Comments are closed.