myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zied Hamdi" <javaha...@gmail.com>
Subject [tobago] [tomahawk] schedule doesn't display at all
Date Mon, 01 Oct 2007 21:07:06 GMT
Hi,

I'm trying to show t:shedule in a tobago JSF RI 1.2 env. in vain. ;-(

My code is very simple:


<tc:page

      xmlns="http://www.w3.org/1999/xhtml"

      xmlns:tc="http://myfaces.apache.org/tobago/component"

      xmlns:t="http://myfaces.apache.org/tomahawk">

      <tc:panel>

            <tc:out value="testing shedule"></tc:out>



            <t:schedule value="#{contractCtrl.scheduleModel}" />

      </tc:panel>

</tc:page>



under contractCtrl.scheduleModel there's an empty DefaultScheduleEntry
instance.



Here's my web.xml, Am I doing sth wrong??? (I know this worked for sometime
but I had javascript errors so I've decided to wait until it's fixed to
continue on the topic)


<?xml version="1.0" encoding="UTF-8"?>

<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>Into - Tobago Facelets</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>



      <context-param>

            <param-name>facelets.LIBRARIES</param-name>

            <param-value>

                  /WEB-INF/facelets/tags/into-common.taglib.xml;

                  /WEB-INF/facelets/tags/into-common-tags.taglib.xml

            </param-value>

      </context-param>



      <!-- 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>

      <!-- end:tomahawk extension 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>

      <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>



      <security-constraint>

            <display-name>IntoServices</display-name>

            <web-resource-collection>

                  <web-resource-name>person</web-resource-name>

                  <url-pattern>/person/*</url-pattern>

                  <http-method>GET</http-method>

                  <http-method>POST</http-method>

            </web-resource-collection>

            <user-data-constraint>

                  <transport-guarantee>NONE</transport-guarantee>

            </user-data-constraint>

      </security-constraint>



      <login-config>

            <auth-method>BASIC</auth-method>

            <realm-name>Into Secured Zone</realm-name>

      </login-config>



      <security-role>

            <role-name>Commercial</role-name>

      </security-role>



</web-app>



Thaks a lot,
Zied

Mime
View raw message