incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: ADF Faces breaks many Tomahawk components
Date Tue, 23 May 2006 15:37:38 GMT
On 5/23/06, Cosma Colanicchia <cosmacol@gmail.com> wrote:
> Hi,
>
> I have some pages that were written using only MyFaces+Tomahawk and worked
> correctly. Now I'm trying to use some ADF Faces components, but many
> problems comes up, even before trying to actually use any of the ADF Faces
> component.
>
> Once built the ADF Faces package from Apache, and configured my webapp (
> web.xml and faces-config.xml) I noticed the following wrong behaviours:
>
> 1) <t:commandLink> components (and <t:commandSortHeader>s) don't work,
> because the MyFaces javascript functions such as clear_myFormId don't get
> generated. Also the _link_hidden_form isn't generated anymore. The rendered
> HTML includes the string <!-- MYFACES JAVASCRIPT -->, and looking at the
> stack I can see that both the adfFaces and the ExtensionsFilter are invoked,
> but no MyFaces script are actually rendered in the page.

I'm not sure why this would happen, but this may be a MyFaces
bug;  I know there's been some discussion on the main MyFaces
list about issues like this.

> 2) Don't think this is related to MyFaces, but an the "value" attribute of
> <h:commandLink> components isn't anymore used as the text inside the <a></a>
> HTML tags, and a nested <h:outputText> has to be used.

This'd be an ADF bug - good catch.  Could you file it?

> 3) The <t:dataScroller> component doesn't render correctly the facets for
> first, rewind, etc. Like in the MyFaces examples, I used a <t:graphicImage>
> components to display these actions, but the <img> tags are rendered
> _outside_ of the <a></a> HTML tags, so they aren't clickable.

This is a dataScroller bug.  commandLinks are an encodeChildren component,
so it shouldn't be attempting to do encodeBegin()/encodeEnd() and assume
that children will be generated between the tags.  However, I can work around
this bug in the ADF codebase.

> 4) The <t:saveState> component doesn't work at all, it doesn't renders any
> html.

I think I know the problem...  I need to add a config flag to deactivate
a state saving optimization.  Could you file another issue for this one?

-- Adam


> This is the log of my app server starting up and initializing JSF to serve
> the first request. As you can see, the only strange thing is the last
> warning, that I get at the end of every request, saying that no
> AdfRenderingContext is available..
>
> 06/05/23 15:57:19 Oracle Containers for J2EE 10g (10.1.3.0.0)  initialized
> 2006-05-23 15:57:24,353 [INFO ] (org.apache.myfaces.config.FacesConfigurator)
> Reading standard config org/apache/myfaces/resource/standard-
> faces-config.xml
> 2006-05-23 15:57:24,572 [INFO ] (org.apache.myfaces.config.FacesConfigurator)
> Reading config
> code-source:/D:/Sviluppo/Non-CVS-Projects/jsf-test/web-app/presentation/lib/tomahawk-
> 1.1.3-SNAPSHOT.jar!META-INF/faces-config.xml
> 2006-05-23 15:57:24,728 [INFO ] (org.apache.myfaces.config.FacesConfigurator)
> Reading config
> code-source:/D:/Sviluppo/Non-CVS-Projects/jsf-test/web-app/presentation/lib/tomahawk-
> sandbox-1.1.3-SNAPSHOT.jar!META-INF/faces-config.xml
> 2006-05-23 15:57:24,947 [INFO ] (org.apache.myfaces.config.FacesConfigurator)
> Reading config
> code-source:/D:/Sviluppo/Non-CVS-Projects/jsf-test/web-app/presentation/lib/adf-
> faces-impl-11-m7-SNAPSHOT.jar!META-INF/faces-config.xml
> 2006-05-23 15:57:27,602 [INFO ] (org.apache.myfaces.config.FacesConfigurator)
> Reading config /WEB-INF/faces-config-login.xml
> 2006-05-23 15:57:27,634 [INFO ] (org.apache.myfaces.config.FacesConfigurator)
> Reading config /WEB-INF/faces-config-peoplelist.xml
> 2006-05-23 15:57:27,712 [INFO ] (org.apache.myfaces.config.FacesConfigurator)
> Reading config /WEB-INF/faces-config-peopletree.xml
> 2006-05-23 15:57:27,743 [INFO ] (org.apache.myfaces.config.FacesConfigurator)
> Reading config /WEB-INF/faces-config.xml
> 2006-05-23 15:57:30,774 [WARN ] (
> org.apache.myfaces.shared_impl.util.LocaleUtils) Locale name in
> faces-config.xml null or empty, setting locale to default locale : it_IT
> 2006-05-23 15:57:32,165 [INFO ] (
> org.apache.myfaces.renderkit.html.HtmlRenderKitImpl) Overwriting renderer
> with family = javax.faces.Command rendererType = javax.faces.Button renderer
> class = org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlButtonRenderer
> 2006-05-23 15:57:32,165 [INFO ] (
> org.apache.myfaces.renderkit.html.HtmlRenderKitImpl) Overwriting renderer
> with family = javax.faces.Command rendererType = javax.faces.Link renderer
> class = org.apache.myfaces.renderkit.html.jsf.ExtendedHtmlLinkRenderer
> 2006-05-23 15:57:33,258 [INFO ] (
> org.apache.myfaces.webapp.StartupServletContextListener) ServletContext
> 'D:\Sviluppo\Non-CVS-Projects\jsf-test\web-app\presentation\public_html\'
> initialized.
> 2006-05-23 15:57:33,258 [INFO ] (
> org.apache.myfaces.webapp.StartupServletContextListener) Serialization
> provider : class
> org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> 2006-05-23 15:57:33,289 [DEBUG] (javax.faces.webapp.FacesServlet) init begin
> 2006-05-23 15:57:33,289 [DEBUG] (javax.faces.webapp.FacesServlet) init end
> 23-mag-2006 15.57.33
> org.apache.myfaces.adfinternal.webapp.ConfigParserparseConfigFile
> INFO: ADF Faces is running in debug mode. Do not use in a production
> environment. See:/WEB-INF/adf-faces-config.xml
> 2006-05-23 15:57:33,633 [DEBUG] (javax.faces.webapp.FacesServlet) service
> begin
> 23-mag-2006 15.57.33
> org.apache.myfaces.adfinternal.application.ViewHandlerImpl _checkTimestamp
> INFO: ADF Faces is running with time-stamp checking enabled. This should not
> be used in a production environment. See the
> org.apache.myfaces.adf.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
> 23-mag-2006 15.57.33
> org.apache.myfaces.adfinternal.application.ViewHandlerImpl _checkTimestamp
> INFO: ADF Faces is running with time-stamp checking enabled. This should not
> be used in a production environment. See the
> org.apache.myfaces.adf.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
> 23-mag-2006 15.57.33
> org.apache.myfaces.adfinternal.renderkit.AdfRenderingContext attach
> AVVERTENZA: Trying to attach AdfRenderingContext to a thread that already
> had one.
> 2006-05-23 15:57:34,274 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeBegin for client-Id: _idJsp0
> 2006-05-23 15:57:34,274 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeBegin
> 2006-05-23 15:57:34,274 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeEnd for client-Id: _idJsp0
> 2006-05-23 15:57:34,289 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeEnd for client-Id: _idJsp0
> 2006-05-23 15:57:34,305 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeBegin for client-Id: mainForm
> 2006-05-23 15:57:34,367 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeBegin
> 2006-05-23 15:57:34,399 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeBegin for client-Id: mainForm:_idJsp1
> 2006-05-23 15:57:34,399 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeBegin
> 2006-05-23 15:57:34,399 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeChildren for client-Id: mainForm:_idJsp1
> 2006-05-23 15:57:34,399 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeChildren for client-Id: mainForm:_idJsp1
> 2006-05-23 15:57:34,399 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeEnd for client-Id: mainForm:_idJsp1
> 2006-05-23 15:57:34,430 [INFO ] (
> org.apache.myfaces.shared_impl.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
> 2006-05-23 15:57:34,430 [INFO ] (
> org.apache.myfaces.shared_impl.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value
> true
> 2006-05-23 15:57:34,430 [INFO ] (
> org.apache.myfaces.shared_impl.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value
> false
> 2006-05-23 15:57:34,430 [INFO ] (
> org.apache.myfaces.shared_impl.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
> 2006-05-23 15:57:34,430 [INFO ] (
> org.apache.myfaces.shared_impl.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value
> org.apache.myfaces.renderkit.html.util.DefaultAddResource
> 2006-05-23 15:57:34,430 [INFO ] (
> org.apache.myfaces.shared_impl.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default
> value true
> 2006-05-23 15:57:34,430 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeEnd for client-Id: mainForm:_idJsp1
> 2006-05-23 15:57:34,477 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeBegin for client-Id: mainForm:_idJsp3
> 2006-05-23 15:57:34,477 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeBegin
> 2006-05-23 15:57:34,477 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeEnd for client-Id: mainForm:_idJsp3
> 2006-05-23 15:57:34,477 [INFO ] (
> org.apache.myfaces.shared_tomahawk.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
> 2006-05-23 15:57:34,477 [INFO ] (
> org.apache.myfaces.shared_tomahawk.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value
> true
> 2006-05-23 15:57:34,477 [INFO ] (
> org.apache.myfaces.shared_tomahawk.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value
> false
> 2006-05-23 15:57:34,477 [INFO ] (
> org.apache.myfaces.shared_tomahawk.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
> 2006-05-23 15:57:34,477 [INFO ] (
> org.apache.myfaces.shared_tomahawk.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value
> org.apache.myfaces.renderkit.html.util.DefaultAddResource
> 2006-05-23 15:57:34,477 [INFO ] (
> org.apache.myfaces.shared_tomahawk.config.MyfacesConfig) No context init
> parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default
> value true
> 2006-05-23 15:57:34,492 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeEnd for client-Id: mainForm:_idJsp3
> 2006-05-23 15:57:34,727 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeBegin for client-Id: mainForm:peopleList
> 2006-05-23 15:57:34,727 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeBegin
> 2006-05-23 15:57:34,727 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeChildren for client-Id: mainForm:peopleList
> 2006-05-23 15:57:36,555 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeChildren for client-Id: mainForm:peopleList:21
> 2006-05-23 15:57:36,555 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeEnd for client-Id: mainForm:peopleList:21
> 2006-05-23 15:57:36,555 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeEnd for client-Id: mainForm:peopleList
> 2006-05-23 15:57:36,602 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeBegin for client-Id: mainForm:_idJsp31
> 2006-05-23 15:57:36,602 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeBegin
> 2006-05-23 15:57:36,602 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeChildren for client-Id: mainForm:_idJsp31
> 2006-05-23 15:57:36,602 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeChildren for client-Id: mainForm:_idJsp31
> 2006-05-23 15:57:36,602 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeEnd for client-Id: mainForm:_idJsp31
> 2006-05-23 15:57:36,617 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeEnd for client-Id: mainForm:_idJsp31
> 2006-05-23 15:57:36,617 [DEBUG] (javax.faces.webapp.UIComponentTag) Entered
> encodeEnd for client-Id: mainForm
> 2006-05-23 15:57:36,617 [DEBUG] (javax.faces.webapp.UIComponentTag) Exited
> encodeEnd for client-Id: mainForm
> 23-mag-2006 15.57.36
> org.apache.myfaces.adfinternal.renderkit.core.CoreRenderKit encodeFinally
> AVVERTENZA: No AdfRenderingContext available
> 2006-05-23 15:57:36,680 [DEBUG] (javax.faces.webapp.FacesServlet) service
> end
>
>

Mime
View raw message