Re: method call with parameters inside TML ?

2011-09-15 Thread Robert Zeigler
As long as the java function isn't static/is "reachable" from a property path where the root object is the page. So assuming min is a function in your page or component class, then yes: ${min(tableColumns, itemsPerPage)) Or: Robert On Sep 15, 2011, at 9/1511:15 PM , Ken in Nashua wrote: >

method call with parameters inside TML ?

2011-09-15 Thread Ken in Nashua
Hi All, T5 Can I reference a java function inside my template with parameters ? min(tableColumns, ${itemsPerPage}) thanks

Re: outputting expression logic

2011-09-15 Thread Steve Eynon
Some call it clutter, I call it refactor safe! A problem I often saw with T4 is people tended to push as much logic as they could into the .tml - with the pain they encountered afterwards, I wondered why they didn't just stick to JSPs?! And does nothing more than ${cursor} + 1 as all outputR

RE: outputting expression logic

2011-09-15 Thread Ken in Nashua
So far I have to clutter up my component with this.. wish I could just do it in the tml like ognl as-is in t-4.1.2 not interested in chenelle @Persist("session") @Property private int cursorStartPosition; @Persist("session") @Property private int cursorEndPositio

RE: outputting expression logic

2011-09-15 Thread Ken in Nashua
I guess I am asking for an ognl engine... to do these calculations within tml files be nice if there were an expression operator in T5 to do these... guess I will have to make a java method... any solutions or canonical approach are appreciated... kcola...@live.com From: kcola...@live.co

RE: outputting expression logic

2011-09-15 Thread Ken in Nashua
this seems to produce "0 + 1" instead of the desired "1" all i am trying to do is have the arithmetic performed before the output thanks kcola...@live.com From: kcola...@live.com To: users@tapestry.apache.org Subject: outputting expression logic Date: Thu, 15 Sep 2011 22:00:46 -0400

Re: outputting expression logic

2011-09-15 Thread Taha Hafeez
Hi Tapestry property expressions do not support arithmetic operations. See http://tapestry.apache.org/property-expressions.html for complete list of operations supported On Fri, Sep 16, 2011 at 7:30 AM, Ken in Nashua wrote: > > Hi All, > > I have this expression in a component definition... >

outputting expression logic

2011-09-15 Thread Ken in Nashua
Hi All, I have this expression in a component definition... ${cursor} + 1 For my case cursor is initially 0 After render... I view page source and I see the following... 0 + 1 when what I actually wanted to see is... the sum of the expression and the value rendered... 1 Any tips o

Re: textchanged like clientEvent

2011-09-15 Thread Thiago H. de Paula Figueiredo
On Thu, 15 Sep 2011 19:35:14 -0300, leothelion wrote: Hi all, Hi! I trying to trigger a clientEvent so that whenever the text in the field is changed, the other fields can be updated automatically. Is there a thing like "textchanged"? I tried "keyup" or "mouseup", but neither works as

Re: Tapestry 5.3-beta-8

2011-09-15 Thread Howard Lewis Ship
I was working with a client and put a bunch of code to prevent deadlocks in place for beta-8 ... but it looks like it only made the deadlock situation worse; they'll be pulled out for beta-9 (due pretty shortly). On Thu, Sep 15, 2011 at 7:53 AM, Steve Eynon wrote: > Hi, > > I don't know if this i

textchanged like clientEvent

2011-09-15 Thread leothelion
Hi all, I trying to trigger a clientEvent so that whenever the text in the field is changed, the other fields can be updated automatically. Is there a thing like "textchanged"? I tried "keyup" or "mouseup", but neither works as expected. Thanks! -- View this message in context: http://tapestry.

Re: [T5.3-beta-6] Not Ready For Production!

2011-09-15 Thread Howard Lewis Ship
Nice trick ... I wonder what the Gradle equivalent is. We may be doing it the hard way right now. On Thu, Sep 15, 2011 at 10:50 AM, Martin Strand wrote: > On Wed, 14 Sep 2011 15:57:11 +0200, Steve Eynon > wrote: > >> Yep, looks like you can't inject SymbolSource into your >> ApplicationDefaults

Free Tapestry Laptop Stickers

2011-09-15 Thread Howard Lewis Ship
I just got in the second batch of Tapestry laptop stickers. Do you want one? They're free --- all I ask is that you share your Tapestry story (or tell me not too). Details on my blog: http://tapestryjava.blogspot.com/2011/08/tapestry-5-laptop-stickers.html For those who previously responded an

Re: Any Element Name for Embedded Components?

2011-09-15 Thread Thiago H. de Paula Figueiredo
On Thu, 15 Sep 2011 09:19:36 -0300, Katherine Luxton wrote: Hi Hi! I have a tapestry page which contains a custom component; and I always thought that the element name given to for the component within the TML file was used to work out which component to render. This is correct for t

Any Element Name for Embedded Components?

2011-09-15 Thread Katherine Luxton
Hi I have a tapestry page which contains a custom component; and I always thought that the element name given to for the component within the TML file was used to work out which component to render. However, in my example below, it seems that I can give this component any element name I like a

Re: [T5.3-beta-6] Not Ready For Production!

2011-09-15 Thread Martin Strand
On Wed, 14 Sep 2011 15:57:11 +0200, Steve Eynon wrote: Yep, looks like you can't inject SymbolSource into your ApplicationDefaults contribution method when ProdMode is set to true; bit of a pain because I was using it to extract my webapp version for setting as the tapestry.app-version. As

Grid "overrides" question

2011-09-15 Thread cqasker
So say I have a component that wraps a grid like: SomeGrid.tml http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter"> SomeGrid.java @SuppressWarnings("unused") @Component(parameters={"overrides=prop:overrides", ...other params...}) private Grid grid

Re: Tapestry 5.3-beta-8

2011-09-15 Thread Steve Eynon
Hi, I don't know if this is related, but I can make my app server (Jetty 6) lock up in a repeatable and reliable fashion using T5.3-beta-8 which doesn't happen with T5.3-beta-6 - but it's only when I have ProdMode set to true. The steps are: - I log into my app (via 2 pages in Firefox v3.6), ther

Re: Ajax events, expired session and @Persist fields

2011-09-15 Thread Lenny Primak
Thanks Thiago. I will try all these options and report the results. On Sep 14, 2011, at 5:19 PM, "Thiago H. de Paula Figueiredo" wrote: > On Wed, 14 Sep 2011 16:25:14 -0300, Lenny Primak > wrote: > >> This is a design/best practices question. >> We set up @Persist fields inside @SetupRend

Re: Using layouts - partial page templates

2011-09-15 Thread dkeenan
Thank you s much!. That's exactly what I've been looking for. Should have read more closely. Cheers, David. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Using-layouts-partial-page-templates-tp4806800p4806882.html Sent from the Tapestry - User mailing list archive

Re: Using layouts - partial page templates

2011-09-15 Thread Alex Kotchnev
David - try using the t:content element ( http://tapestry.apache.org/component-templates.html). It's supposed to do exactly what you need - just put it around your "main content" and everything else would be ignored when the template is rendered. Cheers, Alex K On Thu, Sep 15, 2011 at 9:32 AM, d

Re: Using layouts - partial page templates

2011-09-15 Thread dkeenan
Hi. the trouble is when I try to escape everything around the main content.. eg. if the About.tml looks a bit like this... about text I want it to have all the body/head tags in the TML file as above, so it can easily be viewed outiside of tapestry. But, i want tapestry to use Layout.tm

Re: Using layouts - partial page templates

2011-09-15 Thread Steve Eynon
Can you elaborate on the tags not working and a T5 version? I've not had any trouble with it in the past. Steve. Ther is On 15 September 2011 21:16, dkeenan wrote: > Hi there. I'm looking to create a Layout.tml template file to hold the > header/footer/navigation elements of my page, and then

Re: [5.3-alpha-13] - Combine/Minify doesn't appear to work ...

2011-09-15 Thread Steve Eynon
Hi, I had a go at turning on minimization in my app [T5.3-beta-8] with the following results: - The content of the files are squished / minimised - The JS stacks are combined into a single JS file - All other files are included individually - JS minimisation often throws exceptions, returning HTT

Using layouts - partial page templates

2011-09-15 Thread dkeenan
Hi there. I'm looking to create a Layout.tml template file to hold the header/footer/navigation elements of my page, and then create the content within separate files such as Index.tml, About.tml Obviously, at the moment, when viewing these files outside of Tapestry, they just show a snippet of ht

Re: commons-codec version

2011-09-15 Thread Michael Dukaczewski
I've noticed that commons-io and commons-fileupload maybe should also be updated. https://issues.apache.org/jira/browse/TAP5-1653 Am 15.09.2011 11:21, schrieb Igor Drobiazko: > There is no reason for using commons-codec-1.3. Please fill a JIRA issue. > > On Thu, Sep 15, 2011 at 10:16 AM, Micha

Re: commons-codec version

2011-09-15 Thread Igor Drobiazko
There is no reason for using commons-codec-1.3. Please fill a JIRA issue. On Thu, Sep 15, 2011 at 10:16 AM, Michael Dukaczewski < m.dukaczew...@tu-bs.de> wrote: > Is there a reason why Tapestry still uses commons-codec-1.3 from 2004? > The current version is 1.5 and I have a project where I need

commons-codec version

2011-09-15 Thread Michael Dukaczewski
Is there a reason why Tapestry still uses commons-codec-1.3 from 2004? The current version is 1.5 and I have a project where I need to use the current version. Can there be problems? Would it make sense to link Tapestry generally to the new version? ---