This content has been marked as final.
Show 11 replies
-
1. Re: datePicker - Doco
shane.bryzak Mar 30, 2007 6:21 PM (in response to tony.herstell1)If you use the s:selectDate tag then the Javascript is automatically imported for you.
-
2. Re: datePicker - Doco
tony.herstell1 Mar 30, 2007 6:49 PM (in response to tony.herstell1)ddint work for me.
-
3. Re: datePicker - Doco
tony.herstell1 Mar 30, 2007 6:49 PM (in response to tony.herstell1)probably relies on some sort of "seam gen" project structure or summat.
I have my structure allied with my IDE so that I dont have to use Ant. -
4. Re: datePicker - Doco
pmuir Mar 30, 2007 6:52 PM (in response to tony.herstell1)Nope, nothing to do with seam-gen. You do need Seam 1.2
-
5. Re: datePicker - Doco
tony.herstell1 Mar 30, 2007 6:58 PM (in response to tony.herstell1)I am using seam 1.2.1 GA
-
6. Re: datePicker - Doco
tony.herstell1 Mar 30, 2007 7:02 PM (in response to tony.herstell1)<s:selectDate for="dateEffectiveTo" startYear="2007" dateFormat="dd/MM/yyyy"> <h:graphicImage url="#{basePath}/images/datepicker.gif" style="margin-left:5px;cursor:pointer"/> </s:selectDate>
-
7. Re: datePicker - Doco
gavin.king Mar 30, 2007 7:39 PM (in response to tony.herstell1)You must have the resource servlet installed.
-
8. Re: datePicker - Doco
tony.herstell1 Mar 30, 2007 8:29 PM (in response to tony.herstell1)<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <!-- Seam --> <listener> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> </listener> <!-- Propagate conversations across redirects --> <filter> <filter-name>Seam Redirect Filter</filter-name> <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class> </filter> <filter-mapping> <filter-name>Seam Redirect Filter</filter-name> <url-pattern>*.seam</url-pattern> </filter-mapping> <!-- JSF --> <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>client</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.DEVELOPMENT</param-name> <param-value>true</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <!-- Faces Servlet Mapping --> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.seam</url-pattern> </servlet-mapping> <!-- MyFaces --> <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> </listener> <!-- Session Timeout --> <session-config> <session-timeout>15</session-timeout> </session-config> </web-app>
in faces.config<!-- Facelets support --> <application> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> </application> <!-- Select one of the two standard persistence lifecycle models for the Seam application --> <lifecycle> <phase-listener> org.jboss.seam.jsf.SeamPhaseListener </phase-listener> </lifecycle> <!-- My Messages Please --> <application> <message-bundle>de.co.clickstream.i18n.jsfstandarderrors</message-bundle> </application>
What do I need to change? -
9. Re: datePicker - Doco
gavin.king Mar 30, 2007 8:45 PM (in response to tony.herstell1)http://docs.jboss.org/seam/1.2.1.GA/reference/en/html/configuration.html
Add the resource servlet. -
10. Re: datePicker - Doco
tony.herstell1 Mar 30, 2007 8:56 PM (in response to tony.herstell1)Thanks Gavin for you help. The dates now arrive correctly :)
I have got rid of my local copy of the .js and .css
Perhaps this info might go in Chapter 24, JMF Seam Controls, under the <s:slectDate> area.
A VERY useful, if unfortuantely incomplete chapter. -
11. Re: datePicker - Doco
tony.herstell1 Mar 30, 2007 8:57 PM (in response to tony.herstell1)"gavin.king@jboss.com" wrote:
You must have the resource servlet installed.
I actually though you meant I had it installed when I shouldn't have!
So was posting my code to show I didnt have it there.
Sorry.