Login Filter,

2009-11-26 Thread sandeepraj singh
Hi, I have the following requirement for my application Develop a Tapestry login check Filter which (a) Avoids direct hit to any page in my application without logging in, if anyone does that, he should be redirected to the login page. (b) After session expiry if we do any action, It should be

Re: Login Filter,

2009-11-26 Thread Ulrich Stärk
Use a ComponentRequestFilter. That way you can handle component events and page render requests inside the same filter. HTH, Uli Am 26.11.2009 10:03 schrieb sandeepraj singh: Hi, I have the following requirement for my application Develop a Tapestry login check Filter which (a) Avoids

Re: Login Filter,

2009-11-26 Thread Juan E. Maya
U coud also use the Chennilekit Access Module: http://www.chenillekit.org/chenillekit-access/index.html or Tapestry-Spring-Security Integration Or if u want to do everything by yourself u can check their source code. http://www.localhost.nu/java/tapestry-spring-security/ On Thu, Nov 26, 2009

Re: Login Filter,

2009-11-26 Thread Thiago H. de Paula Figueiredo
Em Thu, 26 Nov 2009 07:27:16 -0200, Juan E. Maya maya.j...@gmail.com escreveu: or Tapestry-Spring-Security Integration I don't recommend it because the checks are made in the setup render event, *after* the activate (onActivate()) one. It does not cover action requests, so I created my

Re: Login Filter,

2009-11-26 Thread Thiago H. de Paula Figueiredo
Em Thu, 26 Nov 2009 07:18:53 -0200, Ulrich Stärk u...@spielviel.de escreveu: Use a ComponentRequestFilter. That way you can handle component events and page render requests inside the same filter. It could be a Dispatcher too. The wiki has a nice explanation:

Re: Any Examples or LINK about T5.1.0.5 Zone, Block with Javascript?

2009-11-26 Thread Thiago H. de Paula Figueiredo
Em Thu, 26 Nov 2009 04:47:50 -0200, alanearl alan-lua...@dash.com.ph escreveu: Just post it, If you want to HELP hehehe Thanks Search the mailing list archives. Take a look at Inge Solvol's blog at http://tinybits.blogspot.com/. It has many useful examples. -- Thiago H. de Paula

Re: [t5] upgrade to java 6 and javassist

2009-11-26 Thread Inge Solvoll
This is embarrassing. Our most recent problems with javassist crashes were entirely our own fault, not javassist or t5. We had a search/replace ant target that replaced all occurrences of /script with /scripttodaysdate. This target recursed (not our intention) into our classes folder, and did

[T5.2.0] AddRowLink generates incorrect link in conjunction with onPassivate

2009-11-26 Thread Joost Schouten (ml)
Hi, When using the AjaxFormLoop's AddRowLink in conjunction with onPassivate an invalid url is generated [1]. When I remove onPassivate from my page all works fine. Am I missing something, is this work in progress (I'm using the SNAPSHOT version) or shall I file a bug report? Cheers,

Re: [T5.2.0] AddRowLink generates incorrect link in conjunction with onPassivate

2009-11-26 Thread Ulrich Stärk
Could you provide a minimal example? Am 26.11.2009 15:53 schrieb Joost Schouten (ml): Hi, When using the AjaxFormLoop's AddRowLink in conjunction with onPassivate an invalid url is generated [1]. When I remove onPassivate from my page all works fine. Am I missing something, is this work in

winstone-maven-plugin and Exception pages

2009-11-26 Thread olip
Hi everyone! I am using the winstone-maven-plugin to compile my tapestry5 webapp to an executable jar file with integrated webserver. Here is the instruction I followed: http://blog.jayway.com/2008/11/28/executable-war-with-winstone-maven-plugin/ I am using T5: 5.1.0.5 Everything works fine

Re: winstone-maven-plugin and Exception pages

2009-11-26 Thread olip
The response is a 500 Internal Server Error (I think instead of the exception page) See winstone debug output: ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: Cannot create directory on the server to upload files: /bla/jasdjkaksd/asasds.

jQuery.noConflict() not working

2009-11-26 Thread Inge Solvoll
Hi! Sorry for going a little bit OT here, but this is kinda T5-specific too. I'm trying to use jQuery together with prototype in T5. It works nicely in firefox, but in IE8, I get a lot of object not supported, line 4821 and so on. If I remove the reference to jQuery, everything works again. I

Re: jQuery.noConflict() not working

2009-11-26 Thread Thiago H. de Paula Figueiredo
Em Thu, 26 Nov 2009 13:42:14 -0200, Inge Solvoll inge.tapes...@gmail.com escreveu: Hi! Hello! I'm trying to use jQuery together with prototype in T5. It works nicely in firefox, but in IE8, I get a lot of object not supported, line 4821 and so on. If I remove the reference to jQuery,

RE: jQuery.noConflict() not working

2009-11-26 Thread Jim O'Callaghan
I see there's another response already that may indicate the problem lies elsewhere but just in case you do want to reorder the included files ... ... can you contribute and use a custom ClientInfrastructure containing a list for the javascriptStack, add jQuery.js first to your list, and then add

Re: Login Filter,

2009-11-26 Thread Alfonso Quiroga
Thiago: [...]your dispatcher must be added before the RootPath[...] Is that neccesary? RootPath I think is when you go to /, this is Index page, and we suppose Index doesn't need security. So I use my security dispatcher AFTER RootPath. Thanks On Thu, Nov 26, 2009 at 8:41 AM, Thiago H. de Paula

Re: Login Filter,

2009-11-26 Thread Thiago H. de Paula Figueiredo
Em Thu, 26 Nov 2009 15:15:13 -0200, Alfonso Quiroga alfonsose...@gmail.com escreveu: Thiago: [...]your dispatcher must be added before the RootPath[...] Is that neccesary? RootPath I think is when you go to /, this is Index page, and we suppose Index doesn't need security. So I use my

Re: Tapestry and JMeter

2009-11-26 Thread Taylor Mathewson
I use an xpath extractor to pull the form data, since this can change if you change the bindings, etc... In the controller pulling the page containing the form to submit, add an XPath Extractor. Make sure Tidy is on, and I named it formData, and the expression is

T5: Submit Button in Custom Component, Form in Page

2009-11-26 Thread CarmenG
I have a page with a form, nested within the form is a custom component with a select box and a submit button. When the submit button is clicked I want to download either a PDF or Excel file based on the value of the select box. I know the event for the submit button cannot return a value and I

Re: T5: Submit Button in Custom Component, Form in Page

2009-11-26 Thread Ulrich Stärk
If you use the submit component, it will fire a selected event. By handling that, you can detect which button was clicked and act accordingly. HTH, Uli Am 26.11.2009 23:12 schrieb CarmenG: I have a page with a form, nested within the form is a custom component with a select box and a submit

Re: T5: Submit Button in Custom Component, Form in Page

2009-11-26 Thread CarmenG
Sorry Uli that doesn't help me as the onSelected event cannot return a value, the download file in my case. Can you elobarate a bit more? What I have read so far have only been examples of Forms and Submit components on the same page/component where you would have private String type;

Re: T5: Submit Button in Custom Component, Form in Page

2009-11-26 Thread Thiago H. de Paula Figueiredo
Em Thu, 26 Nov 2009 20:41:59 -0200, CarmenG car...@synect.com escreveu: Sorry Uli that doesn't help me as the onSelected event cannot return a value, the download file in my case. Can you elobarate a bit more? onSelect() cannot, but onSuccess() can return a StreamResponse containing your

Re: T5: Submit Button in Custom Component, Form in Page

2009-11-26 Thread Ulrich Stärk
Events are passed up the component hierarchy until handled, so just handle the selected event in your page class. Alternatively have your special component fire its own event (use ComponentResources for that) based on what button was clicked and handle that. That's probably the cleaner way to

Re: Status of TAP5-729

2009-11-26 Thread Andrey Larionov
Nobody can comment on this? On Wed, Nov 18, 2009 at 14:37, Andrey Larionov anlario...@gmail.com wrote: I try to port some application from Spring to tapestry (i don't like one IoC container over another), but this issue is blocker for me. Can anybody describe state?