Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha3
-
Component/s: Documentation, Bridge, Framework
-
Labels:None
-
Environment:ICEfaces 2 JSF 2 ICEpush
-
Assignee Priority:P2
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration
Description
Currently, ICEpush is generally active on a per page basis and initialized in a lazy fashion. It should be possible to configure ICEfaces to always be active and non-lazy - this would more closely match the old ICEfaces 1.x behaviour. Per-page configuration would still allow ICEpush to be turned off.
Issue Links
- blocks
-
ICE-5782 Session Expiry notification not working on Compat. Comp. Showcase
-
- Closed
-
I'd added configuration parameters that allow ICEpush to be configured so that it starts up in a non-lazy fashion. There is a context parameter that applies globally and that defaults to true (ie Push is started lazily). Setting to false tells ICEfaces that each view should automatically have ICEpush started up on the initial page load rather than waiting for the first Push request from the application:
<context-param>
<param-name>org.icefaces.lazyPush</param-name>
<param-value>false</param-value>
</context-param>
There is also an attribute for the ice:config tag that allows page-level configuration. This take precedence over the context parameter setting.
<ice:config lazyPush="false"/>