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
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
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
> 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
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
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
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
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
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
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:
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:
11 matches
Mail list logo