Details
Description
I now have a small test case that demonstrates the problem.
I have created two versions of your facelets example, one using 1.7.0 DR2 and one using 1.7.1.
I have modified the facelets example project by adding 4 files:
restfaces-1.2.jar to the lib directory
RestfacesBean.java
restfaces.jspx
restTemplate.jspx
The zip file may be unzipped into the server\default\deploy directory of JBoss 4.2.3.GA
The example mimics my problem exactly. In the 1.7.0 DR2 version navigating to http://localhost:8080/IcefacesRestfacesGood/restfaces.iface causes the backing bean method in RestfacesBean to be run:
----- code snippet -------------------
@ViewListener(pattern="/restfaces.iface")
public String onLoadPhaseManagerPage() {
String result = null;
System.err.println("ICE 1.7.0 DR2 Restfaces is processing the page hit.");
this.setMessage("RESTFACES IS WORKING!");
return result;
}
----- code snippet end -------------------
The JBoss console output is what you would expect (file JBosssConsoleLogForRestfacesExample.txt attached):
16:33:52,134 ERROR [STDERR] Oct 23, 2008 4:33:52 PM org.restfaces.application.InitBean init
INFO: RestFaces initialized!
16:33:52,134 ERROR [STDERR] ICE 1.7.0 DR2 is in the bean constructor.
16:33:52,134 ERROR [STDERR] ICE 1.7.0 DR2 Restfaces is processing the page hit.
16:33:52,446 ERROR [STDERR] ICE 1.7.0 DR2 is in the message getter.
16:34:38,149 WARN [MainSessionBoundServlet] [1] views have accumulated updates
and the page el expressions correctly displays the new value of #{restfacesBean.message}.
However, if I navigate to http://localhost:8080/ICETest1/restfaces.iface the page does not generate any error but the onLoadPhaseManagerPage() function is never called. Here is the log:
16:33:52,134 ERROR [STDERR] Oct 23, 2008 4:33:52 PM org.restfaces.application.InitBean init
INFO: RestFaces initialized!
I find it interesting that neither the constructor nor the getter method for the restfacesBean is called.
I have created two versions of your facelets example, one using 1.7.0 DR2 and one using 1.7.1.
I have modified the facelets example project by adding 4 files:
restfaces-1.2.jar to the lib directory
RestfacesBean.java
restfaces.jspx
restTemplate.jspx
The zip file may be unzipped into the server\default\deploy directory of JBoss 4.2.3.GA
The example mimics my problem exactly. In the 1.7.0 DR2 version navigating to http://localhost:8080/IcefacesRestfacesGood/restfaces.iface causes the backing bean method in RestfacesBean to be run:
----- code snippet -------------------
@ViewListener(pattern="/restfaces.iface")
public String onLoadPhaseManagerPage() {
String result = null;
System.err.println("ICE 1.7.0 DR2 Restfaces is processing the page hit.");
this.setMessage("RESTFACES IS WORKING!");
return result;
}
----- code snippet end -------------------
The JBoss console output is what you would expect (file JBosssConsoleLogForRestfacesExample.txt attached):
16:33:52,134 ERROR [STDERR] Oct 23, 2008 4:33:52 PM org.restfaces.application.InitBean init
INFO: RestFaces initialized!
16:33:52,134 ERROR [STDERR] ICE 1.7.0 DR2 is in the bean constructor.
16:33:52,134 ERROR [STDERR] ICE 1.7.0 DR2 Restfaces is processing the page hit.
16:33:52,446 ERROR [STDERR] ICE 1.7.0 DR2 is in the message getter.
16:34:38,149 WARN [MainSessionBoundServlet] [1] views have accumulated updates
and the page el expressions correctly displays the new value of #{restfacesBean.message}.
However, if I navigate to http://localhost:8080/ICETest1/restfaces.iface the page does not generate any error but the onLoadPhaseManagerPage() function is never called. Here is the log:
16:33:52,134 ERROR [STDERR] Oct 23, 2008 4:33:52 PM org.restfaces.application.InitBean init
INFO: RestFaces initialized!
I find it interesting that neither the constructor nor the getter method for the restfacesBean is called.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Mircea Toma [ mircea.toma ] |
Ken Fyten
made changes -
Fix Version/s | 1.8 [ 10161 ] | |
Assignee Priority | P1 |
Mircea Toma
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Invalid [ 6 ] |
Deryk Sinotte
made changes -
Assignee | Deryk Sinotte [ deryk.sinotte ] | Mircea Toma [ mircea.toma ] |
Ken Fyten
made changes -
Fix Version/s | 1.8DR#3 [ 10143 ] | |
Assignee Priority | P1 |
Tyler Johnson
made changes -
Support Case References | https://www.icesoft.ca:4443/supportilla/show_bug.cgi?id=5241 | |
Salesforce Case | [50070000007C5bX] |
Deryk Sinotte
made changes -
Assignee | Deryk Sinotte [ deryk.sinotte ] |
Tyler Johnson
made changes -
Attachment | restfacesNotWorking.jpg [ 11311 ] |
Tyler Johnson
made changes -
Attachment | JBossConsoleLogForRestfacesExample.txt [ 11310 ] |
Tyler Johnson
made changes -
Attachment | ICERest.zip [ 11309 ] |
Tyler Johnson
made changes -
Field | Original Value | New Value |
---|---|---|
Support Case References | https://www.icesoft.ca:4443/supportilla/show_bug.cgi?id=5241 |
Tyler Johnson
created issue -