Re: [ANNOUNCEMENT] Introducing Tynamo!

2010-01-10 Thread Kalle Korhonen
x27;s difficult to write exact generalized steps that would work uniformly for all projects. I'd start with the two things I mentioned, compare that to a running archetype and resolve conflicts as you go. Kalle On Sun, Jan 10, 2010 at 9:58 AM, Vangel V. Ajanovski wrote: > On 10.01.2010

Re: [ANNOUNCEMENT] Introducing Tynamo!

2010-01-10 Thread Kalle Korhonen
7;s not as simple as moving them to some other location. Depending on your needs, what works well, if Tynamo is used for an admin interface, is to run it as a separate application but share the data model with the end-user facing application. Kalle > On 10.01.2010 07:55, Kalle Korhonen wrote

[ANNOUNCEMENT] Introducing Tynamo!

2010-01-09 Thread Kalle Korhonen
We are pleased to officially introduce Tynamo project and announce our first releases and immediate availability of tapestry-model, tapestry-hibernate-seedentity, tapestry-conversations and tynamo-archetype modules. Tynamo is a continuation of Trails framework and is based on Tapestry 5. Tynamo fe

Re: About T5 integration modules

2009-12-27 Thread Kalle Korhonen
On Sat, Dec 26, 2009 at 1:52 AM, Alessandro Bottoni wrote: > If Tapestry does not offer anything for my Authentication/Authorization > needs, I will just look somewhere else, for example at Spring's site > (ACEGI/Spring security). I will not reinvent the n-th wheel by myself. > If Tapestry wants t

Re: Affortable Hosting solutions for Tapestry WebApps

2009-12-17 Thread Kalle Korhonen
I've evaluated lots of different VPS providers, and I haven't found anybody offering more RAM for the same price than http://tektonic.net. If you know your way around Linux distros, their unmanaged plans are great. I've been a very happy user for a few years. But still, can't beat free - Google App

Re: Missing registryIsGoingToShutdown notification

2009-12-16 Thread Kalle Korhonen
e relevant logic. Kalle On Wed, Dec 16, 2009 at 8:58 PM, Kalle Korhonen wrote: > I need to properly close an embedded database. There's > RegistryShutdownListener but it only receives registryDidShutdown() > event. I'm using Hibernate and I'd prefer using the database > co

Missing registryIsGoingToShutdown notification

2009-12-16 Thread Kalle Korhonen
I need to properly close an embedded database. There's RegistryShutdownListener but it only receives registryDidShutdown() event. I'm using Hibernate and I'd prefer using the database configuration given to Hibernate rather than establishing a separate connection just to shut it down, but the proxi

Re: Christmas Wish List (was: Tapestry 5, JPA and Hibernate)

2009-12-15 Thread Kalle Korhonen
On Tue, Dec 15, 2009 at 1:30 PM, Kalle Korhonen wrote: > It's nice you mention Tynamo even though I've been rather careful > *not* to talk about it here yet before we have our house fully in > order. Tapestry is the enabling technology for both Tynamo and Somebody already

Re: Christmas Wish List (was: Tapestry 5, JPA and Hibernate)

2009-12-15 Thread Kalle Korhonen
On Tue, Dec 15, 2009 at 1:40 AM, Alessandro Bottoni wrote: > Il 15/12/2009 06:43, Kalle Korhonen ha scritto: >> Most of the Java applications today are way over-engineered for their >> purpose - while RoR and php folks are running circles around us. > That's true. And th

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Kalle Korhonen
On Mon, Dec 14, 2009 at 6:51 PM, Thiago H. de Paula Figueiredo wrote: > Em Tue, 15 Dec 2009 00:34:25 -0200, Geoff Callender > escreveu: (Bravo Geoff!) > You can be happy with relational persistence now, but maybe not tomorrow. ;) > Just to be very clear: when I say "JPA is not my DAO", I say "an

Re: Best practice for initializing page to default context

2009-12-09 Thread Kalle Korhonen
Opened https://issues.apache.org/jira/browse/TAP5-948 for it. Kalle On Tue, Dec 8, 2009 at 11:24 AM, Kalle Korhonen wrote: > On Tue, Dec 8, 2009 at 10:59 AM, Howard Lewis Ship wrote: >> I've had to solve this problem for one of my clients as well and I >> think it's

Re: Best practice for initializing page to default context

2009-12-08 Thread Kalle Korhonen
the query parameter). >> >> This would be a new lifecycle method, like pageAttached() or >> pageLoaded().  I'm still working on the right terminology, for Widen >> it is "initialized", as in method pageInitialized(). >> >> On Mon, Dec 7, 2009 at 10

Re: Best practice for initializing page to default context

2009-12-08 Thread Kalle Korhonen
vel. Sounds like there's no issue open on it (?) - if not, I'll open one. Kalle > On Mon, Dec 7, 2009 at 10:22 PM, Kalle Korhonen > wrote: >> Most things in T5 are delightfully simple, but I find this >> surprisingly difficult: how to best initialize a page to default &

Re: Best practice for initializing page to default context

2009-12-08 Thread Kalle Korhonen
tion value, such as > @PageActivationUnit("cat") Oh, that's cool, didn't read your source that carefully... thanks for that btw. I need to ponder about this a bit - I'd like to find a good, generic pattern to follow. Kalle > ----- Original Message - > From: "

Re: Best practice for initializing page to default context

2009-12-08 Thread Kalle Korhonen
On Tue, Dec 8, 2009 at 3:39 AM, Thiago H. de Paula Figueiredo wrote: > Em Tue, 08 Dec 2009 04:22:58 -0200, Kalle Korhonen > escreveu: >> and subsequently, if my page has multiple entry points, I typically >> resort to implementing it in a single onActivate(EventContext >>

Best practice for initializing page to default context

2009-12-07 Thread Kalle Korhonen
Most things in T5 are delightfully simple, but I find this surprisingly difficult: how to best initialize a page to default context (and redirect to it). Imagine you have a search & result page. If I access the page without any context I want all records to be displayed. In onActivate() without par

Re: T5 actionlink, ajax zone and user onclick handler

2009-12-05 Thread Kalle Korhonen
On Tue, Apr 29, 2008 at 9:14 AM, Chris Lewis wrote: > Unfortunately I can't think of a clean workaround for that. The issues > are all in the javascript and how events are dispatched and handled. > Basically it comes down to 2 problems: This is an old thread but found it when I run into a similar

Re: COMBINE_SCRIPTS no effect

2009-11-29 Thread Kalle Korhonen
Andy, did you open an issue for this (include external scripts separately)? I couldn't find one. Kalle On Wed, Jul 1, 2009 at 7:30 AM, Blower, Andy wrote: > We've also been having some problems with script combination, one of which is > caused by T5 switching off combination when an external s

Re: T5:how to support AJAX submit

2009-11-28 Thread Kalle Korhonen
Hey Inge, is there an issue already open to add these to T5 core? Didn't see one.. if not, let's create one - I'll vote for these anytime. Kalle On Mon, Nov 2, 2009 at 12:24 AM, Inge Solvoll wrote: > Forget about triggerLink, it does excactly what it says, it triggers a link. > You call submitZ

Re: T5.1: Request forwarding breaks page/actionlinks

2009-11-21 Thread Kalle Korhonen
On Sat, Nov 21, 2009 at 3:31 AM, Thiago H. de Paula Figueiredo wrote: > Em Fri, 20 Nov 2009 19:41:46 -0200, Kalle Korhonen > escreveu: >> Hmm... browsing the javadocs and source, I can see that *if* all of >> the components would be using PageRenderLinkSource instead of the

Re: T5.1: Request forwarding breaks page/actionlinks

2009-11-20 Thread Kalle Korhonen
relative links. It might break something else but it sounds safe. Any committers reading this, what's your take - worth creating an issue? Kalle On Fri, Nov 20, 2009 at 1:16 PM, Kalle Korhonen wrote: > Rado, did you ever create an issue for this? You run into the same > issue when

Re: T5.1: Request forwarding breaks page/actionlinks

2009-11-20 Thread Kalle Korhonen
Rado, did you ever create an issue for this? You run into the same issue when a container processes your request through an error dispatcher (same as server-side forwards but for errors) as described at http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryForCustomErrorPages. Page and actionlin

Re: ActionLink + JCalling JavaScropt

2009-11-19 Thread Kalle Korhonen
Define When. Before? Use onclick. After (from server-side)? Use renderSupport.addScript("myfunction();") Search the mailing archives, numerous examples. Kalle On Thu, Nov 19, 2009 at 11:15 PM, Gunnar Eketrapp wrote: > Hi! > > I would like to call a javascript method when an action link is cli

Re: web site showing chart on web frameworks usage

2009-11-19 Thread Kalle Korhonen
Here's one: http://www.google.com/insights/search/#q=java%20tapestry%2C%20java%20wicket%2C%20java%20jsf%2C&cmpt=q (not a website, but Google keyword popularity trend search..) It's probably one of the more objective ones though. Kalle On Thu, Nov 19, 2009 at 8:58 AM, Ivano Luberti wrote: > Some

Re: Best practice for database notifications?

2009-11-18 Thread Kalle Korhonen
become a firm believer - it's currently my first database of choice for most projects. I'll see if they have something similar. Kalle > - Original Message ----- > From: "Kalle Korhonen" > To: "Tapestry users" > Sent: Tuesday, 17 November, 2009 00

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-17 Thread Kalle Korhonen
On Tue, Nov 17, 2009 at 11:01 AM, David Rees wrote: > On Tue, Nov 17, 2009 at 2:00 AM, Ciaran Wood wrote: >> The issue you were thinking of is >> https://issues.apache.org/jira/browse/TAP5-714 - there is a patch w/tests >> attached to the issue so a committer can probably fix this one! > > Thanks

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-17 Thread Kalle Korhonen
the issue so a committer can probably fix this one! > > Ciaran > > > On 17/11/2009 7:20am, "Kalle Korhonen" wrote: > >> On Mon, Nov 16, 2009 at 11:14 PM, David Rees wrote: >>> Yep, already using tapx-prototype, that was the first thing I tried >>&g

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-16 Thread Kalle Korhonen
On Mon, Nov 16, 2009 at 11:14 PM, David Rees wrote: > Yep, already using tapx-prototype, that was the first thing I tried > before digging into it more and figuring out that the JSON encoding > changed in T5.1 (can't find the ticket now, but it was changed to > replace instances of \" with ' to sa

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-16 Thread Kalle Korhonen
ing maven! What do I have to do to use tapx-prototype? > > regards, > Mario > > On Tue, Nov 17, 2009 at 6:17 AM, Kalle Korhonen > wrote: > >> There's a known issue with the version of prototype packaged in >> T5.1.0.5 and IE8. Are you using the

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-16 Thread Kalle Korhonen
There's a known issue with the version of prototype packaged in T5.1.0.5 and IE8. Are you using the newly released tapx-prototype already (http://tapestry.formos.com/projects/tapx/)? Kalle On Mon, Nov 16, 2009 at 9:10 PM, David Rees wrote: > Anyone else have issues with the new JSON encoding in

Re: Best practice for database notifications?

2009-11-16 Thread Kalle Korhonen
Thanks Thiago. Yes, 2nd level cache is great for some use cases and I use them whevever possible but not in this case - when this data changes, the new data needs to picked up immediately. Evicting the cache doesn't give me much more - I still need to add in the logic to evict it - although, a conf

Best practice for database notifications?

2009-11-16 Thread Kalle Korhonen
I've got a typical Tapestry-hibernate webapplication. There's some data stored in the database that never really changes (until it does) and some selected services read it at start-up, then cache it (an example of this data is an external soap service address). To avoid having to restart the webapp

Re: t5 webflow

2009-11-16 Thread Kalle Korhonen
http://docs.codehaus.org/display/TRAILS/Conversations+in+Trails Kalle On Mon, Nov 16, 2009 at 6:40 AM, Angelo Chen wrote: > > Hi, > > I know t5 does not have a web flow yet, any idea of implementing a simple > one? thanks. > > A.C. > -- > View this message in context: > http://old.nabble.com/t5

Re: Tapestry Resources and Velocity Templates

2009-11-15 Thread Kalle Korhonen
On Sun, Nov 15, 2009 at 2:22 PM, Jonhy Pear wrote: > I have configured Spring Email to send emails to users. Spring email buys almost nothing, if that's the only thing you use Spring for, you could just as well use Velocity and plain javamail directly (or alternatively chenillekit-mail). >     c

Re: tapestryIoC + architecture

2009-11-13 Thread Kalle Korhonen
On Fri, Nov 13, 2009 at 9:56 PM, Alfonso Quiroga wrote: > My question about tapestryIoC is... it doesn't use XML (I love that) > but if I'm in web layer (i.e. AppModule.java) and I want to reference > a server implementation, I CAN'T. I need via programming to do this: >   binder.bind(common.Login

Re: Switching between Stage & Production DB with Tapestry5 & Hibernate3

2009-11-13 Thread Kalle Korhonen
Best practice - use a combination of Tapestry and Hibernate "tricks". Use separate configuration files, and pick to use based on the mode you are running in your AppModule: public void contributeHibernateSessionSource(OrderedConfiguration configurer, @InjectService

Re: [ANNOUNCE] tapx 1.0.0 Tapestry Extensions

2009-11-11 Thread Kalle Korhonen
Great, thanks Howard! I'm sure lots of people besides me have been waiting for this, especially a released version of tapx-protototype. Kalle On Wed, Nov 11, 2009 at 4:50 PM, Howard Lewis Ship wrote: > I've fixed some documentation issues and generated the first stable > release of Tapestry Ext

Re: [Tapestry Central] Next Steps for Tapestry

2009-11-08 Thread Kalle Korhonen
Howard, you touch too many points to make a very concise reply, but I agree with many others encouraging you to continue coding 5.2 before you start writing a book. By now, you probably have a fairly good idea how you could improve things and I'd hate to have the first book on Tapestry5 to already

Re: t5: updating a zone during loading of page?

2009-11-05 Thread Kalle Korhonen
You can even handle the progressivedisplay event (i.e. @OnEvent(value = EventConstants.PROGRESSIVE_DISPLAY, component = "progressiveDisplay")), construct the image there and then render the image link to it. ProgressiveDisplay works for most partial rendering cases, it's just a matter of how you ar

Re: [T5.1.0.5] Problem with report-plugin on windows

2009-10-26 Thread Kalle Korhonen
Same issue here. I'd hate to hack some replacement script together just to work around this - I can verify that manually replacing backslashes to forward ones works. Anybody with a good solution, for example does this work any better with some specific Maven javadoc plugin version on Windows ? Kal

Re: T5: how to update zone on dom load

2009-10-23 Thread Kalle Korhonen
This is an old thread and there are better ways to construct event links than manually crafting them (ComponentResources.createXXXLink...). However, if you just want it "both ways" - you've got some zones and ajax actionlinks but also might want to update them via Javascript, here's a simple way to

Re: T5: Can read/write directory outside of ContextPath?

2009-10-22 Thread Kalle Korhonen
Read Tomcat's documentation about contexts (http://tomcat.apache.org/tomcat-5.5-doc/config/context.html). Then just deploy context.xml (name as you wish) and set its docBase to whatever directory you want to make available. Kalle On Thu, Oct 22, 2009 at 3:32 PM, Angelo Chen wrote: > > hi, > > no

Re: 5.1 Parameter namespacePrefix was null

2009-10-21 Thread Kalle Korhonen
Thanks from me too! Brought in cxf as dependency to my T5 app and though I had a hunch of what's wrong, this saved me quite a bit of time just going through and comparing the dependency list. Kalle On Tue, Mar 10, 2009 at 1:56 PM, Joachim Van der Auwera wrote: > I seem to have found the cause o

Re: Page methods guidelines ...

2009-10-14 Thread Kalle Korhonen
On Wed, Oct 14, 2009 at 10:23 PM, Gunnar Eketrapp wrote: > It ought to be linked from the T5 site! Right there on the home page... http://tapestry.apache.org/ Kalle > 2009/10/14 Sergey Didenko > >> May be this will help you: >> >> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples

Re: [ANNOUNCE] ChenilleKit 1.2.0 RELEASE

2009-10-13 Thread Kalle Korhonen
Depending on what you need, e.g: org.chenillekit chenillekit-tapestry 1.2.0 The released artifacts are in repo1... Kalle On Tue, Oct 13, 2009 at 12:08 PM, Roy Douglas wrote: > > Hi, > > so

Re: Tapestry5 IoC and Request problem

2009-10-12 Thread Kalle Korhonen
That's because the injected request shadow in your service doesn't have the real request backing it up since the request wasn't processed by Tapestry5 but Tapestry 4. It's the same situation if call a service from say a Quartz job - you never had the request in the first place. You need to do it th

Re: t5 and fckeditor component

2009-10-12 Thread Kalle Korhonen
On Mon, Oct 12, 2009 at 8:46 AM, Thiago H. de Paula Figueiredo wrote: > Em Mon, 12 Oct 2009 12:15:44 -0300, Roy Douglas > escreveu: > You'll need to put chenillekit-core in the classpath, maybe also > chenillekit-google and chenillekit-image. That's exatcly what makes Maven > shine the most: you

Re: T5 / 404 / with jetty and reloading ....

2009-10-07 Thread Kalle Korhonen
I've seen this too when using the early jetty-runner RCs after an OoM exception. However, I have not seen it with the latest RC6 - so I think it's an issue with how Jetty behaves when you run out of heap space. Kalle On Wed, Oct 7, 2009 at 1:58 PM, Michael Gentry wrote: > I finally saw this yes

Re: Problem with error404

2009-10-07 Thread Kalle Korhonen
at http://tapestryjava.blogspot.com/2008/02/tapestry-5-index-pages.html) and I think the semantics between Start and Index were semi-unintentional. Nevertheless you can use it to your advantage, and since it's there maybe the simplest thing to do is to just document it properly. Kalle > 20

Re: Problem with error404

2009-10-07 Thread Kalle Korhonen
handles is sort of a catch all (try it: if you have a Start page, your application will return 404s for non-existent urls). Personally, I use a Start page for the root of the context, but Index pages for sub-folders. Kalle > > Christophe. > > 2009/10/6 Kalle Korhonen > >> Don&#x

Re: Problem with error404

2009-10-06 Thread Kalle Korhonen
Don't think I can help you much, but I can verify the same sendError and error configurations work for me on Tomcat 5.5 (haven't tried on Tomcat 6). Kalle On Tue, Oct 6, 2009 at 3:05 AM, Jan Jirout wrote: > Hi All, > > I'm playing some time with t5. I have meet simple problem. I hope that it's

Re: Best way to get service from different thread

2009-10-01 Thread Kalle Korhonen
t; way i can inject something like service resources? No, not as far as I know - I suppose you could try get access to the same service registry instance but it's well-hidden for a reason. Why don't you just pass the required services to the thread at its construction? Kalle > Kalle Ko

Re: Best way to get service from different thread

2009-10-01 Thread Kalle Korhonen
You put the service in JobDataMap and in Job you get the map from JobExecutionContext. Kalle On Thu, Oct 1, 2009 at 9:44 AM, zack1403 wrote: > > Hi Everyone, > > I have been looking through the docs and mailing list but cant find and > answer to this.  What is the best way to get an autobuilt s

Re: Non-java External configuration in T5 -- can it be done?

2009-09-30 Thread Kalle Korhonen
ables businesses, professional organizations, bands, and other > organizations to replicate their joint marketing efforts on the internet." > corp blog : http://amplafi.com/blog > personal blog : http://www.sworddance.com/blog > > > On Wed, Sep 30, 2009 at 3:21 PM, Kalle

Re: Non-java External configuration in T5 -- can it be done?

2009-09-30 Thread Kalle Korhonen
http://chenillekit.codehaus.org/chenillekit-hivemind/index.html Kalle On Wed, Sep 30, 2009 at 3:09 PM, Patrick Moore wrote: > Hi there -- > > I am looking to move from T4 to T5. > > In T4/hivemind  configuration configuration was in xml files. This was great > because: > >   1. is easily modifi

Re: Bean editor model for User already contains a property model for property 'account'

2009-09-29 Thread Kalle Korhonen
Why do you want to include the field then? For display purposes? Why don't you just simply: public void setAccount(String account){ // do nothing } then override the property in the template just to output the value rather than render a field? Kalle On Tue, Sep 29, 2

Re: Dynamic form

2009-09-28 Thread Kalle Korhonen
I would look into using a BeanEditForm and making a BeanModel with all synthetic properties based on your XML configuration. If you have a definite set of parameter types and you can map each into some field type, then you should be able to do it. See http://tapestry.apache.org/tapestry5/guide/bean

Re: A survey about redeployment time in the Java EE world

2009-09-24 Thread Kalle Korhonen
Yes, it works fine. I'm using all the latest stuff including m2eclipse dev version and life's good :) Kalle On Thu, Sep 24, 2009 at 10:25 AM, Ilya Obshadko wrote: >> >> That's simply not true. I love Jetty and it's very well implemented >> but the core Tomcat runs and starts up just as fast as

Re: JSP replacement quiz

2009-09-24 Thread Kalle Korhonen
Sure you have an access to the index, just like to the element itself. Read the documentation. I'd just do all of that logic in the page class and implement something like getStyleClass(). I don't agree with your "it would be nice if simple loops like this could be achieved in TML" statement. Havi

Re: A survey about redeployment time in the Java EE world

2009-09-24 Thread Kalle Korhonen
On Thu, Sep 24, 2009 at 6:49 AM, Thiago H. de Paula Figueiredo wrote: > Em Thu, 24 Sep 2009 10:46:31 -0300, Ilya Obshadko > escreveu: >> Live class reloading is a great feature. >> But I couldn't figure out yet how one should configure, for example, >> Tomcat 6 in development environment to avoid

Re: Not in GZIP format problem

2009-09-24 Thread Kalle Korhonen
And obviously you need to gzip the request. On Thu, Sep 24, 2009 at 12:32 AM, Kalle Korhonen wrote: > From the page source, check what the value of hidden field t:formdata > is and send it together with the rest of your multipart form data and > it'll work. The value of t:formdat

Re: Not in GZIP format problem

2009-09-24 Thread Kalle Korhonen
>From the page source, check what the value of hidden field t:formdata is and send it together with the rest of your multipart form data and it'll work. The value of t:formdata changes only if you change the form itself (add/remove fields). Kalle On Wed, Sep 23, 2009 at 4:02 PM, Ovidiu Hurducas

Re: question

2009-09-23 Thread Kalle Korhonen
On Wed, Sep 23, 2009 at 10:23 PM, Gunnar Eketrapp wrote: > I often come across JSP code like ... > > According to my understanding T5 does not support expressions in the test > parameter. Correct? > Now I am coding a test method in the java class for each such case. Is there > a smarter solution?

Re: [ANNOUNCE] ChenilleKit 1.2.0 RELEASE

2009-09-23 Thread Kalle Korhonen
Deian, You can download the individual jars as needed from http://repo1.maven.org/maven2/org/chenillekit/ Kalle On Wed, Sep 23, 2009 at 3:41 AM, Massimo Lusetti wrote: > On Tue, Sep 22, 2009 at 10:19 PM, deian wrote: > >> >> Hi Massimo, >> >> I have a question : how to download that release?

Re: T5.1 Graceful Session Timeout?

2009-09-17 Thread Kalle Korhonen
Just to prevent nullpointers, in your onActivate() you should have if (object == null) object = new Object(). Obviously that could lead to unexpected results to the user - based on object state you could present a a message to the user etc. but there are quite a few different cases that you need to

Re: [ANN] JumpStart 4.4 released

2009-09-16 Thread Kalle Korhonen
ityFinderService().findUserRolesShallowishByUser(_userId); >        } > > I've almost finished reworking JumpStart to suit this pattern and it > works much better.  I'll release a few days from now as version 4.5.2. > > The previous technique is a hangover from when

Re: Exception handling after violation of unique constraint

2009-09-12 Thread Kalle Korhonen
sed for the saveorupdate and "list" trys to flush if > there's "dirty data". > > On Sat, Sep 12, 2009 at 3:02 AM, Kalle Korhonen > wrote: >> I'm using the plain hibernate Session (shadow) and the pattern works >> great for me. But I think your

Re: Exception handling after violation of unique constraint

2009-09-11 Thread Kalle Korhonen
On Fri, Sep 11, 2009 at 7:26 PM, Thiago H. de Paula Figueiredo wrote: > Em Fri, 11 Sep 2009 23:11:59 -0300, Kalle Korhonen > escreveu: > I think onValidate() is for validation, the data store should only be > changed (or attepted to be changed) when validation succeeds and controll

Re: Exception handling after violation of unique constraint

2009-09-11 Thread Kalle Korhonen
On Fri, Sep 11, 2009 at 3:05 PM, Thiago H. de Paula Figueiredo wrote: > Em Fri, 11 Sep 2009 18:30:34 -0300, Bruno Santos > IMHO, you have to write code to do that (query the database if needed) Well that doesn't do anything else except merely lowers the probability. > intead of sending data to

Re: Exception handling after violation of unique constraint

2009-09-11 Thread Kalle Korhonen
>>>        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1589) >>>        at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306) >>>        at DefaultHibernateDAO.findByCriteria(DefaultHibernateDAO.java:104) >>> >>> >>> The abort

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-11 Thread Kalle Korhonen
I applaud the efforts, but I think you really really have to upgrade to 5.1.0.5 before you can get this on anybody's radar. There's a good possibility the same wouldn't happen in it. If you are running with -server (think it may be automatically chosen if you haven't specified with that heap max) a

Re: Problem with ZoneUpdater example

2009-09-10 Thread Kalle Korhonen
Yes, but I guess Geoff was asking why the same keyup event works fine on the page, including non-printing chars. Kalle On Thu, Sep 10, 2009 at 6:17 PM, Thiago H. de Paula Figueiredo wrote: > Playing with them a little, it seems to me that the keyup event ignores > non-printing chars. Try typing

Re: Exception handling + @CommitAfter

2009-09-10 Thread Kalle Korhonen
You should instead try storing it onValidate. If it fails, you should record an error and if it succeeds you should commit only in onSuccess (but the method body can be otherwise empty). Kalle On Thu, Sep 10, 2009 at 2:55 PM, Bruno Santos wrote: > Good evening, > > I have a form using a zone an

Re: t5: templates used for component

2009-09-09 Thread Kalle Korhonen
The templates need to be on the classpath. It's completely up to you whether you want to keep them in a jar, war, ear or as plain files in the file system. However, I don't think changes in the templates would be picked up unless you run in non-production mode. Kalle On Wed, Sep 9, 2009 at 10:20

Re: NPE when trying to store an ASO

2009-09-08 Thread Kalle Korhonen
onState(create=false) as a default? Couldn't find any symbol for it in the documentation. Kalle On Tue, Sep 8, 2009 at 10:59 AM, Kalle Korhonen wrote: > Hey Uli & others, > > I dug up this old thread as I run into the same issue myself with > T5.1. Did you ever manage to solve

Re: NPE when trying to store an ASO

2009-09-08 Thread Kalle Korhonen
Hey Uli & others, I dug up this old thread as I run into the same issue myself with T5.1. Did you ever manage to solve this in a satisfactory way? It's clear that the issue is the same - requestGlobals.getRequest() returns null since I'm contributing my handler before everything else but I also wa

Re: Supporting multiple devices, eg. browser + mobile + TV

2009-09-02 Thread Kalle Korhonen
On Wed, Sep 2, 2009 at 2:28 PM, Thiago H. de Paula Figueiredo wrote: > Em Wed, 02 Sep 2009 18:10:56 -0300, Alfie Kirkpatrick > escreveu: >> Am wondering about ways to support this scenario cleanly in T5, where >> visual layout is very different per device but the page classes could be >> quite sim

Re: [ANN] JumpStart 4.4 released

2009-09-02 Thread Kalle Korhonen
r form, user.salutation is chosen from a Select list.  The > list doesn't need to be built in onActivate() either.  It's done in > getSalutations() and works just fine with the Back button. > > Can you see a hole in this that I've missed? > > Geoff > http://jumpst

Re: [ANN] JumpStart 4.4 released

2009-09-02 Thread Kalle Korhonen
don't want > optimistic locking then don't put the entity's version attribute in the > form. Agree completely, that's a good pattern to follow. Kalle > On 02/09/2009, at 4:03 PM, Kalle Korhonen wrote: > >> On Tue, Sep 1, 2009 at 9:50 PM, Geoff >> C

Re: [ANN] JumpStart 4.4 released

2009-09-01 Thread Kalle Korhonen
09, at 8:37 AM, Kalle Korhonen wrote: > >> Hey Geoff, >> >> I recall reading at some point that you had recommended not using >> onActivate() for all initialization purposes, and sure enough, I dug >> it up and at >> http://jumpstart.doublenegative.com.au:8080/jum

Re: [ANN] JumpStart 4.4 released

2009-08-31 Thread Kalle Korhonen
Hey Geoff, I recall reading at some point that you had recommended not using onActivate() for all initialization purposes, and sure enough, I dug it up and at http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/onactivateandonpassivate/3 you say "It can be tempting to put lo

Re: Expansions, projections and arrays

2009-08-27 Thread Kalle Korhonen
brueder > - > Software Developer and Trainer for Hibernate / Java Persistence > http://www.laliluna.de > > > > Kalle Korhonen schrieb: >> >> I'm using tapestry-hibernate and I have a case where I'm forced to use >> Projections (or aggregate fu

Re: Expansions, projections and arrays

2009-08-26 Thread Kalle Korhonen
riteria. > > https://www.hibernate.org/hib_docs/v3/api/org/hibernate/transform/ResultTransformer.html > > On Thu, Aug 27, 2009 at 8:06 AM, Kalle Korhonen > wrote: > >> I'm using tapestry-hibernate and I have a case where I'm forced to use >> Projections (or aggrega

Expansions, projections and arrays

2009-08-26 Thread Kalle Korhonen
I'm using tapestry-hibernate and I have a case where I'm forced to use Projections (or aggregate functions in hql but same end result) so my query is returning an object array. Now, I'm rendering a list of that information to the user, but since using ${obj[0]} expansion is not supported, I'm force

Re: BeanEditForm recorderror for a field

2009-08-24 Thread Kalle Korhonen
Yes, that's what I thought, thanks for confirming. Kalle On Mon, Aug 24, 2009 at 12:26 AM, Ulrich Stärk wrote: > On 22.08.2009 19:38 schrieb Kalle Korhonen: >> >> Oh that - you need tell the bean editor that you want the field to be >> used in your form. See Property E

Re: BeanEditForm recorderror for a field

2009-08-22 Thread Kalle Korhonen
Regards / Viele Grüße > > Sebastian Hennebrueder > - > Software Developer and Trainer for Hibernate / Java Persistence > http://www.laliluna.de > > Kalle Korhonen schrieb: >> >> Oh that - you need tell the bean editor that you want the field to be >> used i

Re: BeanEditForm recorderror for a field

2009-08-22 Thread Kalle Korhonen
es a component in your component >> class that you can then use in your template while @InjectComponent injects >> a component defined in your template. >> >> Cheers, >> >> Uli >> >> Kalle Korhonen schrieb: >>> >>> How do you reference your

Re: Features Request for 5.x or 6?

2009-08-22 Thread Kalle Korhonen
Christmas comes early this year: use the ognl binding from chenillekit (http://www.chenillekit.org/chenillekit-tapestry/ognlbinding.html). Be a good boy now. Kalle On Sat, Aug 22, 2009 at 9:23 AM, akira wrote: > Hi, i know that there are developers much more actively using Tapestry than > me but

Re: BeanEditForm recorderror for a field

2009-08-22 Thread Kalle Korhonen
How do you reference your myForm? All components are handled the same way: @Component private TextField myInputField; Kalle On Sat, Aug 22, 2009 at 5:52 AM, Sebastian Hennebrueder wrote: > Hello, > > the beaneditform provides a method recordError which expects a field of the > form. I couldn't f

Re: Anybody have a CurrencyField?

2009-08-21 Thread Kalle Korhonen
Obviously the component would use a default translator then delegate to TextField. I don't see much need for format with a translator. But just wanted to ask if somebody had already written a more complete CurrencyField instead of quick'n'dirty solutions but apparently not. Kalle On Fri, Aug 21,

Anybody have a CurrencyField?

2009-08-21 Thread Kalle Korhonen
Before I write my own, just wanted to check if anybody has implemented a CurrencyField component he could share? One that uses int/long as an internal representation but formats fractions and currency codes properly on the UI, preferably using configurable Currency & Locale. Thanks, Kalle ---

Re: Hello. New user here!

2009-08-20 Thread Kalle Korhonen
On Wed, Aug 19, 2009 at 11:54 PM, wrote: > On a side note: > Respectfully I disagree with you Kalle :) I maintain that using exclude is > the most efficient way as there is a chance that you can end up with more > than one version of the jar on your classpath... also explicit declaration > gene

Re: Hello. New user here!

2009-08-17 Thread Kalle Korhonen
Better than exclude - re-declare the tapestry version in your own application pom so Maven's "nearest" version resolution can work properly (that way you don't have to exclude them for each dependency that declares a specific version of Tapestry). Kalle On Mon, Aug 17, 2009 at 5:27 PM, Thiago H.

Re: Passing data to the same page - Understanding PersistanceContext.FLASH

2009-07-24 Thread Kalle Korhonen
Or, you can use a conversational scope - stored in session but as part of separate scope which can be set to expire earlier than the session itself. The library also supports multiple simultaneous conversations on different browser tabs. More at http://docs.codehaus.org/display/TRAILS/Conversations

Re: Feedback on application status page

2009-06-25 Thread Kalle Korhonen
Yes, very useful and would make sense to have this data/page available in non-production mode out-of-the-box. Kalle On Thu, Jun 25, 2009 at 2:18 AM, Hugo Palma wrote: > I was thinking of following the same principle that the ServiceStatus page > uses, which is to only be displayed when not in pr

Re: Difference between @Retain and static attributes?

2009-06-24 Thread Kalle Korhonen
ds, nillehammer > > == > > > - original Nachricht > > Betreff: Difference between @Retain and static attributes? > Gesendet: Mi, 24. Jun 2009 > Von: Kalle Korhonen > >> I was using @Retain for some fields that only needed to be initialized >>

Difference between @Retain and static attributes?

2009-06-24 Thread Kalle Korhonen
I was using @Retain for some fields that only needed to be initialized once on a page. However, I see that they are reset after some time has passed. How does the page pool work - are less used pages removed from the pool only when other pages push them out or is the cache cleared periodically? Are

Re: [Announce] New tapestry libraries - ioko-tapestry-commons

2009-06-22 Thread Kalle Korhonen
Interesting, but you are using the most restrictive copy-left license, GPL v3, for these components.. you'd effectively have to provide source for all of your server-side code for your users. Any plans to change that? Kalle On Mon, Jun 22, 2009 at 7:22 AM, Ben Gidley wrote: > Hi, > > I would lik

Re: lack of committers

2009-06-22 Thread Kalle Korhonen
Could it be that Tapestry doesn't have a lack of committers/commits but just one super productive committer? The truth is that most open-source projects are slowly evolving, because very few people are in that fortunate position that they can devote most of their time on working on things they like

Re: [Tapestry Central] Why chose Tapestry?

2009-06-18 Thread Kalle Korhonen
This is a funny thread. Maybe it'd be better to spend all this energy in learning the tools rather than complaining. Whatever the tool is, understand that the dependencies are yours to manage. The truth is that today's applications written in Java are so complex and comprised of so many little libr

<    3   4   5   6   7   8   9   10   >