[T5.3] Change asseth path prefix

2011-11-21 Thread Ville
Hi, we have requirement to change the asset path to be something else than /assets/. Can this be done? We're running T4 and T5 side by side and now the assets request are handled entirely by Tap 4 that can't "see" the resources. Why the path prefix is not a configuration symbol? - Ville -- V

Re: prevent multiple form submits

2011-11-21 Thread hongdengdao
great !! thanks for sharing!! On 2011年11月22日 06:59, Lenny Primak wrote: I just did a quick test with form/zone/clientValidations and the mixin works correctly. On Nov 21, 2011, at 5:45 PM, Lenny Primak wrote: I see... I actually never tried forms with client-side validation with the mixin.

How to GZip compression Xml StreamResponse?

2011-11-21 Thread Ivan Liu
Hi All I read http://tapestry.1045711.n5.nabble.com/JSON-GZip-compression-td2845041.html, I am looking at the code to Gzip StreamResponse. Could tell me how to GZip compression Xml StreamResponse? Thank you Very Much! How can get productive in Tapestry fast! -- IT瘾 - 发现和推荐优质IT科技资讯

Re: prevent multiple form submits

2011-11-21 Thread Thiago H. de Paula Figueiredo
On Mon, 21 Nov 2011 22:27:50 -0200, Ray Nicholus wrote: Thiago or Howard:Is there any chance Tapestry will natively prevent multiple form submissions in a future version? Adding it as a default behavior may not be the best option, specially with a JavaScript-only solution. On the other ha

Re: fckeditor for Tapestry 5.3

2011-11-21 Thread Thiago H. de Paula Figueiredo
On Mon, 21 Nov 2011 22:06:46 -0200, TG wrote: Awesome, finally a reply ! ;p The thread has many replies, one saying exactly what I've said, so your statement above isn't true. Hey, how do I fix "you were trying to return a Block without using AJAX (i.e. without setting the zone attribute

Re: prevent multiple form submits

2011-11-21 Thread Ray Nicholus
Thiago or Howard:Is there any chance Tapestry will natively prevent multiple form submissions in a future version? On Mon, Nov 21, 2011 at 4:59 PM, Lenny Primak wrote: > I just did a quick test with form/zone/clientValidations and the mixin > works correctly. > > On Nov 21, 2011, at 5:45 PM, Len

Re: fckeditor for Tapestry 5.3

2011-11-21 Thread TG
Awesome, finally a reply ! ;p Hey, how do I fix "you were trying to return a Block without using AJAX (i.e. without setting the zone attribute in the Form component"? Sorry if it sounded too simple to you, but any link or resource would be great. -- View this message in context: http://tapes

Re: prevent multiple form submits

2011-11-21 Thread Lenny Primak
I just did a quick test with form/zone/clientValidations and the mixin works correctly. On Nov 21, 2011, at 5:45 PM, Lenny Primak wrote: > I see... > I actually never tried forms with client-side validation with the mixin. > If it doesn't work, please feel free to submit an issue, even better a

Re: prevent multiple form submits

2011-11-21 Thread Lenny Primak
I see... I actually never tried forms with client-side validation with the mixin. If it doesn't work, please feel free to submit an issue, even better a patch with tests, if required. On Nov 21, 2011, at 5:15 PM, hongdengdao wrote: > sorry , still confused, in your code , you bind click event

Re: update a zone from other tapestry5 systems?

2011-11-21 Thread hongdengdao
thanks , i 'll try it and keep post. On 2011年11月21日 23:17, Taha Hafeez Siddiqi wrote: Hi It is a client side issue, so tapestry can't help What you can do is 1) take the credentials and do it using an HTTP POST from server side. (Obviously this is something a user won't like) 2) Another way

Re: prevent multiple form submits

2011-11-21 Thread hongdengdao
sorry , still confused, in your code , you bind click event , but when it's a link submit , you click it , if has a client validation error , it will still submit? thanks for you patient. On 2011年11月22日 06:02, Lenny Primak wrote: It's _after_ submit. It doesn't have to do anything with vali

Re: prevent multiple form submits

2011-11-21 Thread Lenny Primak
Sure I'd like to contribute. Gotta work on that documentation and there are other generic things in there that would be useful in tapestry-core. On Nov 21, 2011, at 5:09 PM, "Thiago H. de Paula Figueiredo" wrote: > On Mon, 21 Nov 2011 19:39:49 -0200, François Facon > wrote: > >> Nice Wor

Re: prevent multiple form submits

2011-11-21 Thread Thiago H. de Paula Figueiredo
On Mon, 21 Nov 2011 19:39:49 -0200, François Facon wrote: Nice Work Lenny. Agreed. :) Would you like to have it included in Tapestry-core? ;-) You can always donate if you want. ;) I just discovered your mixin http://code.google.com/p/flowlogix/source/browse/services/src/main/java/com/

Re: prevent multiple form submits

2011-11-21 Thread Ray Nicholus
I'm wondering if tapestry should natively prevent multiple submits instead. That way, we won't need a mixin. This seems like a good idea, unless there is some case where multiple submits would be desirable, but I can't think of any. On Mon, Nov 21, 2011 at 3:56 PM, Lenny Primak wrote: > Multipl

[5.3] JSONArray Error while submitting forms

2011-11-21 Thread Serge Eby
Hi, I am using T 5.3-rc-3 and I am getting the following error message while submitting any forms in my app: --- A JSONArray text must start with '[' at character 1 of "[\"save\", \"save\"]" -- Stack trace: -- org.apache.tapestry5.json.JSONTokener.syntaxError(JSONTokener.java:384) org.apache

Re: prevent multiple form submits

2011-11-21 Thread Lenny Primak
It's _after_ submit. It doesn't have to do anything with validation. On Nov 21, 2011, at 4:57 PM, hongdengdao wrote: > when validate failed, disable or enable? > > On 2011年11月22日 05:39, François Facon wrote: >> Nice Work Lenny. >> >> I just discovered your mixin >> http://code.google.com/p

Re: prevent multiple form submits

2011-11-21 Thread hongdengdao
when validate failed, disable or enable? On 2011年11月22日 05:39, François Facon wrote: Nice Work Lenny. I just discovered your mixin http://code.google.com/p/flowlogix/source/browse/services/src/main/java/com/flowlogix/web/mixins/DisableAfterSubmit.java And his related prototype file http://code

Re: prevent multiple form submits

2011-11-21 Thread Lenny Primak
Multiple submits are allowed in the mixin. Perhaps I am misunderstood your us case. On Nov 21, 2011, at 4:51 PM, Ray Nicholus wrote: > Looks interesting, and I do think a mixin is a good way to go here. > However, I'm trying to think of a case where multiple submits would be > permissible.

Re: prevent multiple form submits

2011-11-21 Thread Ray Nicholus
er natively, not naively. On Mon, Nov 21, 2011 at 3:51 PM, Ray Nicholus wrote: > Looks interesting, and I do think a mixin is a good way to go here. > However, I'm trying to think of a case where multiple submits would be > permissible. If there is no such case, perhaps it would be ideal for t

Re: prevent multiple form submits

2011-11-21 Thread Ray Nicholus
Looks interesting, and I do think a mixin is a good way to go here. However, I'm trying to think of a case where multiple submits would be permissible. If there is no such case, perhaps it would be ideal for this to be handled naively by Tapestry. Has there been any discussion along these lines?

Re: prevent multiple form submits

2011-11-21 Thread Lenny Primak
Thanks for the kind words Francois, although the documentation is still desperately lacking. On Nov 21, 2011, at 4:39 PM, François Facon wrote: > Nice Work Lenny. > > I just discovered your mixin > http://code.google.com/p/flowlogix/source/browse/services/src/main/java/com/flowlogix/web/mixi

Re: prevent multiple form submits

2011-11-21 Thread François Facon
Nice Work Lenny. I just discovered your mixin http://code.google.com/p/flowlogix/source/browse/services/src/main/java/com/flowlogix/web/mixins/DisableAfterSubmit.java And his related prototype file http://code.google.com/p/flowlogix/source/browse/services/src/main/resources/com/flowlogix/web/mixi

Re: prevent multiple form submits

2011-11-21 Thread Lenny Primak
Perhaps there are better solutions, but I solved it via DisableAfterSubmit mixin in my FlowLogix utility module http://code.google.com/p/flowlogix/ On Nov 21, 2011, at 4:07 PM, Ray Nicholus wrote: > I'm sure I am not the first one to encounter this problem, and before I go > about re-inventing

Re: prevent multiple form submits

2011-11-21 Thread François Facon
Have a look at Jumpstart. http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/creatingmixins1 2011/11/21 Ray Nicholus : > I'm sure I am not the first one to encounter this problem, and before I go > about re-inventing the wheel, I wanted to see if this is something that has > al

prevent multiple form submits

2011-11-21 Thread Ray Nicholus
I'm sure I am not the first one to encounter this problem, and before I go about re-inventing the wheel, I wanted to see if this is something that has already been elegantly solved in the tapestry circle. Anyone?

Re: Spring-security can't add AuthenticationProvider

2011-11-21 Thread Jonathan Barker
Can you move the provider building out of Spring into your AppModule so you can actually specify a service id? Or, as suggested by Chris, pass ApplicationContext into your contributeProviderManager method instead of AuthenticationProvider, and then do appContext.getBean("myBeanId") to get a specif

Code Coverage link on Tap homepage doesn't work anymore

2011-11-21 Thread derkoe
Link "See Tapestry's code coverage report" on Tapestry home page leads to http://tapestry.apache.org/current/tapestry-core/cobertura/index.html which results in a 404. JIRA? Or can somebody fix that quickly? -- Chris -- View this message in context: http://tapestry.1045711.n5.nabble.com/Code-C

Re: Flexigrid with tapestry 5.2

2011-11-21 Thread derkoe
Cucchietti Denis-2 wrote > > Hi all ! > Hi Cucchietti Denis-2 wrote > > Is there a mean to integrate flexigrid ( http://flexigrid.info/ ) > component into tapestry 5.2 ? Maybe a custom component already exists? > Haven't heard of any - but I've done an implementation for http://datatables.ne

Re: A look into Tapestry-core sources . . .

2011-11-21 Thread cqasker
Indeed -- thanks for the link Thiago. I am trying to spread the use of Tapestry in my organization. Good design seems to take care of everything else (from performance, to flexibility and maintenance). This is more validation that Tapestry was coded very well which I will pass around to my coworke

Re: Tynamo: Store additional user data during authentication

2011-11-21 Thread Kalle Korhonen
On Mon, Nov 21, 2011 at 4:44 AM, Jens Reufsteck < jens.reufst...@staufenbiel.de> wrote: > Hi, sorry if this has been asked before, though I couldn’t find anything > about it. > > I’ve just started to use Tapestry security instead of our own light weigth > authentication system. Works fine so f

A look into Tapestry-core sources . . .

2011-11-21 Thread Thiago H. de Paula Figueiredo
. . . from the JDepend team: http://javadepend.wordpress.com/2011/10/25/inside-tapestry-core/. Summary: "Tapestry is a good framework to use for your J2EE projects, It’s very simple, and as developer you can use only POJO types without having complicated implementation, and it’s also well

Re: Pageable Loop-like Component

2011-11-21 Thread Josh Kamau
Thanks. I will check Chillenkit out. On Mon, Nov 21, 2011 at 6:51 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Mon, 21 Nov 2011 13:05:35 -0200, Josh Kamau > wrote: > > Thiago; >> > > Hi! > > Chillenkit is dated 2009. >> > > I guess the team forgot to update the date. :)

Re: Pageable Loop-like Component

2011-11-21 Thread Thiago H. de Paula Figueiredo
On Mon, 21 Nov 2011 13:05:35 -0200, Josh Kamau wrote: Thiago; Hi! Chillenkit is dated 2009. I guess the team forgot to update the date. :) As far as I can remember, it already works with 5.2, so using it with 5.3 will be something you can do now or just waiting a bit until the team

Re: Onclick actionlink

2011-11-21 Thread Taha Hafeez Siddiqi
Hi I couldn't understand the use case. I think when you click, if the default action is not prevented(event.preventDefault()) it will go to the given url in which case the page will be reloaded and so there is no point in changing the color. regards Taha On Nov 21, 2011, at 7:21 PM, darkslid

Re: update a zone from other tapestry5 systems?

2011-11-21 Thread Taha Hafeez Siddiqi
Hi It is a client side issue, so tapestry can't help What you can do is 1) take the credentials and do it using an HTTP POST from server side. (Obviously this is something a user won't like) 2) Another way is do what Facebook does, host a javascript on app project which creates an iframe an

Re: Pageable Loop-like Component

2011-11-21 Thread Josh Kamau
Thiago; Chillenkit is dated 2009. I thought it may not be compatible with latest Tapestry. Regards. Josh. On Mon, Nov 21, 2011 at 2:03 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Sun, 20 Nov 2011 16:06:30 -0200, Josh Kamau > wrote: > > Hi there ; >> > > Hi! > > > Is t

update a zone from other tapestry5 systems?

2011-11-21 Thread liu yong
Hi,all: i have a app project and a passport project ,and i want to do ajax login from passport project in app project ,the natual way is update a zone in app project, but zone content is come from passport project. i tried it ,but passport project failed, throw a blockimpl exception. i

update a zone from other tapestry5 systems?

2011-11-21 Thread hongdengdao
Hi,all: i have a app project and a passport project ,and i want to do ajax login from passport project in app project ,the natual way is update a zone in app project, but zone content is come from passport project. i tried it ,but passport project failed, throw a blockimpl exception.

Re: Spring-security can't add AuthenticationProvider

2011-11-21 Thread Juan Alba
Chris, thanks for the tip, What I am still missing is to assign more than one authenticationProvider to the ProviderManager. I can see there that it is a List of providers, but I don't know how to set this list with all my different authenticationProviders. Does anybody knows? Thanks in advan

tapestry5 cross domain ajax, any ideas?

2011-11-21 Thread hongdengdao
Hi,all: i have a app project and a passport project ,and i want to do ajax login from passport project in app project ,the natual way is update a zone in app project, but zone content is come from passport project. i tried it ,but passport project failed, throw a blockimpl except

Onclick actionlink

2011-11-21 Thread darkslide
Hi, I would like to ask you : I have an actionlink as below: Edit And JS: var preEl ; var orgBColor; var orgTColor; function HighLightTR(el, backColor,textColor){ if(typeof(preEl)!='undefined') { preEl.bgColor=orgBColor; try{ChangeTextColor(preEl,orgTColor);}catch(e){;} } orgBCol

Re: Pageable Loop-like Component

2011-11-21 Thread Barry Books
I wrote a MediaGrid component that may be useful. Here is a description of how it works http://trsvax.com/blog/BootstrapModule The code is on GitHub https://github.com/trsvax/tapestry-bootstrap/ - To unsubscribe, e-mail: users-u

Tynamo: Store additional user data during authentication

2011-11-21 Thread Jens Reufsteck
Hi, sorry if this has been asked before, though I couldn’t find anything about it. I’ve just started to use Tapestry security instead of our own light weigth authentication system. Works fine so far – thanks to the developers! Now, I want to display the real name for logged in users. It’s n

No form support after zone update.

2011-11-21 Thread Greg Pagendam-Turner
Hi, I'm using tapestry 5.3 with tapestry-jquery. I have a page called UploadImage to allow the user to upload an image and then crop it to size. The image is uploaded by AjaxUpload. The upload zone should then be replaced with a block to allow cropping of the image. The problem is that afte

Re: List Form Validation Error

2011-11-21 Thread captain_rhino
I think I've worked it out. referring to articles: T5: Recording errors for fields in a loop and Cross Validation in dynamic Forms The item you are iterating around must store the controlname of the element you ultimately want the error to appear on. When you create your list (probably is onAc

Re: Tapestry in Scala

2011-11-21 Thread Thiago H. de Paula Figueiredo
On Mon, 21 Nov 2011 09:01:05 -0200, derkoe wrote: During the (excellent) Scala workshop at W-JAX 2011 - with not a single Tapestry talk :( - I thought how it would be to develop a Tapestry application in Scala. In a nutshell: Tapestry and Scala work perfectly together (when you keep some thi

Re: fckeditor for Tapestry 5.3

2011-11-21 Thread Thiago H. de Paula Figueiredo
On Sun, 20 Nov 2011 16:18:53 -0200, TG wrote: After days of scratching my head and banging my head against the wall, with no help from the guru in this forum, This is a mailing list, not paid support. We've provided you help: there are at least two working FCKEditor components out there (C

Re: Pageable Loop-like Component

2011-11-21 Thread Thiago H. de Paula Figueiredo
On Sun, 20 Nov 2011 16:06:30 -0200, Josh Kamau wrote: Hi there ; Hi! Is there a way of hiding the header of the Grid component. CSS! Something like theader { display: none;} (not tested). i want to have is a way of listing items (e.g the way the Loop does it) but also with the paging

Tapestry in Scala

2011-11-21 Thread derkoe
During the (excellent) Scala workshop at W-JAX 2011 - with not a single Tapestry talk :( - I thought how it would be to develop a Tapestry application in Scala. In a nutshell: Tapestry and Scala work perfectly together (when you keep some things in mind). I wrote a post about the good things and

Re: Print functionality in tapestry 4.1.6

2011-11-21 Thread derkoe
NewUser wrote > > Hi everyone, > > I am using tapestry 4.1.6 in my project. I have to implement a print > functionality that includes : > > 1. displaying a 'Print' button on a page > 2. click on 'Print' button opens up that particular page in pop-up along > with print dialog box > > I have bee

Re: Print functionality in tapestry 4.1.6

2011-11-21 Thread derkoe
-- View this message in context: http://tapestry.1045711.n5.nabble.com/Print-functionality-in-tapestry-4-1-6-tp5009536p5010161.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: use

List Form Validation Error

2011-11-21 Thread captain_rhino
I have a form where I iterate around a list. Each input has its own submit button. When I validate the input it always marks the last element in the list as invalid and NOT the one that actually contains the error. A few other people seem to have had this issue. The posts mention setting the co

Re: Spring-security can't add AuthenticationProvider

2011-11-21 Thread derkoe
kado wrote > > Hi, > > I am trying to add a facebook provider to my app. > > I added the config to the xml and I had created the Class > FacebookDaoProvider just for testing if everything goes fine but when I > start the server this message is shown: > > Construction of service ProviderManage