ajaxformloop with File upload

2012-08-15 Thread Johannes Frey
Hi folks, I'm pretty new to tapestry but I like what I've seen so far :) .. but unfortunately I've got a little problem. I try to use ajaxformloop in combination with the file upload and can't figure it out how to get that working. As I see it when you click on the addRow-Link then the

Re: macbook retina support

2012-08-15 Thread sommeralex
the window device ratio was the wrong example (due it is JS) apple mentions two others ways, but it seems they are CSS solutions header { background: -webkit-image-set( url(images/header.jpg)1x, url(images/header_2x.jpg) 2x); height: 150px; /*

Re: Update other zones on zonerefresh event

2012-08-15 Thread Paul Stanton
once you receive the event server side, you can add as many zone updates as you want to AjaxResponseRenderer, you just need to get a handle to them, either by injection or by walking the component/object model. Have a look at ComponentResources.getEmbeddedComponent() On 15/08/2012 10:47 AM,

Re: macbook retina support

2012-08-15 Thread Christian Riedel
Having all @media switches in one css file might make your mobile clients download a lot of useless rules. You can split the files up and include just those files that are applicable for the device that is loading your pages. Check out this project:

Re: ajaxformloop with File upload

2012-08-15 Thread Ray Nicholus
The tapestry upload component is fine for single file uploads, in some cases. However, for apps that allow a user to upload n number of files, it is the wrong tool IMHO. Check out the file-uploader javascript project on github. tapestry5-jquery has also wrapped this library into a tapestry

Re: ajaxformloop with File upload

2012-08-15 Thread Thiago H de Paula Figueiredo
On Wed, 15 Aug 2012 04:21:37 -0300, Johannes Frey jf...@mhp.de wrote: Hi folks, Hi! As I see it when you click on the addRow-Link then the onAddRow-method is called and should return an object of the type needed by the markup(component) I'd say that with AjaxFormLoop the onAddRow()

Re: T5: override numeric validator message for specific field

2012-08-15 Thread Thiago H de Paula Figueiredo
On Wed, 15 Aug 2012 09:16:58 -0300, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Hello, Hi! I have BigDecimal property named: hourlyRate, default validator message is: 'You must provide numeric value for Hourly Rate' how i can override it with page.properties? Neither

Re: Library binder and IDE helper

2012-08-15 Thread Alex Kotchnev
I don't quite get it. If , as a user, I know that I need a ValueEncoderFactory, why is it helpful to inject T5, and call valueEncoderFactory() instead of declaring a field of type ValueEncoderFactory and marking it up w/ @Inject ? Cheers, Alex K On Tue, Aug 14, 2012 at 7:30 PM, Lenny Primak

Re: Update other zones on zonerefresh event

2012-08-15 Thread bogdan_cm
Thanks very much for your reply. The missing part for me is the method which will capture the server side zonerefresh event. What is this method called? :)) There are three solutions for me: 1) a method similar to - onZoneRefresh() { invoked when zonerefresh does it's XHR request. I would use

Re: Library binder and IDE helper

2012-08-15 Thread Robert Zeigler
The point is that you may not know it. You inject T5, and then use IDE code completion and inline help to determine what you need. Robert On Aug 15, 2012, at 8/158:29 AM , Alex Kotchnev wrote: I don't quite get it. If , as a user, I know that I need a ValueEncoderFactory, why is it helpful

combining scripts

2012-08-15 Thread Angelo C.
Hi, I set this: configuration.add(tapestry.combine-scripts, true); and use @Import(library to include scripts, but i can see the scripts not combined in my page source like: /assets/d83ba0cccf5d1e11/stack/en/core.js type=text/javascript/scriptscript

Re: combining scripts

2012-08-15 Thread Howard Lewis Ship
Combine scripts only aggregates scripts inside the same JavaScriptStack. On Wednesday, August 15, 2012, Angelo C. wrote: Hi, I set this: configuration.add(tapestry.combine-scripts, true); and use @Import(library to include scripts, but i can see the scripts not combined in my page

Re: combining scripts

2012-08-15 Thread Ray Nicholus
As stated in the documentation, this only combines scripts in a JavascriptStack. On Wed, Aug 15, 2012 at 9:32 AM, Angelo C. angelochen...@gmail.com wrote: Hi, I set this: configuration.add(tapestry.combine-scripts, true); and use @Import(library to include scripts, but i can see the

Re: Library binder and IDE helper

2012-08-15 Thread trsvax
I also reduces clutter in your page/component classes. I was already using this for DAOs because I have one DAO per entity type. Some pages would have 4 or 5 @Injects for DOAs. Now they have one. Secondly it defines the public API. If you use T5 you do not have access to private services. Lastly

Re: Lightweight TapestryTools update site

2012-08-15 Thread Gavin Lei
Yeah, i am working for this feature, it will be available in the coming week. I will post here once it is available 2012/8/9 Athneria, Mahendra mahendra.athne...@atos.net: Hi Gavin, Thanks for the reply. It would be great if you can add that feature too. I want to see the list of components

Re: combining scripts

2012-08-15 Thread Ray Nicholus
See the javascript stacks section in the javascript doc page http://tapestry.apache.org/javascript.html On Aug 15, 2012 9:45 AM, Angelo C. angelochen...@gmail.com wrote: Hi, Thanks for the quick response, as the program come from old version of Tapestry 5, we use only @Import, what 's the

Re: Update other zones on zonerefresh event

2012-08-15 Thread bogdan_cm
Found it. The method name is Object onRefresh() {} -- View this message in context: http://tapestry.1045711.n5.nabble.com/Update-other-zones-on-zonerefresh-event-tp5715431p5715459.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Update other zones on zonerefresh event

2012-08-15 Thread Howard Lewis Ship
On Wed, Aug 15, 2012 at 2:29 AM, Paul Stanton p...@mapshed.com.au wrote: once you receive the event server side, you can add as many zone updates as you want to AjaxResponseRenderer, you just need to get a handle to them, either by injection or by walking the component/object model. Have a

Re: Tapestry 5.3.4

2012-08-15 Thread David Rees
On Sat, Aug 11, 2012 at 7:20 AM, Stephan Windmüller wi...@white-hawk.de wrote: On 11.08.2012 02:00, David Rees wrote: I'm confused - so what's the proper fix to get the yuicompressor dependency downloaded when one is using a maven proxy? Configure your maven proxy to access the mentioned

Re: Inject all service implementations using Tapestry IoC

2012-08-15 Thread Norman Franke
I'll post that as a separate thread to make it easier to find later. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Aug 9, 2012, at 2:08 PM, Dmitry Gusev wrote: Hello, Norman! Sure, I'd like to see your approach. On Thu, Aug 9, 2012 at 10:02 PM, Norman Franke

T5 Auto Binding of DAOs

2012-08-15 Thread Norman Franke
Something similar was asked in another thread, but I figured others may find this helpful. I wanted to automatically bind my interfaces and implementations of my numerous DAOs in my AppModule. It's pretty easy, so here is what I idd. This is called from the bind static method. Obviously you'd

Re: T5 Auto Binding of DAOs

2012-08-15 Thread Thiago H de Paula Figueiredo
On Wed, 15 Aug 2012 19:33:24 -0300, Norman Franke nor...@myasd.com wrote: Helper method borrowed from who-knows-where: public static ListClass? getClassesForPackage(String packageName) throws ClassNotFoundException { Have you taken a look at Tapestry's ClassNameLocator and

Re: T5 Auto Binding of DAOs

2012-08-15 Thread Michael Prescott
That's very nifty, Norman. This is a simultaneously inspiring and depressing reminder that despite having used Tapestry since version 3, I still feel like a total noob. :-) I'd love to see a blog series on Services you never knew about and fun things to do with them! Michael On 15 August 2012

Re: T5 Auto Binding of DAOs

2012-08-15 Thread Norman Franke
It was an internal class when I first started, and I generally won't use classes in internal packages. I see it's been moved, so that may very well be a better idea. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Aug 15, 2012, at 6:43 PM, Thiago H de Paula Figueiredo

Re: combining scripts

2012-08-15 Thread Angelo C.
Hi, got the point, so I'm trying to add a js stack, but seems not getting the location right: this is what I did with Import: @Import(library = {context:/js/jquery-1.7.1.js... but in the JavascriptStack:

Re: combining scripts

2012-08-15 Thread Ray Nicholus
Problem: you're calling getContextAsset, and also including the context prefix in your path. On Wed, Aug 15, 2012 at 7:45 PM, Angelo C. angelochen...@gmail.com wrote: Hi, got the point, so I'm trying to add a js stack, but seems not getting the location right: this is what I did with

kinda sort-of stuck

2012-08-15 Thread Jaypax Ginete
I am using your excellent tynamo-security module but I'm kinda sort-of stuck. I have followed the tapestry-security guide and I think that I got it to work half-way; I'm able to redirect unauthenticated users, secure pages and methods via annotations. I just can't seem to authenticate users. I'm

Re: kinda sort-of stuck

2012-08-15 Thread Kalle Korhonen
Won't authenticate or won't authorize? Have you debugged it, i.e. are your doGetAuthenticationInfo() and doGetAuthorizationInfo() invoked? If they don't (and the realm is properly contributed), then the problem is with your login code. The system finds the right realm by a matching token class, so

[ANNOUNCEMENT] tapestry-routing 0.0.4 with locale support and rememberme with rolling tokens

2012-08-15 Thread Kalle Korhonen
We got too many new modules waiting for announcement at tynamo.org but let me start with these two bad boys: 0.0.4 version of tapestry-routing now supports locale and federatedaccounts gets a new add-on module, tynamo-federatedaccounts-rollingtokens to secure the insecure rememberMe. Read the blog

Re: combining scripts

2012-08-15 Thread Angelo C.
i tried without context as well: ret.add(assetSource.getContextAsset(/js/jquery-1.7.1.js, null)); also this: ret.add(assetSource.getContextAsset(js/jquery-1.7.1.js, null)); not working too -- View this message in context:

Re: T5 Auto Binding of DAOs

2012-08-15 Thread Thiago H de Paula Figueiredo
On Wed, 15 Aug 2012 19:47:50 -0300, Michael Prescott michael.r.presc...@gmail.com wrote: That's very nifty, Norman. This is a simultaneously inspiring and depressing reminder that despite having used Tapestry since version 3, I still feel like a total noob. :-) I'd love to see a blog series

Re: [ANNOUNCEMENT] tapestry-routing 0.0.4 with locale support and rememberme with rolling tokens

2012-08-15 Thread Angelo C.
tapestry-routing is interesting, can it be used in place of PageRenderLinkTransformer? -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANNOUNCEMENT-tapestry-routing-0-0-4-with-locale-support-and-rememberme-with-rolling-tokens-tp5715473p5715476.html Sent from the

macbook retina support

2012-08-15 Thread Lance Java
If I were doing this myself, I would want to know the isRetina boolean on the serverside. You could include a common js script on each page that redirects /foo/bar to /retina/foo/bar for retina clients. You could then use URL rewriting to store the boolean in an environmental. Take a look at this

Re: combining scripts

2012-08-15 Thread Ray Nicholus
So what do you mean, specifically, by not working? On Wed, Aug 15, 2012 at 9:50 PM, Angelo C. angelochen...@gmail.com wrote: i tried without context as well: ret.add(assetSource.getContextAsset(/js/jquery-1.7.1.js, null)); also this: ret.add(assetSource.getContextAsset(js/jquery-1.7.1.js,

Re: combining scripts

2012-08-15 Thread Ray Nicholus
Try using getUnlocalizedAsset on AssetSource instead. On Wed, Aug 15, 2012 at 10:25 PM, Ray Nicholus rnicho...@widen.com wrote: So what do you mean, specifically, by not working? On Wed, Aug 15, 2012 at 9:50 PM, Angelo C. angelochen...@gmail.comwrote: i tried without context as well:

Re: combining scripts

2012-08-15 Thread Ray Nicholus
...you will need the context prefix though. On Wed, Aug 15, 2012 at 10:29 PM, Ray Nicholus rnicho...@widen.com wrote: Try using getUnlocalizedAsset on AssetSource instead. On Wed, Aug 15, 2012 at 10:25 PM, Ray Nicholus rnicho...@widen.comwrote: So what do you mean, specifically, by not

Re: combining scripts

2012-08-15 Thread Angelo C.
Thanks for the help, I tried : ret.add(assetSource.getUnlocalizedAsset(context:/js/jquery-1.7.1.js)); but still get this error: Caused by: java.lang.NullPointerException at