Component context @ActivationRequestParameter

2010-11-03 Thread Denis Stepanov
Hello everyone, we are using tapestry in our ajax application, most web actions like creating, editing etc. are implemented using modal dialogs, problem is that only easy way how to store context is to put it in page link (on Activate approach). Now, if you think about switching page navigatio

Re: ValidationDecorator using zone updates don't seem to work

2010-11-10 Thread Denis Stepanov
nent in my case. > I've created an issue for this here > https://issues.apache.org/jira/browse/TAP5-1339 > > On Wed, Nov 10, 2010 at 10:20, Denis Stepanov wrote: > >> Ajax response uses PartialMarkupRenderer via >> contributePartialMarkupRenderer. >&g

Re: ValidationDecorator using zone updates don't seem to work

2010-11-10 Thread Denis Stepanov
Ajax response uses PartialMarkupRenderer via contributePartialMarkupRenderer. Denis On 9.11.2010, at 17:00, Hugo Palma wrote: > I contributed a custom ValidationDecorator which in my case simply adds a > "*" to the label of every required field. > > This works fine except when i update a zone w

IOC Setter injection

2011-04-22 Thread Denis Stepanov
Is there any way to use setter injection in Tapestry IOC? I have found this article http://blog.tapestry5.de/index.php/2011/01/17/javax-inject-inject-support-in-tapestry/ which tells that Tapestry supports setter injection by default but i can't find any reference in documentation or source co

Re: IOC Setter injection

2011-04-25 Thread Denis Stepanov
> Actually setter injection is supposed to work when autobuilding services. > > Отправлено с iPhone > > 25.04.2011, в 00:00, "Thiago H. de Paula Figueiredo" > написал(а): > >> On Fri, 22 Apr 2011 08:18:24 -0300, Denis Stepanov >> wrote: >> &

Re: What place the @Persist will invalid

2011-08-18 Thread Denis Stepanov
You can't persist UploadFile because it's content is deleted one the end od the request. After a file is uploaded read the data to the byte array. Denis Aug 18, 2011 v 11:31 AM, Taha Hafeez: > Hi Dick > > I am not sure If I fully understand the question but here is my review > of the code. >

Re: Tapestry upload and Google App Engine

2011-08-20 Thread Denis Stepanov
Hi, try to implement you own version of org.apache.commons.fileupload.FileItemFactory which will store files in a memory. Denis On 20.8.2011, at 0:51, bhorvat wrote: > Hi all, > > I am sure that some of you are aware that there is a problem with the > tapestry-upload component and GAE. I am

Re: Tapestry upload and Google App Engine

2011-08-20 Thread Denis Stepanov
Override FileItemFactory using IOC: http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html your FileItemFactory implementation will need to return simple implemention of FileItem, request is writing a file using outputstream, so you need a ByteArrayOutputStream to write to. http:

Re: Tapestry upload and Google App Engine

2011-08-20 Thread Denis Stepanov
Someone already have implemented it using some kind of GAE api: http://groups.google.com/group/gwtupload/browse_thread/thread/49857a006a7baa46 Denis On 20.8.2011, at 12:15, Denis Stepanov wrote: > Override FileItemFactory using IOC: > http://tapestry.apache.org/ioc-cookbook-overridi

Re: Tapestry upload and Google App Engine

2011-08-20 Thread Denis Stepanov
> From what I can see I will need to include this gwtupload library using mave > and then use that to handle the file uploading and saving into Blob, right? You only need to replace the FileItemFactory with an implementation which will store files in memory or specific GAE place, try to use gwt

Re: Tapestry upload and Google App Engine

2011-08-20 Thread Denis Stepanov
What kind of error breaks application? Denis - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Tapestry upload and Google App Engine

2011-08-20 Thread Denis Stepanov
Try to set a system property "java.io.tmpdir" to some value, it could be a null in the GAE. http://code.google.com/intl/cs/appengine/docs/java/runtime.html Denis

Re: Tapestry upload and Google App Engine

2011-08-20 Thread Denis Stepanov
> Now if I understand you correctly I can use tapestry-upload component like I > would normally do, right? Yes > One thing that I don't understand is how to I save the file into Blob? In > normal application I would create a t:form with t:upload inside it. Then in > the java file I would create a

Re: Palette and Checklist don't use contributed value encoder?

2011-08-23 Thread Denis Stepanov
Because it can't determine a type from a collection of values. Denis Aug 23, 2011 v 12:16 PM, Bob Harner: > Although I don't agree with the majority, I'll work on updating the > javadocs to make the meaning of "required" clearer for the encoder > parameter. > > For this, can anyone tell me why

Re: Compiled CSS

2011-10-12 Thread Denis Stepanov
If I understand it correctly, right now resources accesses with ResourceTransformer will have same url as the source. It would be nice to have somekind of transform resources mapping, lets say we want to transform less file or files to css: virtualTransformResource("/css/bootstrap.css", "/less/

Bootstrap

2011-10-12 Thread Denis Stepanov
Hello, how many of you know Bootstrap http://twitter.github.com/bootstrap/, a css toolkit designed to kickstart development of webapps and sites from Twitter? I just had an idea that Tapestry could use bootstap as defaul css stylesheet. It would be pretty impressive to have default components a

@Property and existing getter or setter

2011-10-18 Thread Denis Stepanov
Hi everyone, when using @Property anotation on a page with existing getter or setter Tapestry will throw an exception, would it be better to just ignore adding a new method rather than throwing an exception? I don't think it could lead to unexpected behavior, there is not so many cases when the

Re: @Property and existing getter or setter

2011-10-18 Thread Denis Stepanov
at went wrong > With live page reloading, surely the time taken to add (write=false) > and click refresh is negligible, no? our app reloads between 10-20seconds so it does matter right now, 5.3 should improve it Denis Oct 18, 2011 v 1:26 PM, Steve Eynon: > > Steve. > > On 18

Re: ActivationRequestParameter only works in a page?

2011-10-24 Thread Denis Stepanov
I have something like this implemented in our app for component events only, a field with the special annotation will add its value as a request parameter to all links inside rendering phase and on incoming event the special filter will send restore event to restore field's previous value. Work

Re: Problem with tapestry-yuicompressor in Tomcat

2011-10-27 Thread Denis Stepanov
Maybe the solution would be to use JarJar to repackage the Rhino, just like Google Guice uses it for including libs like ASM, commons etc. see: http://code.google.com/p/google-guice/source/browse/pom.xml#201 Denis On 27.10.2011, at 2:16, Howard Lewis Ship wrote: > The Liferay folks repackaged

Re: T5.3. rc3: event bubbling bug?

2011-11-06 Thread Denis Stepanov
If your hierarchy is: > Page > - MyComponent > - you should use onSuccessFromMyComponent, it is probably a bug if onSuccessFromProductSizeForm works inside the Page. Denis On 6.11.2011, at 17:35, 9902468 wrote: > Ok, > > I think I confirmed this as a bug: if I disable the checking using

Re: Tapestry performance

2013-05-07 Thread Denis Stepanov
Finally they have added test that actually tests web frameworks - "Fortunes test" but no Tapestry yet. Does anyone is going to contribute the fortune test? >> Performance can be black magic. >> >> On the one hand, I've heard some specific things about Node.js performance >> that are very positiv

Re: Tapestry performance

2013-05-07 Thread Denis Stepanov
> Isn't scaling out using multiple instances is the way to go? Yes, but I would better use more than one thread per process. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h

Re: Tapestry IoC: @Startup with ordering constraint

2013-05-31 Thread Denis Stepanov
I have tried to push exactly same idea but wasn't successful. https://issues.apache.org/jira/browse/TAP5-1842 Denis May 31, 2013 v 4:16 PM, Eli Doran : > There's already a @ServiceId annotation to specify the ID. This isn't a > "service" exactly, it's close enough. > > > On Fri, May 31, 2013

Re: Tapestry 5.4-alpha-14

2013-07-23 Thread Denis Stepanov
Would it be possible to include https://issues.apache.org/jira/browse/TAP5-2112, small improvement to autoload modules defined in war's meta-inf/manifest. Denis Jul 23, 2013 v 5:09 PM, Howard Lewis Ship : > What issue? > > > On Tue, Jul 23, 2013 at 3:49 AM, Muhammad Gelbana wrote: > >> Hope

Re: Zone and Eventlink refresh problem

2012-01-27 Thread Denis Stepanov
I've created a new issue "Warn user or disallow zone with randomly generated id" https://issues.apache.org/jira/browse/TAP5-1834 Denis On 27.1.2012, at 6:22, Paul Stanton wrote: > Just a side note, this has caught a few users over time (since t5.1). > > Boris' expected behaviour does not seem

Re: @SetupRender not called

2012-02-01 Thread Denis Stepanov
It's probably the same issue as https://issues.apache.org/jira/browse/TAP5-1752 Denis Feb 1, 2012 v 5:12 PM, Howard Lewis Ship: > Going to need a lot more data, including the exact production platform > (OS, JDK, app server, etc.) and maybe some code samples. If I can't > reproduce it, I can't

Re: session scoped services

2012-02-02 Thread Denis Stepanov
If you have your service in the session it also means that there is the ioc registry attached to it, it could be a problem when you have a cluster, best practices is to store only serializable objects. Denis Feb 2, 2012 v 9:35 AM, Christian Köberl: > 2012-02-02, John Bush: >> I have a project

Re: Replace Coercion java.util.List --> org.apache.tapestry5.SelectModel

2012-02-16 Thread Denis Stepanov
You can't, I have created an issue https://issues.apache.org/jira/browse/TAP5-1624 and I have also suggested and improvement for the coercion to the SelectModel https://issues.apache.org/jira/browse/TAP5-1446 with a patch almost a year ago, but noone seems to care. Denis Feb 16, 2012 v 9:19

Re: Replace Coercion java.util.List --> org.apache.tapestry5.SelectModel

2012-02-16 Thread Denis Stepanov
Coerce to > TypeCoercer's contrubution :) > > 2012/2/16 Denis Stepanov > >> You can't, I have created an issue >> https://issues.apache.org/jira/browse/TAP5-1624 >> >> and I have also suggested and improvement for the coercion to the >> SelectModel https:/

Re: ComponentParameters - Binding Expressions - "component:"

2012-03-08 Thread Denis Stepanov
> The pattern that Paul and Thiago are suggesting works fine if that component > occurs a single time on a page. However, if you use it multiple times, the > client side zoneId (as well as the Tapestry JS initializers) are not unique > any more, which causes the same zone to be updated all the

Re: Why not setter injection or thread-safe field @Inject?

2012-03-20 Thread Denis Stepanov
Where did you read about fields injection not being thread safe? It's definitely not true. Some developers like to use constructor injection because of better testing etc. personally I'm using mostly field injection. Setter injection is just not implemented, IMHO IOC should support method injec

Re: Why not setter injection or thread-safe field @Inject?

2012-03-20 Thread Denis Stepanov
Calling setAcessible on the same field from different threads is not thread-safe, but it's a special case, don't be affraid to use field injection. Denis Mar 20, 2012 v 1:49 PM, fmaylinch: > > Denis Stepanov-2 wrote >> >> Where did you read about fields injection

Re: Communication with the server failed: undefined

2012-03-26 Thread Denis Stepanov
https://issues.apache.org/jira/browse/TAP5-1873 There is a description what should you change to make it work, copy function from tapestry.js, apply changes and replace it: Tapestry.ajaxRequest = ... and for better loging: Tapestry.ajaxExceptionHandler = ... Denis Mar 26, 2012 v 1:14 PM, Beat

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

2012-03-28 Thread Denis Stepanov
It makes sense to have "private" services, would be nice to have services which will be only exposed to the services in the current module. Denis Mar 28, 2012 v 12:43 PM, Lance Java: > I have never done this myself but see here for instantiating a Tapestry IOC > registry yourself > http://wiki.

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 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, Mar

Re: high thread contention during load test on InternalComponentResourcesImpl.postRenderCleanup and org.apache.tapestry5.internal.util.NamedSet.getValues

2012-05-11 Thread Denis Stepanov
Would it be better to put synchronized block inside null check block like: if (renderVariables == null) { synchronized(this) { ... If I'm not mistaken resetParametersConduits doesn't need to be synchronized it should only change per thread value. Denis May 11, 2012 v 6:06 PM, Howard Lewis Ship

Re: Tapestry Transactions

2012-05-22 Thread Denis Stepanov
OpenSessionInViewFilter has nothing to do with detached entities, it only keeps session open till view is rendered otherwise lazy loading will no work. The filter is trying to solve it by always opening session in every request and closing it at the end. Tapestry hibernate opens session only whe

Re: Tapestry 5.3.4-rc-5

2012-06-12 Thread Denis Stepanov
Could be https://issues.apache.org/jira/browse/TAP5-1873 fixed? There is a missing parameter in a call and improved exception logging. Thanks, Denis Jun 11, 2012 v 8:36 PM, Howard Lewis Ship: > On Wed, Jun 6, 2012 at 5:37 PM, Cezary Biernacki wrote: >> On Thu, Jun 7, 2012 at 1:27 AM, H

Re: Tapestry 5.3.4-rc-5

2012-06-14 Thread Denis Stepanov
Concurrency topic: Would it be possible to change the lazy init to check if write lock is already locked? It will eliminate the posibility of locking the write lock by more then one thread. try { readLock.lock(); if(is need to init) { boolean hasWriteLock = false; try {

Re: Problem injecting a Logger

2012-06-14 Thread Denis Stepanov
Its looked like resources are not injected when "javax.inject.Inject" is used. Denis Jun 14, 2012 v 2:31 AM, Howard Lewis Ship: > I'm not seeing anything here. How about you put your source into a Gist ( > gist.github.com) and paste the URL here? > > On Wed, Jun 13, 2012 at 3:12 PM, Muhammad G

Re: Tapestry 5.3.4-rc-5

2012-06-15 Thread Denis Stepanov
lt in > the initialization code never being run. > > On Thu, Jun 14, 2012 at 2:36 AM, Denis Stepanov > wrote: > >> Concurrency topic: >> >> Would it be possible to change the lazy init to check if write lock is >> already locked? It will eliminate the posib

Re: Tapestry 5.3.4 at JavaLobby

2012-07-25 Thread Denis Stepanov
I have created dzone link http://www.dzone.com/links/new_release_apache_tapestry_534.html vote it up! Denis On 25.7.2012, at 2:12, Howard Lewis Ship wrote: > Just a reminder; I'd still like to see a show of support on the > JavaLobby announcement page. > > On Wed, Jul 18, 2012 at 2:45 PM, Howa

Re: T5.3.5 candidate release dependency issue - yuicompressor

2012-08-23 Thread Denis Stepanov
YUICompressor generates invalid JavaScript for me, maybe because of the Rhino conflict I don't know. I have switched to the Google Closure compiler it has better compression rate, better api and can even detect some IE only errors, from the svn repo it looks like it is an active project. For CSS