Skip to content

Commit

Permalink
Fix #174: o:socket fix
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 3, 2024
1 parent fef2ec3 commit 07fa261
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import org.omnifaces.cdi.ViewScoped;
import org.omnifaces.cdi.converter.ConverterManager;
import org.omnifaces.cdi.eager.EagerBeansRepository;
import org.omnifaces.cdi.push.SocketChannelManager;
import org.omnifaces.cdi.push.SocketPushContextProducer;
import org.omnifaces.cdi.validator.ValidatorManager;
import org.omnifaces.cdi.viewscope.ViewScopeManager;
import org.omnifaces.resourcehandler.CombinedResourceHandler;
Expand Down Expand Up @@ -80,7 +82,10 @@ class OmnifacesProcessor {
EagerBeansRepository.class,
ValidatorManager.class,
ViewScopeManager.class,
ConverterManager.class
ConverterManager.class,
SocketChannelManager.class,
SocketPushContextProducer.class,
SocketChannelManager.ViewScope.class
};

private static final String[] BEAN_DEFINING_ANNOTATION_CLASSES = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<f:view contentType="text/html">
<h:head>
<title>Push - Test</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.14.0/jquery-ui.min.js" integrity="sha512-MlEyuwT6VkRXExjj8CdBKNgd+e2H+aYZOCUaCrt9KRk6MlZDOs91V1yK22rwm8aCIsb5Ec1euL8f0g58RKT/Pg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</h:head>
<h:body>
<!-- NOTE: having inline script in XHTML like below is bad practice. -->
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<maven.compiler.release>17</maven.compiler.release>
<quarkus.version>3.8.6</quarkus.version>
<myfaces.version>4.0.2</myfaces.version>
<omnifaces.version>4.5.1</omnifaces.version>
<omnifaces.version>4.6-SNAPSHOT</omnifaces.version>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -117,4 +117,4 @@
</modules>
</profile>
</profiles>
</project>
</project>

0 comments on commit 07fa261

Please sign in to comment.