Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2008, 02:58 PM
Member
 
Join Date: Jun 2008
Posts: 1
Rep Power: 0
thilak is on a distinguished road
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:
File Type: txt error.txt (7.3 KB, 2 views)
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 01-15-2009, 01:07 PM
Member
 
Join Date: Jan 2009
Posts: 34
Rep Power: 0
poroto20 is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-22-2009, 12:22 PM
Member
 
Join Date: Apr 2009
Posts: 1
Rep Power: 0
deepakl_29 is on a distinguished road
Default
Hi,
Can any one help me out in using Tomahawk jar in implementing JSF calendar.
Platform : Sun Portal Server , JDK1.5 , JSF framework
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-25-2009, 08:53 AM
Member
 
Join Date: Jun 2009
Posts: 8
Rep Power: 0
smithahrao is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
JSF message component problem Jothi JavaServer Faces 0 06-04-2008 03:39 PM
How to Focus Next Component Sample Java Tip javax.swing 0 04-23-2008 09:18 PM
Same component on all JTabbedPane java_novice AWT / Swing 4 08-06-2007 10:09 AM
Help with custom component Falcon1 AWT / Swing 8 07-21-2007 01:39 PM
PoJoe Component Libraries 1.1 levent Java Announcements 0 06-08-2007 11:23 AM


All times are GMT +2. The time now is 09:27 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org