RE: outputting expression logic

2011-09-17 Thread Ken in Nashua
an arithmetic operator kinda like prop: math: and maybe a function operator func: so i can keep all my component logic self contained. Any last ditch efforts to accommodate my dreams ? Ken To: users@tapestry.apache.org; kcola...@live.com Subject: Re: outputting expression logic Date: Fri, 16 Sep 2011

Re: outputting expression logic

2011-09-17 Thread Bob Harner
Wow, I wouldn't want to have to maintain an app full of tml files like that. I think you're not realizing yet how much more maintainable a good clean T5-style template really is. Java is so much more expressive for logic anyway. Bob Harner On Sep 17, 2011 5:20 PM, Ken in Nashua kcola...@live.com

Re: outputting expression logic

2011-09-17 Thread Robert Zeigler
I've been developing with Tapestry since version 3. I finally reached the conclusion that templates like below are evil. :) The main reason for them in T4 was template reloading, so you had fast turnaround time when developing. In T5, you get page component class reloading, as well, so the

RE: outputting expression logic

2011-09-17 Thread Ken in Nashua
Rob, Thanks for the constructive criticism. I will give this a whirl... like what I see... I am all for good form... and one of the nice things I am excited about T5 is that it promotes a ton of loose options for achieving good form. Appreciate the help and will let you know how I make out.

RE: outputting expression logic

2011-09-17 Thread Ken in Nashua
Thanks Rob... code ran as-is... auto-paging layout looks sweet I hope to finish this guy up and publish for public consumption by mid week or sooner... I just need to QA the action auto-paging links. Thanks... appreciate the help TML t:Loop id=foreachitem source=collection

Re: outputting expression logic

2011-09-17 Thread Josh Canfield
span jwcid=@Insert value=/trtr raw=true/ I don't think it's ever a good idea to output partial HTML in your page like this. I'll throw one more implementation into the ring. !-- Usage Example -- t:gallery entriesPerRow=4 entry=var:galleryEntry source=1..21 ${var:galleryEntry} /t:gallery

Re: outputting expression logic

2011-09-16 Thread Thiago H. de Paula Figueiredo
On Thu, 15 Sep 2011 23:53:18 -0300, Ken in Nashua kcola...@live.com wrote: I guess I am asking for an ognl engine... to do these calculations within tml files Are you really sure you want to have logic in your template and make it look like JSP (which sucks), as Steve said? Mixing output

RE: outputting expression logic

2011-09-16 Thread Ken in Nashua
in realistic operations that will be understood better in the tml file... anyway... getting closer... gallery widget pending ciao To: users@tapestry.apache.org; kcola...@live.com Subject: Re: outputting expression logic Date: Fri, 16 Sep 2011 07:48:41 -0300 From: thiag...@gmail.com On Thu, 15

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 kcola...@live.com wrote: Hi All, I have this expression in a component

RE: outputting expression logic

2011-09-15 Thread Ken in Nashua
t:outputRaw value=(${cursor} + 1)/ 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

RE: outputting expression logic

2011-09-15 Thread Ken in Nashua
...@live.com To: users@tapestry.apache.org Subject: RE: outputting expression logic Date: Thu, 15 Sep 2011 22:47:03 -0400 t:outputRaw value=(${cursor} + 1)/ 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

RE: outputting expression logic

2011-09-15 Thread Ken in Nashua
are appreciated... kcola...@live.com From: kcola...@live.com To: users@tapestry.apache.org Subject: RE: outputting expression logic Date: Thu, 15 Sep 2011 22:47:03 -0400 t:outputRaw value=(${cursor} + 1)/ this seems to produce 0 + 1 instead of the desired 1 all i am trying to do is have

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 t:outputRaw value=(${cursor} + 1)/ does