Re: Mixing prototype and JQuery based components?

2012-03-29 Thread Emmanuel DEMEY
With Tapestry5-jQuery, we have overriden just few Component classes, most of the time for using JSON format (Autocomplete and Palette). But all the JavaScript have been translated to jQuery, in order to create a full jQuery application. But, if you have old Prototype-based components/mixins, all

@SessionState and Translator

2012-03-29 Thread resign
hi, is it possible to add an translator to textfield depends on logged user? For example i want to translate Date object depends on logged user. greetings, resign -- View this message in context: http://tapestry.1045711.n5.nabble.com/SessionState-and-Translator-tp5605827p5605827.html Sent from

ERROR [ResourceMinimizer] Exception minimizing

2012-03-29 Thread Anuj Mittal
Hi All, I have an issue in production mode. I get the following exception (see below) for each page request, but the page display without problem. I am fairly new to Tapestry but this looks like a bug. If anyone has information about this behaviour, feel free to reply. 7:25:34,445 INFO [STD

Re: Where to store site settings?

2012-03-29 Thread ksrijith
You could access the properties as symbol. You can refer the link below for an example: http://wiki.apache.org/tapestry/Tapestry5HowToReadSymbolsFromPropertiesFile This gives you the freedom to hold the configs in the property files rather than as part of system properties or as init parameters i

Re: Mixing prototype and JQuery based components?

2012-03-29 Thread trsvax
I don't really know but I would imagine two things 1. Both want to use $ 2. Remove the dependency on prototype. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Mixing-prototype-and-JQuery-based-components-tp5605199p5605479.html Sent from the Tapestry - User mailing list ar

Re: Tutorial issue- changing code and refresh not working

2012-03-29 Thread Bob Harner
I just added a troubleshooting section to the Class Reloading documentation (http://tapestry.apache.org/class-reloading.html) and added a mention of it in the tutorial. (It might take an hour or so to see these changes in the public site.) On Thu, Mar 29, 2012 at 6:49 PM, fredramsey wrote: > It w

Re: Mixing prototype and JQuery based components?

2012-03-29 Thread Lenny Primak
I now see there is no 'JQuery Zone', so the mystery deepens. Are there any downsides to having SUPPRESS_PROTOTYPE=false thus not overriding default Tapestry components? What was the original decisions that drove to override the JS engine behind the core Tapestry components? On Mar 29, 2012, at 6

Mixing prototype and JQuery based components?

2012-03-29 Thread Lenny Primak
I have a T5 bases application that I am trying to enhance using jquery for new pages. I have the got5 module loaded with SUPPRESS_PROTOTYPE=false. I also have custom components and mixins based on prototype. From what I understand I can't use jquery form in standard zone in this configuration?

Re: Tutorial issue- changing code and refresh not working

2012-03-29 Thread fmaylinch
fredramsey wrote > > That is not on by default in Eclipse, and it isn't mentioned in the > tutorial. > > > Thiago H de Paula Figueiredo wrote >> >> Hi are you running the webapp? Are you sure Eclipse is compiling your >> Java >> classes automatically and to a folder which is in the servlet c

Re: Extension-point and the notion of has content

2012-03-29 Thread yazdog8
Thanks for the help! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Extension-point-and-the-notion-of-has-content-tp5602212p5605024.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: tapestry-security 0.4.4 released!

2012-03-29 Thread trsvax
And thanks for the Doc update on @AutoBuild -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-security-0-4-4-released-tp5604723p5604969.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: tapestry-security 0.4.4 released!

2012-03-29 Thread trsvax
Works for me so far in a non root context! My mail reader is so excited it got a 404. http://tynamo.org/tapestry-security+guide Thanks Barry -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-security-0-4-4-released-tp5604723p5604968.html Sent from the Tapestry - Us

Re: Dynamic CSS depending on URL

2012-03-29 Thread Jon Williams
Hey Y'all I was reading the thread and you know another prime use case is sizing images for mobile or web using css alone. We need to be able to do this. I could use use it starting yesterday. Just so you know, Jon On Thu, Mar 29, 2012 at 2:20 PM, Juan Alba wrote: > Thanks Lance Again. > > I h

Re: Dynamic CSS depending on URL

2012-03-29 Thread Thiago H. de Paula Figueiredo
On Thu, 29 Mar 2012 17:20:29 -0300, Juan Alba wrote: Thanks Lance Again. I have just been being reading the article you share with me and I realized that is for tapestry 5.2.0. I am using 5.1.0.5, so I will have to use the URLRewriter* service (Can't update to 5.2.0). I have no idea h

Re: Dynamic CSS depending on URL

2012-03-29 Thread Juan Alba
Thanks Lance Again. I have just been being reading the article you share with me and I realized that is for tapestry 5.2.0. I am using 5.1.0.5, so I will have to use the * URLRewriter* service (Can't update to 5.2.0). I have no idea how this work either, do you think that I will be able to do some

Re: Tutorial issue- changing code and refresh not working

2012-03-29 Thread Thiago H. de Paula Figueiredo
On Thu, 29 Mar 2012 17:04:32 -0300, fredramsey wrote: Thanks. That is not checked by default, and it is not in the tutorial. Most probably because it's checked by default and I guess most people don't ever change it. Anyway, thanks for pointing this out. :) By the way, searching for "re

Re: Tutorial issue- changing code and refresh not working

2012-03-29 Thread fredramsey
Thanks!!! That is not on by default in Eclipse, and it isn't mentioned in the tutorial. Thank you very much for your help. Thiago H de Paula Figueiredo wrote > > Hi are you running the webapp? Are you sure Eclipse is compiling your Java > classes automatically and to a folder which is in the

Re: Tutorial issue- changing code and refresh not working

2012-03-29 Thread Lenny Primak
Try "live reloading". On Mar 29, 2012, at 3:57 PM, fredramsey wrote: > So these threads don't contain the words "tutorial" and "refresh"? > > Kind of odd, don't you think? > > Then there's code change refresh - nothing helpful there. > > How about eclipse change refresh? > > Nope. > >

Re: Tutorial issue- changing code and refresh not working

2012-03-29 Thread fredramsey
Thanks. That is not checked by default, and it is not in the tutorial. -Fred Ramsey http://fredramsey.com On Thu, Mar 29, 2012 at 3:37 PM, Thiago H de Paula Figueiredo [via Tapestry] wrote: > On Thu, 29 Mar 2012 16:00:57 -0300, fredramsey <[hidden > email]

Re: Tutorial issue- changing code and refresh not working

2012-03-29 Thread fredramsey
So these threads don't contain the words "tutorial" and "refresh"? Kind of odd, don't you think? Then there's code change refresh - nothing helpful there. How about eclipse change refresh? Nope. Anyone? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tutorial-issue

Re: Tutorial issue- changing code and refresh not working

2012-03-29 Thread Thiago H. de Paula Figueiredo
On Thu, 29 Mar 2012 16:00:57 -0300, fredramsey wrote: Mac OSX, Eclipse, followed all steps. If I make a change to the index class as in the tutorial, and refresh (Firefox or Safari), the change is not shown. I even cleared the cache. I end up having to rebuild. Hi are you running the webapp

Re: Tutorial issue- changing code and refresh not working

2012-03-29 Thread Lenny Primak
You are welcome. I am on this list for about a year and there have been at least 5 threads on this. Try a different search criteria. On Mar 29, 2012, at 3:15 PM, fredramsey wrote: > I did. Couldn't find anything. > > Thanks for being so helpful. > > > > -- > View this message in context

Re: Tutorial issue- changing code and refresh not working

2012-03-29 Thread fredramsey
I did. Couldn't find anything. Thanks for being so helpful. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tutorial-issue-changing-code-and-refresh-not-working-tp5604721p5604761.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Where to store site settings?

2012-03-29 Thread Beat Durrer
We load a different hibernate.cfg.xml for each environment by adding a HibernateSessionSource Service: In our DevelopmentModule: public static void contributeApplicationDefaults(MappedConfiguration configuration){ // to prevent the default file to be loaded configuration.add(Hibernate

Re: Tutorial issue- changing code and refresh not working

2012-03-29 Thread Lenny Primak
If you search past topics on this list, there are number of threads and explanations regarding this. On Mar 29, 2012, at 3:00 PM, fredramsey wrote: > Mac OSX, Eclipse, followed all steps. > > If I make a change to the index class as in the tutorial, and refresh > (Firefox or Safari), the change

Tutorial issue- changing code and refresh not working

2012-03-29 Thread fredramsey
Mac OSX, Eclipse, followed all steps. If I make a change to the index class as in the tutorial, and refresh (Firefox or Safari), the change is not shown. I even cleared the cache. I end up having to rebuild. Any ideas? Thanks. -- View this message in context: http://tapestry.1045711.n5.nab

tapestry-security 0.4.4 released!

2012-03-29 Thread Kalle Korhonen
I had the tingling feeling with the previous release of tapestry-security but since we have such a blind faith in our functional testing suite, and the tests all passed, we went ahead and managed to cause some headache for all of our users deploying their secure applications to non-root contexts. A

Re: Where to store site settings?

2012-03-29 Thread Jonathan Barker
I reference a JNDI datasource in my hibernate configuration, so each environment (server) just has a different configuration for a datasource of the same name. It took a bit of experimenting to get something that worked well across Tomcat, Jetty and JBoss. I haven't hit upon the magic recipe for

t5.3.0.tld -- for Tapestry 5.3

2012-03-29 Thread Pablo Borges
Please, http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse Someone could update the site above, according to the new version of Tapestry 5.3.2. For the file t5.3.0.tld - for Tapestry 5.3 is outdated, is not listing all the components. Someone who uses eclipse in the list, you have the lat

Re: Overwrite and extend an existing service

2012-03-29 Thread Crentana
Check out @Local annotation in tapestry-IOC cookbook, this might help Yep! Have you tried binder.bind(MySecurityService.class, MySecurityServiceImpl.class)? It seems to work with @Local, but it didnt with only with binder.bind(MySecurityService.class, MySecurityServiceImpl.class), i t

Template Skinning

2012-03-29 Thread Zubair Nuamaan
For those that have experimented with this: http://blog.tapestry5.de/index.php/2011/06/24/template-skinning/ how have you dealt with templates in components folder. Using the code from the above blog post you can determine which version of a page gets shown - desktop or mobile. When the mob

Re: Where to store site settings?

2012-03-29 Thread Earle Nietzel
Quick question on this topic about configuration. Has anyone tried having separate configs for hibernate.cfg.xml and/or log4j.properties i.e. production/QA/development? I was looking at commons-configuration and have it setup with spring via tapestry-spring. Would like a way to move the configs m

Re: Extension-point and the notion of has content

2012-03-29 Thread Thiago H. de Paula Figueiredo
On Thu, 29 Mar 2012 04:33:41 -0300, Lance Java wrote: I would probably give the side well an id in the HTML. Then you can inspect the contents of the well in the afterRender method of your layout void afterRender(MarkupWriter writer) { Element sideWell = writer.getDocument().getElementBy

Re: when return streamResponse, Ajax stop working in tapestry5

2012-03-29 Thread Denis Stepanov
On your ActionLink. Thanks Denis, > > Could please tell me where I can add ref="external" in my code? > > Regards, > Mahendra Athneria > > > -Original Message- > From: Denis Stepanov [mailto:denis.stepa...@gmail.com] > Sent: Thursday, March 29, 2012 4:36 PM > To: Tapestry users > Sub

Re: when return streamResponse, Ajax stop working in tapestry5

2012-03-29 Thread Bryan Lewis
We had the same problem. After a StreamResponse, an Ajax link on the same page stopped working. Where "stopped working" means, the link did invoke a server-side method, but no results appeared in the browser. A few work-arounds were discussed in this list (search for "windowunloaded"), such as t

RE: when return streamResponse, Ajax stop working in tapestry5

2012-03-29 Thread Athneria, Mahendra
Thanks Denis, Could please tell me where I can add ref="external" in my code? Regards, Mahendra Athneria -Original Message- From: Denis Stepanov [mailto:denis.stepa...@gmail.com] Sent: Thursday, March 29, 2012 4:36 PM To: Tapestry users Subject: Re: when return streamResponse, Ajax sto

Re: when return streamResponse, Ajax stop working in tapestry5

2012-03-29 Thread Denis Stepanov
Try to add ref="external", it has something to do with tapestry.js and unloading. Denis Mar 29, 2012 v 11:57 AM, Lance Java: > I just re-read your entire message (nabble messed up your code) and realise > that I have answered an unrelated question. > > Sorry -

RE: when return streamResponse, Ajax stop working in tapestry5

2012-03-29 Thread Athneria, Mahendra
Hi Lance, I am not using Zone for streamResponse data Regards, Mahendra Athneria Ext-+91 22 6733 3729 Mob-+91 9833 121 309 mahendra.athne...@atos.net -Original Message- From: Lance Java [mailto:lance.j...@googlemail.com] Sent: Thursday, March 29, 2012 2:56 PM To: Tapestry users Subjec

Re: when return streamResponse, Ajax stop working in tapestry5

2012-03-29 Thread Lance Java
I just re-read your entire message (nabble messed up your code) and realise that I have answered an unrelated question. Sorry

Re: when return streamResponse, Ajax stop working in tapestry5

2012-03-29 Thread Lance Java
Tapestry expects the response from an ajax event method to be a json string, not a stream of data. To use a StreamResponse you should not specify a zone. On Thursday, 29 March 2012, Athneria, Mahendra wrote: > Hi Guys, > > > > I have a page with one Ajax link and one actionLink. ActionLink is to

when return streamResponse, Ajax stop working in tapestry5

2012-03-29 Thread Athneria, Mahendra
Hi Guys, I have a page with one Ajax link and one actionLink. ActionLink is to generate the report. When I click on ActionLink, it will generate the report (it returns the streamResponse object) but after that ajax link stop work. But when I refresh the page then again Ajax link start working.

Re: How to define a "private" service (a service only for another service)

2012-03-29 Thread fmaylinch
Howard Lewis Ship wrote > > HiveMind, the predecessor to Tapestry IoC, had private services & > visibility. In my opinion, it caused more problems than it was worth. > > What I'm hearing is a basic lack of trust between one developer and > another within your team. One possible solution there is

Re: Extension-point and the notion of has content

2012-03-29 Thread Lance Java
I would probably give the side well an id in the HTML. Then you can inspect the contents of the well in the afterRender method of your layout void afterRender(MarkupWriter writer) { Element sideWell = writer.getDocument().getElementById("wellId"); if (!sideWell.getChildren().isEmpty()) {