Hi,

I am trying to integrate a jsf app into Jahia4.1. I can deploy the war file OK, but when I run the app and click on a button that has jsf redirect code behind it, jahia does not create the correct url. I have read that web apps needs to do some response.encodeURL, but I am not sure how this works with jsf redirections.

My redirection code is:

String s=FacesContext.getCurrentInstance().getExternalContext().encodeResourceURL("newPage.jsp");
          try {
FacesContext.getCurrentInstance().getExternalContext().redirect(s);
       } catch(Exception e)
           {
           log(e.toString());
           throw new FacesException(e);

       }

The first time this ran Jahia complained that it could not find 'jsp$Page1'.
javax.servlet.ServletException: Error getting property 'jsp$Page1' from bean of type webapplication2.Page1

I then added
public String getJsp$Page1() {
       return "/newPage.jsp";
   }

to stop the web app falling over.

Has anybody encountered this before ? Jahia generates this url when button is clicked..

http://localhost:8080/jahia/Jahia/op/preview/cache/bypass/pid/1?appid=42_75&appparams=http%3A%2F%2Flocalhost%3A8080%2FJT_myjahiasite%2Ffaces%2FPage1.jsp%2FPage1.jsp&resetAppSession=true#field_42

which has page1 being referenced twice instead of newPage.jsp.


Regards,

Colin.

_________________________________________________________________
Advertisement: Looking to expand your DVD collection? Go to www.tradingpost.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Etradingpost%2Ecom%2Eau%2Fbrowse%2FEntertainment%2DElectronics%2FDVDs%2DCDs%2DVideos%2DRecords%2DTapes%2Floc%5FlocRZSQregtAVSCdistRZSQAVSCstateRZSQ9AVSCregRZSQ%5Fns%5FTrue%5Foff%5F0%5Fsqt%5F1%5Fstpg%5F0%5F%3Freferrer%3Dplace1&_t=758874129&_r=emailtagline_nov&_m=EXT

Reply via email to