Re: Startup service needs Request

2015-04-03 Thread Lance Java
Correction, I meant getServletContext() not getServletRequest() On 4 Apr 2015 07:37, "Lance Java" wrote: > @Inject ApplicationGlobals instead and call > getServletRequest().getContextPath() >

Re: Startup service needs Request

2015-04-03 Thread Lance Java
@Inject ApplicationGlobals instead and call getServletRequest().getContextPath()

Startup service needs Request

2015-04-03 Thread TNO
Hi, I'm using Tapestry 5.3.7, and I'm trying to send mails at tapestry startup application. In these mails, I need the full url of the website to create dynamic links. I create a service which needs org.apache.tapestry5.services.Request (Usually, I use getServerName and getContextPath from Re

Re: DateTimePicker Component

2015-04-03 Thread TNO
Hi, I found one here : https://github.com/trsvax/Jacquard It works ! Thomas Le 20/03/2015 10:34, TNO a écrit : Hi, I'm using tapestry 5.3.7 with tapsetry-jquery. I'm looking for a DateTimePicker component. Tapestry have only a datepicker Chenille Kit used to have one (ck.DateTimeField), b

Re: Startup service needs Request

2015-04-03 Thread Dmitry Gusev
Another option is to mock Request object and store it to RequestGlobals: http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/services/RequestGlobals.html#storeRequestResponse(org.apache.tapestry5.services.Request, org.apache.tapestry5.services.Response) With this you may use default link

Re: Startup service needs Request

2015-04-03 Thread Dmitry Gusev
Hi, You'll need to implement your own LinkSource, like in this example: https://gist.github.com/dmitrygusev/6980210 You may also want to set tapestry.hostname symbol: http://tapestry.apache.org/configuration.html#Configuration-tapestry.hostname Or you may use tapestry-offline module that may he

Re: Startup service needs Request

2015-04-03 Thread Dimitris Zenios
Hi Request is a perThread service so you will not be able to use it outside of a request (example:Startup). What you can do though is on first request save the serverName and contextPath and use those values Another option is to add them as constants somewhere (example:Symbols) and user those co

Re: DateTimePicker Component

2015-04-03 Thread TNO
Hi, I found one here : https://github.com/trsvax/Jacquard It works ! Thomas Le 20/03/2015 10:34, TNO a écrit : Hi, I'm using tapestry 5.3.7 with tapsetry-jquery. I'm looking for a DateTimePicker component. Tapestry have only a datepicker Chenille Kit used to have one (ck.DateTimeField), b

Startup service needs Request

2015-04-03 Thread TNO
Hi, I'm using Tapestry 5.3.7, and I'm trying to send mails at tapestry startup application. In these mails, I need the full url of the website to create dynamic links. I create a service which needs org.apache.tapestry5.services.Request (Usually, I use getServerName and getContextPath from Re