/** * This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by * <code><f:websocket></code>. * @author Bauke Scholtz * @see WebsocketChannelManager * @since 2.3 */ @ViewScoped public static class ViewScope implements Serializable { private static final long serialVersionUID = 1L; private ConcurrentMap<String, String> viewScope = new ConcurrentHashMap<>(ESTIMATED_CHANNELS_PER_VIEW); /** * When current view scope is about to be destroyed, deregister all view scope channels and explicitly close * any open web sockets associated with it to avoid stale websockets. */ @PreDestroy protected void deregisterViewScope() { WebsocketSessionManager.getInstance().deregister(viewScope.values()); } }
/** * This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by * <code><f:websocket></code>. * @author Bauke Scholtz * @see WebsocketChannelManager * @since 2.3 */ @ViewScoped public static class ViewScope implements Serializable { private static final long serialVersionUID = 1L; private ConcurrentMap<String, String> viewScope = new ConcurrentHashMap<>(ESTIMATED_CHANNELS_PER_VIEW); /** * When current view scope is about to be destroyed, deregister all view scope channels and explicitly close * any open web sockets associated with it to avoid stale websockets. */ @PreDestroy protected void deregisterViewScope() { WebsocketSessionManager.getInstance().deregister(viewScope.values()); } }
/** * This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by * <code><f:websocket></code>. * @author Bauke Scholtz * @see WebsocketChannelManager * @since 2.3 */ @ViewScoped public static class ViewScope implements Serializable { private static final long serialVersionUID = 1L; private ConcurrentMap<String, String> viewScope = new ConcurrentHashMap<>(ESTIMATED_CHANNELS_PER_VIEW); /** * When current view scope is about to be destroyed, deregister all view scope channels and explicitly close * any open web sockets associated with it to avoid stale websockets. */ @PreDestroy protected void deregisterViewScope() { WebsocketSessionManager.getInstance().deregister(viewScope.values()); } }
/** * This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by * <code><o:socket></code>. * @author Bauke Scholtz * @see SocketChannelManager * @since 2.3 */ @ViewScoped protected static class ViewScope implements Serializable { private static final long serialVersionUID = 1L; private ConcurrentHashMap<String, String> channels = new ConcurrentHashMap<>(ESTIMATED_CHANNELS_PER_VIEW); /** * Returns the view scoped channels. * @return The view scoped channels. */ protected Map<String, String> getChannels() { return channels; } /** * When current view scope is about to be destroyed, deregister all view scoped channels and explicitly close * any open web sockets associated with it to avoid stale websockets. */ @PreDestroy protected void deregisterViewScope() { SocketSessionManager.getInstance().deregister(channels.values()); } }
/** * This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by * <code><o:socket></code>. * @author Bauke Scholtz * @see SocketChannelManager * @since 2.3 */ @ViewScoped protected static class ViewScope implements Serializable { private static final long serialVersionUID = 1L; private ConcurrentHashMap<String, String> channels = new ConcurrentHashMap<>(ESTIMATED_CHANNELS_PER_VIEW); /** * Returns the view scoped channels. * @return The view scoped channels. */ protected Map<String, String> getChannels() { return channels; } /** * When current view scope is about to be destroyed, deregister all view scoped channels and explicitly close * any open web sockets associated with it to avoid stale websockets. */ @PreDestroy protected void deregisterViewScope() { SocketSessionManager.getInstance().deregister(channels.values()); } }
/** * * @author matthew */ @ViewScoped @Named public class PackagePopupFragmentBean implements java.io.Serializable { FileMetadata fm; public void setFileMetadata(FileMetadata fileMetadata) { fm = fileMetadata; } public FileMetadata getFileMetadata() { return fm; } }
/** * Welcome Page. * @author Marcelo Fernandes */ @Setter @Getter @Component @ViewScoped public class WelcomeMBean implements Serializable { private static final long serialVersionUID = 1L; private String text = ""; }
@Named @ViewScoped public class CarsView implements Serializable { private static final long serialVersionUID = 1L; @Inject private CarRepository carRepository; private List<Car> cars; @PostConstruct public void init() { cars = carRepository.findAll(); } public List<Car> getCars() { return cars; } }
@ViewScoped public class WebsocketViewBean implements Serializable
/** * FileMBean to test primefaces upload component. * @author Marcelo Fernandes */ @Component @ViewScoped public class FileMBean implements Serializable { private static final long serialVersionUID = 1L; @Getter @Setter private transient UploadedFile uploadedFile; @Getter private transient StreamedContent downloadFile; public void upload() throws IOException { if (this.uploadedFile != null) { this.downloadFile = new DefaultStreamedContent(this.uploadedFile.getInputstream(), this.uploadedFile.getContentType(), this.uploadedFile.getFileName()); } } }
@ViewScoped @Named public class WidgetWrapper implements java.io.Serializable {
@ViewScoped @Named public class NavigationWrapper implements java.io.Serializable {
@ViewScoped @Named("PrivateUrlPage") public class PrivateUrlPage implements Serializable {
@ViewScoped @Named("ApiTokenPage") public class ApiTokenPage implements java.io.Serializable {
@ViewScoped @Named("RolePermissionHelperPage") public class RolePermissionHelperPage implements java.io.Serializable {
@ViewScoped public class StarterMBean implements Serializable {
@Bean @ViewScoped public ViewScopedBean viewScopedBean() { return new ViewScopedBean(); }
@Bean @ViewScoped public ViewScopedBean viewScopedBean() { return new ViewScopedBean(); }
@ViewScoped @Named public class ConfigureFragmentBean implements java.io.Serializable{
@ViewScoped @Named("ConfirmEmailPage") public class ConfirmEmailPage implements java.io.Serializable {