Re: basic auth in T5

2013-05-02 Thread Taha Hafeez Siddiqi
Oops! Didn't get that (Not used Basic Authentication since a long long time). Http Basic auth is implemented at the container level. http://docs.oracle.com/cd/E19798-01/821-1841/bncck/index.html Once you are authenticated you can use the details (principal, roles) with the annotation

Re: basic auth in T5

2013-05-02 Thread Kalle Korhonen
Come on people - basic authentication is not that old... You can of course you the standard servlet container managed authentication whether you use form or basic authentication but it's not a requirement for basic. You can also use tapestry-security exactly the same way as you otherwise would and

Re: basic auth in T5

2013-05-02 Thread Angelo Chen
Hi, Thanks for the tip, it is in the servlet level, it will be nice if we can have a simply way to mark a certain route in tapestry5 with http basic authentication, the use case is, an app might have a very rich javascript client, and accessing pages with restful api, if those api can be

how to use tapestry component in JSP

2013-05-02 Thread Shuu Johnny
Now I face a trouble. In a project ,I need to Implement Tapestry 5 Autocomplete Mixin which can be mixed in an ordinary TextField component. so far. I couldn't find any documents for this.. how could I use tapestry component in ordinary JSP page ? thanks in advance. Johnny

Re: SessionListener interacting with Tapestry services?

2013-05-02 Thread John
I'm using session listener to have a single point for destroying objects I placed in the session and for logging the time the user was logged in for. John - Original Message - From: Taha Siddiqi To: Tapestry users Sent: Wednesday, May 01, 2013 1:05 PM Subject: Re:

Re: SessionListener interacting with Tapestry services?

2013-05-02 Thread John
What would that look like in code Lance? Can the solution you invisage work around the need to locate the Tapestry registry via the servlet context in the session listener? John - Original Message - From: Lance Java To: Tapestry users Sent: Wednesday, May 01, 2013 12:38 PM

Re: SessionListener interacting with Tapestry services?

2013-05-02 Thread John
this works auditDAO = registry.getService(AuditDAO.class); but this does not log = registry.getService(Logger.class); [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: No service implements the interface org.slf4j.Logger.

Re: SessionListener interacting with Tapestry services?

2013-05-02 Thread Lance Java
public class HttpServletListenerHelperImpl implements HttpServletListenerHelper { private SomeDao someDao; public SessionListenerHelperImpl(SomeDao someDao) { doSomeFunkyInitializationWithDao(someDao);

Re: how to use tapestry component in JSP

2013-05-02 Thread Taha Hafeez Siddiqi
You can't. Tapestry components cannot be used outside Tapestry web-framework. regards Taha On 02-May-2013, at 2:12 PM, Shuu Johnny johnnys...@gmail.com wrote: Now I face a trouble. In a project ,I need to Implement Tapestry 5 Autocomplete Mixin which can be mixed in an ordinary TextField

Re: SessionListener interacting with Tapestry services?

2013-05-02 Thread John
Of course I'm seeing that my idea can't hook up the logger to the calling class type which I dare say the Tapestry injection performs. Is there another way? I don't want to wire the logger directly. - Original Message - From: John To: Tapestry users Sent: Thursday, May 02,

[5.3] Mixin Base Class Affecting Initializer Parameters When In A Loop

2013-05-02 Thread Peter Hvass
Hello, I'm trying to debug some strange behaviour; wondering if anyone can offer any advice! I've provided sample semi-pseudo code below. The issue is that when putting the containing component's client id into the parameters JSONObject by using ComponentResources.getContainer in the

Re: [5.3] Mixin Base Class Affecting Initializer Parameters When In A Loop

2013-05-02 Thread Lance Java
Do you realise that there is only 1 instance of the component and also 1 instance of the mixin? And that the same component/mixin is fired for all 5 iterations through the loop? It's part of tapestry's static structure, dynamic behaviour. I think if you make sure to initialize all fields in

Re: [5.3] Mixin Base Class Affecting Initializer Parameters When In A Loop

2013-05-02 Thread Peter Hvass
Hi Lance, I did know about 'static structure, dynamic behaviour' but now understand it better in practice. :) It was indeed the parameters field null check - this really helped illuminate how things actually operate. Thanks for the help!! Much appreciated! Peter - Original

Tapestry 5.4 alpha 3 : AjaxFormLoop t:addrowlink does not seem to fire event

2013-05-02 Thread Mark Ashworth
Hi everyone, I am using the AjaxFormLoop component in Tapestry 5.4 but the addrowlink is not firing any events event though I followed the example on http://jumpstart.doublenegative.com.au/jumpstart. Is there a test case in the 5.4 version that I can consult to determine what I have coded