incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Vojtek" <voy...@gmail.com>
Subject Re: Problem with selectRangeChoiceBar
Date Tue, 20 Feb 2007 18:56:44 GMT
Chris,

I have finally resolved my problem. I have just replaced a4j:form with
tr:form and selectRangeChoiceBar has been rendered.

Regards,

Martin

On 2/20/07, Chris Lowe <chris.lowe.uk@gmail.com> wrote:
>
> Martin,
>
> I've just upgrade my faces core from 1.1.4 to 1.1.5 and this has resolved
> my
> issue - Ajax4Jsf components are now rendering.  Your config files look
> okay,
> so I recommend that you upgrade my faces.
>
> Regards,
>
> Chris.
>
>
> On 19/02/07, Martin Vojtek <voytoo@gmail.com> wrote:
> >
> > Thank you,  Chris, for your post.
> >
> > Till now I have not found the solution. I am now implementing my own
> data
> > scroller with ahax4jsf, but I can tell you some suggestions, which I
> have
> > tried. You can try it also. I have tried other several things. For
> > example,
> > to change client/server state saving, then I set forceparser to false in
> > ajax filter. I have also the right ViewHandler as can be seen in
> > http://wiki.apache.org/myfaces/TrinidadSeamAjax4Jsf . I have current
> > version
> > of Seam 1.1.6 and I have tried also the latest development version of
> > facelets. Maybe the problem is in ajax4jsf. I'm using
> > ajax4jsf1.1.0rc1.jarwhich have new jsFunction functionality. Maybe I
> > have something wrong in my
> > faces-confg.xml or web.xml. Maybe the problem is in my mix of tr:table
> and
> > ajax tags. I'm including my files. I would be very grateful if anyone
> > could
> > see any problem.
> >
> > first xhtml which includes the second xhtml ....
> >
> > <a4j:form id="userRelationTableForm">
> >
> >                     <a4j:include id="listUserRelationInclude"
> > viewId="/userrelation/listUserRelation.xhtml" />
> >
> > </a4j:form>
> >
> > snippet from my xhtml:
> >
> > <tr:document>
> >
> > ....................
> >
> > <a4j:jsFunction name="deleteUserRelation"
> >                 action="#{userRelationBean.deleteUserRelation}"
> >                 reRender="userRelationTableForm">
> >                 <a4j:actionparam name="deleteUserRelationId"
> >                     assignTo="#{userRelationBean.deleteUserRelationId}"
> />
> >             </a4j:jsFunction>
> >
> >
> >
> >             <tr:table id="userRelationTable" allDetailsEnabled="true"
> >                 binding="#{userRelationBean.userRelationTable}"
> >                  rowBandingInterval="1" value="#{
> > userRelationBean.userRelationRows}"
> >                 var="item" rendered="#{userRelationBean.rendered}"
> > rows="5"
> >                 >
> >                 <f:facet name="actions">
> >                     <a4j:commandLink value="#{
> > messages.listUserRelation_add
> > }"
> >                         reRender="userRelationTableForm"
> >                         action="#{
> userRelationBean.prepareAddUserRelation
> > }"
> > />
> >                 </f:facet>
> >                 <tr:column>
> >                     <f:facet name="header">
> >                         <tr:outputText value="#{
> > messages.listUserRelation_mantisusername}" />
> >                     </f:facet>
> >                     <tr:outputText value="#{item.mantisUsername}" />
> >                 </tr:column>
> >                 <tr:column>
> >                     <f:facet name="header">
> >                         <tr:outputText value="#{
> > messages.listUserRelation_devisusername}" />
> >                     </f:facet>
> >                     <tr:outputText value="#{item.devisUsername}" />
> >                 </tr:column>
> >                 <tr:column>
> >                     <f:facet name="header">
> >                         <tr:outputText value="#{
> > messages.listUserRelation_createdate}" />
> >                     </f:facet>
> >                     <tr:outputText value="#{item.createDt}" />
> >                 </tr:column>
> >                 <tr:column>
> >                     <f:facet name="header">
> >                         <tr:outputText value="#{
> > messages.listUserRelation_updatedate}" />
> >                     </f:facet>
> >                     <tr:outputText value="#{item.updateDt}" />
> >                 </tr:column>
> >                 <tr:column>
> >                     <a4j:commandLink onclick="deleteUserRelation('#{
> > item.id
> > }')"
> >                         value="Delete" />
> >                 </tr:column>
> >             </tr:table>
> >
> > .......................................
> >
> > </tr:document>
> >
> > My faces-config.xml:
> >
> > <?xml version='1.0' encoding='UTF-8'?>
> > <!DOCTYPE faces-config PUBLIC
> >           "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1
> //EN"
> >           "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
> >
> > <faces-config>
> >
> > <!--
> >    <application>
> >       <message-bundle>messages</message-bundle>
> >       <view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler
> > </view-handler>
> >    </application>
> > -->
> >
> >    <!-- Seam transaction management -->
> >    <lifecycle>
> >       <phase-listener>org.jboss.seam.jsf.TransactionalSeamPhaseListener
> > </phase-listener>
> >    </lifecycle>
> >
> >    <!-- No Seam transaction management -->
> >    <!--
> >    <lifecycle>
> >       <phase-listener>org.jboss.seam.jsf.SeamPhaseListener
> > </phase-listener>
> >    </lifecycle>
> >    -->
> >
> >     <application>
> >     <default-render-kit-id>
> >       org.apache.myfaces.trinidad.core
> >     </default-render-kit-id>
> >
> >
> >
> >         <locale-config>
> >             <default-locale>en</default-locale>
> >             <supported-locale>en</supported-locale>
> >              <supported-locale>cs</supported-locale>
> >              <supported-locale>sk</supported-locale>
> >         </locale-config>
> >         <message-bundle>epawebmessages</message-bundle>
> >     </application>
> > </faces-config>
> >
> > My web.xml:
> >
> > web-app 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"
> >     version="2.4">
> >
> >     <context-param>
> >         <param-name>javax.faces.CONFIG_FILES</param-name>
> >         <param-value>/WEB-INF/navigation.xml</param-value>
> >     </context-param>
> >
> >
> >     <context-param>
> >         <param-name>BIBEANSVERSION</param-name>
> >         <param-value>3.2.2.0.24.2</param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>dss_excel_export_base_uri</param-name>
> >         <param-value>/servlet/BIExport</param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
> >         <param-value>true</param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>facelets.SKIP_COMMENTS</param-name>
> >         <param-value>true</param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
> >         <param-value>true</param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
> >         <param-value>false</param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
> >         <param-value>false</param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
> >         <param-value>
> >             org.apache.myfaces.renderkit.html.util.DefaultAddResource
> >         </param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>
> >             org.apache.myfaces.CHECK_EXTENSIONS_FILTER
> >         </param-name>
> >         <param-value>true</param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>
> >             org.apache.myfaces.trinidad.CLIENT_STATE_METHOD
> >         </param-name>
> >         <param-value>token</param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>
> >             org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS
> >         </param-name>
> >         <param-value>15</param-value>
> >     </context-param>
> >
> >     <!--
> >         <listener>
> >         <listener-class>
> >         com.sun.faces.config.ConfigureListener
> >         </listener-class>
> >         </listener>
> >     -->
> >
> >     <listener>
> >         <listener-class>
> >             org.jboss.seam.servlet.SeamListener
> >         </listener-class>
> >     </listener>
> >
> >
> >     <listener>
> >         <listener-class>
> >             org.apache.myfaces.webapp.StartupServletContextListener
> >         </listener-class>
> >     </listener>
> >
> >
> >     <context-param>
> >         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> >         <param-value>client</param-value>
> >     </context-param>
> >
> >
> >     <context-param>
> >         <param-name>facelets.DEVELOPMENT</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>
> >     -->
> >
> >     <filter>
> >         <display-name>Ajax4jsf Filter</display-name>
> >         <filter-name>ajax4jsf</filter-name>
> >         <filter-class>org.ajax4jsf.Filter</filter-class>
> >         <init-param>
> >             <param-name>forceparser</param-name>
> >             <param-value>false</param-value>
> >         </init-param>
> >     </filter>
> >
> >     <filter-mapping>
> >         <filter-name>ajax4jsf</filter-name>
> >         <servlet-name>Faces Servlet</servlet-name>
> >         <dispatcher>FORWARD</dispatcher>
> >         <dispatcher>REQUEST</dispatcher>
> >         <dispatcher>INCLUDE</dispatcher>
> >     </filter-mapping>
> >
> >     <filter>
> >         <filter-name>MyFacesExtensionsFilter</filter-name>
> >         <filter-class>
> >             org.apache.myfaces.webapp.filter.ExtensionsFilter
> >         </filter-class>
> >         <init-param>
> >             <param-name>maxFileSize</param-name>
> >             <param-value>20m</param-value>
> >             <description>
> >                 Set the size limit for uploaded files. Format: 10 - 10
> >                 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
> >             </description>
> >         </init-param>
> >     </filter>
> >
> >     <filter>
> >         <filter-name>trinidad</filter-name>
> >         <filter-class>
> >             org.apache.myfaces.trinidad.webapp.TrinidadFilter
> >         </filter-class>
> >     </filter>
> >
> >     <filter-mapping>
> >         <filter-name>trinidad</filter-name>
> >         <!-- This assumes that the FacesServlet has been registered -->
> >         <!-- under the name "faces" -->
> >         <servlet-name>Faces Servlet</servlet-name>
> >     </filter-mapping>
> >
> >     <!--  <filter>
> >         <filter-name>adfFaces</filter-name>
> >         <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter
> > </filter-class>
> >         </filter>
> >
> >         <filter-mapping>
> >         <filter-name>adfFaces</filter-name>
> >         <servlet-name>Faces Servlet</servlet-name>
> >         </filter-mapping> -->
> >
> >     <!-- ajax4jsf -->
> >
> >
> >
> >
> >
> >
> >
> >
> >     <filter>
> >         <filter-name>Seam Exception Filter</filter-name>
> >         <filter-class>
> >             org.jboss.seam.servlet.SeamExceptionFilter
> >         </filter-class>
> >     </filter>
> >
> >     <filter>
> >         <filter-name>Seam Redirect Filter</filter-name>
> >         <filter-class>
> >             org.jboss.seam.servlet.SeamRedirectFilter
> >         </filter-class>
> >     </filter>
> >
> >     <!-- Seam security filter -->
> >
> >     <!--  <filter>
> >         <filter-name>Seam Security Filter</filter-name>
> >         <filter-class>org.jboss.seam.security.filter.SeamSecurityFilter
> > </filter-class>
> >         </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>Faces Servlet</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>
> >
> >     <filter-mapping>
> >         <filter-name>Seam Exception Filter</filter-name>
> >         <url-pattern>/*</url-pattern>
> >     </filter-mapping>
> >
> >     <filter-mapping>
> >         <filter-name>Seam Redirect Filter</filter-name>
> >         <url-pattern>*.seam</url-pattern>
> >     </filter-mapping>
> >
> >     <!--  <filter-mapping>
> >         <filter-name>Seam Security Filter</filter-name>
> >         <url-pattern>*.seam</url-pattern>
> >         </filter-mapping>
> >     -->
> >
> >     <servlet>
> >         <servlet-name>Faces Servlet</servlet-name>
> >         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> >         <load-on-startup>1</load-on-startup>
> >     </servlet>
> >
> >     <!-- resource loader servlet -->
> >     <servlet>
> >         <servlet-name>resources</servlet-name>
> >         <servlet-class>
> >             org.apache.myfaces.trinidad.webapp.ResourceServlet
> >         </servlet-class>
> >     </servlet>
> >
> >
> >     <servlet-mapping>
> >         <servlet-name>resources</servlet-name>
> >         <url-pattern>/adf/*</url-pattern>
> >     </servlet-mapping>
> >
> >
> >
> >     <servlet>
> >         <servlet-name>uix</servlet-name>
> >         <servlet-class>oracle.cabo.servlet.UIXServlet</servlet-class>
> >         <init-param>
> >             <param-name>oracle.cabo.servlet.pageBroker</param-name>
> >             <param-value>
> >                 oracle.cabo.servlet.xml.UIXPageBroker
> >             </param-value>
> >         </init-param>
> >         <load-on-startup>1</load-on-startup>
> >     </servlet>
> >     <servlet>
> >         <servlet-name>BIExport</servlet-name>
> >         <servlet-class>
> >             oracle.dss.thin.beans.dataView.excel.DatabaseStorageServlet
> >         </servlet-class>
> >         <init-param>
> >             <param-name>connprovider</param-name>
> >             <param-value>
> >
> oracle.dss.addins.thin.common.ConfigFileConnectionProvider
> >             </param-value>
> >         </init-param>
> >         <init-param>
> >             <param-name>configName</param-name>
> >             <param-value>/BIDesignerModelOLAPConfig1.xml</param-value>
> >         </init-param>
> >     </servlet>
> >     <servlet>
> >         <servlet-name>BIGRAPHSERVLET</servlet-name>
> >         <servlet-class>
> >             oracle.dss.thin.laf.browser.graph.GraphBeanServlet
> >         </servlet-class>
> >     </servlet>
> >
> >     <!--
> >         <context-param>
> >         <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
> >         <param-value>com.sun.facelets.FaceletViewHandler</param-value>
> >         </context-param>
> >     -->
> >
> >     <context-param>
> >         <param-name>
> >             org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER
> >         </param-name>
> >         <param-value>com.sun.facelets.FaceletViewHandler</param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>facelets.VIEW_MAPPINGS</param-name>
> >         <param-value>*.xhtml</param-value>
> >     </context-param>
> >
> >     <context-param>
> >         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
> >         <param-value>.xhtml</param-value>
> >     </context-param>
> >
> >
> >     <servlet-mapping>
> >         <servlet-name>Faces Servlet</servlet-name>
> >         <url-pattern>*.seam</url-pattern>
> >     </servlet-mapping>
> >
> >
> >     <servlet-mapping>
> >         <servlet-name>uix</servlet-name>
> >         <url-pattern>*.uix</url-pattern>
> >     </servlet-mapping>
> >     <servlet-mapping>
> >         <servlet-name>uix</servlet-name>
> >         <url-pattern>/uix/*</url-pattern>
> >     </servlet-mapping>
> >     <servlet-mapping>
> >         <servlet-name>BIExport</servlet-name>
> >         <url-pattern>/servlet/BIExport/*</url-pattern>
> >     </servlet-mapping>
> >     <servlet-mapping>
> >         <servlet-name>BIGRAPHSERVLET</servlet-name>
> >         <url-pattern>/servlet/GraphBeanServlet/*</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>
> >
> >
> >     <taglib>
> >         <taglib-uri>http://xmlns.oracle.com/bibeans/jsp</taglib-uri>
> >         <taglib-location>lib/biaddinsrt.jar</taglib-location>
> >     </taglib>
> >
> >     <taglib>
> >         <taglib-uri>http://myfaces.apache.org/trinidad</taglib-uri>
> >         <taglib-location>/WEB-INF/tr.tld</taglib-location>
> >     </taglib>
> >
> >     <taglib>
> >         <taglib-uri>https://ajax4jsf.dev.java.net/ajax</taglib-uri>
> >         <taglib-location>/WEB-INF/a4j.tld</taglib-location>
> >     </taglib>
> >
> >     <taglib>
> >         <taglib-uri>http://myfaces.apache.org/tomahawk</taglib-uri>
> >         <taglib-location>/WEB-INF/tomahawk.tld</taglib-location>
> >     </taglib>
> >
> >     <taglib>
> >         <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
> >         <taglib-location>/WEB-INF/c.tld</taglib-location>
> >     </taglib>
> >
> >     <!-- ADF Faces Tag Library -->
> >     <!-- <taglib>
> >         <taglib-uri>http://xmlns.oracle.com/adf/faces</taglib-uri>
> >         <taglib-location>/WEB-INF/af.tld</taglib-location>
> >         </taglib>
> >
> >         <taglib>
> >         <taglib-uri>http://xmlns.oracle.com/adf/faces/html</taglib-uri>
> >         <taglib-location>/WEB-INF/afh.tld</taglib-location>
> >         </taglib> -->
> >
> >
> > </web-app>
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message