myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: Tobago and ADF integration issue
Date Thu, 15 Feb 2007 10:08:00 GMT
>From the Tobago FAQ ([1]):

Can I mix Tobago and MyFaces extensions in the same web application?

* JSF only supports one renderkit (renderkitId) per page (f:view).
Because Tobago has it's own renderkitId you cannot use any non-Tobago
components that need a renderer.

-M

[1] http://myfaces.apache.org/tobago/faq.html

On 2/15/07, bandarus <rbandaru@prapansol.com> wrote:
>
>      hi,
>       i worked on the tobago components alone working fine,but when i tries
> integrate with ADF components on jspx page getting problem with the
> themes,can anybody suggest me how to integrate both components in single
> page in jDeveloper.
>     when i used the ADF component the following code getting generated in
> faces-config.xml which makes the Tobago error.
>
> Generated code in faces-config.xml when adf component used.. :
>
>  <application>
>     <default-render-kit-id>oracle.adf.core</default-render-kit-id>
>   </application>
>
> Error  occured :
>
> java.lang.NullPointerException
>         at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:703)
>         at org.apache.myfaces.tobago.component.UIPage.encodeBegin(UIPage.java:95)
>         at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:613)
>         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:500)
>         at
> org.apache.myfaces.tobago.taglib.component.TobagoTag.doStartTag(TobagoTag.java:58)
>         at _toolbar_jspx._jspService(_toolbar_jspx.java:66)
>         [/toolbar.jspx].
>         ...............
>
>
>     web.xml code
>              <?xml version = '1.0' encoding = 'UTF-8'?>
> <web-app 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" version="2.4"
> xmlns="http://java.sun.com/xml/ns/j2ee">
>     <description>Empty web.xml file for Web Application</description>
>     <display-name>Blank Tobago Application</display-name>
>     <context-param>
>         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>         <param-value>client</param-value>
>     </context-param>
>     <context-param>
>         <param-name>CpxFileName</param-name>
>         <param-value>com.prapansol.technology.DataBindings</param-value>
>     </context-param>
>     <context-param>
>         <param-name>javax.faces.CONFIG_FILES</param-name>
>         <param-value>/WEB-INF/faces-config1.xml</param-value>
>     </context-param>
>     <filter>
>     <filter-name>multipartFormdataFilter</filter-name>
>
> <filter-class>org.apache.myfaces.tobago.webapp.TobagoMultipartFormdataFilter</filter-class>
>  <init-param>
>       <description>Set the size limit for uploaded files. Default value is 1
> MB.
>         Format: 10 = 10 bytes
>         10k = 10 KB
>         10m = 10 MB
>         1g = 1 GB
>       </description>
>       <param-name>uploadMaxFileSize</param-name>
>       <param-value>20m</param-value>
>     </init-param>
>   </filter>
>     <filter>
>         <filter-name>adfBindings</filter-name>
>
> <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
>     </filter>
>     <filter>
>         <filter-name>adfFaces</filter-name>
>
> <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
>     </filter>
>     <filter-mapping>
>     <filter-name>multipartFormdataFilter</filter-name>
>     <url-pattern>/faces/*</url-pattern>
>   </filter-mapping>
>     <filter-mapping>
>         <filter-name>adfBindings</filter-name>
>         <url-pattern>*.jsp</url-pattern>
>     </filter-mapping>
>     <filter-mapping>
>         <filter-name>adfBindings</filter-name>
>         <url-pattern>*.jspx</url-pattern>
>     </filter-mapping>
>     <filter-mapping>
>         <filter-name>adfFaces</filter-name>
>         <url-pattern>*.jsp</url-pattern>
>     </filter-mapping>
>     <filter-mapping>
>         <filter-name>adfFaces</filter-name>
>         <url-pattern>*.jspx</url-pattern>
>     </filter-mapping>
>    <listener>
>
> <listener-class>org.apache.myfaces.tobago.webapp.TobagoServletContextListener</listener-class>
>   </listener>
>     <servlet>
>         <servlet-name>Faces Servlet</servlet-name>
>
> tobago-config.xml file :
>
> <tobago-config>
>   <theme-config>
>     <default-theme>charlotteville</default-theme>
>   </theme-config>
>   <resource-dir>tobago-resource</resource-dir>
>   <resource-dir>org/apache/myfaces/tobago/renderkit</resource-dir>
> </tobago-config>
>         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
>     <servlet>
>         <servlet-name>resources</servlet-name>
>
> <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Faces Servlet</servlet-name>
>         <url-pattern>/faces/*</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>resources</servlet-name>
>         <url-pattern>/adf/*</url-pattern>
>     </servlet-mapping>
>     <session-config>
>         <session-timeout>35</session-timeout>
>     </session-config>
>     <mime-mapping>
>         <extension>html</extension>
>         <mime-type>text/html</mime-type>
>     </mime-mapping>
>     <mime-mapping>
>         <extension>txt</extension>
>         <mime-type>text/plain</mime-type>
>     </mime-mapping>
>       <servlet>
>     <servlet-name>ResourceServlet</servlet-name>
>
> <servlet-class>org.apache.myfaces.tobago.servlet.ResourceServlet</servlet-class>
>   </servlet>
>     <servlet-mapping>
>     <servlet-name>ResourceServlet</servlet-name>
>     <url-pattern>/org/apache/myfaces/tobago/renderkit/*</url-pattern>
>   </servlet-mapping>
>    <!-- mime -->
>   <mime-mapping>
>     <extension>wml</extension>
>     <mime-type>text/vnd.wap.wml</mime-type>
>   </mime-mapping>
>   <mime-mapping>
>     <extension>wbmp</extension>
>     <mime-type>image/vnd.wap.wbmp</mime-type>
>   </mime-mapping>
>     </web-app>
>
> source code :
>
> <h:form binding="#{backing_integration.form1}" id="form1">
>           <tc:label value="lable" binding="#{backing_integration.label1}"
> id="label1"/>
>           <af:commandButton text="adfButton"
> binding="#{backing_integration.commandButton1}"
>                             id="commandButton1"/>
>         </h:form>
>
> I hope the solution from you,
> Thank You,
>   Ramesh.
>
>
> --
> View this message in context: http://www.nabble.com/Tobago-and-ADF-integration-issue-tf3232790.html#a8982554
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Mime
View raw message