Can you define an <h:messages> on your page just to make sure? - Brendan
-----Original Message----- From: rosalba bochicchio [mailto:[EMAIL PROTECTED] Sent: Thursday, October 20, 2005 10:27 AM To: MyFaces Discussion Subject: RE: MYFACES-TILES NAVIGATION PROBLEM I've no h:messagges in my page but logging is enabled at level DEBUG The only thing I could notice is that when clicking on the links (or command buttons)not working nothing is logged. I mean ...while whe clicking on running links I can see (in the log file) something like 20 ott 2005;16:51:01|{ExecuteThread: '14' for queue: 'weblogic.kernel.Default'}| handleNavigation fromAction=null outcome=go_pageUser toViewId =/pages/User.jsp redirect=false when I click on the "bad link" nothing is printed... Rosalba --- "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> wrote: > Hmm. Maybe JSF is getting some other kind of error > before your method > is invoked. Do you have <h:messages> in your page > to display any errors > that it may be encountering? Do you have logging > enabled? > > - Brendan > > -----Original Message----- > From: rosalba bochicchio > [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 20, 2005 10:09 AM > To: MyFaces Discussion > Subject: RE: MYFACES-TILES NAVIGATION PROBLEM > > > Just to avoid page validation...I've re-created the > same pages without tiles and both links and command > buttons work now. This behaviour makes me think it > is > a problem related to tiles but I can''t understand > which one!! > > Rosalba > > --- "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > wrote: > > > That problem sounds unrelated to Tiles, unless I'm > > missing something. > > > > Out of curiosity, why are you specifying > > immediate="true"? > > > > - Brendan > > > > -----Original Message----- > > From: rosalba bochicchio > > [mailto:[EMAIL PROTECTED] > > Sent: Thursday, October 20, 2005 2:27 AM > > To: MyFaces Discussion > > Subject: RE: MYFACES-TILES NAVIGATION PROBLEM > > > > > > Actually I need both an action like the one you > said > > and an action like > > > > action="#{userPageBean.getGroupName}" > > > > where userPageBean is the backing bean defined for > > the > > jsf page I'm referring to, and getGroupName is a > > method of bean accessing to the data base. > > Here's the whole code for the commandButton: > > > > <h:commandButton immediate="true" style=" > > font-family: 'Georgia'; font-size: 12px; > font-style: > > italic; font-weight: bold; " > > actionListener="#{userPageBean.modifyUsrPassword}" > > > action="#{userPageBean.getGroupName}" > > value="Modifica > > Password "> </h:commandButton> > > > > Neither the method referred by "actionListener" > nor > > the one referred by "action" are called. I can't > > understand why!! > > > > Rosalba > > > > --- "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > wrote: > > > > > If you want your action to lead directly to > > another > > > page, you say > > > ...action="displayMyPage"..., where > displayMyPage > > is > > > defined as some > > > sort of <from-outcome> in your faces-config.xml > > file > > > that leads to a > > > /tiles/myTile <to-view-id>. > > > > > > In other words, your action does not specify the > > > page directly; rather, > > > it specifies a from-outcome that is defined in > > your > > > faces-config.xml > > > file to lead to the next page. > > > > > > Was that your question? > > > > > > - Brendan > > > > > > -----Original Message----- > > > From: rosalba bochicchio > > > [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, October 19, 2005 11:36 AM > > > To: MyFaces Discussion > > > Subject: RE: MYFACES-TILES NAVIGATION PROBLEM > > > > > > > > > Thanks so much for your answer, Brendan! > > > Your solution works fine when I want to put my > > > navigation rules only in the faces-config.xml > > file. > > > > > > But I have another navigation problem when using > > > TILES > > > with MyFaces. I've been trying everything but > > > nothing > > > seems to be the right way. > > > The problem is the following one: > > > I have a fixed layout and a body content that > > > changes. > > > I used tiles to do that. > > > But when I try to put a link (h:commandLink or > > > h:commandButton) on the content page (the one > that > > > changes) nothing happens when I click on the > link > > or > > > on the button. I put some debug prints in the > > > backing > > > bean I want to be invoked when pushing the > button > > or > > > clicking on the link but they're never printed. > > > I added to my log4j.properties file the line > > > > > > log4j.logger.org.apache.myfaces.application.NavigationHandlerImpl=DEBUG > > > as kindly suggested by another member of the > > > community, and nothing is printed on log file! > > > I'm using MyFaces 1.0.9 but have the same > problem > > > with > > > version 1.1.0 > > > > > > Have got any idea? Any suggestion would be > really > > > appreciated. > > > > > > Rosalba > > > > > > --- "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > > wrote: > > > > > > > You cannot do that directly, but you can > forward > > > to > > > > a JSF page that has > > > > a <tiles:insert definition="..."/> statement > in > > > it. > > > > > > > > What we did (to avoid having to have a JSF > page > > > for > > > > each tile > > > > definition) was to define a generic JSP that > we > > > > defined as a Servlet > > > > mapped to any URI beginning with /tiles/. The > > > > generic JSP stripped off > > > > the /tiles/ prefix and assumed that the text > > that > > > > followed was the name > > > > of a tile, so it did a <tiles:insert > > > > definition="<%=tilePath%>" > > > > flush="false"/> with tilePath equal to the > part > > of > > > > the uri that followed > > > > /tiles/. > > > > > > > > Once we did that, we could have our views in > our > > > > faces-config.xml file > > > > reference any tiles, provided these references > > had > > > > the /tiles/ prefix > > > > attached to them. > > > > > > > > - Brendan > > > > > > > > -----Original Message----- > > > > From: rosalba bochicchio > > > > [mailto:[EMAIL PROTECTED] > > > > Sent: Wednesday, October 19, 2005 9:10 AM > > > > To: [email protected] > > > > Subject: MYFACES-TILES NAVIGATION PROBLEM > > > > > > > > > > > > Hi, > === message truncated === __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/

