[JBoss JIRA] (RF-12797) rich:editor not rendered when using RichFaces module
by Stan Silvert (JIRA)
[ https://issues.jboss.org/browse/RF-12797?page=com.atlassian.jira.plugin.s... ]
Stan Silvert commented on RF-12797:
-----------------------------------
I think I see the problem now. You need to add services="import" to the module declaration in your jboss-deployment-structure.xml.
I'm not 100% certain that will work though. It's possible that the web container will refuse to load SCI's that are not contained in the WAR. I doubt that the servlet spec says anything about it. So if it doesn't work we might need a feature request.
> rich:editor not rendered when using RichFaces module
> ----------------------------------------------------
>
> Key: RF-12797
> URL: https://issues.jboss.org/browse/RF-12797
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: cdk, component-input
> Affects Versions: 4.3.0.Final
> Environment: JBoss 7.1.1
> Reporter: Serge Mürset
> Fix For: 5-Tracking
>
> Attachments: editor-test.zip
>
>
> I want to configure my Webapp to use RichFaces as a JBoss module not a library. To achieve this, I create the module org.richfaces with version 4.3.0 in module directory of JBoss.
> As soon as I switch from library to module, the rich:editor is not rendered anymore. In the Browser History i read
> [15:07:25.511] GET http://localhost:8080/editor-test/org.richfaces.resources/javax.faces.res... [HTTP/1.1 404 Not Found 1ms]
> I validated that the resource lang/de.js is available in classpath though.
> 15:01:02,780 INFO [stdout] (MSC service thread 1-5) The following resource(s) are found at location /META-INF/resources/org.richfaces.ckeditor/lang/de.js
> 15:01:02,781 INFO [stdout] (MSC service thread 1-5) --- jar:file:/opt/jboss-7.1.1/modules/org/richfaces/main/richfaces-components-ui-4.3.0.Final.jar!/META-INF/resources/org.richfaces.ckeditor/lang/de.js
> Weird enough, all other components I checked still work. I followed the instructions of https://issues.jboss.org/browse/RF-12008.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-12797) rich:editor not rendered when using RichFaces module
by Serge Mürset (JIRA)
[ https://issues.jboss.org/browse/RF-12797?page=com.atlassian.jira.plugin.s... ]
Serge Mürset commented on RF-12797:
-----------------------------------
Finally found the problem. The org.richfaces.webapp.ResourceServlet delivers resources of the path /org.richfaces.resources/*. It is registered by the ResourceServletContainerInitializer, which is a ServletContainerInitializer. In richfaces-core-impl, there is the file /META-INF/services/javax.servlet.ServletContainerInitializer which points to ResourceServletContainerInitializer (as described in http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitial...). In JBoss 7.1.1, this ResourceServletContainerInitializer is never invoked, although I included all dependencies of the RichFaces module. It seems like the META-INF/services of module dependencies is not taken into respect. In conclusion, this is a JBoss Issue with high probability.
Described a solution in the workaround of this ticket.
> rich:editor not rendered when using RichFaces module
> ----------------------------------------------------
>
> Key: RF-12797
> URL: https://issues.jboss.org/browse/RF-12797
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: cdk, component-input
> Affects Versions: 4.3.0.Final
> Environment: JBoss 7.1.1
> Reporter: Serge Mürset
> Fix For: 5-Tracking
>
> Attachments: editor-test.zip
>
>
> I want to configure my Webapp to use RichFaces as a JBoss module not a library. To achieve this, I create the module org.richfaces with version 4.3.0 in module directory of JBoss.
> As soon as I switch from library to module, the rich:editor is not rendered anymore. In the Browser History i read
> [15:07:25.511] GET http://localhost:8080/editor-test/org.richfaces.resources/javax.faces.res... [HTTP/1.1 404 Not Found 1ms]
> I validated that the resource lang/de.js is available in classpath though.
> 15:01:02,780 INFO [stdout] (MSC service thread 1-5) The following resource(s) are found at location /META-INF/resources/org.richfaces.ckeditor/lang/de.js
> 15:01:02,781 INFO [stdout] (MSC service thread 1-5) --- jar:file:/opt/jboss-7.1.1/modules/org/richfaces/main/richfaces-components-ui-4.3.0.Final.jar!/META-INF/resources/org.richfaces.ckeditor/lang/de.js
> Weird enough, all other components I checked still work. I followed the instructions of https://issues.jboss.org/browse/RF-12008.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-12797) rich:editor not rendered when using RichFaces module
by Serge Mürset (JIRA)
[ https://issues.jboss.org/browse/RF-12797?page=com.atlassian.jira.plugin.s... ]
Serge Mürset updated RF-12797:
------------------------------
Workaround Description:
To make rich:editor work with RF-module, add this WebListener in your WAR:
{code}
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletRegistration.Dynamic;
import javax.servlet.annotation.WebListener;
import org.richfaces.webapp.ResourceServlet;
import org.richfaces.webapp.ResourceServletContainerInitializer;
@WebListener
public class RichFacesInitializer implements ServletContextListener {
@Override
public void contextInitialized(final ServletContextEvent sce) {
final ServletContext servletContext = sce.getServletContext();
Dynamic dynamicRegistration = servletContext.addServlet("AutoRegisteredEditorResourceServlet", ResourceServlet.class);
dynamicRegistration.addMapping(ResourceServletContainerInitializer.EDITOR_RESOURCES_DEFAULT_MAPPING);
}
@Override
public void contextDestroyed(final ServletContextEvent sce) {
}
}
{code}
was:
To make rich:editor work with RF-module:
{code}
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletRegistration.Dynamic;
import javax.servlet.annotation.WebListener;
import org.richfaces.webapp.ResourceServlet;
import org.richfaces.webapp.ResourceServletContainerInitializer;
@WebListener
public class RichFacesInitializer implements ServletContextListener {
@Override
public void contextInitialized(final ServletContextEvent sce) {
final ServletContext servletContext = sce.getServletContext();
Dynamic dynamicRegistration = servletContext.addServlet("AutoRegisteredEditorResourceServlet", ResourceServlet.class);
dynamicRegistration.addMapping(ResourceServletContainerInitializer.EDITOR_RESOURCES_DEFAULT_MAPPING);
}
@Override
public void contextDestroyed(final ServletContextEvent sce) {
}
}
{code}
> rich:editor not rendered when using RichFaces module
> ----------------------------------------------------
>
> Key: RF-12797
> URL: https://issues.jboss.org/browse/RF-12797
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: cdk, component-input
> Affects Versions: 4.3.0.Final
> Environment: JBoss 7.1.1
> Reporter: Serge Mürset
> Fix For: 5-Tracking
>
> Attachments: editor-test.zip
>
>
> I want to configure my Webapp to use RichFaces as a JBoss module not a library. To achieve this, I create the module org.richfaces with version 4.3.0 in module directory of JBoss.
> As soon as I switch from library to module, the rich:editor is not rendered anymore. In the Browser History i read
> [15:07:25.511] GET http://localhost:8080/editor-test/org.richfaces.resources/javax.faces.res... [HTTP/1.1 404 Not Found 1ms]
> I validated that the resource lang/de.js is available in classpath though.
> 15:01:02,780 INFO [stdout] (MSC service thread 1-5) The following resource(s) are found at location /META-INF/resources/org.richfaces.ckeditor/lang/de.js
> 15:01:02,781 INFO [stdout] (MSC service thread 1-5) --- jar:file:/opt/jboss-7.1.1/modules/org/richfaces/main/richfaces-components-ui-4.3.0.Final.jar!/META-INF/resources/org.richfaces.ckeditor/lang/de.js
> Weird enough, all other components I checked still work. I followed the instructions of https://issues.jboss.org/browse/RF-12008.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-12797) rich:editor not rendered when using RichFaces module
by Serge Mürset (JIRA)
[ https://issues.jboss.org/browse/RF-12797?page=com.atlassian.jira.plugin.s... ]
Serge Mürset updated RF-12797:
------------------------------
Workaround Description:
To make rich:editor work with RF-module:
{code}
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletRegistration.Dynamic;
import javax.servlet.annotation.WebListener;
import org.richfaces.webapp.ResourceServlet;
import org.richfaces.webapp.ResourceServletContainerInitializer;
@WebListener
public class RichFacesInitializer implements ServletContextListener {
@Override
public void contextInitialized(final ServletContextEvent sce) {
final ServletContext servletContext = sce.getServletContext();
Dynamic dynamicRegistration = servletContext.addServlet("AutoRegisteredEditorResourceServlet", ResourceServlet.class);
dynamicRegistration.addMapping(ResourceServletContainerInitializer.EDITOR_RESOURCES_DEFAULT_MAPPING);
}
@Override
public void contextDestroyed(final ServletContextEvent sce) {
}
}
{code}
> rich:editor not rendered when using RichFaces module
> ----------------------------------------------------
>
> Key: RF-12797
> URL: https://issues.jboss.org/browse/RF-12797
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: cdk, component-input
> Affects Versions: 4.3.0.Final
> Environment: JBoss 7.1.1
> Reporter: Serge Mürset
> Fix For: 5-Tracking
>
> Attachments: editor-test.zip
>
>
> I want to configure my Webapp to use RichFaces as a JBoss module not a library. To achieve this, I create the module org.richfaces with version 4.3.0 in module directory of JBoss.
> As soon as I switch from library to module, the rich:editor is not rendered anymore. In the Browser History i read
> [15:07:25.511] GET http://localhost:8080/editor-test/org.richfaces.resources/javax.faces.res... [HTTP/1.1 404 Not Found 1ms]
> I validated that the resource lang/de.js is available in classpath though.
> 15:01:02,780 INFO [stdout] (MSC service thread 1-5) The following resource(s) are found at location /META-INF/resources/org.richfaces.ckeditor/lang/de.js
> 15:01:02,781 INFO [stdout] (MSC service thread 1-5) --- jar:file:/opt/jboss-7.1.1/modules/org/richfaces/main/richfaces-components-ui-4.3.0.Final.jar!/META-INF/resources/org.richfaces.ckeditor/lang/de.js
> Weird enough, all other components I checked still work. I followed the instructions of https://issues.jboss.org/browse/RF-12008.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-12854) rich:contextMenu - onmouseout - it is triggered also for onmousemove
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/RF-12854?page=com.atlassian.jira.plugin.s... ]
Juraj Húska updated RF-12854:
-----------------------------
Description:
{{onmouseout}} attribute of {{rich:contextMenu}} and {{rich:dropDownMenu}} is listening also for {{onmousemove}} events instead of just {{onmouseout}} events.
Please see the steps to reproduce.
was:
{{onmouseout}} attribute of {{rich:contextMenu}} and {{rich:dropDownMenu}} is listening also for {{onmouseover}} events instead of just {{onmouseout}} events.
Please see the steps to reproduce.
> rich:contextMenu - onmouseout - it is triggered also for onmousemove
> --------------------------------------------------------------------
>
> Key: RF-12854
> URL: https://issues.jboss.org/browse/RF-12854
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-menu
> Affects Versions: 4.3.0.Final, 4.3.2
> Environment: RichFaces 4.3.0.Final
> Metamer 4.3.2-SNAPSHOT
> JBoss Application Server: Weld Integration 7.1.1.Final
> JBoss AS 7.1.1.Final
> Java(TM) SE Runtime Environment 1.7.0_05-b06 @ Linux
> Chrome 25.0.1364.172 @ Linux x86_64 and Firefox
> Reporter: Juraj Húska
> Priority: Minor
>
> {{onmouseout}} attribute of {{rich:contextMenu}} and {{rich:dropDownMenu}} is listening also for {{onmousemove}} events instead of just {{onmouseout}} events.
> Please see the steps to reproduce.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months