Re: How to invoke tapestry client side validation on one fields?

2011-12-19 Thread Yohan Yudanara
Hi, I've found the answer :)..It's very simple... This is the answer: Event.observe($(' fieldNeedOnBlurValidation '), 'blur', function(event) { $('fieldNeedOnBlurValidation').getFieldEventManager().validateInput(); }); On Tue, Dec 20, 2011 at 12:22 PM, Yohan Yudanara wrote: > Hi, > > I want

How to invoke tapestry client side validation on one fields?

2011-12-19 Thread Yohan Yudanara
Hi, I want to ask a question: Client side validation by default works on "blur" event, but I've change the form property using clientValidation="submit", so that client side validation only triggered on submit. However, I want to trigger client side validation on one particular field to works on

Re: Using loop inside a form without ValueEncoder

2011-12-19 Thread Nefron
>From Tapestry loop documentation: "With no extra configuration, each value object will be serialized into the form (if you view the rendered markup, you'll see a hidden form field containing serialized data needed by Tapestry to process the form)." I want to force this behavior when there is a p

Re: Using loop inside a form without ValueEncoder

2011-12-19 Thread Thiago H. de Paula Figueiredo
On Sun, 18 Dec 2011 17:37:40 -0200, Nefron wrote: Hey, Hi! I'm trying to use loop inside a form with a transient entity. I'm using the Hibernate module, and it provides ValueEncoders for all entities. This is usually very useful, but in this case I want to fall back to the default loo

Re: Tapestry 5.1.0.5 vs Prototype 1.7 and Scriptaculous 1.9

2011-12-19 Thread Hugi Thordarson
> Thank you, Dmitriy! Works like a charm! Now I'm chasing a non-related > IE-specific JavaScript bug (sigh). Hugi, please pay the beers you owe me to > Dmitriy! :D Sure — just have him contact me next time he's here in Reykjavik, Iceland (yes: that's how I can afford to promise beer to everyone

Re: Tapestry 5.1.0.5 vs Prototype 1.7 and Scriptaculous 1.9

2011-12-19 Thread Thiago H. de Paula Figueiredo
Thank you, Dmitriy! Works like a charm! Now I'm chasing a non-related IE-specific JavaScript bug (sigh). Hugi, please pay the beers you owe me to Dmitriy! :D On Mon, 19 Dec 2011 15:07:10 -0200, Dmitriy Vsekhvalnov wrote: I do. I'm using tapestry-js-fixes.js (i'm not sure where did i ge

Re: Exception assembling embedded component 'exceptiondisplay'

2011-12-19 Thread Josh Canfield
What version of Tapestry? There was an openJDK incompatibility in early versions of 5.3, but it should be resolved in recent versions. You get the error with the sun JDK? That would be new, the known error was specifically with openJDK. How possible is it that you thought you'd changed the JDK th

Re: shiro

2011-12-19 Thread Alejandro Scandroli
Hi 1) I think the first issue could be that the "/index" URL is almost never used. All the links to the Index.java page will be pointed to "/". You can try 2 things: a) rewrite your rule like this: configuration.add(factory.createChain("/").add(factory.authc()).build()); b) Add @RequiresAuthentic

Re: Tapestry 5.1.0.5 vs Prototype 1.7 and Scriptaculous 1.9

2011-12-19 Thread Dmitriy Vsekhvalnov
i include: tapestry-js-fixes.js in my Layout component, which is used in every my page. May be not best approach, but it works. And i also have following lines in my AppModule: //prototype 1.7 support public static void contributeFactoryDefaults(MappedConfiguration configuration)

Re: Tapestry 5.1.0.5 vs Prototype 1.7 and Scriptaculous 1.9

2011-12-19 Thread Dmitriy Vsekhvalnov
I do. I'm using tapestry-js-fixes.js (i'm not sure where did i get it, so content inlined) == tapestry-js-fixes.js = Tapestry.ZoneManager.addMethods({ processReply : function(reply) { Tapestry.loadScriptsInReply(reply, function() { /* * In a multi-zone update, the reply.cont

Tapestry 5.1.0.5 vs Prototype 1.7 and Scriptaculous 1.9

2011-12-19 Thread Thiago H. de Paula Figueiredo
Hi! Has anyone tried to use T5.1.0.5 with Prototype 1.7 and Scriptaculous 1.9? I'm having some weird JS errors: * Tapestry.Logging not defined. * Tapestry.Messages not defined. * undefinedTypeError: reply.zones is not an object. Are there known Tapestry.js issues with these versions of Protot

Re: works in Jetty, not in Tomcat 6?

2011-12-19 Thread Hugi Thordarson
>> I hesitate to post it, since it's just an ugly hack meant to save us until >> tapestry5-cayenne works with 5.3 :). But here goes: >> >> https://gist.github.com/1497082 >> >> I don't think the error is there though—the NullPointerException there is >> just an artifact of the fact that the obj

url rewrite: Adding PageRenderLinkTransformer and ComponentEventLinkTransformer

2011-12-19 Thread Jens Reufsteck
Following Igor’s blog I’ve added a PageRenderLinkTransformer to url rewriting. Now, I’m trying to add also a ComponentEventLinkTransformer, but the method @Contribute(PageRenderLinkTransformer.class) @Primary public static void provideURLRewriting( OrderedConfigu

Re: works in Jetty, not in Tomcat 6?

2011-12-19 Thread Thiago H. de Paula Figueiredo
On Mon, 19 Dec 2011 10:53:25 -0200, Hugi Thordarson wrote: Hi Thiago! Hi! I hesitate to post it, since it's just an ugly hack meant to save us until tapestry5-cayenne works with 5.3 :). But here goes: https://gist.github.com/1497082 I don't think the error is there though—the NullPoin

Re: animated graph

2011-12-19 Thread Nicolas Barrera
Hi!, I was just beggining to integrate an animated graph/chart library when I saw this post... well... as I said... I 'm just begining so I ain't got any solution right now but... my 20 cents would be that I 've decided to use amCharts framework ( http://www.amcharts.com/) because you could use it

Re: works in Jetty, not in Tomcat 6?

2011-12-19 Thread Hugi Thordarson
Hi Thiago! I hesitate to post it, since it's just an ugly hack meant to save us until tapestry5-cayenne works with 5.3 :). But here goes: https://gist.github.com/1497082 I don't think the error is there though—the NullPointerException there is just an artifact of the fact that the object passe

Re: works in Jetty, not in Tomcat 6?

2011-12-19 Thread Thiago H. de Paula Figueiredo
On Mon, 19 Dec 2011 09:46:56 -0200, Hugi Thordarson wrote: Hi all. Hi! I'm fighting a little weird problem. I've got a component that works fine when I run my project in Jetty. But when I attempt to use the same component (in the same application) in Tomcat, I'm getting a NullPointer

works in Jetty, not in Tomcat 6?

2011-12-19 Thread Hugi Thordarson
Hi all. I'm fighting a little weird problem. I've got a component that works fine when I run my project in Jetty. But when I attempt to use the same component (in the same application) in Tomcat, I'm getting a NullPointerException. Here's the component: https://gist.github.com/1496826 And this

Re: Using a checkbox in a grid component

2011-12-19 Thread Paulo Ricardo Ribeiro
Olá Thiago :) and Hello Antalk I've just looked to the demo, and it appears to be exactly what I'm looking for. Thank you both for your help Cheers, (e um abraço :)) Paulo Ricardo On Mon, Dec 19, 2011 at 11:38 AM, antalk [via Tapestry] < ml-node+s1045711n5085856...@n5.nabble.com> wrote: > You

Re: Using a checkbox in a grid component

2011-12-19 Thread antalk
You could checkout my Tapestry Module : Weaves, it has a 'improved' grid component with paging and checkboxes per row and also a 'checkall' box. See: http://intercommitweavesdemo.intercommit.cloudbees.net/pagedgriddemo for demo And: https://github.com/intercommit/Weaves for code -- View this m

Re: Using a checkbox in a grid component

2011-12-19 Thread Thiago H. de Paula Figueiredo
On Mon, 19 Dec 2011 09:04:30 -0200, Paulo Ricardo Ribeiro wrote: Hello, Hi! I'm trying to add a "Select All / Select None" button at the end (or top) of the grid. I'll, probably create a mixin to do so, but, since i don't want to "reinvent the wheel", I'm wondering if there's a simpl

Re: Using a checkbox in a grid component

2011-12-19 Thread Paulo Ricardo Ribeiro
Hello, I'm trying to add a "Select All / Select None" button at the end (or top) of the grid. I'll, probably create a mixin to do so, but, since i don't want to "reinvent the wheel", I'm wondering if there's a simple way to do it. Cheers, Paulo Ricardo -- View this message in context: http://t

Re: Managing the Tapestry 5.3 ApplicationStateManager SSO life-cycle

2011-12-19 Thread Peter Stavrinides
Hi Igor, Thanks very much for your response!! Just to clarify the behaviour, Tapestry's registry will always return a service even if it needs to reconstruct it, right? Is this why in our case the ASM returns a new service instance? If we were to use ApplicationStateContribution with an,

Re: animated graph

2011-12-19 Thread Joost Schouten (mailing lists)
We've integrated Google visualization [1]. A small screenshot of it at [2]. It works nicely with googles visulisation java API [3] which you can use to buildup your JSON to initialize your charts. It offers great extension possibilities as well. Good luck, Joost [1] http://code.google.com/apis

Re: animated graph

2011-12-19 Thread antalk
I've integrated this library: http://www.highcharts.com/ in our webapp. It has a wrapper for Prototype so no need to add JQuery to your Tapestry project. The possibilities are almost endless. Antal -- View this message in context: http://tapestry.1045711.n5.nabble.com/animated-graph-tp5083674p5