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-tp17667375p176
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
j(int nodeid){if(nodeid==nodeSelected) return true; return
false; }
Is there any way to do the trick?
--
View this message in context:
http://www.nabble.com/T5-if-component-tp17667375p17667375.html
Sent from the Tapestry - User mailing list archive at Nabbl
> 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
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: I'm currently learning to do
things after T4. (Hence the ognl in equals clause, which im not sure is even
relevant to T5, is it still using ogn
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:
I'm currently learning to do things after T4. (Hence the ognl in equals clause,
which im not sure is even relevant to T5, is it still using ogn
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
Hi, I wanted to try eliminating a bunch of getters in my Java class.
Right now I have something like this in my template:
And I have a getter that is
public boolean getShowYear() {
return this.getUsesSetting(ReportVariableEnum.FISCALYEARSINGLE);
}
I want to do something lik
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:
Hi,
how to use the component IF? I have this in the page class:
private String getLoginned() {
return "true";
}
then I want to refer to it from the html:
this will always cause an error that: does not contain a property named
'loginned'
--
View this message in context:
h
16 matches
Mail list logo