For those interested in the code: http://issues.apache.org/bugzilla/show_bug.cgi?id=31842
sean On Wed, 20 Oct 2004 10:52:27 -0400, Sean Schofield <[EMAIL PROTECTED]> wrote: > Mark, > > Thanks for the info. Any info at this stage may prove helpful so its > appreciated. I made some progress that I wanted to share with you > (and the rest of the mailing list.) > > I took a look at the lastest source code for struts-faces and noticed > some new stuff. Craig has a ViewHandlerImpl class that he configures > through faces-config.xml. This lead me back to the spec where I > discovered that you can add your own class to "decorate" the default > ViewHandler of whatever JSF provider you are using (so this would > apply to myfaces as well as the RI which I'm using). > > Anyways, I took the ViewHandlerImpl in struts-faces and I tweaked it > by overriding the getActionURL method. For now I have hard-coded the > return value of the method to point to where I wanted my page to > submit to. Voila! It worked! > > The trick will be to communicate (presumably through the FacesContext) > to the decorated ViewHandler. I'm going to take a longer look at how > struts-faces is doing things and will report back on any ideas I have. > > I also wanted to address what I found when I used Craig's suggestion > of just getting my application to work with struts-faces (and ignore > struts-chain.) I was unable to get my example to work. I think > because for some reason my requests to generate my main page were not > passing through the FacesTilesRequestProcessor. I'm going to examine > Craig's second example app more closely (and get it working!) and see > if I can find the reson. > > > sean > > > > On Wed, 20 Oct 2004 09:59:58 +0200, Mark Lowe <[EMAIL PROTECTED]> wrote: > > Sean > > > > I've been trying the same thing (use struts for tiles and the rest jsf) > > here's what I've found in case it useful. > > > > Myfaces has a tiles handler and seems to work okay, (see > > www.myfaces.org) . Not wanting to use myfaces for the core, as its a > > beta version, I just use the my faces components with standard sun jsf, > > which works great. > > > > Oh i thought perhaps i can adapt the code in myfaces and get it working > > with sun's jsf. No such luck i'm afraid, I still need to look into the > > JSF source to identify the precise problem but it basically has none of > > attempting to change the externalContext.dispatch() once running. > > (externalContext.disatch() same as > > context.getRequestDispatcher(path).forward(request,response). > > > > The same problem naturally occurs when using tiles support in spring. > > > > I've thought about the struts-faces lib but i'm trying to hang on until > > a stable version comes out. I really like the way the jsp tiles handler > > works with myfaces, if I have any joy getting this working then I'll > > post how i did it (after looking at the jsf source). > > > > Mark > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]