Details
Description
Comp Suite will not run on MyFaces for the following reasons:
The work for http://jira.icefaces.org/browse/ICE-6118 is not complete. The ace directory still needs to be compiled against MyFaces due to the generated use of implementation specific MethodRule. This is done in ComponentHandlerArtifact.java:
//The MethodRule class is specific to the JSF implementation in use so we check to see
//which version, Mojarra or MyFaces is available, to determine which we should be importing.
try {
Class.forName("com.sun.faces.facelets.tag.MethodRule");
generatedComponentHandlerClass.append("import com.sun.faces.facelets.tag.MethodRule;\n\n");
System.out.println("Mojarra version of MethodRule found");
} catch (ClassNotFoundException e1) {
try {
Class.forName("org.apache.myfaces.view.facelets.tag.MethodRule");
generatedComponentHandlerClass.append("import org.apache.myfaces.view.facelets.tag.MethodRule;\n\n");
System.out.println("MyFaces version of MethodRule found");
} catch (ClassNotFoundException e2) {
System.out.println("cannot find a valid (Mojarra or MyFaces) MethodRule class " + e2);
}
}
Once you have compiled the ACE components against MyFaces, Comp Suite fails to load these resources:
2-Nov-2011 4:34:40 PM org.apache.myfaces.renderkit.html.HtmlScriptRenderer encodeEnd
WARNING: Resource referenced by resourceName icepush.js?rand=1900167016 not found in call to ResourceHandler.createResource. It will be silenty ignored.
2-Nov-2011 4:34:40 PM org.apache.myfaces.renderkit.html.HtmlScriptRenderer encodeEnd
WARNING: Resource referenced by resourceName bridge.js?rand=1900167016 not found in call to ResourceHandler.createResource. It will be silenty ignored.
unless you specify:
<context-param>
<param-name>org.icefaces.uniqueResourceURLs</param-name>
<param-value>false</param-value>
</context-param>
Looks like MyFaces doesn't like the ?rand= part of the resource. For some reason, this only seems to be a problem when running the ACE comp-suite. Running something like Auction with MyFaces, there are no warnings.
The work for http://jira.icefaces.org/browse/ICE-6118 is not complete. The ace directory still needs to be compiled against MyFaces due to the generated use of implementation specific MethodRule. This is done in ComponentHandlerArtifact.java:
//The MethodRule class is specific to the JSF implementation in use so we check to see
//which version, Mojarra or MyFaces is available, to determine which we should be importing.
try {
Class.forName("com.sun.faces.facelets.tag.MethodRule");
generatedComponentHandlerClass.append("import com.sun.faces.facelets.tag.MethodRule;\n\n");
System.out.println("Mojarra version of MethodRule found");
} catch (ClassNotFoundException e1) {
try {
Class.forName("org.apache.myfaces.view.facelets.tag.MethodRule");
generatedComponentHandlerClass.append("import org.apache.myfaces.view.facelets.tag.MethodRule;\n\n");
System.out.println("MyFaces version of MethodRule found");
} catch (ClassNotFoundException e2) {
System.out.println("cannot find a valid (Mojarra or MyFaces) MethodRule class " + e2);
}
}
Once you have compiled the ACE components against MyFaces, Comp Suite fails to load these resources:
2-Nov-2011 4:34:40 PM org.apache.myfaces.renderkit.html.HtmlScriptRenderer encodeEnd
WARNING: Resource referenced by resourceName icepush.js?rand=1900167016 not found in call to ResourceHandler.createResource. It will be silenty ignored.
2-Nov-2011 4:34:40 PM org.apache.myfaces.renderkit.html.HtmlScriptRenderer encodeEnd
WARNING: Resource referenced by resourceName bridge.js?rand=1900167016 not found in call to ResourceHandler.createResource. It will be silenty ignored.
unless you specify:
<context-param>
<param-name>org.icefaces.uniqueResourceURLs</param-name>
<param-value>false</param-value>
</context-param>
Looks like MyFaces doesn't like the ?rand= part of the resource. For some reason, this only seems to be a problem when running the ACE comp-suite. Running something like Auction with MyFaces, there are no warnings.
Issue Links
Activity
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #26219 | Thu Nov 03 12:28:31 MDT 2011 | deryk.sinotte | |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/inputrichtext/InputRichTextResourceHandler.java
|
Deryk Sinotte
created issue -
Deryk Sinotte
made changes -
Deryk Sinotte
made changes -
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #26234 | Thu Nov 03 15:10:35 MDT 2011 | deryk.sinotte | |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/inputrichtext/InputRichTextResourceHandler.java
|
Deryk Sinotte
made changes -
Salesforce Case | [] | |
Fix Version/s | 2.1-Beta2 [ 10294 ] | |
Fix Version/s | 2.1 [ 10241 ] | |
Assignee | Deryk Sinotte [ deryk.sinotte ] |
Deryk Sinotte
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Deryk Sinotte
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Assignee | Deryk Sinotte [ deryk.sinotte ] | Mircea Toma [ mircea.toma ] |
Mircea Toma
made changes -
Comment | [ Reverted previous change since it breaks functionality in Mojarra. ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Fix Version/s | 2.1 [ 10241 ] | |
Fix Version/s | 2.1-Beta2 [ 10294 ] |
Deryk Sinotte
made changes -
Ken Fyten
made changes -
Salesforce Case | [] | |
Assignee Priority | P2 |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #26267 | Mon Nov 07 06:43:03 MST 2011 | mircea.toma | |
Files Changed | ||||
ADD
/icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/application/MyFacesResourceHandlingFix.java
MODIFY /icefaces2/trunk/icefaces/core/src/main/resources/META-INF/faces-config.xml |
Mircea Toma
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Mircea Toma
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 3.0.RC2 [ 10313 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Linking to case that refers to fixing the ACE generation code so that it doesn't rely on com.sun implementation classes.