Re: Ajax Upload for Tapestry

2012-09-15 Thread Ray Nicholus
Note that a more specific content-type for XHR uploads will likely be included in Fine Uploader 2.2 or 2.1, using the type attribute of a file object (see the File API specs for more info). https://github.com/valums/file-uploader/pull/206 On Tue, Sep 11, 2012 at 6:46 AM, Amr Mohamed Mahmoud Hassa

Re: Problem with OnchangeValue

2012-09-15 Thread Taha Siddiqi
Hi You can use the client event 'onclick' along with ZoneUpdater. http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/onevent regards Taha On Sep 16, 2012, at 8:40 AM, gonzalomp87 wrote: > The problem I have is that the function OnValueChanged only works when I > select a difefere

Re: Problem with OnchangeValue

2012-09-15 Thread gonzalomp87
The problem I have is that the function OnValueChanged only works when I select a difeferent value. If my list of study's ID only has one ID when I click on it does not run OnValueChanged function because the value did not change. I want to know if there are other events, for example an event tha

Re: Problem with OnchangeValue

2012-09-15 Thread Muhammad Gelbana
Please explain more and in a clearer way. On Sun, Sep 16, 2012 at 4:10 AM, gonzalomp87 wrote: > Hi! > > I'm using a select component in my application. In this component I have a > list of study's id. > I'm using the function OnChangeValue for redirect to the page where I show > details of the

Problem with OnchangeValue

2012-09-15 Thread gonzalomp87
Hi! I'm using a select component in my application. In this component I have a list of study's id. I'm using the function OnChangeValue for redirect to the page where I show details of the study. public Object onAction(Study study) { StudyDetalles.setStudyId(study.getStudy

Re: help upgrading T4 code

2012-09-15 Thread Bryan Lewis
Maybe this will help. I haven't tried it myself. http://chenillekit.codehaus.org/chenillekit-tapestry/ognlbinding.html On Sat, Sep 15, 2012 at 5:40 PM, Ken in Nashua wrote: > > Folks, > > Any help is appreciated. > > Formerly (in T4) OGNL was used to perform delicate property handling and > p

Re: help upgrading T4 code

2012-09-15 Thread Michael Prescott
You can still use OGNL yourself by independently importing OGNL into your project. Tapestry's property expression language doesn't do stuff like this. On 15 September 2012 17:40, Ken in Nashua wrote: > > Folks, > > Any help is appreciated. > > Formerly (in T4) OGNL was used to perform delicate

help upgrading T4 code

2012-09-15 Thread Ken in Nashua
Folks, Any help is appreciated. Formerly (in T4) OGNL was used to perform delicate property handling and processing. PropertyDescriptor beanPropDescriptor = (PropertyDescriptor) Ognl.getValue( "propertyDescriptors.{? name == '" + descriptor.getName() + "'}[0]"

Re: loading .js and in a specific order

2012-09-15 Thread sommeralex
thank you!!! is working. package com.airwriting.frontend.components; import org.apache.tapestry5.Asset; import org.apache.tapestry5.MarkupWriter; import org.apache.tapestry5.annotations.Import; import org.apache.tapestry5.annotations.Path; import org.apache.tapestry5.annotations.Property; import

Re: loading .js and in a specific order

2012-09-15 Thread Dusko Jovanovski
That shouldn't be a problem, you can access that parameter within AssetPathConverter (I'm assuming you are using a constant or a symbol for the googleMapsKey). It might seem complicated, but in the long run it should be worth it, since this override provides a way to import libraries from CDN. On

Re: loading .js and in a specific order

2012-09-15 Thread sommeralex
thx.. but seems complicated, because my asset also is taking parameters:

Re: loading .js and in a specific order

2012-09-15 Thread Dusko Jovanovski
Just read your question again (on nabble, the script tag was lost in the email), and I realized that's not gonna help. Take a look at this thread: http://tapestry.1045711.n5.nabble.com/Referencing-external-assets-td4346215.html Basically, you need to override AssetPathConverter, and then use @Imp

Re: loading .js and in a specific order

2012-09-15 Thread sommeralex
tried this already myPageClass: @Import(library = {"context:/js/OverlappingMarkerSpiderfier.js"}) void afterRender(){ } myPageTML: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> myGoogleMaps3.tml: http://maps.googleapis.com/maps/api/js?libraries=geometry&key=${goo

Re: loading .js and in a specific order

2012-09-15 Thread Dusko Jovanovski
You can use the @Import annotation on render methods. Try this: @Import(library = {"context:js/OverlappingMarkerSpiderfier.js"}) void afterRender(){} On Sat, Sep 15, 2012 at 7:12 PM, sommeralex wrote: > Hi! > > I need to ensure that google maps api 3 is loaded before > OverlappingMarkerSpiderfier

loading .js and in a specific order

2012-09-15 Thread sommeralex
Hi! I need to ensure that google maps api 3 is loaded before OverlappingMarkerSpiderfier ( OverlappingMarkerSpiderfier is a js lib helping to solve the multiple marker problem with same locations) The OverlappingMarkerSpiderfier.js is in my ressources folder, and normally i would just inject it

Re: Component taken from pool in T5.3?!

2012-09-15 Thread tompeter
Hi and thanks for your help. I chose another zone as a target and now it works fine. Don't really know what the problem was because I haven't done anything different with those two zones... Strange. Thanks and best, Tom -- View this message in context: http://tapestry.1045711.n5.nabble.com/Com

Re: Component taken from pool in T5.3?!

2012-09-15 Thread Kristian Marinkovic
Could you post some code. Am 15.09.2012 14:10 schrieb "tompeter" : > Hi everyone, > > I have a component in a Tapestry page that is displayed via Ajax renderer > returning a block. > Displaying the conponent the second time should show different data then > the > first time. I am logging that in t

Re: @Inject Error

2012-09-15 Thread Thiago H de Paula Figueiredo
On Sat, 15 Sep 2012 04:51:43 -0300, Muhammad Gelbana wrote: I'm sorry but how is the other project working if it's not using Tapestry while the @Inject annotations are Tapestry's ? Diego said the other projects were using CDI, which is another IoC framework, and he was probably using CDI

Component taken from pool in T5.3?!

2012-09-15 Thread tompeter
Hi everyone, I have a component in a Tapestry page that is displayed via Ajax renderer returning a block. Displaying the conponent the second time should show different data then the first time. I am logging that in the java-class which logs correct data. However, when the component is displayed,

Re: Sevice State / Stateless

2012-09-15 Thread Jens Breitenstein
we use DOA's as singletons since 3 years in prod, without any issue. Again, a DOA will never have a state, why? A DOA should have methods like "List getPersonsBornInYear(final int year)" and every selection criteria gets passed as parameter. If you consider a method like "Order getOrder(fi

Re: Value encoder toClient called twice for each request

2012-09-15 Thread Muhammad Gelbana
Also tapestry is still implementing the redirect after post mechanism so, I think this could explain the behavior you are having. On Sat, Sep 15, 2012 at 9:55 AM, Muhammad Gelbana wrote: > I couldn't comprehend all your code but could you encoder be called once > for decoding the read Id from the

Re: One Template to include another TML - JSP style

2012-09-15 Thread netdawg
Thanks, Ivan, Thiago. Indeed, message being - this is possible - and desirable - at the component level. -- View this message in context: http://tapestry.1045711.n5.nabble.com/One-Template-to-include-another-TML-JSP-style-tp5716240p5716300.html Sent from the Tapestry - User mailing list arch

Re: Value encoder toClient called twice for each request

2012-09-15 Thread Muhammad Gelbana
I couldn't comprehend all your code but could you encoder be called once for decoding the read Id from the client(browser) to a LineItem and once for encoding LineItems to Ids to be sent to the client ? On Fri, Sep 14, 2012 at 7:41 PM, George Christman wrote: > Hello, perhaps this is normal behav

Re: @Inject Error

2012-09-15 Thread Muhammad Gelbana
I'm sorry but how is the other project working if it's not using Tapestry while the @Inject annotations are Tapestry's ? On Sat, Sep 15, 2012 at 4:43 AM, Taha Siddiqi wrote: > Hi > > Are you binding your service in the Module class ? > > public static void bind(ServiceBinder binder){ >binder