Re: Tomcat 7 deployment TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: Component Index does not contain embedded component 'jsp'.

2012-04-13 Thread Kalle Korhonen
welcome-file-list element is a standard part of web.xml. index.jsp is the default value for it at the container level of Tomcat, so setting the value to index in a Tapestry5 application is the correct option. Looks like we are missing the configuration from the archetype, I'll fix it for the next

Re: Lightweight TapestryTools update site

2012-04-11 Thread Kalle Korhonen
Excellent timing then, thanks Gavin. Kalle 2012/4/10 Gavin Lei gavingui2...@gmail.com: Hi Kalle, the template/java switch shortcut will come true in the 2-3 days, I am just working for it now:-) 在 2012年4月11日星期三,Kalle Korhonen 写道: Hey Gavin, I'm preparing a little screencast (or a series

Re: Lightweight TapestryTools update site

2012-04-10 Thread Kalle Korhonen
Hey Gavin, I'm preparing a little screencast (or a series of, depending on how much material I have) showcasing some of the newer Tynamo modules and the general awesomeness of Tapestry5, while also demonstrating the use of Eclipse and some of the plugins I commonly use when writing code. I'd like

Re: [T5.3] tapestry-jpa and spock

2012-03-30 Thread Kalle Korhonen
If your code or the code you are testing is using context assets (which tapestry-jpa does), you need to set the context: ApplicationGlobals globals = registry.getObject(ApplicationGlobals.class, null); globals.storeContext(new PageTesterContext(contextPath));

tapestry-security 0.4.4 released!

2012-03-29 Thread Kalle Korhonen
I had the tingling feeling with the previous release of tapestry-security but since we have such a blind faith in our functional testing suite, and the tests all passed, we went ahead and managed to cause some headache for all of our users deploying their secure applications to non-root contexts.

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

2012-03-28 Thread Kalle Korhonen
I was too lazy/busy to write the same message but couldn't agree more. Kalle On Wed, Mar 28, 2012 at 2:03 PM, Howard Lewis Ship hls...@gmail.com wrote: HiveMind, the predecessor to Tapestry IoC, had private services visibility. In my opinion, it caused more problems than it was worth. What

Re: Tapestry security: standart way to get an user object?

2012-03-28 Thread Kalle Korhonen
On Wed, Mar 28, 2012 at 2:57 PM, Crentana i...@crentana.de wrote: Im quite new to tapestry and tapestry-security. But i cant find a way to get an user object. I guess I have to query the db whenever I need it? (I know Subject.getPrincipal, but im asking because i could imagine there is a

Re: Overwrite and extend an existing service

2012-03-28 Thread Kalle Korhonen
On Wed, Mar 28, 2012 at 6:09 PM, Crentana i...@crentana.de wrote: While trying to write a customized version of SecurityService (tapestry-security) I encountered a problem, which Im unable to solve Target: Writing a customized Version of SecurityService which supports the original methods as

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

2012-03-27 Thread Kalle Korhonen
On Tue, Mar 27, 2012 at 3:04 AM, fmaylinch ferranmayli...@gmail.com wrote: We've found that some times we would like to define a service that will only be used from some specific services (for example, services inside the same package). Is there any way to do this in Tapestry? This way, the

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

2012-03-27 Thread Kalle Korhonen
On Tue, Mar 27, 2012 at 8:17 AM, fmaylinch ferranmayli...@gmail.com wrote: Could you just inject an object with @Autobuild to your service? You'd Thank you! Maybe we could use that. If you really needed, you could use static protected or static package private operations to synchronize state.

Re: Tapestry5 services cookies not get writes in samsung galaxy nexus s

2012-03-26 Thread Kalle Korhonen
It's entirely browser dependent. Try using expires instead of max-age (expires was used in some http 1.0 implementations before max-age took over in http 1.1). You need to write the raw headers for it, see http://mrcoles.com/blog/cookies-max-age-vs-expires/. Kalle On Mon, Mar 26, 2012 at 4:38

Re: Tynamo Federatedaccounts OpenID module coming up...

2012-03-26 Thread Kalle Korhonen
. Anybody willing to point me to or collect openid badges to be used in the login component? Many openid providers have made and allow the use of their own logos, but the sizes don't necessarily match up nor confirm to the same style. Kalle -Original Message- From: Kalle Korhonen

Re: Provide a login for my tapestry application

2012-03-23 Thread Kalle Korhonen
On Fri, Mar 23, 2012 at 10:19 AM, micha899 css.liq...@gmail.com wrote: Atm. I have implemented this with the tynamo security framework. I can't access the tynamo users mailing list. Am I the only one who cant access it? You have to subscribe via xircles.codehaus.org. What's the error you are

Re: Tynamo Federatedaccounts OpenID module coming up...

2012-03-23 Thread Kalle Korhonen
On Mar 22, 2012, at 10:20 AM, Kalle Korhonen wrote: On Wed, Mar 21, 2012 at 5:57 PM, Taha Hafeez Siddiqi tawus.tapes...@gmail.com wrote: In rails, https://github.com/intridea/omniauth is popular. Would love to see something like that in tapestry. Thanks Taha. Do you know of any live examples

Re: Understanding Entities with Entities in the Tapestry Framework

2012-03-21 Thread Kalle Korhonen
On Wed, Mar 21, 2012 at 9:20 AM, IcedDante ultimate_ham...@yahoo.com wrote: On Tue, Mar 20, 2012 at 9:44 AM, Beat Durrer bdurrer@ wrote: So, all your CreateGame page needs is the user - right? Then let's add an page activation context: Current user as the activation context for createGame?

Re: [tynamo-user] [ANNOUNCE] from tynamo: tapestry-ckeditor and tapestry-editablecontent

2012-03-21 Thread Kalle Korhonen
Thanks Dragan! Kalle On Wed, Mar 21, 2012 at 12:21 PM, Dragan Sahpaski dragan.sahpa...@gmail.com wrote: The Tynamo team is proud to announce the availability of two new modules tapestry-ckeditor-0.0.1and tapestry-editablecontent-0.0.1 The tapestry-ckeditor [1] module integrates the powerful 

Tynamo Federatedaccounts OpenID module coming up...

2012-03-21 Thread Kalle Korhonen
Based on the initial work of Jure Jesenicnik and Borut Bolcina (http://jira.codehaus.org/browse/TYNAMO-123, thanks guys), I'm currently working on adding OpenID to the list of Tynamo's federatedaccounts remote authentication providers. Here's a few questions for those who care about OpenID: 1) Do

Re: Tapestry Hibernate session reattach

2012-03-21 Thread Kalle Korhonen
Your wording is a bit peculiar, but are you asking how to reattach an object to a Hibernate session? You cannot save an object to a session. When you call session.save(), you are INSERTing a new record. If you want to reattach an object, the only way to do that in Hibernate is with

Re: tapestry-security 0.4.3 released!

2012-03-21 Thread Kalle Korhonen
Yes.. https://jira.codehaus.org/browse/TYNAMO-145. Kalle On Wed, Mar 21, 2012 at 2:06 PM, Dimitris Zenios dimitris.zen...@gmail.com wrote: I think there is a bug slipped in the latest 0.4.3 release.I get a org.apache.shiro.subject.ExecutionException: java.lang.IllegalStateException:

Re: Tynamo Federatedaccounts OpenID module coming up...

2012-03-21 Thread Kalle Korhonen
, at 1:41 AM, Thiago H. de Paula Figueiredo wrote: On Wed, 21 Mar 2012 16:45:05 -0300, Kalle Korhonen kalle.o.korho...@gmail.com wrote: Based on the initial work of Jure Jesenicnik and Borut Bolcina (http://jira.codehaus.org/browse/TYNAMO-123, thanks guys), I'm currently working on adding OpenID

Re: Understanding Entities with Entities in the Tapestry Framework

2012-03-20 Thread Kalle Korhonen
On Tue, Mar 20, 2012 at 9:44 AM, Beat Durrer bdur...@gmail.com wrote: Since T5 still can't predict the future (pfff!), you need to set the reference to the user yourself :) There are several ways to do this... So, all your CreateGame page needs is the user - right? Then let's add an page

Re: tapestry-security 0.4.3 released!

2012-03-18 Thread Kalle Korhonen
On Sun, Mar 18, 2012 at 6:56 AM, trsvax trs...@gmail.com wrote: Thanks for the update but when I upgraded from 0.4.0 I can authenticate but my roles quit working. When I run the app in debug mode it appears protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) in

Re: tapestry-security 0.4.3 released!

2012-03-18 Thread Kalle Korhonen
On Sun, Mar 18, 2012 at 2:43 PM, trsvax trs...@gmail.com wrote: I see what the problem is although now I not sure why it works at all. I have this in my AppModule binder.bind(Realm.class, UserRealm.class); public static void contributeWebSecurityManager(ConfigurationRealm configuration, Realm

Re: tapestry-security 0.4.3 released!

2012-03-18 Thread Kalle Korhonen
On Sun, Mar 18, 2012 at 3:41 PM, trsvax trs...@gmail.com wrote: I guess I've just gotten in the habit of making everything a service with an Interface. Class reloading without a restart is pretty handy, but in this Of course, you can make it a service, you just don't need to. If you

tapestry-security 0.4.3 released!

2012-03-17 Thread Kalle Korhonen
I swear, I thought tapestry-security already implemented anything you need for security. But turns out I was wrong. So, we quickly put together another, even more awesome release of tapestry-security for Apache Tapestry 5 from http://tynamo.org, with the following enhancements in the newly baked

Re: HttpSessionListener interface implementation by Tapestry5 component

2012-03-16 Thread Kalle Korhonen
On Fri, Mar 16, 2012 at 1:28 PM, bogdan_cm bogdan.iva...@rbccm.com wrote:  When a user logs out I want to remove it from my online_table. This can happen in two ways: Is there a way for me to force Tap to inject my service? Any other work around idea is welcomed. I have even went so far as to

Re: [ANN] A Tapestry5 Based Security Module

2012-03-13 Thread Kalle Korhonen
On Tue, Mar 13, 2012 at 5:54 AM, Taha Hafeez Siddiqi tawus.tapes...@gmail.com wrote: I have myself using tapestry-security for most of my projects and that is what I will recommend to you too. It is powered by Apache Shiro and is hosted at tynamo.org.

Re: How to update the third party library as maven dependency into T5.3 project?

2012-03-13 Thread Kalle Korhonen
http://lmgtfy.com/?q=ojdbc6.jar+maven first result: http://cdivilly.wordpress.com/2009/07/16/add-oracle-jdbc-jar-to-maven-repository/ Kalle On Tue, Mar 13, 2012 at 10:33 AM, wesleywj2 wesley...@yahoo.co.uk wrote: hi, i'm new to maven project build, i successfully build a maven project of

Re: ?t:lb=t being appended to query parameter

2012-03-10 Thread Kalle Korhonen
On Fri, Mar 2, 2012 at 10:11 AM, George Christman gchrist...@cardaddy.com wrote: Yes, Its causing exceptions in IE. I don't have the app in front of me, but I'll do my best to explain. Seems like CompanyTree uses @PageReset. For which version of IE is it a problem, all of them? Kalle I have

Re: Simple CMS / content editor component

2012-03-09 Thread Kalle Korhonen
Dragan's tapestry-ckeditor is now available as Tynamo module (https://nexus.codehaus.org/content/groups/snapshots-group/org/tynamo/tapestry-ckeditor/0.0.1-SNAPSHOT/). I did evaluate yours/the fckeditor on Kenai but Dragan's approach seemed cleaner. Are the any major advantages or features this

Re: Hwo to redirect to another page from a vois @OnEvent method

2012-03-08 Thread Kalle Korhonen
What Thiago is saying, you can just return the page (class or instance) if you changed the return type: @OnEvent(value = EventConstants.ACTIVATE) public Object initPage(Object[] parameters) throws IOException{ if(something goes wrong) { return MyErrorPage.class; } Kalle

Re: Simple CMS / content editor component

2012-03-08 Thread Kalle Korhonen
For the brave souls, there's now http://svn.codehaus.org/tynamo/trunk/tapestry-editablecontent/ and the initial snapshots available at https://nexus.codehaus.org/content/groups/snapshots-group/org/tynamo/tapestry-editablecontent/0.0.1-SNAPSHOT/. Kalle On Sat, Feb 18, 2012 at 8:53 AM, Kalle

Re: Rendering components in Alerts

2012-03-07 Thread Kalle Korhonen
On Wed, Mar 7, 2012 at 12:17 AM, Magnus Kvalheim mag...@kvalheim.dk wrote: We've just upgraded to 5.3.2 and checked out some of the new components. The Alerts seems pretty useful, but looks like it's only possible to pass on strings. I'm thinking a pretty common use-case would be to render

Re: fckeditor for Tapestry 5.3

2012-02-29 Thread Kalle Korhonen
. Kalle On Fri, Feb 17, 2012 at 10:32 PM, Kalle Korhonen kalle.o.korho...@gmail.com wrote: On Fri, Feb 17, 2012 at 12:33 PM, Dragan Sahpaski dragan.sahpa...@gmail.com wrote: OK I see it. After merging the pull request the changes are not saved at all. Previously the field gets updated

Same service known by multiple interfaces?

2012-02-28 Thread Kalle Korhonen
I have an interesting case where I'm trying to fit third-party code to work under Tapestry IoC. A service is made available by binding to the main interface of a class, but I know the implementation supports another interface. Is there a way to make it known with the other interface as well for

Re: Same service known by multiple interfaces?

2012-02-28 Thread Kalle Korhonen
(); } public static B buildB(C c) { return c.getB(); } This gets the job done, but it's tedious. On Tue, Feb 28, 2012 at 11:52 AM, Kalle Korhonen kalle.o.korho...@gmail.com wrote: I have an interesting case where I'm trying to fit third-party code to work under Tapestry IoC. A service is made

Re: Using Hibernate in DAOs

2012-02-27 Thread Kalle Korhonen
On Mon, Feb 27, 2012 at 3:55 PM, Ferran Maylinch ferranmayli...@gmail.com wrote: This is surely a newbie question. Before posting here I tried (with no luck) to find information about how to use Session and/or HibernateSessionSource in my DAO's. We are currently using both approaches but we

Re: [ANNOUNCEMENT] Tapestry-security 0.4.1 released!

2012-02-25 Thread Kalle Korhonen
On Sat, Feb 25, 2012 at 8:25 AM, AndrejKr akrus...@gmail.com wrote: hi, just one more problem. When I extend the org.tynamo.security.shiro.authz.AuthorizationFilter  i need to implement your constructor into my class with PageService.class public ArtisolHostFilter(PageService pageService)    

Re: exceptionpage not working? (t5.3.2)

2012-02-24 Thread Kalle Korhonen
Whoops. You are quite right Paul. It's missing the else clause and as is currently only works with the assistants. I knew about it and fixed it in the version I committed to T5.4 trunk but then forgot to merge the changes back. http://jira.codehaus.org/browse/TYNAMO-126, 0.1.2 on its way soon.

Re: Access to the GET method parameters without Servlets

2012-02-23 Thread Kalle Korhonen
On Wed, Feb 22, 2012 at 4:06 PM, r0 djalm...@yahoo.es wrote: i am trying to develope a Hibernate+Spring+Tapestry application that uses Twitter4j API. In order to use OAuth autentication, my aplication redirect the user to a twitter domain url, and when user agree the permissions, the twitter

Re: tapestry-security w/ Remote Login

2012-02-23 Thread Kalle Korhonen
On Thu, Feb 23, 2012 at 7:14 AM, George Christman gchrist...@cardaddy.com wrote: Hi Kalle, I spent sometime this morning reading over tynamo-federatedaccounts, however I noticed the majority of the links were broken. It doesn't appear to be very clear to me how closely related the 2/21 links

Re: tapestry-security w/ Remote Login

2012-02-22 Thread Kalle Korhonen
Federatedaccounts (http://tynamo.org/tynamo-federatedaccounts+guide) is exactly for these use cases. You would have to implement your own authentication provider. It's interesting that your remote SSO service serves as an authorization protocol as well, I'd probably handle it as a merged local

Re: tapestry-security w/ Remote Login

2012-02-22 Thread Kalle Korhonen
On Wed, Feb 22, 2012 at 11:50 AM, George Christman gchrist...@cardaddy.com wrote: Hi Kalle, I apologize,  I misspoke in my previous post. Our remote sso doesn't serve as an authorization protocol, I meant to say it serves as a Well, it's partly an authorization protocol if it returns you roles

Re: Tynamo Security Components

2012-02-20 Thread Kalle Korhonen
Yeah, I've missed that too at times. Please open an issue at http://jira.codehaus.org/browse/TYNAMO. Kalle On Mon, Feb 20, 2012 at 4:18 AM, Dusko Jovanovski dusk...@gmail.com wrote: I think I was a bit vague on why I propose this improvement. The scenario is the following:

Re: best way to patch tapestry?

2012-02-20 Thread Kalle Korhonen
On Mon, Feb 20, 2012 at 2:47 PM, Paul Stanton p...@mapshed.com.au wrote: I have multiple tapestry projects which all need to have the patches applied, and so far the only reliable method I can find is to include them in each projects source tree. I am finding it difficult to ensure that the

Re: Simple CMS / content editor component

2012-02-18 Thread Kalle Korhonen
On Sat, Feb 18, 2012 at 6:48 AM, Tiger Gui tigergui1...@gmail.com wrote: It seems to be built base on FCKeditor for T5, i think it can really works. Does Tapestry team consider creating a T5 build in rich-text editor ? FCKEditor is not Apache license and can therefore never be part of T5 core

Re: fckeditor for Tapestry 5.3

2012-02-17 Thread Kalle Korhonen
safeguards to prevent multiple instances within the same zone. Sent a pull request anyway for a minor clean-up while I was working on it. Kalle On Thu, Feb 16, 2012 at 4:52 PM, Kalle Korhonen kalle.o.korho...@gmail.com wrote: Hey Dusko, Dragan, can tapestry5-ckeditor be configured to work

Re: fckeditor for Tapestry 5.3

2012-02-17 Thread Kalle Korhonen
trying out different editor components on an empty archetype. Kalle On Fri, Feb 17, 2012 at 9:05 AM, Kalle Korhonen kalle.o.korho...@gmail.comwrote: Ah well, partly a user error. If you have the component (mixin) wrapped in a zone, you'll get multiple instances of CKEditor with plenty

Re: fckeditor for Tapestry 5.3

2012-02-17 Thread Kalle Korhonen
check if an editor instance exists already. For my use case, it's enough that I get the contents via xhr post, I don't need the editor field to be in the zone. Kalle On Fri, Feb 17, 2012 at 5:02 PM, Kalle Korhonen kalle.o.korho...@gmail.comwrote: On Fri, Feb 17, 2012 at 4:42 AM, Dragan Sahpaski

Simple CMS / content editor component

2012-02-17 Thread Kalle Korhonen
In the past, I've been keeping longer, largely textual content in an external wiki system and pulling it out to appropriate locations on the main wesite by placing a little wiki components on the pages, so that I can update the data on the fly as needed. This strategy has worked out fairly well as

Re: Issue with Maven + Eclipse + Tapestry (slightly off-topic)

2012-02-16 Thread Kalle Korhonen
On Thu, Feb 16, 2012 at 6:25 AM, Jonathan Barker jonathan.theit...@gmail.com wrote: Julien's question traces back (I assume) to a thread with the subject Component xxx does not contain embedded component 'yyy'. PageTester was not picking up the tml files from the src/main/resources tree, but

Re: fckeditor for Tapestry 5.3

2012-02-16 Thread Kalle Korhonen
Hey Dusko, Dragan, can tapestry5-ckeditor be configured to work with ajax forms? I was hoping to use your component as part of a new project. I had hacked chenillekit's fckeditor a few years go to work with ajax and I imagine this might need similar type of treatment if it's not already supported.

[ANNOUNCEMENT] tapestry-security 0.4.2 and tynamo-federatedaccounts 0.1.0 released

2012-02-15 Thread Kalle Korhonen
This time we are serving you with a joint announcement of two libraries feeding off of each other... Just like that, we released tapestry-security 0.4.2. Nothing major, just one pesky little bug that we managed to miss on the last go-around: [TYNAMO-120] - FallbackURL is no longer honored You

Re: Get Server Name in AppModule

2012-02-14 Thread Kalle Korhonen
You've gotten it wrong. You don't find out the server name is from the application, you tell the the application what server name you want to use. In a generic case, it's impossible to know what the external server name is and there are almost always multiple aliases. Basically, you either

Re: Basic DAO-Service-Test-Setup

2012-02-13 Thread Kalle Korhonen
On Mon, Feb 13, 2012 at 1:19 AM, stebac bachl...@sbox.tugraz.at wrote: What is the mock used for (particularly in this case)? I commented out these two lines and it still worked, what is the purpose of the SessionSource? Of course it works if you don't need the SessionSource (which is a T5

Re: Basic DAO-Service-Test-Setup

2012-02-10 Thread Kalle Korhonen
The following is what I use. I use Mockito for mock-ups and basically it's a real Hibernate session (and factory) with a mocked-up T5 HibernateSessionSource: public abstract class PersistenceTest { protected Session session; protected Transaction transaction; protected

Re: [ANNOUNCE] Tapestry release 5.3.2

2012-02-07 Thread Kalle Korhonen
Congrats Massimo for making the release happen! Kalle On Mon, Feb 6, 2012 at 11:54 PM, Massimo Lusetti mluse...@gmail.com wrote: The Tapestry Team is very proud to announce the availability of Apache Tapestry 5.3.2. http://tapestry.apache.org/2011/12/21/announcing-tapestry-532.html

Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-06 Thread Kalle Korhonen
2012/2/6 Gavin Lei gavingui2...@gmail.com: After discussion with my GSoC mentor Igor Drobiazko, we think there are two ways for TapestryTools to go: 1. build TapestryTools on WTP, and keep improving it 2. build a brand new simple tool which supplies some special Tapestry5 features, and it can

Re: Struggling with Tomcat 7 Integration

2012-02-02 Thread Kalle Korhonen
On Thu, Feb 2, 2012 at 3:36 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Thu, 02 Feb 2012 05:46:59 -0200, Jarvis noma...@freenet.de wrote: Are you sure you've correctly configured your webapp to have the TapestryTest context in Tomcat? Tapestry does work in Tomcat Kalle, from

Re: Struggling with Tomcat 7 Integration

2012-02-02 Thread Kalle Korhonen
On Thu, Feb 2, 2012 at 10:24 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Thu, 02 Feb 2012 15:52:17 -0200, Kalle Korhonen kalle.o.korho...@gmail.com wrote: Just correcting misconceptions... I refuse to be called a Tomcat advocate What about Tapestry committer that likes

Re: Exception handling in Tomcat 6.0.33

2012-01-31 Thread Kalle Korhonen
Are you setting an error code to your response? You haven't configured the filter to handle error dispatches: filter-mapping filter-nameapp/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher

Re: Exception handling in Tomcat 6.0.33

2012-01-31 Thread Kalle Korhonen
the tapestry exception report filter works in Jetty but not in Tomcat . . . Regards, Brian. On 31 January 2012 16:18, Kalle Korhonen kalle.o.korho...@gmail.com wrote: Are you setting an error code to your response? You haven't configured the filter to handle error dispatches:        filter

[ANNOUNCEMENT] Tapestry-security 0.4.1 released!

2012-01-26 Thread Kalle Korhonen
Tapestry-security, the comprehensive security package for Tapestry just got a bit more comprehensive with the new 0.4.1 release! 0.4.x is tested with and meant both for T5.2 and T5.3. We picked up the brand new Apache Shiro 1.2.0 release of which development snapshots we've been running against

Re: Stuts VS Tapestry - I need some ammo

2012-01-26 Thread Kalle Korhonen
(Thim, you don't know what poor English is...) It's always difficult to win these arguments on technical merits alone, especially because they are often looked at one-by-one instead of as a whole. If at all possible, try to find an angle that your organization or your manager deeply cares about.

Re: Tynamo security 0.4.1 release timeframe?

2012-01-21 Thread Kalle Korhonen
We are ready for release, just waiting for the ding! you hear when Shiro 1.2 is ready to be taken out of the oven (the release vote for Shiro 1.2.0 happened earlier this week but the waiting period isn't over it). A few days more. Kalle On Sat, Jan 21, 2012 at 9:42 AM, Lenny Primak

tapestry-exceptionpage 0.1.1 released!

2012-01-21 Thread Kalle Korhonen
Winter is still in full swing, but the hibernation period for Tynamo is clearly over. I don't want to steal any of Alex' thunder from his JDO release, but on the heels of it we quickly shipped another release from our module warehouse. Tapestry-exceptionpage 0.1.1 is particularly useful, so handy

Re: messages bundle containing special characters

2012-01-19 Thread Kalle Korhonen
On Thu, Jan 19, 2012 at 10:30 PM, Paul Stanton p...@mapshed.com.au wrote: I did try just the ®initially, however it doesn't seem to work. The Make sure you are saving your properties file as UTF-8... Kalle unicode-escape sequence does however, so that is what I will go ahead with. key=reg;

Breakdown of downloaded tapestry-core versions from 2011

2012-01-12 Thread Kalle Korhonen
Thought this might be interesting to Tapestry users in general but especially to Tapestry add-on (plugins, components, modules, extensions) developers. Here are the percentages of all downloads of tapestry-core from Maven central over last year (2011): 5.3.1 0.90% 5.3 2.70% 5.3.0 4.04%

Re: T5.3.1 a simple security

2011-12-29 Thread Kalle Korhonen
On Thu, Dec 29, 2011 at 9:09 AM, angelochen angelochen...@yahoo.com.hk wrote: thanks, that works. now I use my own login page, what needed to be set in that log in page? Something like this: AuthenticationToken authenticationToken = new UsernamePasswordToken(username, password,

Re: T5.3.1 a simple security

2011-12-29 Thread Kalle Korhonen
On Thu, Dec 29, 2011 at 5:12 AM, angelochen angelochen...@yahoo.com.hk wrote: I follow the guide and added this to AppModule: public static void contributeWebSecurityManager(ConfigurationRealm configuration) {                ExtendedPropertiesRealm realm = new

Re: shiro authentication

2011-12-29 Thread Kalle Korhonen
On Wed, Dec 28, 2011 at 11:01 PM, csckid testnowsh...@gmail.com wrote: I am stuck with authenticating user from database table. In this function doGetAuthenticationInfo() don't we need to set the Subject? What is the purpose of SimpleAuthenticationInfo? No better source for answers than

Re: tapestry-security

2011-12-29 Thread Kalle Korhonen
On Thu, Dec 29, 2011 at 5:32 PM, angelochen angelochen...@yahoo.com.hk wrote: tried tynamo's tapestry-security just a few hours, it's really a very handy framework. Thanks. got a question, T5's annotation @Secure can be placed in a Index page of a package that makes all the pages @Secure,

Re: tapestry-security

2011-12-29 Thread Kalle Korhonen
On Thu, Dec 29, 2011 at 7:23 PM, angelochen angelochen...@yahoo.com.hk wrote: so we can do something like this: configuration.add(factory.createChain(/admin/**).add(factory.authc()).build()); the entire admin package should be protected, right? Exactly. Kalle

Re: tapestry-security

2011-12-29 Thread Kalle Korhonen
On Thu, Dec 29, 2011 at 11:31 PM, angelochen angelochen...@yahoo.com.hk wrote: One more question, when you go to a @RequiresAuthentication page, it will show the login page, that's good, then, the url in the browser does not change, seems it just do a forward, is there a way to do a redirect

Re: Best practice for deploy tapestry app on nginx and tomcat 7

2011-12-28 Thread Kalle Korhonen
On Wed, Dec 28, 2011 at 7:39 PM, Yohan Yudanara yohan.yudan...@gmail.com wrote: I've read somewhere on the internet about deploying application on nginx as front end server for tomcat. They say that we better use nginx to serve static content and tomcat for dynamic content. Is it true that

Re: development with eclipse+tomcat

2011-12-23 Thread Kalle Korhonen
On Thu, Dec 22, 2011 at 11:51 PM, Paul Stanton p...@mapshed.com.au wrote: For productivity, live class reloading, the ability to step through code and being able to start and stop the container are all required. We ended up compiling into webapp/WEB-INF/classes and copying all dependencies

Re: Issues / feature requests for tapestry-security?

2011-12-22 Thread Kalle Korhonen
dealt with that (I briefly touch the topic at http://docs.codehaus.org/display/TYNAMO/2011/02/23/OAuth+-+auth+is+for+authorization). Join if you are not already on tynamo's user/dev lists, it may be more appropriate to continue to discussion there. Kalle 2011/12/20 Kalle Korhonen kalle.o.korho

Re: paypal

2011-12-21 Thread Kalle Korhonen
On Wed, Dec 21, 2011 at 8:05 PM, Chris Mylonas ch...@opencsta.org wrote: after taking most of this year off from deving i'm looking at a project for early next year. i'm looking at porting an application that uses PHP stuff (drupal.org + ubercart.org) to tapestry5 early next year. the

Re: shiro

2011-12-20 Thread Kalle Korhonen
On Tue, Dec 20, 2011 at 3:45 AM, csckid testnowsh...@gmail.com wrote:  public static void contributeSecurityConfiguration(ConfigurationSecurityFilterChain configuration,                        SecurityFilterChainFactory factory) {

Issues / feature requests for tapestry-security?

2011-12-20 Thread Kalle Korhonen
After grueling six months of development on Android, I'm back at the server side. I'll be cutting a new, T5.3 specific version of Tynamo's tapestry-security in the near future, though unfortunately it won't make it to Santa's sleigh. I'm hoping to also pick up Shiro 1.2 as a dependency if we get

Re: template refresh in development

2011-12-17 Thread Kalle Korhonen
of Jetty, you should instead pick up the classes using webAppConfigextraClasspath//webAppConfig construct. See http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin for more details. Kalle On Dec 14, 2011, at 12:28 PM, Kalle Korhonen wrote: On Wed, Dec 14, 2011 at 12:24 PM, Howard Lewis Ship hls

Re: template refresh in development

2011-12-14 Thread Kalle Korhonen
On Wed, Dec 14, 2011 at 12:24 PM, Howard Lewis Ship hls...@gmail.com wrote: IntelliJ requires that you rebuild (Cmd-F9) after making a change for it to be visible.  I use the built-in Jetty support. When using mvn jetty:run, the problem is that the directories that the Jetty instance see

Re: tapestry-security shiro

2011-12-08 Thread Kalle Korhonen
On Thu, Dec 8, 2011 at 8:05 PM, csckid testnowsh...@gmail.com wrote: I am trying to configure my tapestry project with tapestry-security, but couldn't connect them. Right now I just want try it out with simple login page. Roles user name and password will come from the database. Is there any

Re: Template parsing vulnerable to whims of default charset

2011-12-07 Thread Kalle Korhonen
2011/12/6 Robert Coie r...@intrigue.com: On Tue, Dec 06, 2011 at 04:49:42PM -0800, Kalle Korhonen wrote: What's your JVM's file.encoding set to? (e.g. -Dfile.encoding=UTF-8). The default for most JVMs is *not* UTF-8. Tapestry assumes UTF-8 throughout. I believe it's US-ASCII, as checked

Re: Template parsing vulnerable to whims of default charset

2011-12-07 Thread Kalle Korhonen
On Wed, Dec 7, 2011 at 1:09 PM, Martin Strand do.not.eat.yellow.s...@gmail.com wrote: On Wed, 07 Dec 2011 19:08:19 +0100, Kalle Korhonen kalle.o.korho...@gmail.com wrote: 2011/12/6 Robert Coie r...@intrigue.com: On Tue, Dec 06, 2011 at 04:49:42PM -0800, Kalle Korhonen wrote: What's your JVM's

Re: Template parsing vulnerable to whims of default charset

2011-12-06 Thread Kalle Korhonen
On Tue, Dec 6, 2011 at 4:58 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Tue, 06 Dec 2011 22:49:42 -0200, Kalle Korhonen kalle.o.korho...@gmail.com wrote: What's your JVM's file.encoding set to? (e.g. -Dfile.encoding=UTF-8). The default for most JVMs is *not* UTF-8. Tapestry

Re: urlrewriter and T5.3

2011-12-04 Thread Kalle Korhonen
Since URLrewriter is a separate service, couldn't you just lift the code from 5.2 and put it in your application so you can go on with your business? Just asking - I don't know if there were some drastic internal changes that would make it impossible to implement URLrewriter in 5.3. Kalle On

Re: [OT] What happened to tynamo.org

2011-12-01 Thread Kalle Korhonen
Thanks for letting me know. Codehaus has likely been doing some infrastructure work. http://tynamo.codehaus.org still works. Opened a Haus chore http://jira.codehaus.org/browse/HAUS-2167. Kalle On Thu, Dec 1, 2011 at 4:53 AM, Borut Bolčina borut.bolc...@gmail.com wrote: Hello, The tynamo.org

Re: Tynamo: Store additional user data during authentication

2011-11-21 Thread Kalle Korhonen
On Mon, Nov 21, 2011 at 4:44 AM, Jens Reufsteck jens.reufst...@staufenbiel.de wrote: Hi, sorry if this has been asked before, though I couldn’t find anything about it. I’ve just started to use Tapestry security instead of our own light weigth authentication system. Works fine so far –

Re: URL handling ..

2011-11-06 Thread Kalle Korhonen
On Sun, Nov 6, 2011 at 10:26 PM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Now I am phasing another problem and that is that T5 seems to encode context string in a way that they are not displayed properly in the the browser. I.e. if I URL encode the swedish word Räksmörgås (=Shrimp

Re: testing Tapestry applications (in general)

2011-11-04 Thread Kalle Korhonen
Your mileage may vary but for my perspective, see http://docs.codehaus.org/display/TYNAMO/2010/07/30/Full+web+integration+testing+in+a+single+JVM. For service level tests, I tend to use Mockito a lot. Kalle On Fri, Nov 4, 2011 at 7:01 AM, Markus Johnston tapes...@garstasio.com wrote: We have

Re: testing Tapestry applications (in general)

2011-11-04 Thread Kalle Korhonen
was also that HTMLUnit couldn't cope with the bigger Javascript stacks, however the newer versions (2.8, 2.9) manage to run current versions of Prototype, jQuery in my apps just fine. Kalle On Fri, Nov 4, 2011 at 9:18 AM, Kalle Korhonen kalle.o.korho...@gmail.comwrote: Your mileage may vary

Re: Tynamo Security does not honor secure-enabled, @Security annotation?

2011-11-01 Thread Kalle Korhonen
On Tue, Nov 1, 2011 at 5:37 PM, Lenny Primak lpri...@hope.nyc.ny.us wrote: secure-enabled = true... I have a pretty simple authenticated page... @RequiresRoles(logical = Logical.OR, value = { Role.LogisticsRole, Role.AccountingRole, Role.PalletsRole }) @Secure public class TapPage {

Re: PageTester with an application that uses tynamo

2011-10-27 Thread Kalle Korhonen
The securityManager is bound to the executing thread. You'd need to invoke (Tapestry's) request processing pipeline to get it bound, or perhaps directly operate Tynamo's SecurityConfiguration directly to bind it. Any solution likely involves some hacking. Kalle On Thu, Oct 27, 2011 at 4:46 AM,

Re: Tapestry 5.3.0 scheduling josbs

2011-09-30 Thread Kalle Korhonen
You need to use one of the alpha or beta releases of 5.3 from the staged repositories. 5.3.0 that's in Maven central is way old. Kalle On Fri, Sep 30, 2011 at 5:02 AM, nblascogarcia nblascogar...@gmail.com wrote: Hi, i´m spanish so forgive my english. We are trying to implement the

Re: Any interest in starting a Tapestry Meetup in the SF-Bay area?

2011-09-30 Thread Kalle Korhonen
luck getting your ball rolling. :-) Send a link if you're hiring. I'm crazy enough to move back to the US for Tapestry. On Tue, Sep 27, 2011 at 6:33 PM, Kalle Korhonen kalle.o.korho...@gmail.comwrote: Count me in. Kalle On Tue, Sep 27, 2011 at 4:59 PM, Chris Collins chris...@me.com wrote

Re: Where to store site settings?

2011-09-28 Thread Kalle Korhonen
I typically have a bunch of application specific symbols since they allow so much flexibility. Set the defaults in AppModule, override with jvm system properties, in your setup scripts for production environment etc. Kalle On Wed, Sep 28, 2011 at 9:47 AM, Tim koop...@gmail.com wrote: Can

Re: Any interest in starting a Tapestry Meetup in the SF-Bay area?

2011-09-27 Thread Kalle Korhonen
Count me in. Kalle On Tue, Sep 27, 2011 at 4:59 PM, Chris Collins chris...@me.com wrote: That sounds like a great idea (also in sf bay area). C On Sep 27, 2011, at 3:23 PM, George Ludwig wrote: I searched meetup.com for a Tapestry meetup and didn't find one. I'm still a newb at this, yet

Re: Meap Tapestry 5 book cancelled?

2011-09-22 Thread Kalle Korhonen
I immediately asked for refund from Manning and will buy your book once ready. While there's always some risk, I agree that Manning canceling the book at this point is way better for you. Most of the work is done and publishing via Lulu is simple and may actually allow you to recover at least some

Re: Problem pushing application to production

2011-09-19 Thread Kalle Korhonen
Sorry, I only did cursory reading of your problem but not sure the solutions given do anything for you. Your BaseURLSource override looks ok but are you using container managed security? Because if you are, baseurlsource never even enters the picture. You get the ip address as the servername

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