voyent
init() called only once even on request-scoped beans  XML
Forum Index -> Woodstock to ICEfaces Migration
Author Message
autozoom

Joined: 28/Dec/2007 00:00:00
Messages: 80
Offline


I have noticed that for icefaces pages, the init() method is called only once and not called again on a postback.
This is different from woodstock-only pages and leads to problems in migration

how comes?

thanks
mgroeneweg

Joined: 26/Dec/2008 00:00:00
Messages: 238
Offline


That is the default behaviour.

Page 31 of the ICEfaces Developers Guide:

Standard Request Scope
To cause request scope to last only for the duration of a single user event, “standard request scope”
must be enabled. This is set through the ICEfaces context parameter,
com.icesoft.faces.standardRequestScope.
Typically this is set in the web.xml file of your web application:
Code:
<context-param>
     <param-name>com.icesoft.faces.standardRequestScope</param-name>
     <param-value>true</param-value>
 </context-param>
frank.ye

Joined: 26/Oct/2004 00:00:00
Messages: 709
Offline


fix set of call on the back beans are largely depending on the application implementatiion, in many cases, it is not necessary to listener to these events. So, in 1.8.0, it is made optional where,

faces-config.xml
<view-handler>
org.icefaces.netbeans.rave.web.ui.appbase.faces.ViewHandlerImpl
</view-handler>

web.xml
<listener-class>
org.icefaces.netbeans.rave.web.ui.appbase.servlet.LifecycleListener
</listener-class>

[Email]
garry.donnelly

Joined: 10/May/2009 00:00:00
Messages: 13
Offline


Following up in thread

http://www.icefaces.org/JForum/posts/list/0/13348.page

Has anyone found a reasonable solution to this yet?
 
Forum Index -> Woodstock to ICEfaces Migration
Go to:   
Powered by JForum 2.1.7ice © JForum Team