What should I look for when trying to find why an action is not called?
I have a commandLink in an edit screen, but nothing happens when I click the
button. Well... the company edit page redisplays and conversationId is
disappears from the URL, but I'm not redirected to the start page as I expect.
Once entered, I cannot leave this edit page. No actions are triggered.
I have compared this code with other code that works but I cannot find a
difference. I have put a breakpoint in the action method and it is not entered.
Now I'm out of clues and don't know where to look anymore.
I use latest and greatest of everything, jboss, seam, facelets...
Here are some code fragments:
| <h:commandLink action="#{companyEditor.back}"><img id="backbutton"
src="/static/img/back.png"/></h:commandLink>
|
The bean:
| @Stateful
| @Scope(CONVERSATION)
| @Name("companyEditor")
| @CheckLoggedIn
| public class CompanyEditorBean implements CompanyEditor {
|
The action method that is supposed to be called:
| public String back() {
| entityManager.refresh(company);
| return "back";
| }
|
Navigation case in faces-config.xml:
| <navigation-rule>
| <from-view-id>/editCompany.xhtml</from-view-id>
| <navigation-case>
| <from-outcome>back</from-outcome>
| <to-view-id>/start.xhtml</to-view-id>
| <redirect />
| </navigation-case>
| <navigation-case>
| <from-outcome>save</from-outcome>
| <to-view-id>/viewCompany.xhtml</to-view-id>
| <redirect />
| </navigation-case>
| </navigation-rule>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952827#3952827
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952827
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user