tapestry 5.2 stable release?

2010-09-14 Thread Sha Aith
Is a stable version of Tapestry 5.2 expected anytime soon? -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-5-2-stable-release-tp2840142p2840142.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Validation of a component inside a Form

2010-09-14 Thread Stephan Windmüller
On 14.09.2010 18:30, Josh Canfield wrote: > Flash persistence is good for getting data between the action and > render requests. Tapestry does redirect after every event so you'd > generally set the value in an action request so you can use it in the > render request, or vice versa I suppose. Yes

Re: [Apache Mentoring Programme]JavaScript-only PDF viewer component

2010-09-14 Thread Charith Madusanka
hi! where i need submit my mid term work ? On Fri, Jul 30, 2010 at 1:07 PM, Ulrich Stärk wrote: > It is in fact OK to have non-ASL compatible licensed dependencies as long > as they aren't part of the core and as long as we don't ship them with the > distribution. At least that's what I read. W

Failed to deploy chenillekit-tapestry to JBOSS

2010-09-14 Thread Dongmei Cao
Hi, I have a Tapestry 5.1.0.5 application. I’m using the Kaptcha component from the chenillekit-tapestry-1.2.0. Everything works fine in Tomcat 6.1.x. But I’m getting the following exception when I deploy it to Jboss 5.1.0.GA. Anyone had the same problem? Why is Jboss look for this “_HTML_HEAD

Re: T5+hibernate - multiple session factories

2010-09-14 Thread cleverpig
oh,I found hibernate shards? It handle multiple database naturally. anyone used it with T5? hibernate shards:http://www.hibernate.org/subprojects/shards.html On Tue, Sep 14, 2010 at 5:17 PM, antalk wrote: > > Hi, > > I have done this successfully but i had to create my own implementations of > H

Re: Alternating table rows

2010-09-14 Thread Dmitry Gusev
For alternating rows you can try CSS :nth-child(N) pseudoclass (google for details). Here's quick example: .rowClass:hover, .rowClass:nth-child(even):hover { background-color: #DCE5FF; } .rowClass:nth-child(even) { background-color

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
I always get IndexOutofBounds (methods.size == 0), though name is equal (I logged that). Is there a bug in the matchMethods Impl? Right... coding in email so I missed the different type signature. Apparently findMethods has been deprecated in favor of List matchMethods(Predicate predicate) Fi

Re: SessionState for simple types

2010-09-14 Thread Adam Zimowski
Yes! I forgot about that. Works like a charm :) On Tue, Sep 14, 2010 at 1:46 PM, Guerin Laurent wrote: > Hi, > > From tapestry 5.2 you can use @SessionAttribute. > > Envoyé de mon iPhone > > Le 14 sept. 2010 à 20:34, "Adam Zimowski" a écrit : > >>> I find it both easy and self-descriptive to wri

Re: SessionState for simple types

2010-09-14 Thread Guerin Laurent
Hi, From tapestry 5.2 you can use @SessionAttribute. Envoyé de mon iPhone Le 14 sept. 2010 à 20:34, "Adam Zimowski" a écrit : I find it both easy and self-descriptive to write wrapper classes for these java objects. That's exactly what I'm trying to avoid. With a large team of junior p

Re: SessionState for simple types

2010-09-14 Thread Adam Zimowski
> I find it both easy and self-descriptive to write wrapper classes for these > java objects. That's exactly what I'm trying to avoid. With a large team of junior programmers this will be a maintenance nightmare. > You could always grab the HttpSession and store them yourself. >From my searchin

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Josh Canfield
Right... coding in email so I missed the different type signature. Apparently findMethods has been deprecated in favor of List matchMethods(Predicate predicate) Finds all methods matched by the provided predicate. Which returns the TransformMethod which you want to add advice. Your predicate woul

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
Sounds plausible, but how would a MethodFilter help? It can retrieve the TransformMethodSignature, but how to use that to create an advise? Hmm... just took a look at the code again and I think I see the problem. / This creates the method body if your class doesn't already implement it: tra

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Josh Canfield
Hmm... just took a look at the code again and I think I see the problem. / This creates the method body if your class doesn't already implement it: transformation.addImplementedInterface(RequestParameterExtractor.class); TransformMethodSignature extractMethod = new TransformMethodSignature(Mo

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
@Christoph: Same Error @Josh Yes, I also removed the Generic Map from the Interface. Just checked in debug method: the method indeed already exists (breakpoint: line 1443 InternalClassTransformationImpl). But how come? Its never added through my code. Did you take the type parameters off of

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Josh Canfield
Did you take the type parameters off of the interface too (return a raw map)? Have you looked at with a debugger? Stick a breakpoint right before the exception and take a look at the methods in the ctclass. I can't look at it now but I'll try to reproduce the problem tonight. Josh On Tue, Sep 1

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Christophe Cordenier
Same error ? 2010/9/14 Markus Feindler > Just tried, does not work :(. > > Have you tried without specify Generic types ? >> >> 2010/9/13 Christophe Cordenier >> >> Oh, this is maybe due to generics... >>> >>> 2010/9/13 Markus Feindler >>> >>> public interface RequestParameterExtractor {

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
Just tried, does not work :(. Have you tried without specify Generic types ? 2010/9/13 Christophe Cordenier Oh, this is maybe due to generics... 2010/9/13 Markus Feindler public interface RequestParameterExtractor { Map extractRequestParameters(); } is not equal to: Transform

Re: SessionState for simple types

2010-09-14 Thread Josh Canfield
> I understand that @SessionState was meant for POJOs. What's the > preferred (if any) way in Tapestry to store Strings, Integers and such > across multiple pages? It really depends on the use case. If you can bundle them up into a class that'd be the best way. For instance, if you're storing some

Re: SessionState for simple types

2010-09-14 Thread Rich M
I'm not sure if this is the recommended way, but I find it both easy and self-descriptive to write wrapper classes for these java objects so you can use either SessionState or the Environment to move them across pages in the application. For example, if you have a String for the name of the use

Re: Validation of a component inside a Form

2010-09-14 Thread Josh Canfield
Flash persistence is good for getting data between the action and render requests. Tapestry does redirect after every event so you'd generally set the value in an action request so you can use it in the render request, or vice versa I suppose. It took some considering to come up with why you might

Re: Component/Page Caching...

2010-09-14 Thread matt2
problem resolved, I decorated PageSource and PageLoader. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Component-Page-Caching-tp2838685p2839382.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

SessionState for simple types

2010-09-14 Thread Adam Zimowski
I understand that @SessionState was meant for POJOs. What's the preferred (if any) way in Tapestry to store Strings, Integers and such across multiple pages? Adam - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org Fo

Re: Component/Page Caching...

2010-09-14 Thread Thiago H. de Paula Figueiredo
On Tue, 14 Sep 2010 06:46:33 -0300, matt2 wrote: I have tried to implement this: http://blog.tapestry5.de/index.php/2010/08/06/extending-template-lookup-mechanism/ but will it work with page/component caching? Tapestry already caches page instances (and the components inside them), so I don

Re: Component/Page Caching...

2010-09-14 Thread matt2
I have tried to implement this: http://blog.tapestry5.de/index.php/2010/08/06/extending-template-lookup-mechanism/ but will it work with page/component caching? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Component-Page-Caching-tp2838685p2838902.html Sent from the Tap

Re: T5+hibernate - multiple session factories

2010-09-14 Thread antalk
Hi, I have done this successfully but i had to create my own implementations of HibernateConfigurer, HibernateSessionManager and HibernateSessionSource. There is also an open issue about this: https://issues.apache.org/jira/browse/TAP5-48 https://issues.apache.org/jira/browse/TAP5-48 -- Vie

Component/Page Caching...

2010-09-14 Thread matt2
Hello, I have a problem with component caching. In tapestry Pages and Component are cached with Key contains: className and locale, but i need to cache it with className, locale, another parameter(template_directory), I have tried decorate internal service ComponentTemplateSource(it is possible),

Re: Validation of a component inside a Form

2010-09-14 Thread Stephan Windmüller
On 14.09.2010 15:14, Thiago H. de Paula Figueiredo wrote: > I think your component shouldn't extend AbstractField. Okay, but in either case the data is not set correctly. In the surrounding page I defined the "users" object as a List with flash persistence. In the onPrepare method I check if it

Re: Alternating table rows

2010-09-14 Thread Davor Hrg
here is a neat and reusable trick on tapestry5howtos http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle Davor Hrg On Tue, Sep 14, 2010 at 10:01 AM, John Doe wrote: > Hello, > > I am new to Tapestry, but I am working on a project that uses it. The > version is > 5. > > I am try

Re: Validation of a component inside a Form

2010-09-14 Thread Thiago H. de Paula Figueiredo
On Tue, 14 Sep 2010 09:29:13 -0300, Stephan Windmüller wrote: On 14.09.2010 13:28, Thiago H. de Paula Figueiredo wrote: The added values inside the component are not stored in form fields but in a mapped Java class with Flash Persistence. Is it possible to retrieve these values, too? In th

Re: Alternating table rows

2010-09-14 Thread P . Stavrinides
> I think that this negation may have been added recently !? Well since 5.1.0 on 19 Feb 09 ;) for more details on what's under the hood see: http://tapestry.apache.org/tapestry5/guide/propexp.html This topic has been discussed several times on this list, for example google: T5 expression languag

Re: Validation of a component inside a Form

2010-09-14 Thread Stephan Windmüller
On 14.09.2010 13:28, Thiago H. de Paula Figueiredo wrote: >> The added values inside the component are not stored in form fields but >> in a mapped Java class with Flash Persistence. Is it possible to >> retrieve these values, too? > In this case, your component does not represent a form field and

Re: URL Patterns

2010-09-14 Thread Everton Agner
Thanks a lot!! I'll checkout later at home and have a look at it :) ___ Everton Agner Ramos 2010/9/14 Alessio Gambi > Hi Everton, > > sorry for the delay. > > You can take the code by adding these entries in you pom.xml > > >com.gambi.tapestry.menu >tapestr

Re: Alternating table rows

2010-09-14 Thread Gunnar Eketrapp
Yea yea I said can't or couldn't negate ... I think that this negation may have been added recently !? Anyway put the logic in java ... and let us all try to forget about .jsp 2010/9/14 Thiago H. de Paula Figueiredo > On Tue, 14 Sep 2010 05:38:07 -0300, Gunnar Eketrapp < > gunnar.eketr...@

Re: Alternating table rows

2010-09-14 Thread Sven Homburg
i totaly agree with Thiago, implement logic into design should an absolutly no-go with regards Sven Homburg Founder of the Chenille Kit Project http://chenillekit.codehaus.org 2010/9/14 Thiago H. de Paula Figueiredo : > On Tue, 14 Sep 2010 05:38:07 -0300, Gunnar Eketrapp > wrote: > >> Hi Jo

Re: Alternating table rows

2010-09-14 Thread Thiago H. de Paula Figueiredo
On Tue, 14 Sep 2010 05:38:07 -0300, Gunnar Eketrapp wrote: Hi John! (Still alive ?) Hi, guys! I was also frustrated about the simplicity of the template language at the start. Me too. But then I discovered that templates should have the least logic on them, so it's way easier to test

Submitting form with a zone or not, depending on submit button choosed

2010-09-14 Thread Nicolas Bouillon
Hi, I would like to be able to refresh a zone of a form if the user clicks one button, or simply submit the form with a full page change if the user clicks on another button. But the zone attribute is on the "t:form" component, and not on the t:submit component. Did somebody see a way to achieve

Re: URL Patterns

2010-09-14 Thread Alessio Gambi
Hi Everton, sorry for the delay. You can take the code by adding these entries in you pom.xml com.gambi.tapestry.menu tapestry-menu-module 0.0.1-SNAPSHOT gambi-maven-repository http://www.inf.usi.ch/phd/gambi/dev/maven/ Gambi Maven Repository

Re: Validation of a component inside a Form

2010-09-14 Thread Thiago H. de Paula Figueiredo
On Tue, 14 Sep 2010 04:44:29 -0300, Stephan Windmüller wrote: On 13.09.2010 17:01, Thiago H. de Paula Figueiredo wrote: The line String submittedValue = request.getParameter(elementName); produces "null" every time. You'll have to generate the id and name of the HTML form fields

Re: Alternating table rows

2010-09-14 Thread Bob Harner
This alternating stripes effect is such a common need that I think it should be a built-in capability of all of the looping components, as a parameter in which you pass the names of the CSS classes to alternatively apply. JSF does this, and it's very handy. I guess you could do this yourself with a

Re: Alternating table rows

2010-09-14 Thread Peter Stavrinides
Katia has some good advice, I am also a strong advocate for code separation, which equates to extensibility and maintanability. Your page class (pure Java) is intended to replace JSP or any expression language, queries and any other business logic is better when moved into IoC where it is injec

Re: Alternating table rows

2010-09-14 Thread Katia Aresti Gonzalez
For java CSS logic reticent people : Imagine you need more complex css logic depending not only on even/odd row, but on the number of the elements you have in your table too, or even the values of these elements, and depending on a pagination component too. How will you TML look like ? like an old

Re: Alternating table rows

2010-09-14 Thread Stephan Windmüller
Am 14.09.2010 10:38, schrieb Gunnar Eketrapp: > I was also frustrated about the simplicity of the template language at the > start. > You can't (or couldn't even) negate a test! What about 'negate="true"' or the "unless" component? - Stephan -

Re: Alternating table rows

2010-09-14 Thread Gunnar Eketrapp
Hi John! (Still alive ?) I was also frustrated about the simplicity of the template language at the start. You can't (or couldn't even) negate a test! But the philosophy of T5 is to put all logic in java ... and after using T5 succesfully in a big rewrite of an existing site I must say that I agr

RE: Alternating table rows

2010-09-14 Thread Stony Zhang
Change code to, public boolean isEvenColumn () { return index % 2 == 0; } Thanks Stony -Original Message- From: John Doe [mailto:nicu4...@yahoo.com] Sent: Tuesday, September 14, 2010 4:28 PM To: Tapestry users Subject: Re:

Re: Alternating table rows

2010-09-14 Thread John Doe
Yes, I could do that, but that would mean putting CSS in Java classes and I would prefer avoiding that. Does Tapestry 5 have any support for conditions like "index % 2 == 0" in templates? From: Stephan Windmüller To: users@tapestry.apache.org Sent: Tue, Sept

Re: Alternating table rows

2010-09-14 Thread Stephan Windmüller
On 14.09.2010 10:01, John Doe wrote: > How can I make the alternating rows? Use the following code: private boolean switch; public String getSwitchedClass() { switch = !switch; return switch ? "odd" : "even"; } And in the tml: HTH Stephan -

Alternating table rows

2010-09-14 Thread John Doe
Hello, I am new to Tapestry, but I am working on a project that uses it. The version is 5. I am trying to make a HTML table in which even rows have one class, and odd rows have another class. So far, I tried the following (I am showing just the code that matters): This causes an exc

Re: Retrieve ActivationRequestParameters in custom PageResponseRenderer

2010-09-14 Thread Markus Feindler
Will try that later and inform you. > > Original-Nachricht > Datum: Tue, 14 Sep 2010 08:17:57 +0200 > Von: Christophe Cordenier > An: Tapestry users > Betreff: Re: Retrieve ActivationRequestParameters in custom > PageResponseRenderer > > Have you trie

Re: Validation of a component inside a Form

2010-09-14 Thread Stephan Windmüller
On 13.09.2010 17:01, Thiago H. de Paula Figueiredo wrote: >> The line >>> String submittedValue = request.getParameter(elementName); >> produces "null" every time. > You'll have to generate the id and name of the HTML form fields in a way > that you can get them back when the form is su

Blog post about caching services method results with T5

2010-09-14 Thread Dmitry Gusev
FYI http://dmitrygusev.blogspot.com/2010/09/tapestry5-caching-method-results.html -- Dmitry Gusev AnjLab Team http://anjlab.com