Support Spring JavaConfig in tapestry-spring

2014-09-01 Thread Michael Wyraz
Hi, today I wantet to setup a tapestry-spring application without xml config. I found out that this is not yet possible because of https://issues.apache.org/jira/browse/TAP5-1522. As Jochen suggested, I'd like to discuss if we should support this or not. IMO we should ;-) - because setting

Re: Cleanup/Housekeeping Thread?

2014-06-27 Thread Michael Wyraz
Hi Thiago, See the PerthreadManager service. Thank you, I'll have a look at this. This question should have been posted in the users mailing list, not in this one, which is about the development *of* Tapestry, not *with*. I'm very sorry. Next time I choose better where to ask what. Kind

Cleanup/Housekeeping Thread?

2014-06-26 Thread Michael Wyraz
Hi, I plan to create some comet-style AjaxPush component. Each running request is maintained in a kind of session. So I need to somehow cleanup those sessions (using a cleanup thread). Before I do so, my question is: Is there already a service in tapestry that does some cleanup and on which

Re: TAP5-2176,SymbolBeanFactoryPostProcessor breaks property placeholder in spring when using default values

2014-06-10 Thread Michael Wyraz
fixing this bug in Tapestry drastically. On Fri, 06 Jun 2014 11:15:05 -0300, Michael Wyraz michael.wy...@evermind.de wrote: After looking in the spring code for placeholder resolution I found that adding setValueSeparator(null); to the constructor solves the problem. Also the method

TAP5-2176,SymbolBeanFactoryPostProcessor breaks property placeholder in spring when using default values

2014-06-06 Thread Michael Wyraz
PropertyPlaceholderConfigurer in the context would to the job. -- Mit freundlichen Grüßen / Kind regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig Tel.: +49 (0)341-25 39 66 - 0 Fax:+49 (0)341-25 39 66 - 1 Funk: +49 (0)177-73 00 00 3 E-Mail: michael.wy

Re: TAP5-2176,SymbolBeanFactoryPostProcessor breaks property placeholder in spring when using default values

2014-06-06 Thread Michael Wyraz
be used anymore So I'd prefer 2 as a solution. Preventing SymbolBeanFactoryPostProcessor to resolve : separated default values is not a problem since every other configured PropertyPlaceholderConfigurer in the context would to the job. -- Mit freundlichen Grüßen / Kind regards Michael Wyraz

Re: TAP5-1213: Changes to public API

2014-05-20 Thread Michael Wyraz
freundlichen Grüßen / Regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig Tel.: +49 (0)341-25 39 66 - 0 Fax:+49 (0)341-25 39 66 - 1 Funk: +49 (0)177-73 00 00 3 E-Mail: michael.wy...@evermind.de HRB: 21586 Amtsgericht Leipzig Geschäftsführer: Christoph Klemm

Re: TAP5-1213: Changes to public API

2014-05-18 Thread Michael Wyraz
Hi, Java 8 default methods doesn't seem to be a valid solution. They allows to keep an implementation compatible when new methods are added but (as far as I could see) they do not enable binary compatibility (means, the method remains abstract until the implementation is compiled against the

Wrong default types for validate/translate in AbstractTextField?

2014-05-16 Thread Michael Wyraz
Hi, I found something I do not understand and which is probably a bug. From org.apache.tapestry5.corelib.base.AbstractTextField: @Parameter(required = true, allowNull = false, defaultPrefix = BindingConstants.TRANSLATE) private FieldTranslatorObject translate;

Re: TAP5-1213: Changes to public API

2014-05-16 Thread Michael Wyraz
- org.apache.tapestry5.ComponentResources - org.apache.tapestry5.PropertyConduit - org.apache.tapestry5.ioc.services.PropertyAdapter I realise that adding methods to public interfaces breaks backwards compatability. What's people's thoughts on this? -- Mit freundlichen Grüßen / Kind regards Michael Wyraz

Tapeystry 5.4-b3 less support?

2014-05-14 Thread Michael Wyraz
Hi, I have read that t5.4 supports server-side less-css but I did not find any documentation. Where can I read about how it is used? Especially I'm interested in using bootstrap + some other css as less version and put all color definitions and such to a central place. Kind regards,

JavaScript stack vs JavaScript module / best practice?

2014-05-14 Thread Michael Wyraz
Hi, I wonder when to use a stack, a module or both. For example I want to use MetisMenu (small jquery plugin that uses bootstrap/collapse and comes with some css). If I use Stack only, I can define js+css but I cannot define that it requires jquery + bootstrap/collapse. (I could modify the

Re: Tapeystry 5.4-b3 less support?

2014-05-14 Thread Michael Wyraz
Hi Howard, What, you expect documentation, too ... what an ingrate! :-) Hey, I'm a programmer, I never expect docs ^^ The Less support is part of the tapestry-webresources module. Mostly it just works; just point Tapestry at your .less file and it will compile it as needed. It's slightly

Re: Make more fields/methods of service classes protected

2014-05-13 Thread Michael Wyraz
to be done in Tapestry sources and, if we all agree, have it done in the source code itself instead of asking us for something too broad as changing methods and fields visibilities? -- Mit freundlichen Grüßen / Kind regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig

Re: contributeMarkupRenderer missing JavaScriptSupport

2014-05-13 Thread Michael Wyraz
be? You provided your contribution without any ordering constraint. I cannot look up what's the exact contribution that adds JavaScriptSupport, but you need to add yours after or before it, I cannot recall which. -- Mit freundlichen Grüßen / Kind regards Michael Wyraz evermind GmbH

Re: Accessing generic type information of bound parameters

2014-05-13 Thread Michael Wyraz
...@tapestry.apache.org For additional commands, e-mail: dev-h...@tapestry.apache.org -- Mit freundlichen Grüßen / Kind regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig Tel.: +49 (0)341-25 39 66 - 0 Fax:+49 (0)341-25 39 66 - 1 Funk: +49 (0)177-73 00 00 3 E-Mail

Re: Make more fields/methods of service classes protected

2014-05-12 Thread Michael Wyraz
Hi, for extending tapestrys internal service classes it's often required to copy a lot of code because almost everything is private. Why not changing it to protected to allow others to extend those classes? Because it makes keeping backward-compatibility way harder and that's very important

Accessing generic type information of bound parameters

2014-05-12 Thread Michael Wyraz
Hi, I can access the type of a bound parameter using ComponentResources.getBoundType(parameterName). But for ListString it returns (of course) List.class. Is there a way to access the generic parameters of the bound type somehow? I need this for correct (automatic) type coercion in some

contributeMarkupRenderer missing JavaScriptSupport

2014-05-12 Thread Michael Wyraz
Hi, we have a layout package that adds some extra css/js to all pages. It is implemented as contributeMarkupRenderer: public void contributeMarkupRenderer(OrderedConfigurationMarkupRendererFilter configuration, final Environment environment) {

Make more fields/methods of service classes protected

2014-04-30 Thread Michael Wyraz
-effects than overrding just one or two methods. -- Mit freundlichen Grüßen / Kind regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig Tel.:+49 (0)341-25 39 66 - 0 callto:+493412539660 Fax:+49 (0)341-25 39 66 - 1 callto:+493412539661 Funk:+49 (0)177-73 00 00 3 callto

Re: Broken UTF-8 handling in tapestry 5.4 becomes show-stopper - please help

2014-04-13 Thread Michael Wyraz
Ideally, it would all be driven by the encoding specified by the xml template. As a second choice, I think it should be driven by a configurable symbol. No, neither of both makes sense here. The only thing that is required to fix the bug is that reading uses the same encoding as

Re: Broken UTF-8 handling in tapestry 5.4 becomes show-stopper - please help

2014-04-09 Thread Michael Wyraz
It is because that is only a intermediate presentation of the page's content: - it is read from filesystem by whatever encoding is configured - it is pre-processed and written internally as UTF-8 (hard-coded) into a byte array or such - it is read again internally as System encoding (not

Handling onload for libraries loaded via require.js

2014-04-09 Thread Michael Wyraz
Hi, I hit the following problem on 5.4 which makes me some headaches: Tapestry loads all modules/scripts using require.js. That causes all the stuff be loaded after the window.onload event was fired. But many libs initialize themself onload. For example have a look on bootstrap/scrollspy.js

Re: Handling onload for libraries loaded via require.js

2014-04-09 Thread Michael Wyraz
The code here seems to be a clean solution to workaround the problem - but there's still the problem that we'd have to change each library's init code. http://stackoverflow.com/questions/18970350/using-jquery-load-with-requirejs I hit the following problem on 5.4 which makes me some

Broken UTF-8 handling in tapestry 5.4 becomes show-stopper - please help

2014-04-08 Thread Michael Wyraz
Hi, could please anyone with commit access fix this little issue https://issues.apache.org/jira/browse/TAP5-2219 or at least add the testcase to the testsuite? This becomes a show-stopper for us for migration to tapestry 5.4 since all pages with utf-8 chars fails on windows. Kind regards,

Re: Broken UTF-8 handling in tapestry 5.4 becomes show-stopper - please help

2014-04-08 Thread Michael Wyraz
Thank you, that helped a lot! It still would be great if this could be fixed :-) Regards, Michael. You could set -Dfile.encoding=UTF-8 when starting up the servlet container. On 8 Apr 2014 14:24, Michael Wyraz michael.wy...@evermind.de wrote: Hi, could please anyone with commit access

Re: Tapestry 5.4 - Integrating angular

2013-11-08 Thread Michael Wyraz
Correct me if I'm wrong, but you will have to manually handle this data by getting it from request parameters. So maybe we will need some alternative to default form component here, maybe using some REST endpoints for handling of POSTs, not sure. On Thu, Nov 7, 2013 at 6:40 PM, Michael Wyraz

Tapestry 5.4 - changing built-in js-module versions, using extrnal sources

2013-11-07 Thread Michael Wyraz
Hi, today I started working with the new require.js approach and modules within T5.4. I have some question which I could not anwser using google and the list archives. 1. How would one replace an internal library with a more recent version. Example: embedded jQuery (which is 1.9 shall be

Tapestry 5.4 - Integrating angular

2013-11-07 Thread Michael Wyraz
Hello Thiago, thank you for fast reply. I'll check this as soon as my app runs. At the moment I try to get angularjs to work as module. A while ago you wrote that you already did this and solved the problems. What I've done: - downloaded angular.zip, extracted to META-INF/assets/angular -

Re: Tapestry 5.4 - Integrating angular

2013-11-07 Thread Michael Wyraz
, Michael. -- Mit freundlichen Grüßen / Regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig Tel.: +49 (0)341-25 39 66 - 0 Fax:+49 (0)341-25 39 66 - 1 Funk: +49 (0)177-73 00 00 3 E-Mail: michael.wy...@evermind.de HRB: 21586 Amtsgericht Leipzig

Tapestry 5.4, AngularJS and partial page content

2013-11-07 Thread Michael Wyraz
Hello, I'm implementing a proof-of-concept application with tapestry 5.4 and angularjs. All basic things work, now I try to find some best practice. Angularjs provides the opportinity to dynamically load content (called 'view templates') into a page area and connect it with logic. This

Re: Tapestry 5.4, AngularJS and partial page content - how can I render a Block to raw HTML?

2013-11-07 Thread Michael Wyraz
Hi Thiago, This would make angular to load the template on demand. Problem here is that tapestry will not allow to create partial pages starting with a div. Have you filed a JIRA about it? If not, please do it. I'll try to take a look and maybe even a fix this weekend. No I did not. Thougt this

Re: Tapestry 5.4, AngularJS and partial page content - how can I render a Block to raw HTML?

2013-11-07 Thread Michael Wyraz
and try to provide code for such a service. I was about adding the root node is not html bug to jira but you already added it: https://issues.apache.org/jira/browse/TAP5-2200. I just put my comment on it and voted. Regards, Michael. On Thu, 07 Nov 2013 14:52:31 -0200, Michael Wyraz

Re: Tapestry 5.4, AngularJS and partial page content

2013-11-07 Thread Michael Wyraz
the lifecycle of the angular app? Wouldn't you then want to bundle them in a single file and skip the extra template requests? On Thu, Nov 7, 2013 at 5:46 PM, Michael Wyraz michael.wy...@evermind.dewrote: Hello, I'm implementing a proof-of-concept application with tapestry 5.4 and angularjs. All

Problems with utf8 characters in tml in 5.4-alpha24

2013-11-06 Thread Michael Wyraz
Hi, I'm testing a bit with tapestry 5.4 (latest alpha). As soon as I have utf8 characters in my tml i get an exception concerning invalid utf8 bytes. This happens at least on windows. I assume it's a bug in XMLTokenStream

Does Tapestry 5.4 bring client-side ui/controller logic?

2013-10-01 Thread Michael Wyraz
Hello, with big interest I have read http://tapestryjava.blogspot.de/2011/11/tapestry-54-focus-on-javascript.html which gives an outlook what tapestry 5.4 might bring. Will these breaking ideas be realized in upcoming tapestry 5.4? Especially will it be possible to move all this

Re: Does Tapestry 5.4 bring client-side ui/controller logic?

2013-10-01 Thread Michael Wyraz
productive to use coffeescript with tapestry - give it a try if you did'nt already ;) On Tue, Oct 1, 2013 at 7:47 PM, Michael Wyraz michael.wy...@evermind.dewrote: Hello, with big interest I have read http://tapestryjava.blogspot.** de/2011/11/tapestry-54-focus-**on-javascript.htmlhttp

Re: Tapestry (5.x) Assembly performance

2013-09-18 Thread Michael Wyraz
-mail: dev-unsubscr...@tapestry.apache.org For additional commands, e-mail: dev-h...@tapestry.apache.org -- Mit freundlichen Grüßen / Regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig Tel.: +49 (0)341-25 39 66 - 0 Fax:+49 (0)341-25 39 66 - 1 Funk: +49 (0

Re: Tapestry (5.x) Assembly performance - Effect of the ImportWorker

2013-09-18 Thread Michael Wyraz
Grüßen / Regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig Tel.: +49 (0)341-25 39 66 - 0 Fax:+49 (0)341-25 39 66 - 1 Funk: +49 (0)177-73 00 00 3 E-Mail: michael.wy...@evermind.de HRB: 21586 Amtsgericht Leipzig Geschäftsführer: Christoph Klemm Thomas

Extending TriggerFragment to support select fields

2013-02-06 Thread Michael Wyraz
Hi, I'm thinking about extending triggerfragment to support other elements than checkbox or radio. First I'd like to discuss what the best way ist. Here is my idea: Changes t5-formfragment.js: - move the observe code to a function that distinguished between different element types - add a

Re: Speed up page compiling - detailed analysis

2013-01-15 Thread Michael Wyraz
Hi, I spent some more time in profiling/debugging. I added caching for all my OGNL bindings so that's no issue anymore. I add Cachring for tomcat's WebappClassloader.findResource which was a big hotspot. I cut the link between my 3 big pages so that only 1 page is loaded at once. Loading

Re: Speed up page compiling (partial solved)

2013-01-11 Thread Michael Wyraz
. System.out.println(org.slf4j.LoggerFactory.getLogger(xyz123abcRandomLogger).isDebugEnabled()); - should return false. Denis Jan 10, 2013 v 9:57 AM, Michael Wyraz michael.wy...@evermind.de: I did some further tests on a machine with SSD+HDD, 12 Core CPU, 32GB RAM. I testet with the biggest page

Re: Speed up page compiling (partial solved)

2013-01-11 Thread Michael Wyraz
don't have a debug enabled on the root logger, it could slow things down. System.out.println(org.slf4j.LoggerFactory.getLogger(xyz123abcRandomLogger).isDebugEnabled()); - should return false. Denis Jan 10, 2013 v 9:57 AM, Michael Wyraz michael.wy...@evermind.de: I did some further tests

Re: Speed up page compiling (partial solved)

2013-01-11 Thread Michael Wyraz
Am 11.01.2013 12:02, schrieb Thiago H de Paula Figueiredo: On Fri, 11 Jan 2013 08:01:27 -0200, Michael Wyraz michael.wy...@evermind.de wrote: - Most time goes to initializing OGNL-Bound expressions! This is a home-made issue. We used them in some cases where tapestrys expressions

Re: Speed up page compiling

2013-01-10 Thread Michael Wyraz
some time to optimize that code in some way. Perhaps some kind of development only cache that could remove some of the overhead of analyzing parameter types and usage. On Wednesday, January 9, 2013, Michael Wyraz wrote: Hi, I had a closer look to the problem (reported by some of our developers

Re: Speed up page compiling

2013-01-09 Thread Michael Wyraz
tips at the very bottom of http://tapestry.apache.org/class-reloading.html On Mon, Jan 7, 2013 at 10:33 AM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Mon, 07 Jan 2013 12:29:37 -0200, Michael Wyraz michael.wy...@evermind.de wrote: Hi, Hi! we have a big project with Tapestry

Speed up page compiling

2013-01-07 Thread Michael Wyraz
Hi, we have a big project with Tapestry 5.3. There are many pages, lots of components and many links between the pages (@Injects of other pages). The problem is that after a change, the first page reload takes 5 seconds on good hardware because there is much work for the tapestry page

[PATCH] TAP5-1027 DatePicker component: None, Today buttons localisation - Please apply to 5.3, thank you!

2012-11-13 Thread Michael Wyraz
From 38237c181334aa28dec7394755732cb19353f4b5 Tue, 13 Nov 2012 14:49:46 +0100 From: Michael Wyraz m...@evermind.de Date: Tue, 13 Nov 2012 14:37:57 +0100 Subject: [PATCH] TAP5-1027 DatePicker component: None, Today buttons localisation diff --git a/tapestry-core/src/main/java/org/apache

[PATCH] TAP5-1858 Cookie service should allow to set path, domain AND maxAge - Please apply to 5.3, Thank you!

2012-11-13 Thread Michael Wyraz
From a54fdc541054a4fad654f31b0467b315812effd9 Tue, 13 Nov 2012 14:51:08 +0100 From: Michael Wyraz m...@evermind.de Date: Tue, 13 Nov 2012 14:40:22 +0100 Subject: [PATCH] TAP5-1858 Cookie service should allow to set path, domain AND maxAge diff --git a/tapestry-core/src/main/java/org/apache

Re: [PATCH] TAP5-1858 Cookie service should allow to set path, domain AND maxAge - Please apply to 5.3, Thank you!

2012-11-13 Thread Michael Wyraz
Cookies2 for backward compatibility? I tend to Cookies2. Uli On 13.11.2012 14:51, Michael Wyraz wrote: From a54fdc541054a4fad654f31b0467b315812effd9 Tue, 13 Nov 2012 14:51:08 +0100 From: Michael Wyraz m...@evermind.de Date: Tue, 13 Nov 2012 14:40:22 +0100 Subject: [PATCH] TAP5-1858 Cookie service

Updating form components via ajax - should be possible with small changes to T5

2012-09-27 Thread Michael Wyraz
Hi, yesterday I discussed with a colleague the possibility of replacing T5 form components (parts of a form) with ajax zone updates. The basic problem is: - each component registers itself as process submission to the form (via formsupport) - the form serializes all those submissions to a

Re: Updating form components via ajax - should be possible with small changes to T5

2012-09-27 Thread Michael Wyraz
inside this zone. On Thu, Sep 27, 2012 at 12:08 PM, Michael Wyraz michael.wy...@evermind.dewrote: Hi, yesterday I discussed with a colleague the possibility of replacing T5 form components (parts of a form) with ajax zone updates. The basic problem is: - each component registers itself as process

Re: master commits, cherry pick

2012-05-23 Thread Michael Wyraz
in the release notes for both 5.3 and 5.4. -- Mit freundlichen Grüßen / Regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig Tel.: +49 (0)341-25 39 66 - 0 Fax:+49 (0)341-25 39 66 - 1 Funk: +49 (0)177-73 00 00 3 E-Mail: michael.wy...@evermind.de HRB: 21586

Help with gradle build

2012-05-22 Thread Michael Wyraz
to the staging repository? -- Mit freundlichen Grüßen / Regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig Tel.: +49 (0)341-25 39 66 - 0 Fax:+49 (0)341-25 39 66 - 1 Funk: +49 (0)177-73 00 00 3 E-Mail: michael.wy...@evermind.de HRB: 21586 Amtsgericht Leipzig

Re: Say welcome to GIT

2012-05-22 Thread Michael Wyraz
Let me know of anything gone wrong on your side. -- Mit freundlichen Grüßen / Regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig Tel.: +49 (0)341-25 39 66 - 0 Fax:+49 (0)341-25 39 66 - 1 Funk: +49 (0)177-73 00 00 3 E-Mail: michael.wy...@evermind.de

Re: Help with gradle build

2012-05-22 Thread Michael Wyraz
) ... 58 more So which gradle version should I use at the moment (I tried the latest which is gradle-1.0-rc-3)? The names of the gradle task changed as well. Which task do I need to upload to the staging repository? -- Mit freundlichen Grüßen / Regards Michael Wyraz evermind GmbH

Patch: TAP51858 (Branch 5.3)

2012-05-22 Thread Michael Wyraz
From 38db152c669ccbf88703adf35d90f12d3f22a2f4 Tue, 22 May 2012 13:26:22 +0200 From: Michael Wyraz michael.wy...@evermind.de Date: Tue, 22 May 2012 13:21:40 +0200 Subject: [PATCH] TAP5-1858 Cookie service should allow to set path, domain AND maxAge diff --git a/tapestry-core/src/main/java

Patch: localized datepicker buttons (Branch 5.3)

2012-05-22 Thread Michael Wyraz
From e6b7bc43c665c34e1d8000e7b2966d552b67d8e9 Tue, 22 May 2012 13:27:33 +0200 From: Michael Wyraz michael.wy...@evermind.de Date: Tue, 22 May 2012 13:24:31 +0200 Subject: [PATCH] localized datepicker buttons (Today and None) diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/corelib

Patch: TAP5-1907,ie9 javascript error when partial render includes stylesheets (Branch 5.3)

2012-05-22 Thread Michael Wyraz
From 68449884b431a4e43fef47fc206d3e808d69b03a Tue, 22 May 2012 13:28:47 +0200 From: Michael Wyraz michael.wy...@evermind.de Date: Tue, 22 May 2012 13:25:49 +0200 Subject: [PATCH] TAP5-1907 ie9 javascript error when partial render includes stylesheets diff --git a/tapestry-core/src/main

Re: Service alert: tapestry.zones.apache.org/HTTP - Tapestry Demo is CRITICAL

2012-03-14 Thread Michael Wyraz
/ Regards Michael Wyraz evermind GmbH Schorlemmerstraße 1 04155 Leipzig Tel.: +49 (0)341-25 39 66 - 0 Fax:+49 (0)341-25 39 66 - 1 Funk: +49 (0)177-73 00 00 3 E-Mail: michael.wy...@evermind.de HRB: 21586 Amtsgericht Leipzig Geschäftsführer: Christoph Klemm Thomas Grünert

Patch for TAP5-1844

2012-03-12 Thread Michael Wyraz
Hi, this is my first T5 patch. Please correct me if submission here is wrong. It is for my issue TAP5-1844 and adds an onchange event to the datepicker component. Index: tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/datefield.js

Re: Patch for TAP5-1844

2012-03-12 Thread Michael Wyraz
Ok, i'll do so. Simply paste it as comment? It would be better if you submit the patch to the jira issue and allow Apache to use it. Cheers, Dragan Sahpaski On Mon, Mar 12, 2012 at 11:51 AM, Michael Wyraz michael.wy...@evermind.dewrote: Hi, this is my first T5 patch. Please correct me