Re: JQuery UI Datepicker configuration
On Wed, 15 Feb 2012 20:43:42 -0200, zeewolf wrote: Yep, the project at work is Tapestry 4 based. I've only worked with Wicket and JSPs in the past, so I'm still getting my head around Tapestry. Ah, ok. :) Tapestry, specially version 4, has many similarities with Wicket. It should be easy enough to do this, I'm just unsure of how to go about it, the old school approach would be to use a JSP scriptlet to create a date object and assign the millisec result to a javascript int and the rest would be a piece of cake. Scriptlets suck. Code should be in Java classes than just get the value from the page or component class and write it to HTML using @Insert (http://tapestry.apache.org/tapestry4.1/components/Insert.html). -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: JQuery UI Datepicker configuration
>May I ask why Tapestry 4 if you're new to Tapestry? Old project >maintenance? Yep, the project at work is Tapestry 4 based. I've only worked with Wicket and JSPs in the past, so I'm still getting my head around Tapestry. It should be easy enough to do this, I'm just unsure of how to go about it, the old school approach would be to use a JSP scriptlet to create a date object and assign the millisec result to a javascript int and the rest would be a piece of cake. Obviously in the HTML body, you've got blah, but I need something similar or tidier for the script that uses the jquery date picker. > Basically, I've got the following script: Post directly to the mailing list. Nabble ends up eating stuff. Your script was. -- View this message in context: http://tapestry.1045711.n5.nabble.com/JQuery-UI-Datepicker-configuration-tp5487304p5487691.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: JQuery UI Datepicker configuration
On Wed, 15 Feb 2012 18:23:01 -0200, zeewolf wrote: Hello, Hi! I was wondering if anyone could tell me how to configure a piece of Javascript via Tapestry 4 (I'm quite new to Tapestry). May I ask why Tapestry 4 if you're new to Tapestry? Old project maintenance? Basically, I've got the following script: Post directly to the mailing list. Nabble ends up eating stuff. Your script was. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
JQuery UI Datepicker configuration
Hello, I was wondering if anyone could tell me how to configure a piece of Javascript via Tapestry 4 (I'm quite new to Tapestry). Basically, I've got the following script: And I need to set the datepicker's default date to the date of the server machine's date. I've got a good idea of how to convert a Java date to a Javascript date by getting the milliseconds, it's just the area around setting the value in tapestry that I'm struggling with. Any ideas? -- View this message in context: http://tapestry.1045711.n5.nabble.com/JQuery-UI-Datepicker-configuration-tp5487304p5487304.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org