RE: Arithemtic operations in tml file

2011-04-30 Thread Amr Mohamed Mahmoud Hassanien
It did work, thanks. :) -Original Message- From: Howard Lewis Ship [mailto:hls...@gmail.com] Sent: 30 أبريل, 2011 08:46 م To: Tapestry users; r...@su3analytics.com Subject: Re: Arithemtic operations in tml file On Sat, Apr 30, 2011 at 8:00 AM, Richard Hill wrote: > > You need to do the

site renders CSS or javascript instead of HTML

2011-04-30 Thread watarimono
Hi there, Every once in a while (but it seems to be increasing) our site shows one of the CSS or javascript files instead of the actual HTML. Anyone had this issue before ? And how would you go about debugging it? We don't see the bug in the logs. Here's our stack: Apache Tomcat/6.0.18 Java Sun

Re: Arithemtic operations in tml file

2011-04-30 Thread Howard Lewis Ship
On Sat, Apr 30, 2011 at 8:00 AM, Richard Hill wrote: > > You need to do the addition in java, something like: > > public String getIndexValue() { >  return "" + (count + 1); > } > or just: public int getIndexValue() { return count + 1; } Tapestry will quite happily do the int-to-string coercion

back button when logged out

2011-04-30 Thread Andreas Kerpe
Hi, i try to implement a logout feature like yahoo, squirrelmail, etc. That means, when you klick "logout", you are redirected to a logout page. When pressing the browsers back button, you are redirected to the login page again. I've tried to implement that with: @Inject private Response respo

Re: Arithemtic operations in tml file

2011-04-30 Thread Richard Hill
You need to do the addition in java, something like: public String getIndexValue() { return "" + (count + 1); } and in .tml ${indexValue} returning an int will prob work too. On Sat, 2011-04-30 at 18:56 +0400, Amr Mohamed Mahmoud Hassanien wrote: > Hi All, > > In the Code below, I want t

Arithemtic operations in tml file

2011-04-30 Thread Amr Mohamed Mahmoud Hassanien
Hi All, In the Code below, I want to type the order of the images starting from 1, as you know the index of the loop component starts from zero. Now the expression ${count+1} does not work either ${count}. Do you know any alternative? ${count}+1

Re: Static (html) pages won't render

2011-04-30 Thread Nikola Milikic
Oh, really sorry for the false alarm. I had some unnecessary servlet and filter mappings defined in my web.xml. It's ok now. Best, Nikola On Sat, Apr 30, 2011 at 1:22 AM, Howard Lewis Ship wrote: > Tapestry specifically doesn't handle requests for actual resources, > such as your test.html. Is