Re: Tapestry 5.3.4-rc-9

2012-07-04 Thread Jochen Berger
Hi, Am 05.07.2012 02:39, schrieb Bob Harner: I'm trying to follow what was done with YUICompressor in Tapestry 5.3.4-rc-9, somebody tell me if I have it right: To get YUICompressor to work more reliably, Tapestry 5.3.4-rc-9 includes a version of the YUICompressor that the maven-play-plugin proje

Re: Tapestry 5.3.4-rc-9

2012-07-04 Thread Jochen Berger
Am 04.07.2012 10:55, schrieb Lenny Primak: I don't think there is a 'clean' solution. Hopefully, requirejs/uglifyjs will be able to make all this obsolete by the end of this year. :-) - To unsubscribe, e-mail: users-unsubsc

Re: Tapestry 5.3.4-rc-8

2012-07-03 Thread Jochen Berger
Looks fine upon first glance. Everything seems to work well apart from yuicompressor: First, the Maven Play Plugin repository is not included in the pom [1]. Second, it causes issues when used together with t5conduit due to the modified classes that it ships with the original package structure. T

Re: exception in IE on ajax request

2012-06-25 Thread Jochen Berger
Oh, I should have continued reading, sorry. Then, it's most likely also TAP5-1882/TAP5-1907. Am 26.06.2012 05:58, schrieb Ray Nicholus: Changing the following line in the addStylesheets function from: var loaded = _(document.styleSheets).chain().pluck("href").without(""). map(this.rebuildURLIf

Re: exception in IE on ajax request

2012-06-25 Thread Jochen Berger
Are you on IE9 and using Tapestry's logging in the success handler by any chance? Then it's probably TAP5-1887 that's hitting you. Am 26.06.2012 00:05, schrieb Howard Lewis Ship: That does seem odd. IE gets the least coverage, at least by me, since I can only run it in a VM, and it has the wors

Re: Tapestry and Clojure

2012-06-06 Thread Jochen Berger
Am 05.06.2012 19:56, schrieb Howard Lewis Ship: The code for this is very small, and could easily be ported back to 5.3, for 5.3.4. Any interest? Definitely! I already did this and successfully called the doubler fn from a 5.3.3 webapps's page. Very useful stuff. ;-) I think I'm going to like

Re: Scripts can be added to markup multiple times via different stacks

2012-03-06 Thread Jochen Berger
Hi, Am 06.03.2012 10:48, schrieb Lance Java: For the record, I don't think that it's an error to have two stacks sharing the same artifact in your application. I think the error exists when a page is attempting to import two stacks which share the same artifact. Correct, but that can only be

Re: Scripts can be added to markup multiple times via different stacks

2012-03-05 Thread Jochen Berger
Hi, Am 05.03.2012 11:41, schrieb Lance Java: The javascript stack concept exists so that the stack remains constant and can be cached by the client's browser. You are now asking to break this contract and have stacks be dynamic based on what components are on a page which would eliminate the ab

Scripts can be added to markup multiple times via different stacks

2012-03-05 Thread Jochen Berger
Hi, I just observed that if I add a JS library to two different stacks and import them in a page, that asset is added to the page twice. This happens because JavaScriptSupportImpl does check for duplicate stylesheets (L 327) and stacks (L 294) but not for duplicate scripts. Is that expected or

Re: Race condition in T5-pubsub?

2012-01-09 Thread Jochen Berger
Hi, Am 16.12.2011 17:22, schrieb Howard Lewis Ship: Or t5-pub-sub should do a copy-on-write, rather than copying it for each iteration. Hm, I haven't spent much thought on this idea yet, but I don't see how that could be done in JavaScript. Also, this still leaves the problem of having to dec

Re: Race condition in T5-pubsub?

2011-12-15 Thread Jochen Berger
Hi again, I think I was wrong with the term "race condition". After some investigation I found out what causes the problem. I created a simple demo application that I can upload I you want me to. Basically, the problem occurs, when there are multiple subscribers for the same topic and one of t

Race condition in T5-pubsub?

2011-12-12 Thread Jochen Berger
Hi list, I think I've discovered a race condition in the pubsub code which is kind of funny as I didn't even know these could occur in JavaScript. The problem seems to be related to the purging of the publisher cache. The situation I experience the error in is fairly complex (with multiple lis

Should the alerts component render informal parameters?

2011-11-11 Thread Jochen Berger
Hi, I just tried the new Alerts component and was a little surprised that I could not assign it a custom css class nor a style attribute. I think, most users would expect that to work. Should I add a JIRA? Regargs, Jochen -

Re: [T5.3] Using ResourceMinimizer to remove debugging code?

2011-11-01 Thread Jochen Berger
Hi, Am 31.10.2011 18:48, schrieb Martin Strand: Perhaps you could use Google closure compiler and its preprocessor features? http://stackoverflow.com/questions/2934509/exclude-debug-javascript-code-during-minification That looks like a good idea, thanks for the hint. I have no experience wit

Tapestry.DEBUG_ENABLED has no effect in Tapestry 5.3-beta-24

2011-10-20 Thread Jochen Berger
Hi, it seems as if the value of the Tapestry.DEBUG_ENABLED variable is not taken into account in the current 5.3 release. It is set correctly in the generated response but not taken into account on the client side. Regards. Jochen -

Problem with tapestry-yuicompressor in Tomcat

2011-10-20 Thread Jochen Berger
Hi there, I'm having issues with a webapp using Tapestry 5.3 with the yuicompressor mudile. It works fine in jetty but fails with a StringIndexOutOfBoundsException when deployed in Tomcat. Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 2194 at java.

Re: AjaxFormLoop/AddRowLink + Client-Side Callback?

2011-09-02 Thread Jochen Berger
Michael, Am 01.09.2011 21:46, schrieb Michael Gentry: I have an AjaxFormLoop with an AddRowLink in it. I was wondering if anyone had an elegant way to do a client-side callback when a row is added? No, not an elegant one, I'm afraid. When I wanted a "callback" to be executed after the adding

Re: Absolute Paths in Tapestry 5.2.5

2011-04-14 Thread Jochen Berger
Jochen, Am Donnerstag, den 14.04.2011, 00:29 -0700 schrieb Jochen Heintz: > Thank you all for your replies ! > > > ProxyPass /myApp http://localhost:8080/myApp > > ProxyPassReverse /myApp http://localhost:8080/myApp > > The above rules are working but i want to hide the appname and have a rule >

Re: Absolute Paths in Tapestry 5.2.5

2011-04-13 Thread Jochen Berger
Hi, Am Mittwoch, den 13.04.2011, 13:08 -0400 schrieb Rich M: > ProxyPass /myApp http://localhost:8080/myApp > ProxyPassReverse /myApp http://localhost:8080/myApp Something like that works for our company too. The ProxyPassReverse directive seems to be what's missing in your configuration. Jochen

Re: Rebinding/advising/intercepting component parameters in a mixin

2011-03-29 Thread Jochen Berger
Thiago, Am Dienstag, den 29.03.2011, 12:15 -0300 schrieb Thiago H. de Paula Figueiredo: > I guess you need to create another binding prefix implementation that > works like prop but read-only and use it instead. You can file a JIRA > about this. Thanks for your answer and your idea. But I'm a

Rebinding/advising/intercepting component parameters in a mixin

2011-03-29 Thread Jochen Berger
Hi there, I'm trying to write some mixins for the Grid component, e.g. one to make it filterable using the respective PropertyEditors for the Grids BeanModel's properties. Therefore, I created an interface that extends GridDataSource and has an additional method void applyFilters(Map currentFilte

Re: Tapestry 5 with Prototype 1.7

2010-12-01 Thread Jochen Berger
Ville, Am Mittwoch, den 01.12.2010, 10:52 -0800 schrieb 9902468: > has anyone used Prototype 1.7? [...] I have faced problems that appear > with ajax: the javascript that get's attached to the ajax response is > never evaluated. I think I remember a problem like that when I tried a Prototype 1.7

Re: [T5.2] Constructor issue

2010-10-05 Thread Jochen Berger
Hi, Am Dienstag, den 05.10.2010, 09:22 -0700 schrieb Howard Lewis Ship: > Remember that you can place @Inject on the constructor that should be > used if there's any ambiguity. I think, this would make a great FAQ entry. I can only speak for myself, but I wasn't aware that this was already possib

Re: T5.1: Row Highlighter mixin for a Grid

2010-09-21 Thread Jochen Berger
Hi, Am Dienstag, den 21.09.2010, 20:18 +0200 schrieb Radoslav Bielik: > But I don't know how to get hold of the right element here - that > would be the Grid that this mixin is tied to. I've tried using: > > @InjectContainer > private Grid element; > > This way I can get a Grid

Re: How to serve "nearly static" resources

2010-09-12 Thread Jochen Berger
Howard, Am Freitag, den 10.09.2010, 09:08 -0700 schrieb Howard Lewis Ship: > In 5.2 there's an AssetDispatcher service that can be contributed to; > the built in contributions are for context assets, classpath assets, > and stack assets (i.e., aggregated JavaScript libraries). You can add > your

Re: How to serve "nearly static" resources

2010-09-09 Thread Jochen Berger
Hi again, so at least this use case does not seem to be trivial. ;-) But as the answers stay away, maybe it didn't become clear from my explanations. If you'd tell me, which parts were not understandable, I could try to rephrase them. Regards, Jochen

Re: How to serve "nearly static" resources

2010-08-23 Thread Jochen Berger
Hi, Am Montag, den 23.08.2010, 08:53 +0200 schrieb Jochen Berger: > I already tried two approaches - by implementing a Dispatcher and an > AssetFactory (which seems the right direction to me), - but neither > seemed to feel absolutely right. I just remembered another approach tha

How to serve "nearly static" resources

2010-08-22 Thread Jochen Berger
Hi, I've been wondering about this for some days and tried out several things, but none of them really did the trick for me, so I decided to ask you for help. In my T5 webapp, I have some configurable data, namely consisting of an ID, a CSS color code and localized descriptions. This information i

Re: Possible memory leak in zone update?

2010-04-06 Thread Jochen Berger
Andreas, sorry for not responding for so long, but I have been busy with a lot of other stuff. Andreas Andreou wrote: > Chrome's Developer Tools (ctrl+shift+i) have a "profiles" tab. > Once selected, you'll find a "Take heap snapshot" at the bottom... > press it once at the start, then again at t

Possible memory leak in zone update?

2010-03-22 Thread Jochen Berger
Hi, I am currently writing a webapp with tapestry 5 and have come to a point where I want a zone to be updated regularly. That works quite well using just a small amount of custom JavaScript. However, I noticed that the browser's memory seems to fill up over the time. The application updates two z