Results 1 to 4 of 4
  1. #1
    thilak is offline Member
    Join Date
    Jun 2008
    Posts
    1
    Rep Power
    0

    Default JSF datatable with calendar component

    I created calender using javascript and Imported the script file to jsf,

    In jsf if i click the Image then it will pop up the calendar,

    if i click any date then it ll display in textfield of jsf.its working fine.

    similarly, in datatable I include the textfield and image,
    I am getting error in jboss4.2 like this: at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.el.ELException: Error Parsing: #{}
    Attached Files Attached Files

  2. #2
    poroto20 is offline Member
    Join Date
    Jan 2009
    Posts
    34
    Rep Power
    0

    Default

    I recommend you to use MyFaces Tomahawk implementation.

    With it you only have to use this tag: <t:inputCalendar>
    Leandro Iriarte. Systems Engineer
    http://www.leandroiriarte.com.ar

  3. #3
    deepakl_29 is offline Member
    Join Date
    Apr 2009
    Posts
    1
    Rep Power
    0

    Default

    Hi,
    Can any one help me out in using Tomahawk jar in implementing JSF calendar.
    Platform : Sun Portal Server , JDK1.5 , JSF framework

  4. #4
    smithahrao is offline Member
    Join Date
    Jun 2009
    Posts
    8
    Rep Power
    0

    Default

    You can't have a jar tomahawk jar only for calendar.
    Steps you have to follow are:
    1. download tomahawk.jar .
    2. Put the tomahawk.jar in your WEB-INF/lib directory (or in the classpath of your application server.)
    3.Configure the MyFaces Extensions filter in your WEB-INF/web.xml file.

    <filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.webapp.filter.ExtensionsF ilter</filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</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>

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


    <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
    <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>

    <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
    <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <url-pattern>*.faces</url-pattern>
    </filter-mapping>


    Now you have your configuration done. Now you can use the Tomahawk library in your jsf pages.

Similar Threads

  1. JSF message component problem
    By Jothi in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 06-04-2008, 03:39 PM
  2. How to Focus Next Component Sample
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 04-23-2008, 09:18 PM
  3. Same component on all JTabbedPane
    By java_novice in forum AWT / Swing
    Replies: 4
    Last Post: 08-06-2007, 10:09 AM
  4. Help with custom component
    By Falcon1 in forum AWT / Swing
    Replies: 8
    Last Post: 07-21-2007, 01:39 PM
  5. PoJoe Component Libraries 1.1
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-08-2007, 11:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •