Re: 5.1.0.5: Supporting mixins in user defined components

2010-10-26 Thread Thiago H. de Paula Figueiredo
Currently Tapestry doesn't support parameters in implementation mixins, user-defined or not. On Tue, 26 Oct 2010 18:26:13 -0200, Rich M wrote: -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnolo

Re: Live-Class reloading for rest services.

2010-10-26 Thread Alejandro Scandroli
Hi Moritz Again the issue is that the RESTEasy filter is an HttpServletRequestFilter not a RequestFilter, so the CheckForUpdatesFilter (RequestFilter) it's never called and the loader never knows that it needs to reload the services. I could make the RESTEasy filter work as a RequestFilter but th

Re: 5.1.0.5: Supporting mixins in user defined components

2010-10-26 Thread Rich M
Hmm, I suppose I wasn't clear enough. I'm using mixins just fine from templates and I'm well aware of the @Parameter annotatation, but I wanted to have a mixin attached to a customer component I have written, and this component is included in templates for page classes. Part of the intention of

Re: 5.1.0.5: Supporting mixins in user defined components

2010-10-26 Thread Norman Franke
Check out the source for Tapestry's mixins. You use the @Parameter annotation in the mixin class. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Oct 26, 2010, at 2:46 PM, Rich M wrote: Hi, how do you provide parameters to a mixin when you are doing an Implementation

Re: dynamically reload a select control

2010-10-26 Thread Mark
Earlier I thought you said that the page was not reloading. Unless you are doing something with AJAX, I don't know how it would call the function without loading the page. If it is reloading the page, you might try having the method log a list of all the brands right before it returns this--just

5.1.0.5: Supporting mixins in user defined components

2010-10-26 Thread Rich M
Hi, how do you provide parameters to a mixin when you are doing an Implementation Mixin? I'm running in 5.1.0.5 and the documentation isn't very clear on this. I have the code below in the component class where I would like to add the mixin, but I need to get the template parameters to this co

Re: dynamically reload a select control

2010-10-26 Thread hese
yes it does get called, the logs that i have in that functions appear. anyways...will try out your links. -- View this message in context: http://tapestry.1045711.n5.nabble.com/dynamically-reload-a-select-control-tp3235533p3237369.html Sent from the Tapestry - User mailing list archive at Nabb

T5.1 Expiring a cookie at end of session (browser close)

2010-10-26 Thread Richard Hill
Hi All, Cookies that do not have an expiry time specified will be cleared by the browser when it's closed. How do I set a cookie in Tapestry that _doesn't_ have an expiry date set? According to the docs here: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/Cookies.ht

Re: Maven Issues

2010-10-26 Thread Norman Franke
Turns out the "Maven Dependencies" under "Java EE Module Dependencies" (under project properties) got unchecked. Very strange. Then Eclipse also decided it had some error building the project, but a F5 seems to have cleared that up, too. Thanks! Norman Franke Answering Service for Directors

Re: change session id after login

2010-10-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Oct 2010 12:14:43 -0200, Muhammad Mohsen wrote: Excuse me, I understand that I should not invalidate the session from the directly from the httpsession object. But how can I access the httpsession object through tapestry in the first place ? Or the mentioned "Session" object ? Ge

Re: Maven Issues

2010-10-26 Thread 9902468
Start by doing command line mvn clean install and verify the resulting jar. If everything is ok I suspect that something is off with your eclipse. (Perhaps it was updated?) - Ville -- View this message in context: http://tapestry.1045711.n5.nabble.com/Maven-Issues-tp3236369p3237152.html Sent f

Re: change session id after login

2010-10-26 Thread Muhammad Mohsen
Excuse me, I understand that I should not invalidate the session from the directly from the httpsession object. But how can I access the httpsession object through tapestry in the first place ? Or the mentioned "Session" object ? A link to the page discussing this topic would be great. Thank you i

Re: Live-Class reloading for rest services.

2010-10-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Oct 2010 10:45:55 -0200, Moritz Gmelin wrote: Hi, Hi! is there a way to extend Live Class reloading to other claasses that are not pages, components or service implementations? As far as I know, no, as it depends on class transformations. Is there some contribution I have t

Live-Class reloading for rest services.

2010-10-26 Thread Moritz Gmelin
Hi, is there a way to extend Live Class reloading to other claasses that are not pages, components or service implementations? I'm especially interrested in enabling Live Reloading for all classes under TAPESTRY_APP_PACKAGE_PARAM.rest.* Is there some contribution I have to make to enable live

Re: tapestry-resteasy NPE when trying to access session [solved]

2010-10-26 Thread Moritz Gmelin
Yes, I moved down the RestEasyRequest handler into the RequestFilter chain and now I can even inject my SessionStateObjects. Great. I want to use those SessionStateObjects to forward authentication information for the REST services. Within the single request. To be able to authenticate either

Re: tapestry-resteasy NPE when trying to access session

2010-10-26 Thread Alejandro Scandroli
You are right, the Request is not yet available. The RESTEasy filter is a HttpServletRequestFilter not a RequestFilter, so you need to inject the HttpServletRequest to make it work. Try this: @Inject private HttpServletRequest request; BTW, remember that sessions should be irrelev

Re: change session id after login

2010-10-26 Thread Markus Joschko
Do you know any webframework that allows that? We recently had the same requirement but finally went the route to use an extra id in a https only cookie that was set during login. Not as nice as using the container supported session id but it works fine. Markus On Mon, Oct 25, 2010 at 5:18 PM, Ka