Skip to content

Commit

Permalink
Fix #174: o:socket fix (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Nov 25, 2024
1 parent 0ffc694 commit 3875a97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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

0 comments on commit 3875a97

Please sign in to comment.