Re: Invoke method after page is loaded; when method finishes, redirect to another page

2011-03-04 Thread Kalle Korhonen
You don't need multiple pages for it, you can just do it all in one page if you don't mind some ajax (no scripting needed). ProgressiveDisplay is ideal for this (http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/ProgressiveDisplay.html). Kalle On Fri, M

Re: [ANNOUNCEMENT] upcoming module: tynamo-federatedaccounts

2011-03-03 Thread Kalle Korhonen
[TYNAMO-73] - Initial implementation of federatedaccounts sample running on GAE [TYNAMO-80] - Implement different windowmodes for Facebook oauth Enjoy, Tynamo team On Sat, Jan 29, 2011 at 11:08 PM, Kalle Korhonen wrote: > With 600 million users and counting, it's the new Internet. Ye

Re: Lazy injection

2011-02-28 Thread Kalle Korhonen
That's the default. Only if you use @EagerLoader, the services are instantiated.. err.. eagerly, otherwise the actual service is created (realized) on the first invocation of the service proxy. Kalle On Mon, Feb 28, 2011 at 4:03 PM, Dan Griffin wrote: > Hi all, > > Is there a way to inject a se

Re: Q: java.lang.ClassNotFoundException: org.apache.tapestry5.TapestryFilter ?

2011-02-28 Thread Kalle Korhonen
http://tynamo.org/Developing+with+Tomcat+and+Eclipse Kalle On Mon, Feb 28, 2011 at 5:34 AM, penyihirkecil wrote: > Using mvn jetty:run works perfectly. But i want to try another way ^^, > > On 28/02/2011 20:26, Thiago H. de Paula Figueiredo wrote: >> >> On Mon, 28 Feb 2011 10:23:09 -0300, penyih

Re: Classloader issues with 'skinny WARs'

2011-02-22 Thread Kalle Korhonen
On Tue, Feb 22, 2011 at 8:01 AM, Everton Agner wrote: > Are you using maven? Yes. Kalle > 2011/2/22 Kalle Korhonen > >> Never used GlassFish, but skinny wars work fine in Tomcat. >> >> Kalle >> >> >> On Tue, Feb 22, 2011 at 2:26 AM, Lenny Primak

Re: Classloader issues with 'skinny WARs'

2011-02-22 Thread Kalle Korhonen
Never used GlassFish, but skinny wars work fine in Tomcat. Kalle On Tue, Feb 22, 2011 at 2:26 AM, Lenny Primak wrote: > I am trying to share tapestry JARs between multiple web apps by > placing Tapestry JARs into common library directory on the container > (domain1/lib in GlassFish) > > Clearl

Re: 10 Minute Web Application Demo

2011-02-19 Thread Kalle Korhonen
Mark, I linked to your screencast from "Getting Started" and "Presentations" pages of Tapestry's official documentation. I linked to your blog rather than the YouTube clip directly, I assume that's how you wanted it. I wouldn't worry too much about fixing every little issue people have reported. I

Re: Render informal parameters into element(s) of a component's template

2011-02-17 Thread Kalle Korhonen
Thanks, just run into the same. What a surprising use case for the trigger component. Perhaps a hack, but feels right :) This would deserve a spot somewhere in the documentation. Kalle On Fri, Jan 14, 2011 at 3:10 AM, nille hammer wrote: > > Hi List, > > I have just stepped into the same proble

Re: Error after logout

2011-02-17 Thread Kalle Korhonen
You are logging out the Subject, right? See this (from http://svn.codehaus.org/tynamo/trunk/tynamo-example-federatedaccounts/src/main/java/org/tynamo/examples/federatedaccounts/pages/Index.java): Object onActionFromLogout() { // Need to call this explicitly to invoke onlogou

Re: Class Transformation

2011-02-17 Thread Kalle Korhonen
On Thu, Feb 17, 2011 at 7:15 AM, Taha Hafeez wrote: > Back to the question. What I really want to do is provide an @Auditable > annotation on my domain classes and then add some fields/methods at the time > of loading the classes. Are you sure that adding the auditing data directly to your domain

Re: How to edit tml files with DreamWeaver?

2011-02-15 Thread Kalle Korhonen
"Better way" is relative, but the designers I've worked with have been very happy to be able to modify templates of a running application. Without knowing many of the details, they execute "mvn jetty:run", modify the templates and commit the files. You need to have Java installed in their environme

Re: 10 Minute Web Application Demo

2011-02-14 Thread Kalle Korhonen
Just watched, impressive! Almost as if it was super easy to create these web apps with Tapestry :) Definitely deserves a spot right at Tapestry's "Getting Started" page IMHO. Kalle On Mon, Feb 14, 2011 at 8:24 PM, Mark wrote: > If anyone is interested, I made a short screencast showing the > bu

Re: [chenillekit-user] [ANNOUNCE] ChenilleKit 1.3.2 which support Tapestry 5.2.4

2011-02-14 Thread Kalle Korhonen
Congrats and thanks Massimo for all the hard work! Kalle On Sun, Feb 13, 2011 at 6:26 AM, Massimo Lusetti wrote: > Finally I was able to find time to crank out a release of ChenilleKit > for Tapestry 5.2.4 > > I'm lost in the middle of a big project which cannot fail and would > ask anyone inte

Re: Tynamo Security and Tapestry case insensitive paths

2011-02-14 Thread Kalle Korhonen
On Mon, Feb 14, 2011 at 2:56 AM, Massimo Lusetti wrote: > BTW URL should be considered in a case sensitive manner expect for the > machine name part which could be considered case insensitive. > Could that open up a discussion on how Tapestry5 treats URL? At least earlier www protocol specs didn'

Re: t5: accessing a service from a contributed class

2011-02-13 Thread Kalle Korhonen
On Sun, Feb 13, 2011 at 6:55 PM, Thiago H. de Paula Figueiredo wrote: > On Mon, 14 Feb 2011 00:16:33 -0200, Angelo C. > wrote: >> is this possible? > Yes, as long as the contributed object is an service itself. Is that a fact Thiago? I'm surprised by that. I would have assumed you would have nee

Re: can't get tynamo's tapestry-resteasy to work

2011-02-10 Thread Kalle Korhonen
No guarantees this will work, but try declaring a newer web.xml version. See for example http://publib.boulder.ibm.com/infocenter/wasinfo/beta/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/twbs_jaxrs_configjaxrs11method.html Kalle On Thu, Feb 10, 2011 at 5:49 AM, Ronald Luke wrote: >

Noticed another stackoverflow question on Tapestry 5, go vote

2011-02-08 Thread Kalle Korhonen
See http://stackoverflow.com/questions/3831807/java-server-faces-2-0-or-tapestry-5-2. I love the marketing effort from the play framework guys, they are very serious about their play :) The given Tapestry answers given seem very reasonable. Kalle -

Re: Tynamo Security and Tapestry case insensitive paths

2011-02-07 Thread Kalle Korhonen
On Mon, Feb 7, 2011 at 9:43 AM, Mark wrote: > On Sun, Feb 6, 2011 at 8:22 AM, Kalle Korhonen >> Made a patch release yesterday with a fix, use 0.2.2 or 0.3.1, see >> http://tynamo.org/tapestry-security+guide > I found this in the destination of your link: > Use lowercase thr

Re: Tynamo Security and Tapestry case insensitive paths

2011-02-06 Thread Kalle Korhonen
Made a patch release yesterday with a fix, use 0.2.2 or 0.3.1, see http://tynamo.org/tapestry-security+guide Kalle On Fri, Feb 4, 2011 at 7:56 PM, Kalle Korhonen wrote: > Sorry for being a bit late to the party. Thanks Barry for reporting > and already proposing a patch. Yes, it really

Re: Tynamo Conversations & Java 5

2011-02-05 Thread Kalle Korhonen
omeone pointed out that PowerPC > Macs (which are still in use -- desktops and servers) don't have the > option of Java 1.6 yet, so we decided to stick with Java 1.5 for the > time being since Java 1.6 didn't really provide anything necessary. > > mrg > > > On Mon,

Re: Tynamo Security and Tapestry case insensitive paths

2011-02-04 Thread Kalle Korhonen
Sorry for being a bit late to the party. Thanks Barry for reporting and already proposing a patch. Yes, it really seems it's a feature of Shiro. I do a find it a bit funny though (yes, I'm a Shiro committer but haven't been on board from the beginning) that it's the default behavior and that there'

Re: Unit Testing DAOs

2011-02-04 Thread Kalle Korhonen
If you are not using a (JPA) EntityManager or Tapestry's Hibernate integration, you need to let Hibernate know about the entities yourself. If you are really only testing the DAOs, you shouldn't need to power up the IoC registry. Here's an excerpt of my persistence test base class (with Mockito):

Fast name-value pair persistent storage?

2011-02-03 Thread Kalle Korhonen
I have yet another tapestry-security add-on module in the works, this time for remember me. For context, read http://fishbowl.pastiche.org/2004/01/19/persistent_login_cookie_best_practice/ (and re-read until you agree that's the best way) for doing authenticating "remember me" while minimizing othe

Re: [ANNOUNCEMENT] upcoming module: tynamo-federatedaccounts

2011-02-02 Thread Kalle Korhonen
x27;s UserService / openID > support) but still seems very doable. > >  Anyway, thanks for keeping the good T5 modules coming in !! > > Cheers, > > Alex K > > On Sun, Jan 30, 2011 at 2:08 AM, Kalle Korhonen > wrote: > >> With 600 million users and counting, it&

Re: Tynamo Conversations & Java 5

2011-01-31 Thread Kalle Korhonen
ve kept the target at 1.5, especially byte-code wise there's nothing that requires 1.6. Perhaps we'll fix that in a new parent version. In the meantime, for most established companies, shouldn't be an issue hosting a 1.5 version in their company repos. Kalle > On Mon, Jan 31, 2011 at

Re: Tynamo Conversations & Java 5

2011-01-31 Thread Kalle Korhonen
I've always wondered how you can be progressive and conservative at the same time :) No reason except we didn't think that anybody would be using Java5 anymore together with tapestry apps. You could grab the source, set the compiler target version to 1.5 (we changed it in the latest parent to 1.6)

[ANNOUNCEMENT] upcoming module: tynamo-federatedaccounts

2011-01-29 Thread Kalle Korhonen
With 600 million users and counting, it's the new Internet. Yes, I'm talking about Facebook. Whether you love it or hate it, these days you have to have a Facebook strategy. Every other site is doing Facebook, Twitter and Google integrations and why not, your fledgling little website wouldn't need

Re: Can not build quickstart with maven

2011-01-27 Thread Kalle Korhonen
3 abo staff102 28 Jan 13:02 myapp > -rw-r--r--@ 1 abo staff 1773 16 Nov 00:54 pom.xml > drwxr-xr-x 5 abo staff170 28 Jan 13:00 src > > Thanks! > Andreas > >Kalle Korhonen > 28. Jänner 2011 11:30 > > Which folder are you in when trying to invoke the arc

Re: Can not build quickstart with maven

2011-01-27 Thread Kalle Korhonen
Which folder are you in when trying to invoke the archetype? The error indicates that you have an existing pom of the wrong type in the folder you are trying to execute the command from. To make sure you are in a clean directory, create a new folder and cd to it, then try again. Kalle On Thu, Ja

Re: org.apache.tapestry5.util.EnumSelectModel java.lang.NullPointerException: migrate from Tapestry 5.1.0.5 to Tapestry 5.2.4

2011-01-25 Thread Kalle Korhonen
It's in the stack trace: Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException [at classpath:com/skyecandy/components/EditSelectField.tml, line 6] at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:993) at org.apache.

Re: Embedded tomcat for testing

2011-01-17 Thread Kalle Korhonen
Oh, it's absolutely possible. This article is from 2002: http://onjava.com/pub/a/onjava/2002/04/03/tomcat.html. I swear I had done embedding Tomcat for one of my projects, but for the life of me I can't remember which one and I couldn't find the code :( It's a bit more complicated than with Jetty,

Re: attn howard: live reloading breaking using jetty

2011-01-13 Thread Kalle Korhonen
On Thu, Jan 13, 2011 at 3:44 PM, Paul Stanton wrote: > ah, i did not know that. sounds like a good idea .. but since there is no > documentation (eclipse) regarding the .classpath schema (as it's internal) > can you explain how to do this? Just read the instructions at http://tynamo.org/Developin

Re: attn howard: live reloading breaking using jetty

2011-01-11 Thread Kalle Korhonen
I bet it's Windows and it's because Eclipse's not able to copy around the resource files since they are locked. Simply *don't* copy them. http://tynamo.org/Developing+with+Tomcat+and+Eclipse is for Tomcat but same principles apply. Kalle On Tue, Jan 11, 2011 at 12:52 PM, Howard Lewis Ship wrote

Re: Run Before Hibernate Loads

2011-01-10 Thread Kalle Korhonen
m old implementation). What you are missing is (in contributeApplicationDefaults): configuration.add(HibernateSymbols.DEFAULT_CONFIGURATION, "false"); Apologies for leaving it out, I'm sure it's documented *some*where... Kalle > On 01/03/2011 02:07 PM

Re: ComponenentRequestHandler doesn't exist when testing using TestNG

2011-01-05 Thread Kalle Korhonen
ow. What I am really after is failing fast on the integration tests. If the > app didn't start I would rather not run through each test and all setup > associated with each one. > > -Nate > > Kalle Korhonen wrote: >> >> Why not >> http://docs.codehaus.org/dis

Re: Run Before Hibernate Loads

2011-01-03 Thread Kalle Korhonen
Probably lots of way to do that, but I typically use code similar to this: public void contributeHibernateSessionSource(OrderedConfiguration configurer, @InjectService("DefaultHibernateConfigurer") HibernateConfigurer defaultHibernateConfigurer) {

Re: T5.2.4 How to discard persistent fields when the user leaves a page ?

2010-12-27 Thread Kalle Korhonen
Right, the trick is calling discardPersistentFieldChanges() at the right time. You cannot, or at least it doesn't make sense in the general case, to simply call it on browser's onunload(). Tapestry-conversations module relies on the idea of short term expiration of page-specific session data, where

Re: T5.2.4 How to discard persistent fields when the user leaves a page ?

2010-12-26 Thread Kalle Korhonen
Perhaps you already evaluated, but decided against using tapestry-conversations for one reason or another, but just in case you haven't, see http://tynamo.org/tapestry-conversations+guide. (I really don't want to advertise repeatedly, but at the same time I frequently hear people saying they didn'

Re: Timeouts and how to handle them?

2010-12-18 Thread Kalle Korhonen
Two Tynamo modules, tapestry-conversations and tapestry-exceptionpage (see http://tynamo.org/tapestry-conversations+guide and http://tynamo.org/tapestry-exceptionpage+guide respectively) are meant for handling these cases. They are good for both regular and ajax requests. In one application, I have

Re: A more general approach to configuring for compatibility

2010-12-17 Thread Kalle Korhonen
On Fri, Dec 17, 2010 at 2:25 PM, Robert Zeigler wrote: > I'm thinking out loud here, but... > Recently, I upgraded a project from 5.0.15 to 5.1.0.4.  The project is fairly > complex, and there were some major changes in Tapestry's behavior between > 5.0.15 and 5.0.18, when the public apis were l

Re: Referencing and displaying image asset from Webapp

2010-12-14 Thread Kalle Korhonen
You are way over-complicating things. If these are static resources (your webapp/ implies that but storing the names in the db implies the opposite), you can just refer to them by /layout/images/product/ (possibly add a context path). If they are not static resources, e.g. users of your application

Re: Adding wiki support ...

2010-12-11 Thread Kalle Korhonen
What kind of support are you envisioning? For stability, it's often better to run wikis in a separate instance. Kalle On Sat, Dec 11, 2010 at 12:05 AM, Gunnar Eketrapp wrote: > This may be out of scope for mailing list but I would like to add wiki > support to the users of my web application. >

[ANNOUNCEMENT] tynamo-archetype 0.1.0 released!

2010-12-07 Thread Kalle Korhonen
What's that? Did the little Tynamo elf just leave an early Christmas gift for all the Tapestry people who have been so good boys and girls the whole year? Indeed, Tynamo is announcing one more module, tynamo-archetype 0.1.0 this year before focusing on our own wish list. It seems fitting that we re

[ANNOUNCEMENT] tapestry-resteasy 0.2.1 released!

2010-12-03 Thread Kalle Korhonen
Hey, wouldn't it be great if you could just reload your RESTful service classes live while developing them? Oh that's right, that's exactly what tapestry-resteasy 0.2.1 allows you to do! This is T5.2.x specific maintenance release, updating the JAX-RS dependency to JBoss' resteasy GA release 2.0.1.

Re: T5: using template instead of T5's tml

2010-12-01 Thread Kalle Korhonen
On Wed, Dec 1, 2010 at 8:22 PM, Angelo C. wrote: > it's an interesting approach, some more details? I can't find t:content in > the T5 component reference, is it a component you created in additional to > youLayoutComponent? Thanks, http://lmgtfy.com/?q=tapestry+t%3Acontent Kalle > Alex Kotchn

Re: T5: using template instead of T5's tml

2010-11-30 Thread Kalle Korhonen
cation (and components!) get more complex. Kalle > Kalle Korhonen-2 wrote: >> >> Using Velocity/FreeMarker with T5 strikes as odd to me. The designers >> I work with regularly design and edit the Tapestry templates (live!), >> without having any idea of Java, Maven, Jetty or

Re: T5: using template instead of T5's tml

2010-11-30 Thread Kalle Korhonen
Using Velocity/FreeMarker with T5 strikes as odd to me. The designers I work with regularly design and edit the Tapestry templates (live!), without having any idea of Java, Maven, Jetty or any of that stuff. They know enough about Tapestry to leave ${value} and occasional markings alone. Kalle

Re: tapestry-hibernate, hsqldb and registry shutdown

2010-11-29 Thread Kalle Korhonen
Perhaps you should read this as well: http://www.mail-archive.com/users@tapestry.apache.org/msg41237.html. But overall, not necessarily a good idea to shut down services before their time. For your specific case though, why not just use h2 (http://h2database.com) and DB_CLOSE_ON_EXIT=TRUE instead a

Re: T5 page request return blank layout under heavy load test

2010-11-26 Thread Kalle Korhonen
Three things I'd do (in this order): 1) Find out if it's the container the serving the empty response or your application (should be very simple to find out - if you can't tell otherwise for sure, just make a little identifiable change in your template and see it that's what you get back). As said,

Re: Jetty and live class re-loading (again)

2010-11-26 Thread Kalle Korhonen
Jetty is a fine choice, but Tomcat works just the same for live class reloading: http://tynamo.org/Developing+with+Tomcat+and+Eclipse Kalle On Fri, Nov 26, 2010 at 8:31 AM, Richard Hill wrote: > > Hi All, > > I today have attempted switching from Tomcat to Jetty in order to take > advantage of

Re: T5.1 and Tynamo Security: override a Shiro Filter

2010-11-25 Thread Kalle Korhonen
I'll merge them in over time, but don't hold your breath. Out of interest, what's your use case for it? (If it's just the dislike of the configuration file, that's fine I get it). Kalle On Thu, Nov 25, 2010 at 10:06 AM, Kalle Korhonen wrote: > Whoops. We certainly w

Re: T5.1 and Tynamo Security: override a Shiro Filter

2010-11-25 Thread Kalle Korhonen
Whoops. We certainly wanted to make overriding possible programmatically. I'm on it, didn't look into the code yet but if it doesn't currently work I'll definitely fix it. Which version of tapestry-security are you using? Kalle On Wed, Nov 24, 2010 at 3:11 AM, anton.litvinenko wrote: > > Hello!

Guide: Developing with Tomcat and Eclipse

2010-11-23 Thread Kalle Korhonen
On Thu, Nov 4, 2010 at 4:27 PM, Howard Lewis Ship wrote: > I'm always amazed at how tortured people's setups are. That does it. I'm equally surprised every time I see people doing all kinds of crazy manual steps and putting up with several seconds, even minutes of build and wait time after every

Re: T5 page request return blank layout under heavy load test

2010-11-23 Thread Kalle Korhonen
Are you sure that what you are getting is the bare layout and that the webapplication is still (somewhat) functional/loaded? Just a wild guess, but it could be the container serving up an empty response after undeploying the webapp on out-of-memory-error. Is your JVM set to handle all of that 12GB

Re: [T5.2.4] Service ambiguity does not get resolved, when Marker annotations are defined inside of an service implementation

2010-11-22 Thread Kalle Korhonen
I think you are right. Easy way out is to add withMarker(...).preventReloading(); Service reloading enabled by default can be frustrating when you hit issues, but overall I think the benefits outweigh the harms. Kalle On Mon, Nov 22, 2010 at 11:57 AM, Felix Gonschorek wrote: > hi all, > > we a

Re: [ANNOUNCEMENT] tapestry-security 0.2.1 and 0.3.0 released!

2010-11-22 Thread Kalle Korhonen
OpenID is well within our scope. I have done Oauth & Oauth 2 integrations but haven't found the time yet to generalize the implementation. There's quite a bit more work to do for general use compared to making it work just for your webapplication. I trust in code and patches are always welcome. Ka

[ANNOUNCEMENT] tapestry-security 0.2.1 and 0.3.0 released!

2010-11-22 Thread Kalle Korhonen
Ta daa! This time we are announcing a dual release of tapestry-security, versions 0.2.1 for T5.1.x and 0.3.0 for T5.2.x! Probably not much of a surprise anymore as I've hinted at numerous occasions about the new releases but announcing still has its place since major dependencies changed. Most impo

Re: Tapestry 5.2.4 issue

2010-11-20 Thread Kalle Korhonen
If upgrading didn't help, you have multiple slf4j libs in the classpath (newer api than impl). Using maven? Run mvn dependency:tree. Kalle On Sat, Nov 20, 2010 at 10:55 AM, Zubair Nuamaan wrote: > > Thanks, did that and same issue - upgraded to 1.6.1 > > How would I find out which libraries are

Re: Tapestry 5.2.4 issue

2010-11-20 Thread Kalle Korhonen
Update to a newer version of slf4j. Kalle On Sat, Nov 20, 2010 at 10:10 AM, Zubair Nuamaan wrote: > > Hi, > > upgraded to 5.2.4 today and I get the following error: > > tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class > org.slf4j.LoggerFactory > > haven't seen anythi

Re: Tapestry Web Site Updated

2010-11-20 Thread Kalle Korhonen
saying, for example, something like "Please help us make the wiki complete. Anybody can contribute as long as you have sent your individual contributor license agreement to Apache". JMHO of course. Kalle > Am 20.11.2010 um 04:37 schrieb Kalle Korhonen : > >> On Fri, Nov

[ANNOUNCEMENT] tapestry-model 0.1.0 released!

2010-11-19 Thread Kalle Korhonen
Tynamo project is it at again, this time bringing you tapestry-model 0.1.0 release! If you've followed the development of tapestry-model or even (gasp!) using it, you already know that this release marks a major step forward, laying the groundwork for making the module even more customizable and fl

Re: Tapestry Web Site Updated

2010-11-19 Thread Kalle Korhonen
On Fri, Nov 19, 2010 at 6:38 PM, nille hammer wrote: > Hi Howard, > just a minor error. On the index page (http://tapestry.apache.org/index.html) > the paragraph "Tapestry is ... scalable" occurs twice with slightly different > content. (Or was that on purpose? :-)) ) Thanks for the great work,

testify and eagerload

2010-11-17 Thread Kalle Korhonen
Tried out testify and it seems it doesn't process @EagerLoad annotation. Does anybody know a way to prod the service to load if it doesn't have any public operations to invoke? Wonder if Testify is still being maintained (seems there's no release for T5.2 line) or if I should just create my own bas

Re: tynamo tapestry-security help

2010-11-17 Thread Kalle Korhonen
i've reported... > https://issues.apache.org/jira/browse/TAP5-1018 > > ___ > Everton Agner Ramos > > > 2010/11/17 Kalle Korhonen > >> Wonder if Start is handled differently than Index - if you can, please >> check and open (Tynamo) issue accor

Re: tynamo tapestry-security help

2010-11-17 Thread Kalle Korhonen
cation annotation. > > package zzz.pages; > > @RequiresAuthentication > public class Start > {} > > The same problem occurs. > http://host/app/start - correctly directs to the login page > http://host/app/ - incorrectly displays the page content > > regards, pau

Re: Form field inputs automatically cleared when "success" reached!?

2010-11-16 Thread Kalle Korhonen
On Tue, Nov 16, 2010 at 11:03 AM, Howard Lewis Ship wrote: > On Mon, Nov 15, 2010 at 9:22 PM, Kalle Korhonen > wrote: >> That's exactly the reason why I typically save and catch the errors in >> onValidateForm but commit only in onSuccess. Purists claim it's misuse >

Re: Form field inputs automatically cleared when "success" reached!?

2010-11-15 Thread Kalle Korhonen
That's exactly the reason why I typically save and catch the errors in onValidateForm but commit only in onSuccess. Purists claim it's misuse of the validate event but in practice makes sense. Kalle On Mon, Nov 15, 2010 at 9:16 PM, Mihaela Pilon wrote: > Hi, > > I have a problem where my form f

Re: tynamo tapestry-security help

2010-11-15 Thread Kalle Korhonen
for 5/11 of the components: >> >> http://tynamo.org/constant/tapestry-security/apidocs/index.html >> >> Also, is there a SVN i can download the source code from? >> >> regards, Paul. >> >> On 12/11/2010 10:56 AM, Kalle Korhonen wrote: >>> &

Re: tapestry security with 1.1.0 of shiro --> unable to get sha512 login working.

2010-11-13 Thread Kalle Korhonen
Whoa, a plain jdbc connection, that's old school :) You are pretty close - just as a test, you could remove the salt and see if it simply comparing the hashes works - I believe it should. Now, a couple of notes: 1) Are you sure you are storing the salt as base64 encoded? Your read expects that to

[ANNOUNCEMENT] tapestry-conversations 0.1.2 released!

2010-11-12 Thread Kalle Korhonen
Hello all, we'll start Tynamo project's "onslaught of announcements" by announcing tapestry-conversations 0.1.2 release (stay tuned, other announcements to follow in the coming days). Testament to backwards compatibility of Tapestry 5, conversations 0.1.2 is tested to work with T5.1.0.5 and T5.2.1,

Re: tynamo tapestry-security help

2010-11-11 Thread Kalle Korhonen
CredentialsMatcher) > getCredentialsMatcher()).getHashedCredentials(token)); >    } > > Maybe something like this could be built into the API? > > Regards, paul. > > > On 12/11/2010 3:30 AM, Kalle Korhonen wrote: >> >> Hmm.. if you use username as the salt, you al

Re: tynamo tapestry-security help

2010-11-11 Thread Kalle Korhonen
e a common need and therefore should > be exposed by the API, so i'm wondering if I've missed some crucial feature. > > Regards, paul. > > On 11/11/2010 5:04 PM, Kalle Korhonen wrote: >> >> On Wed, Nov 10, 2010 at 8:44 PM, Paul Stanton  wrote: >>> >&g

Re: tynamo tapestry-security help

2010-11-10 Thread Kalle Korhonen
(roles etc) stored in the local database. Often for a simpler webapp, you have just a single realm which does both authentication and authorization. Kalle > On 11/11/2010 2:29 AM, Kalle Korhonen wrote: >> >> Ah you are looking for documentation on Shiro. Maybe I can place the

Re: tynamo tapestry-security help

2010-11-10 Thread Kalle Korhonen
ow do you replace/customise the login page? > > how do you manually perform authentication? > > cheers, p. > > On 10/11/2010 3:17 PM, Kalle Korhonen wrote: >> >> On Tue, Nov 9, 2010 at 7:57 PM, Paul Stanton  wrote: >>> >>> Anyone know of a good 

Re: session is NULL

2010-11-09 Thread Kalle Korhonen
@Inject is for pages. Make your DAO a Tapestry service and inject the session to it via its constructor. Kalle On Tue, Nov 9, 2010 at 9:52 PM, Anas Mughal wrote: > I have setup my Tapestry project using the Maven archetype. Then, I setup my > hibernate.cfg.xml file with references to my hibern

Re: tynamo tapestry-security help

2010-11-09 Thread Kalle Korhonen
On Tue, Nov 9, 2010 at 7:57 PM, Paul Stanton wrote: > Anyone know of a good 'getting started' guide for tynamo tapestry-security? > this one ... > http://docs.codehaus.org/display/TYNAMO/tapestry-security+guide > ... still leaves me scratching my head. It does? Sorry about that, I honestly though

Re: Let's make @ActivationRequestParameter first-class citizen

2010-11-02 Thread Kalle Korhonen
2010/11/2 Vjeran Marcinko : > And finally, with 5.2. release, we got @ActivationRequestParameter > annotation, and I felt relieved. Finally! > But, to spoil the celebration, I noticed immediately there is no way to > specify whether query parameter is required, so I had to place manual check > of a

Re: [T5.2] Grid component manipulation

2010-11-01 Thread Kalle Korhonen
If you want rows and columns, use the grid, end of story. For paging divs and other arbitrary items, check out ChenilleKit's PagedLoop component, it's pretty flexible. Kalle On Mon, Nov 1, 2010 at 6:54 AM, Muhammad Mohsen wrote: > Hello everyone, > > My main objective is to list complex data in

Re: change session id after login

2010-10-25 Thread Kalle Korhonen
e after login, after logoff and after reauth > (for sensitive operations). > > > On Wed, Oct 20, 2010 at 1:51 AM, Kalle Korhonen > wrote: >> That's a rather peculiar requirement. Sessions are semi-managed by the >> container and I don't know of a container that w

Re: t5: GOT JQuery inplementation fails in extending Tapestry object in IE7

2010-10-23 Thread Kalle Korhonen
t's what git and github are goot at! > > On Sat, Oct 23, 2010 at 20:34, Kalle Korhonen > wrote: >> I wouldn't be too surprised if no one tested with IE7. Perhaps Robin >> could give you write access to it? I bet fixing the issues would go >> quite a bit fas

Re: t5: GOT JQuery inplementation fails in extending Tapestry object in IE7

2010-10-23 Thread Kalle Korhonen
I wouldn't be too surprised if no one tested with IE7. Perhaps Robin could give you write access to it? I bet fixing the issues would go quite a bit faster that way. Kalle On Sat, Oct 23, 2010 at 7:58 AM, gbrits wrote: > > Just as a heads up: > > I noticed some weid behavior (Tapestry.onDOMLoad

Re: login with stored procedure

2010-10-19 Thread Kalle Korhonen
In your contributeWebSecurityManager(...) simply call: yourRealm.setCredentialsMatcher(new SimpleCredentialsMatcher()); But wouldn't you rather want to compare the hashes? Kalle PS. attachments won't go through On Tue, Oct 19, 2010 at 11:31 PM, Andrey Gladilin wrote: > Thank you all for answe

Re: change session id after login

2010-10-19 Thread Kalle Korhonen
That's a rather peculiar requirement. Sessions are semi-managed by the container and I don't know of a container that would allow you to do that. If you used Shiro in native session mode, you could probably change the id but even then, you'd need to cast and use the implementation classes directly.

Re: Using Symbols

2010-10-17 Thread Kalle Korhonen
As I recall, it had something to do with the IoC having an issue identifying symbol injection with String value types without additional information. Kalle On Sun, Oct 17, 2010 at 10:41 PM, Alessio Gambi wrote: > Hi, > > I solved this by adding the @Inject annotation. BTW, why something @Symbol

Re: login with stored procedure

2010-10-16 Thread Kalle Korhonen
Hibernate has a fine support for executing stored procedures (see e.g. http://blog.randompage.org/2008/03/stored-procedures-made-easy-with.html). Probably similar for Spring Security but at least with Tynamo's tapestry-security module (http://tynamo.org/tapestry-security+guide), you'd just need to

Re: Fetch Prototype library via Google DNS?

2010-10-15 Thread Kalle Korhonen
On Fri, Oct 15, 2010 at 9:59 AM, Howard Lewis Ship wrote: > On Fri, Oct 15, 2010 at 9:51 AM, Kalle Korhonen > wrote: >> On Fri, Oct 15, 2010 at 9:19 AM, Howard Lewis Ship wrote: >>> On Fri, Oct 15, 2010 at 1:34 AM, stephanos wrote: >>>> http://encosia.com/20

Re: Fetch Prototype library via Google DNS?

2010-10-15 Thread Kalle Korhonen
On Fri, Oct 15, 2010 at 9:19 AM, Howard Lewis Ship wrote: > On Fri, Oct 15, 2010 at 1:34 AM, stephanos wrote: >> http://encosia.com/2008/12/10/3-reasons-why-you-should-let-google-host-jquery-for-you/ >> advantages  obviously are reduced traffic+CPU for the server, decreased >> latency, increased

Re: No 404 error is raised

2010-10-15 Thread Kalle Korhonen
Hmm... that's true, the Start page is "broken" as well in 5.2 - you can't get it to return 404s anymore using Start page the same way as in 5.1. That's a showstopper for upgrading one of my apps to 5.2. I bet there's a way to restore the old behavior, anyone solved this already? Kalle On Fri, Oc

Re: [T5.2] Zone loading progress icon

2010-10-11 Thread Kalle Korhonen
Use ProgressiveDisplay component? http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/ProgressiveDisplay.html Kalle On Mon, Oct 11, 2010 at 8:23 AM, Muhammad Mohsen wrote: > Hi all, > > I was wondering if anyone had implemented a way to inform the cl

Re: ValueEncoder throwing Exceptions

2010-10-11 Thread Kalle Korhonen
How do you want to handle it? onException works if you want to manage the exception per page, perhaps also Tynamo's exceptionpage module could be of use (http://tynamo.org/tapestry-exceptionpage+guide). Kalle On Mon, Oct 11, 2010 at 5:40 AM, Stephan Windmüller wrote: > Hello! > > Currently we h

Re: Early steps getting Tapestry and Hibernate working via DAO

2010-10-08 Thread Kalle Korhonen
On Fri, Oct 8, 2010 at 11:32 AM, Rich M wrote: > Ah, darn it. This is for a vital product and my company wouldn't let me use > 5.2 until its a final release. However, a little bit of digging I was able > to improve on my previous code for 5.1.0.5. Albeit no @CommitAfter, but it > does seem a bette

Re: Upload breaks ZoneUpdater

2010-09-22 Thread Kalle Korhonen
Bah. Tripped myself up with a client regexp validation that was associated to the upload component, which caused the page init to partially fail. Why is it always the smallest things that take the longest? Kalle On Wed, Sep 22, 2010 at 8:53 AM, Kalle Korhonen wrote: > How odd. I hav

Upload breaks ZoneUpdater

2010-09-22 Thread Kalle Korhonen
How odd. I have a conventional non-ajax form with one field that's using Inge's ZoneUpdater for checking value's uniqueness and displaying the results in a zone. As soon as I add the Upload component (the standard, non-ajax one), the zone update breaks saying "Ajaz Zone does not have an associated

Re: Deploying several T5 apps in one servlet container

2010-09-15 Thread Kalle Korhonen
On Wed, Sep 15, 2010 at 12:18 PM, Thiago H. de Paula Figueiredo wrote: > On Wed, 15 Sep 2010 16:11:32 -0300, Borut Bolčina > wrote: >> I would also like http server to serve static content. > Tapestry adds caching HTTP headers and versioning to your static content, so > I really don't know why Ap

Re: Deploying several T5 apps in one servlet container

2010-09-15 Thread Kalle Korhonen
Httpd, Tomcat and Jetty all have excellent documentation. Since search is typically lacking or sub-par, the trick as always is to find the right place. For pure tomcat solution: sub1.maindomain.com othername.net For httpd/ajp (similar for other protocols): ServerName sub1.

Re: reloading not working, what did i break?

2010-09-08 Thread Kalle Korhonen
ing Windows for one reason or another but there's no need to copy the resources anywhere during development regardless of the environment. Kalle On Tue, Jul 13, 2010 at 7:39 AM, Kalle Korhonen wrote: > Use the Sysdeo's Tomcat plugin > (http://www.eclipsetotale.com/tomcatPl

Re: OAuth support in tynamos tapestry-security

2010-09-07 Thread Kalle Korhonen
ifferent. Kalle > Am 14.07.2010 um 23:44 schrieb Kalle Korhonen: > >> I already implemented Oauth2 for my own use, obviously utilizing >> tapestry-security, not using rest though but I imagine it'd be easy to >> add on top. The sore point right now is that it's not gene

Re: T5.1 and Threaded Background Tasks

2010-09-01 Thread Kalle Korhonen
st filter, but that seems wrong. > > Norman Franke > Answering Service for Directors, Inc. > www.myasd.com > > > > On Sep 1, 2010, at 6:11 PM, Kalle Korhonen wrote: > >> On Wed, Sep 1, 2010 at 2:46 PM, Norman Franke wrote: >>> >>> The new thread is th

Re: T5.1 and Threaded Background Tasks

2010-09-01 Thread Kalle Korhonen
ll only run into session issues in case you are using lazily-loaded objects. If you write periodically, make sure your entities are attached to a separate session. Kalle > On Sep 1, 2010, at 5:27 PM, Kalle Korhonen wrote: > >> Thread safety is your responsibility, but services are s

Re: T5.1 and Threaded Background Tasks

2010-09-01 Thread Kalle Korhonen
> Answering Service for Directors, Inc. > www.myasd.com > > > > On Sep 1, 2010, at 4:03 PM, Kalle Korhonen wrote: > >> ParallelExecutor is a "service that allows work to occur in parallel >> using a thread pool". I doubt it's usefulness in y

<    1   2   3   4   5   6   7   8   9   10   >