Re: Strange problem with Taha's AjaxUpload

2012-08-31 Thread Taha Hafeez Siddiqi
If you are already using tapestry-jquery why not use it's own Ajaxupload component Sent from my iPhone On 01-Sep-2012, at 11:15 AM, Rural Hunter wrote: > Yes, thanks. I found that tapestry-jquery in my classpath and it intercept > the post request first sometimes. I'm wondering if there is a

Re: Strange problem with Taha's AjaxUpload

2012-08-31 Thread Rural Hunter
Yes, thanks. I found that tapestry-jquery in my classpath and it intercept the post request first sometimes. I'm wondering if there is any specific order the request flows among several request filter chain contributed into Tapestry HttpRequestHandler? From what I have seen, seems the order is

Re: Strange problem with Taha's AjaxUpload

2012-08-31 Thread Pavel Vodenski
The stream can only be read once, so if you have another request filter running before the AjaxFileUploadDecoder you'll need to make sure that it did not read out the stream first. - P On Fri, Aug 31, 2012 at 3:02 AM, Rural Hunter wrote: > I'm using Tapestry 5.3.3 and AjaxUpload comp blogged by

Re: Generic DAO

2012-08-31 Thread Miguel O. Carvajal
Right, this is actually what we are doing. We have the queries defined in the entity via @NamedQuery (since we just JPA). Our generic DAO just allows me to specify the name of the query, set the parameters and get the results back. Auto-binding is actually what I was looking for, I just have

Re: [t5.3.4] Plugin blocks

2012-08-31 Thread Muhammad Gelbana
Correct. Taga's 3rd option fulfills what I need but I didn't catch the difference. Thank you all. On Fri, Aug 31, 2012 at 12:45 PM, Bob Harner wrote: > Taha's 3rd option is refactor-safe, too. On the other hand, since Tapestry > will complain loudly about links to non-existent pages, using strin

Re: Injecting tapestry5.ioc.Messages ino service

2012-08-31 Thread Dmitry Gusev
Not sure why its volatile here, though :) But it definitely works without it also. On Fri, Aug 31, 2012 at 6:02 PM, Dmitry Gusev wrote: > I'm using field injection: > > @Inject > > private volatile Messages messages; > > works for me > > On Fri, Aug 31, 2012 at 4:44 PM, Alex Kotchnev wro

Re: Injecting tapestry5.ioc.Messages ino service

2012-08-31 Thread Dmitry Gusev
I'm using field injection: @Inject private volatile Messages messages; works for me On Fri, Aug 31, 2012 at 4:44 PM, Alex Kotchnev wrote: > I have a service that needs access to the global message catalog. > > In a previous email ( > > http://tapestry.1045711.n5.nabble.com/component-s

Re: if/else if component

2012-08-31 Thread karthi
Thanks for your replies.. @Michael: Case technique is really a helpful one, it suits. -- View this message in context: http://tapestry.1045711.n5.nabble.com/if-else-if-component-tp5715941p5715947.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Injecting tapestry5.ioc.Messages ino service

2012-08-31 Thread Alex Kotchnev
I have a service that needs access to the global message catalog. In a previous email ( http://tapestry.1045711.n5.nabble.com/component-scope-service-with-injected-messages-td4724993.html), Howard indicated that Messages can now be injected into the service layer. However, when I add an ioc.Messag

Re: Tapestry 5.3.5

2012-08-31 Thread antalk
Thanks for the release :D Im already using it on our latest development project and it works fine ! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-5-tp5715917p5715945.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: if/else if component

2012-08-31 Thread Thiago H de Paula Figueiredo
On Fri, 31 Aug 2012 08:17:10 -0300, Christian Riedel wrote: you mean this??? I really dislike this way of writing If's, as the else part is inside the if and the indentation makes it very confusing. I recommend everyone doing this instead: if I th

Re: if/else if component

2012-08-31 Thread Michael Prescott
You could try the 'Case' technique. http://tapestry.apache.org/switching-cases.html On 31 August 2012 07:06, karthi wrote: > Hi everyone, > > I have used if/else in tapestry, but can anyone tell me how to achieve > > if/else if/else if/else > > Thanks in advance > > > > -- > View this message i

Re: if/else if component

2012-08-31 Thread Christian Riedel
you mean this??? Am 31.08.2012 um 13:06 schrieb karthi: > Hi everyone, > > I have used if/else in tapestry, but can anyone tell me how to achieve > > if/else if/else if/else > > Thanks in advance > > > > -- > View this message in context: > http://tapestry.104

if/else if component

2012-08-31 Thread karthi
Hi everyone, I have used if/else in tapestry, but can anyone tell me how to achieve if/else if/else if/else Thanks in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/if-else-if-component-tp5715941.html Sent from the Tapestry - User mailing list archive at Nab

Re: [t5.3.4] Plugin blocks

2012-08-31 Thread Bob Harner
Taha's 3rd option is refactor-safe, too. On the other hand, since Tapestry will complain loudly about links to non-existent pages, using strings for page names is less risky in this case. On Aug 31, 2012 5:26 AM, "Lance Java" wrote: > @Inject > private ComponentClassResolver componentClassResolve

Strange problem with Taha's AjaxUpload

2012-08-31 Thread Rural Hunter
I'm using Tapestry 5.3.3 and AjaxUpload comp blogged by Taha here: http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/ Everything works fine but there is a strange problem. Sometimes the file uploaded is alwasy empty(size 0). I checked AjaxFileUploadDecoderImpl.setupUploadedFile and

Re: [t5.3.4] Plugin blocks

2012-08-31 Thread Lance Java
@Inject private ComponentClassResolver componentClassResolver; public String getProbesHealthPageName() { return componentClassResolver.resolvePageClassNameToPageName(ProbesHealth.class.getName()); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-3-4-Plugin-blocks-

Re: [t5.3.4] Plugin blocks

2012-08-31 Thread Muhammad Gelbana
But I wanted this to be refactor-safe. If that's not possible then I'll just write in the template file as it was when I first constructed the template. Thank you all for the replies. On Fri, Aug 31, 2012 at 11:03 AM, Lance Java wrote: > Short answer: Can't you just do the following? > Probes He

Re: [t5.3.4] Plugin blocks

2012-08-31 Thread Lance Java
Short answer: Can't you just do the following? Probes Health Long Answer: Pagelink expects a String pageName and you are (incorrectly) passing a Link. Tapestry sees the mismatch and coerces Link to String. The resulting URL is then used as a page name which fails. -- View this message in con

Re: [t5.3.4] Plugin blocks

2012-08-31 Thread Taha Siddiqi
Hi you can either do a Probes Health or // Return page name. public String getMyDynamicPageProperty(){ return "admin/probehealth"; } or public String getPageUrl(){ return pageLinkSource.createPageRenderLink(ProbesHealth.class); } You are confusing the three. PS: Have not looke

Re: [t5.3.4] Plugin blocks

2012-08-31 Thread Muhammad Gelbana
So I'm trying to create page links using the *PageLinkResource* service through the *createPageRenderLink* method. public Link getProbesHealthUrl() { > return pageLinkSource.createPageRenderLink(ProbesHealth.class); > } The page link component in the template is Probes Health > But an error oc