Hi Volker,

You're right, I have the intention to mix tobago with tomahawk (but I still
don't do it in my pages now).

I didn't register this listener in my faces-config, but I have the jar in my
classpath.

I'm joining my web.xml and faces-config.xml, I think they contain the
minimum required by tobago.

Maybe it's important to say I have the RI 1.2 in background...

the list of the jars in my war is here:
   avalon-framework-4.1.3.jar common-annotations.jar commons-beanutils.jar
commons-beanutils-1.7.0.jar commons-codec-1.3.jar commons-collections.jar
commons-collections-3.1.jar commons-digester.jar commons-digester-1.7.jar
commons-el-1.0.jar commons-fileupload-1.1.1.jar commons-io-1.1.jar
commons-lang-2.1.jar commons-logging-1.1.jar el-impl-1.0.jar
jsf-facelets.jar jsf-tlds.jar jstl.jar jstl-1.1.0.jar log4j-1.2.14.jar
logkit-1.0.1.jar maven-repository-importer-1.1.jar standard.jar
tobago-core-1.0.12-SNAPSHOT.jar tobago-facelets-1.0.12-SNAPSHOT.jar
tobago-fileupload-1.0.12-SNAPSHOT.jar
tobago-theme-charlotteville-1.0.12-SNAPSHOT.jar
tobago-theme-richmond-1.0.12-SNAPSHOT.jar
tobago-theme-scarborough-1.0.12-SNAPSHOT.jar
tobago-theme-speyside-1.0.12-SNAPSHOT.jar
tobago-theme-standard-1.0.12-SNAPSHOT.jar tomahawk-1.1.7-SNAPSHOT.jar
tomahawk-sandbox-1.1.7-SNAPSHOT.jar

If I can give any other details, please let me know...

Thanks,
Zied

2007/9/6, Volker Weber <[EMAIL PROTECTED]>:
>
> Hi Zied,
>
> org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener
>
> this class should not involved in tobago requests. Did you mix
> tomahawk with tobago?
>
> Is this PhaseListener is registered by the tomahawk.jar or by your
> faces-config.xml?
>
>
> Regards,
>    Volker
>
> 2007/9/6, Zied Hamdi <[EMAIL PROTECTED]>:
> > Hi Tobago,
> >
> > I was surprized by the difference there is between the jsp and facelets
> > approch: even though I use the same tags, the result is sometimes
> totally
> > different:
> >
> > I had a working popup in a jsp with the following code:
> >
> >
> >
> >
> >       <tc:box label ="#{i18n.adresseListBox}">
> >
> >             <f:facet name= "toolBar">
> >
> >                    < tc:toolBar id ="aressesToolBar" >
> >
> >                          < tc:toolBarCommand id ="newAdressCmd" image=
> > "image/new.GIF"
> >
> >                               tip ="#{i18n.newAdressCmd}" action=
> > "#{personCtrl.newAdressCmd}">
> >
> >                               < tc:attribute name ="renderedPartially"
> > value= "newAdressPopup" />
> >
> >                               < f:facet name ="popup" >
> >
> >                                     < tc:popup id
> > ="newAdressPopup" width= "600" height ="140" >
> >
> >                                           < tc:box label
> > ="#{i18n.newAdressCmd}" >
> >
> >                                                 < f:facet
> > name ="layout" >
> >
> >                                                       <
> > tc:gridLayout rows ="*;20px" />
> >
> >                                                 </ f:facet>
> >
> >
> >
> >                                                 < f:subview
> > id ="newAdress" >
> >
> >                                                       <
> > jsp:include flush ="true" page= "adress.xhtml" />
> >
> >                                                 </
> > f:subview>
> >
> >
> >
> >                                                 < tc:cell>
> >
> >                                                       <
> > f:facet name ="layout" >
> >
> >
> > < tc:gridLayout columns ="100px;1*;100px" marginLeft= "10px"
> >
> >
> >       marginRight ="10px" />
> >
> >                                                       </
> > f:facet>
> >
> >                                                       <
> > tc:button label ="#{i18n.ok}"
> >
> >
> > action= "#{personCtrl.addAdressCmd}">
> >
> >
> > < tc:attribute name ="popupClose" value= "afterSubmit" />
> >
> >                                                       </
> > tc:button>
> >
> >                                                       <
> > tc:cell />
> >
> >                                                       <
> > tc:button label ="#{i18n.cancel}" >
> >
> >
> > < tc:attribute name ="popupClose" value= "immediate" />
> >
> >                                                       </
> > tc:button>
> >
> >                                                 </ tc:cell>
> >
> >
> >
> >                                           </ tc:box>
> >
> >                                     </ tc:popup>
> >
> >                               </ f:facet>
> >
> >                          </ tc:toolBarCommand>
> >
> >                    </tc:toolBar >
> >
> >             </f:facet>
> >
> >  ...
> >
> >  When I changed this same code under facelets, the popup stoped
> displaying
> > and I have an error messagein my log:
> > (I also attempted to change jsp:include to ui:include)
> >
> >
> > 15:01:20,046 INFO [STDOUT] 2007-09-06 15:01:20,046 [
> http-127.0.0.1-8080-3]
> > ERROR
> > org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.decodeAjax
> (173)
> > - Found component is no ajaxComponent : {Component-Path : [Class:
> > org.apache.myfaces.tobago.component.UIViewRoot,ViewId:
> > /person/person.xhtml][Class:
> > org.apache.myfaces.tobago.component.UIPage,Id: page][Class:
> > org.apache.myfaces.tobago.component.UIPanel,Id:
> > j_id5][Class: org.apache.myfaces.tobago.component.UICell
> > ,Id: j_id16][Class:
> > org.apache.myfaces.tobago.component.UIForm,Id:
> > personForm][Class:
> > org.apache.myfaces.tobago.component.UIPanel,Id:
> > j_id17][Class:
> > org.apache.myfaces.tobago.component.UIPanel,Id:
> > clientDetails][Class:
> > javax.faces.component.UINamingContainer ,Id:
> > details][Class:
> > org.apache.myfaces.tobago.component.UITabGroup,Id:
> > j_id26][Class:
> > org.apache.myfaces.tobago.component.UITab,Id:
> > personDetailTab][Class:
> > org.apache.myfaces.tobago.component.UIPanel,Id:
> > personDetailPanel][Class:
> > org.apache.myfaces.tobago.component.UICell,Id:
> > j_id44][Class: javax.faces.component.UINamingContainer,Id:
> > adressListSubview][Class:
> > org.apache.myfaces.tobago.component.UIBox,Id:
> > j_id45][Class:
> > org.apache.myfaces.tobago.component.UIToolBar ,Id:
> > aressesToolBar][Class:
> > org.apache.myfaces.tobago.component.UICommand,Id:
> > newAdressCmd][Class:
> > org.apache.myfaces.tobago.component.UIPopup,Id:
> > newAdressPopup]}
> >
> > 15:01:20,078 INFO [STDOUT] 2007-09-06 15:01:20,078 [
> http-127.0.0.1-8080-3]
> > DEBUG
> > org.apache.myfaces.tobago.component.UIPage.markSubmittedForm(156)
> > - actionId = 'page'
> >
> > I don't now where to debug: I entred to
> > org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener.decodeAjax
> (UIComponent,
> > FacesContext) but I don't have a clue from where I should begin...
> > I've also searched in the forum for the keys "[tobago] popup facelets"
> and
> > "[tobago]  Found component is no ajaxComponent" with no result.
> >
> > If anyone knows how to proceed, thanks a lot to share the info.
> >
> > Regards,
> > Zied
> >
> > --
> > Zied Hamdi
> > zatreex.sourceforge.net
>



-- 
Zied Hamdi
zatreex.sourceforge.net
<?xml version="1.0" encoding="UTF-8"?>
<!--
	* Copyright 2002-2005 The Apache Software Foundation.
	*
	*    Licensed under the Apache License, Version 2.0 (the "License");
	*    you may not use this file except in compliance with the License.
	*    You may obtain a copy of the License at
	*
	*        http://www.apache.org/licenses/LICENSE-2.0
	*
	*    Unless required by applicable law or agreed to in writing, software
	*    distributed under the License is distributed on an "AS IS" BASIS,
	*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
	implied.
	*    See the License for the specific language governing permissions and
	*    limitations under the License.
-->
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee";
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
	<display-name>Tobago Facelets Example Application</display-name>
	<context-param>
		<param-name>facelets.DEVELOPMENT</param-name>
		<param-value>true</param-value>
	</context-param>
	<!-- otherwise  the comments are UIComponents and would confuse
		the layoutmanager.
	-->
	<context-param>
		<param-name>facelets.SKIP_COMMENTS</param-name>
		<param-value>true</param-value>
	</context-param>

	<context-param>
		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
		<param-value>.xhtml</param-value>
	</context-param>

	<listener>
		<listener-class>
			org.apache.myfaces.tobago.webapp.TobagoServletContextListener
		</listener-class>
	</listener>
	<servlet>
		<servlet-name>FacesServlet</servlet-name>
		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet>
		<servlet-name>ResourceServlet</servlet-name>
		<servlet-class>
			org.apache.myfaces.tobago.servlet.ResourceServlet
		</servlet-class>
	</servlet>
	<!-- servlet-mapping -->
	<servlet-mapping>
		<servlet-name>FacesServlet</servlet-name>
		<url-pattern>*.jsf</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>ResourceServlet</servlet-name>
		<url-pattern>
			/org/apache/myfaces/tobago/renderkit/*
		</url-pattern>
	</servlet-mapping>
	<!-- The Usual Welcome File List -->
	<welcome-file-list>
		<welcome-file>index.jsp</welcome-file>
	</welcome-file-list>
	<login-config>
		<auth-method>BASIC</auth-method>
	</login-config>

	<!-- start:tomahawk extension filter -->
	<filter>
		<filter-name>MyFacesExtensionsFilter</filter-name>
		<filter-class>
			org.apache.myfaces.webapp.filter.ExtensionsFilter
		</filter-class>
		<init-param>
			<description>
				Set the size limit for uploaded files. Format: 10 - 10
				bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
			</description>
			<param-name>maxFileSize</param-name>
			<param-value>20m</param-value>
		</init-param>
	</filter>

	<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages  -->
	<filter-mapping>
		<filter-name>MyFacesExtensionsFilter</filter-name>
		<!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
		<servlet-name>FacesServlet</servlet-name>
	</filter-mapping>

	<!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.)  -->
	<filter-mapping>
		<filter-name>MyFacesExtensionsFilter</filter-name>
		<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
	</filter-mapping>
	<!-- end:tomahawk extension filter -->

</web-app>
<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee";
 xmlns:xi="http://www.w3.org/2001/XInclude";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd";>
 <converter>
  <description>PhoneNumber converter</description>
  <display-name>PhoneNumber</display-name>
  <converter-id>phoneConv</converter-id>
  <converter-class>fr.into.services.view.converters.PhoneNumberConverter</converter-class>
 </converter>
 <!-- 	<converter>
		<display-name>Phone type</display-name>
		<converter-for-class>
			fr.into.common.jpa.archiving.basis.PhoneNumber$PhoneType
		</converter-for-class>
		<converter-class>
			fr.into.services.view.converters.PhoneTypeConverter
		</converter-class>
	</converter>
 -->
 <managed-bean>
  <description>Controls all persons: clients, intervenants, commercials</description>
  <managed-bean-name>personCtrl</managed-bean-name>
  <managed-bean-class>fr.into.services.controller.jsf.PersonController</managed-bean-class>
  <managed-bean-scope>request</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <description>When creating or editing an adress</description>
  <managed-bean-name>adress</managed-bean-name>
  <managed-bean-class>fr.into.common.jpa.archiving.basis.Adress</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <description>When adding a phone number</description>
  <managed-bean-name>phone</managed-bean-name>
  <managed-bean-class>fr.into.common.jpa.archiving.basis.PhoneNumber</managed-bean-class>
  <managed-bean-scope>request</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <description>the connected client profile</description>
  <managed-bean-name>user</managed-bean-name>
  <managed-bean-class>fr.into.services.controller.session.User</managed-bean-class>
  <managed-bean-scope>session</managed-bean-scope>
 </managed-bean>
 <managed-bean>
  <description>Handles all contract operations</description>
  <managed-bean-name>contractCtrl</managed-bean-name>
  <managed-bean-class>fr.into.services.controller.jsf.ContractController</managed-bean-class>
  <managed-bean-scope>request</managed-bean-scope>
 </managed-bean>
 <navigation-rule>
  <navigation-case>
   <from-outcome>contract</from-outcome>
   <to-view-id>/contract/contract.jsf</to-view-id>
  </navigation-case>
 </navigation-rule>
 <application>
  <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
 </application>
 <lifecycle>
  <phase-listener>org.apache.myfaces.tobago.util.DebugPhaseListener</phase-listener>
 </lifecycle>
</faces-config>
<?xml version="1.0" encoding="UTF-8"?>

<!--
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->

<!DOCTYPE tobago-config PUBLIC
    "-//The Apache Software Foundation//DTD Tobago Config 1.0//EN" "tobago-config_1_0.dtd">

<tobago-config>

  <theme-config>
    <default-theme>richmond</default-theme>
  </theme-config>

  <resource-dir>skins</resource-dir>
</tobago-config>

Reply via email to