Re: T5 if component

2008-06-05 Thread maxthesecond
Thanks Filip for your answer I did as you said and worked OK. Though, relaying on the state of the property makes me feel less confident...(tipical I don't see where the value comes from paranoia) -- View this message in context: http://www.nabble.com/T5-if-component-tp17667375p17673104.html

Re: T5 if component

2008-06-05 Thread Marcelo Lotif
Hi, This is a known issue, there's a JIRA for it and it's marked to fix for the 5.1 version: https://issues.apache.org/jira/browse/TAPESTRY-1624 And i'm using the t5c library to do the ognl job: http://code.google.com/p/tapestry5-components/ http://87.193.218.134:8080/t5c-demo/ognlbindingpage

Re: T5 if component

2008-06-05 Thread Filip S. Adamsen
Hi, This doesn't really concern the If component, but rather the framework itself. You cannot call methods with arguments through the prop: binding prefix, at least not yet. What you should do is to make sure the current value of the loop is bound to a page property that you can check in a p

RE: T5 : if component help

2008-01-11 Thread Ville Virtanen
> Date: Fri, 11 Jan 2008 11:26:34 -0200> To: users@tapestry.apache.org> > Subject: Re: T5 : if component help> From: [EMAIL PROTECTED]> > On Fri, 11 > Jan 2008 04:33:43 -0200, Ville Virtanen > <[EMAIL PROTECTED]> wrote:> > > Hi > all,> > I need t

Re: T5 : if component help

2008-01-11 Thread Thiago H de Paula Figueiredo
On Fri, 11 Jan 2008 04:33:43 -0200, Ville Virtanen <[EMAIL PROTECTED]> wrote: Hi all, I need to test if a property in my page equals a value from static constant class. I have no clue if this can be done. I mean something like:test="selectedSubMenu.equals(@[EMAIL PROTECTED])"> I'm currentl

Re: T5 If component and static variables

2007-10-09 Thread Howard Lewis Ship
There's a couple of options here. One is to use a common base class that defines all of these getters. Create your own component that acts like an If but the tests is hard coded against the getUsesSetting() logic. Another option is to create a new binding prefix, i.e., Where the uses: prefix

Re: T5 If component and static variables

2007-10-09 Thread Daniel Jue
I knew this felt familiar; the issue came up a couple months ago, but with no solution at the time. This isn't a really a problem, it's a matter of convenience for programmers. The thread was: "T5: static page variables in templates" On 10/9/07, Daniel Jue <[EMAIL PROTECTED]> wrote: > Hi, I want

Re: T5:If component

2007-08-28 Thread Nick Westgate
Or, since that's not always convenient for your html: ... ... ... Cheers, Nick. Robin Helgelin wrote: On 8/28/07, Angelo Chen <[EMAIL PROTECTED]> wrote: Thanks, this works! i check the doc, seems there is no 'else' in this component like T4, right? It works like this: No

Re: T5:If component

2007-08-28 Thread Robin Helgelin
On 8/28/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Thanks, this works! i check the doc, seems there is no 'else' in this > component like T4, right? It works like this: Not logged in! -- regards, Robin

Re: T5:If component

2007-08-28 Thread Angelo Chen
Thanks, this works! i check the doc, seems there is no 'else' in this component like T4, right? Nick Westgate wrote: > > The If component's test parameter is a boolean: > http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html > > -- View this message in context: http:

Re: T5:If component

2007-08-28 Thread Nick Westgate
The If component's test parameter is a boolean: http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html You need to make your accessor non-private: public boolean getLoginned() { return true; } And the default binding is prop, so no funky OGNL-like stuff: