Re: Using T5 and T3 side by side

2010-10-25 Thread Robert Zeigler
I also had a reasonably large T3 application that I considered porting to T5. I wound up adding some new functionality via T5 and running them side-by-side without issues. Since T5 is a servlet filter and T3 is a servlet, they actually play(ed) quite nicely together. But. That was with an earl

Re: Maven Issues

2010-10-25 Thread Mark
You might try changing the version of tapestry (maybe to 5.1.0.4) and see if it magically starts working. It also might be worth trying to rename the whole .m2 directory and letting Maven create a new one to see if that helps. Also try running "maven clean". I'm not sure if any of those will hel

Re: Maven Issues

2010-10-25 Thread Norman Franke
Here is my pom.xml: xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://maven.apache.org/POM/4.0.0 "> 4.0.0 com.myasd sales 0.0.1-SNAPSHOT

Maven Issues

2010-10-25 Thread Norman Franke
I had a working Tapestry 5.1 project. I restarted Eclipse, and now Maven won't include the tapestry JARs when running my app using the jetty plugin. Everything compiles fine, but running it leads to a class not found for org.apache.tapestry5.TapestryFilter. I'm running it in Tomcat from Ecl

Re: tapestry-resteasy NPE when trying to access session

2010-10-25 Thread Josh Canfield
> ?? I don't understand your question. I beleive that tapestry-resteasy does > this for me. Hm. RESTEasy is a jboss project, I assumed you were rolling your own tapestry integration since you didn't mention anything about using a third party library for doing that integration. > Could it be that

Using T5 and T3 side by side

2010-10-25 Thread Andreas Bohnert
Hi! We have started to port a fairly big tapestry3 application to tapestry5. It works very well, however it will take a while to complete the whole code. Are there any known issues/pitfalls if we run tapestry 3 and 5 code side by side? We don't want to login twice, so what is the recommended

Re: Objects session persistance and validation

2010-10-25 Thread Anton Mezerny
I am using 5.1.0.7. Also I figured how to reproduce such a behavior - if i fill all fields with proper values, but set not equal passwords - all data is lost, but if I set invalid email and proper passwords - everything works fine. P.S. There is one error in previous code - in recordErrors() metho

Re: Objects session persistance and validation

2010-10-25 Thread Mark Shead
Once it is submitted you may want to set the user back to null, that way you can start fresh when the page is submitted. The required,email and email,required things sounds odd. I'm going to see if I can reproduce that. What version of tapestry are you using? Mark On Mon, Oct 25, 2010 at 2:17 P

Re: tynamo-security (shiro) exception

2010-10-25 Thread Anton Mezerny
Checked out Tynamo 0.3.0-Snapshot and exception is gone. Thank you. 2010/10/25 Katia Aresti > Its normal, you have to checkout Tynamo branch ;) > > > 2010/10/25 Anton Mezerny > > > Checked out new version of Hotel booking application. There is no > > tynamo-security dependency in pom.xml at all

Re: Objects session persistance and validation

2010-10-25 Thread Anton Mezerny
Ok, when i changed order from validation="required,email" to validation="email,required" email validation starts to work properly. Looks like some magic :). However, I get sometimes user data lost. I can't reproduce this bug with 100% probability, but it occurs sometimes. I tried also to change @Pe

Re: tapestry-resteasy NPE when trying to access session

2010-10-25 Thread Moritz Gmelin
?? I don't understand your question. I beleive that tapestry-resteasy does this for me. Could it be that since the tapestry-resteasy HttpServletRequestHandler is placed before:GZIP, tapestry has not yet initialized its RequestGlobals and thus the session information is not yet available where r

Re: tynamo-security (shiro) exception

2010-10-25 Thread Katia Aresti
Its normal, you have to checkout Tynamo branch ;) 2010/10/25 Anton Mezerny > Checked out new version of Hotel booking application. There is no > tynamo-security dependency in pom.xml at all. Am I doing something wrong? > Anton > > 2010/10/25 Christophe Cordenier > > > Hi > > > > Yes it's fixed

Re: tynamo-security (shiro) exception

2010-10-25 Thread Anton Mezerny
Checked out new version of Hotel booking application. There is no tynamo-security dependency in pom.xml at all. Am I doing something wrong? Anton 2010/10/25 Christophe Cordenier > Hi > > Yes it's fixed, i have update the pom.xml to use tynamo 0.3.0-SNAPSHOT > > 2010/10/25 Anton Mezerny > > > Hi

Re: Form submit conditionally opening new window

2010-10-25 Thread Thiago H. de Paula Figueiredo
On Mon, 25 Oct 2010 15:29:52 -0200, Rich M wrote: Hi, Hi! Is there a way to get the browser to open a new window from within Tapestry, maybe in a StreamResponse (since that I what I'm using to render the reports)? AFAIK, no, as this is a purely client behavior. You'll need to solve thi

Form submit conditionally opening new window

2010-10-25 Thread Rich M
Hi, a while back I built in JasperReports support into my application, and on the pages accessing this I had a form with target="_blank" to open the reports in a new window. I'm now being required to enforce a restriction on some parameters feeding into the reports, and I want to do this on t

Re: On EventBubbling

2010-10-25 Thread Thiago H. de Paula Figueiredo
On Mon, 25 Oct 2010 14:53:09 -0200, Alessio Gambi wrote: Hi, Hi! my use case is to use Tapestry as back end of GWT components, in particular the ones that use GWT RPC calls (that may have void and boolean as return type). Tapestry can be used in place of the server side GWT Servlet t

Re: On EventBubbling

2010-10-25 Thread Alessio Gambi
Hi, my use case is to use Tapestry as back end of GWT components, in particular the ones that use GWT RPC calls (that may have void and boolean as return type). Tapestry can be used in place of the server side GWT Servlet to intercept the calls and route them (as ComponentEvent) to componen

Re: tapestry-resteasy NPE when trying to access session

2010-10-25 Thread Josh Canfield
> I'd like to get access to the current session from inside my resteasy handler > methods. How are you creating your resteasy handler? On Mon, Oct 25, 2010 at 3:06 AM, Moritz Gmelin wrote: > Hi, > > I'd like to get access to the current session from inside my resteasy handler > methods. But whe

Re: On EventBubbling

2010-10-25 Thread Josh Canfield
I don't understand the use case. Can you describe why you want to do this? On Mon, Oct 25, 2010 at 1:13 AM, Alessio Gambi wrote: > Hi, > FYI. > > In the end I managed to have a working solution for altering the behaviour > of event bubbling (limited to void,  boolean and null values). > > My solu

Re: Objects session persistance and validation

2010-10-25 Thread Mark
So if there is another problem the email validation will show you an error, but not if the email validation is the only issue? That seems very odd. You might try switching the order from validation="required,email" to validation="email,required" just to see what happens. Mark On Mon, Oct 25, 20

Re: Objects session persistance and validation

2010-10-25 Thread Anton Mezerny
Required validation works on client side, so I have not tested it on server. I can say, that when my custom validation causes error (password and password verification don't match), then I have 2 error messages on registration page (if email is also not valid) - email error and password verificatio

Re: dynamically reload a select control

2010-10-25 Thread Mark
Are you sure that OnAddBranding is getting called when they add a brand? If the page doesn't reload, then it sounds like the form isn't submitting. Here is an example of a select component being updated via AJAX that might help if you don't want to reload the page: http://jumpstart.doublenegative.

Re: change session id after login

2010-10-25 Thread Kalle Korhonen
But typically, you'd just invalidate the session which of course forces a new session id. Kalle On Mon, Oct 25, 2010 at 12:21 AM, Mike Oestereter wrote: > Hi > > In my mind it is not a peculiar requirement but a basic security 101 > requirement. > Session ID should change after login, after log

Re: tynamo-security (shiro) exception

2010-10-25 Thread Christophe Cordenier
Hi Yes it's fixed, i have update the pom.xml to use tynamo 0.3.0-SNAPSHOT 2010/10/25 Anton Mezerny > Hi all, > I am playing with hotel booking application and trying to use some examples > from it in my project. Now I have a problem in login page - when I try to > login, I got > shiro's cipher

dynamically reload a select control

2010-10-25 Thread hese
Hi, I have a select box in my tml - I also have an option where values can be added to this select box from that page. After the user adds a value I want the select box to repopulate and display the new value as well. To accomplish this, at the end of the event handler for adding the new val

Re: Objects session persistance and validation

2010-10-25 Thread Mark
Do all the other validations perform as expected other than email? Does the "required" validation on email work correctly and give you an error when you try to submit. Also do you have any types of constraints on the email field in the database? Is it possible that what you are entering in the emai

Re: tynamo-security (shiro) exception

2010-10-25 Thread Mark Shead
What version of tapestry-security are you using in your pom.xml? On Mon, Oct 25, 2010 at 7:27 AM, Anton Mezerny wrote: > Hi all, > I am playing with hotel booking application and trying to use some examples > from it in my project. Now I have a problem in login page - when I try to > login, I got

Re: Annotations and ComponentRequestFilter Problem

2010-10-25 Thread shinlang
Hi Taha, Hi Thiago, Thanks a lot for your reply, it's working perfectly! And besides, this surely gave me some more basic understanding on how tapestry works. Have a nice day, cheers, Sascha -- View this message in context: http://tapestry.1045711.n5.nabble.com/Annotations-and-ComponentRequest

tynamo-security (shiro) exception

2010-10-25 Thread Anton Mezerny
Hi all, I am playing with hotel booking application and trying to use some examples from it in my project. Now I have a problem in login page - when I try to login, I got shiro's cipher exception, like here: https://issues.apache.org/jira/browse/SHIRO-183 Is it fixed now? How can I upgrade to fixed

Re: Objects session persistance and validation

2010-10-25 Thread Anton Mezerny
So, I removed initializeNewUser() from Registration.java and added @Inject annotation to User.java and Customer.java (I also made user and customer separate, not nested one into another and I nest user into customer just before saving to DB). Now page renders well, but when I try to save user and c

tapestry-resteasy NPE when trying to access session

2010-10-25 Thread Moritz Gmelin
Hi, I'd like to get access to the current session from inside my resteasy handler methods. But when I inject the request and call getSession() on it, I get a NullPointerException. My original goal was to get access to SessionState objects from tapestry by calling the ApplicationStateManager.ge

Re: On EventBubbling

2010-10-25 Thread Alessio Gambi
Hi, FYI. In the end I managed to have a working solution for altering the behaviour of event bubbling (limited to void, boolean and null values). My solution that I really do not appreciate so much... consists in: - Provide an annotation: @StopBubbling - Copy+Paste+Modify the OnEventWorker

Re: change session id after login

2010-10-25 Thread Mike Oestereter
Hi In my mind it is not a peculiar requirement but a basic security 101 requirement. Session ID should change 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-m