Thanks for your replies..
@Michael: Case technique is really a helpful one, it suits.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/if-else-if-component-tp5715941p5715947.html
Sent from the Tapestry - User mailing list archive at Nabble.com
I think the else parameter of the If component was only created because,
at that time, the prop binding didn't support the ! operator yet.
--
Thiago H. de Paula Figueiredo
-
To unsubscribe, e-mail: user
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/if-else-if-component-tp5715941.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To uns
ssage in context:
> http://tapestry.1045711.n5.nabble.com/if-else-if-component-tp5715941.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@ta
Hi everyone,
I have used if/else in tapestry, but can anyone tell me how to achieve
if/else if/else if/else
Thanks in advance
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/if-else-if-component-tp5715941.html
Sent from the Tapestry - User mailing list archive at
my mistake! i had a syntax error in the js. IncludeJavaScriptLibrary
works as expected!
On 15/11/2011 6:19 PM, Paul Stanton wrote:
Hi all,
I'm still using T5.1, so please keep that in mind...
I have a component which is hidden (via a t:loop which starts with
zero elements) at the initial pag
Hi all,
I'm still using T5.1, so please keep that in mind...
I have a component which is hidden (via a t:loop which starts with zero
elements) at the initial page render.
Later, via ajax/zone updates, the t:loop is reloaded with elements, each
of which create an instance of my component.
T
Ulrich Stärk schrieb:
The test will be true if the provided test returns true or in case of
an object return type that object is not null.
Or a collection which is not empty.
What about arrays? True, if array is not null, true, if array.size > 0?
I am not sure...
---
thnx u for the information^_^v
thnx u. it works now
--
http://www.dwiardiirawan.com
"cos everyone could be extraordinary...lighten up !"
dailyChart = "D";
>>>monthlyChart = null;
>>>yearlyChart = null;
>>>}else if (chartType==ChartType.MONTHLY) {
>>>dailyChart = null;
>>>monthlyChart = "M";
>
y will
become "D" and it should render this block and output "AAA"
AAA
is there something wrong wih my code or my perception of if component in
tapestry 5
thnx u
dwi ardi irawan - 'penyihirkecil'
http://www.dwiardiirawan.com <http://dwiardiirawan.blogs
should work but it doesn't
> when i choose "Daily" on select menu that means dailyChart property will
> become "D" and it should render this block and output "AAA"
>
> AAA
>
>
> is there something wrong wih my code or my perception o
ry users"
Sent: Saturday, March 14, 2009 9:25 PM
Subject: Re: IF component in tapestry 5 ?
> @Persist("flash")
>
> what does "flash" mean ??
>
@Persist("flash")
what does "flash" mean ??
It Works.Thnx you
--
http://www.dwiardiirawan.com
"cos everyone could be extraordinary...lighten up !"
This is not an issueof If component, but due to redirect after post.
In your case, because private String dailyChart, monthlyChart, yearlyChart are
not persisted and not in the activation context,
they will be set to default value null.
Solution: add flash persistent strategy like following and
and output "AAA"
AAA
is there something wrong wih my code or my perception of if component in
tapestry 5
thnx u
dwi ardi irawan - 'penyihirkecil'
http://www.dwiardiirawan.com <http://dwiardiirawan.blogspot.com/>
that or to throw exception?
False, the If component will call isInstanceOfA() in the page. Java's
instanceof operator does not throw exceptions: it returns a boolean
value.
My solution is the best one only if you have one or two of this tests.
Otherwise, Ulrich
Thank you both very much, both solutions work fine!
On Thu, Feb 19, 2009 at 8:45 AM, Davor Miku wrote:
> Are you sure this is going to work?
>
> If Foo is B, and I'm:
>
>
>
> B doesn't have isInstanceOfA().
>
> Is it going to false that or to throw exception?
>
>
>
> On Thu, Feb 19, 200
Are you sure this is going to work?
If Foo is B, and I'm:
B doesn't have isInstanceOfA().
Is it going to false that or to throw exception?
On Thu, Feb 19, 2009 at 8:41 AM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Thu, Feb 19, 2009 at 10:37 AM, Davor Miku wrote:
n Foo type to call
appropriate component (A,B or C):
Something like:
/* Here should be something like :
if(item insanceof A)
if(item insanceof B)
if(item insanceof C)
*/
As I know Tapestry If component is checking true/false on property, and
adding that properties to
On Thu, Feb 19, 2009 at 10:37 AM, Davor Miku wrote:
> So, how could I accomplish this?
Add methods to your page or component class:
public boolean isInstanceOfA() {
return item instanceof A;
}
public boolean isInstanceOfB() {
return item instanceof B;
}
--
Thiago
--
nt in Index.tml to loop over foos, and based on Foo type to call
appropriate component (A,B or C):
Something like:
/* Here should be something like :
if(item insanceof A)
if(item insanceof B)
if(item insanceof C)
*/
As I know Tapestry If component is checking true/fal
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
ognlbindingpage
2008/6/5 Filip S. Adamsen <[EMAIL PROTECTED]>:
> 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 sho
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
Is it possible to send parameters to the if component?
I'm in a loop component and I would like to do something like this:
${node.name}
${node.name}
And then in the java code:
boolean Test
om T4.
> -Original Message-
> From: Joshua Jackson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 08, 2008 9:44 AM
> To: Tapestry users
> Subject: Re: T5: Using expression language in If component
>
> Thanks for the confirmation Igor :)
>
> On 4/8/08, Igor Dro
pr 8, 2008 at 1:55 PM, Joshua Jackson <[EMAIL PROTECTED]>
> wrote:
>
> > Dear all,
> >
> > Is it possible to use expression language with If component as in JSP?
> >
> > Thanks in advance
--
Let's s
use expression language with If component as in JSP?
>
> Thanks in advance
>
> --
> Let's show the world what we've got.
>
> Blog: http://joshuajava.wordpress.com/
>
> -
> To unsubscribe, e-ma
Dear all,
Is it possible to use expression language with If component as in JSP?
Thanks in advance
--
Let's show the world what we've got.
Blog: http://joshuajava.wordpress.com/
-
To unsubscribe, e-mail: [EMAIL
> response, it fails if the template is not XHTML.
>
--
View this message in context:
http://www.nabble.com/updateComponent-doesn%27t-work-if-component-contains-HTML-BR-tag-%284.1.2%29-tp16445844p16490312.html
Sent from the Tapestry - User mailing list arch
ied
> somewhere?
>
>
> Igor Drobiazko wrote:
> >
> > please close the tag:
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/updateComponent-doesn%27t-work-if-component-contains-HTML-BR-tag-%284.1.2%29-tp16445844p16446889.html
>
I had the same problem. It's not only unclosed tags, but also
and others. It works with an unclossed tag. Don't know why, but
it's not specified anywhere.
Igor Drobiazko schrieb:
please close the tag:
On Wed, Apr 2, 2008 at 11:13 AM, caarney <[EMAIL PROTECTED]> wrote:
--
That works, thanks.
Does it mean that the component must be in XHTML? Is it specified somewhere?
Igor Drobiazko wrote:
>
> please close the tag:
>
>
--
View this message in context:
http://www.nabble.com/updateComponent-doesn%27t-work-if-component-contains-HTML-BR-tag
t; Can somebody reproduce this behaviour? Is it a bug?
>
>
>
> --
> View this message in context:
> http://www.nabble.com/updateComponent-doesn%27t-work-if-component-contains-HTML-BR-tag-%284.1.2%29-tp16445844p16445844.html
> Sent from the Tapestry - User mailing list archiv
ak tag into the component:
...
...
In this case, the component is not updated any more.
Can somebody reproduce this behaviour? Is it a bug?
--
View this message in context:
http://www.nabble.com/updateComponent-doesn%27t-work-if-component-contains-HTML-BR-tag-%284.1.2%29-tp1644584
> 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
ov 15, 2007 4:48 AM, Brandon Staton <[EMAIL PROTECTED]> wrote:
>
>
>
> Howard,
>
> Can you do things like && and || in your test parameter of the "If"
> component? I'm not having much luck with that and don't want to have to
> write diffe
ge dynamic form that has
> > > lots of IFs, and I can see the same queries being called 3
times or
> > > more. =(
> > > Everything still works, it's just about 3 times slower.
> > >
> > > If anyone has solved this problem please let me know
In Tapestry 4 try
On 10/23/07, Joshua Jackson <[EMAIL PROTECTED]> wrote:
>
> Dear all,
>
> How do I check whether an instance is null on user interface using the
> If component? I tried this:
>
>
> but it doesn't work.
>
> Thanks in advance :)
&g
Dear all,
How do I check whether an instance is null on user interface using the
If component? I tried this:
but it doesn't work.
Thanks in advance :)
--
What you want today, may not exist tommorrow
Blog: http://joshuajava.wordpres
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
/17/07, Daniel Jue <[EMAIL PROTECTED]> wrote:
> > >
> > > Ugh. This is a big pain now. I have a huge dynamic form that has
> > > lots of IFs, and I can see the same queries being called 3 times or
> > > more. =(
> > > Everything still works, it's just ab
ig pain now. I have a huge dynamic form that has
> > lots of IFs, and I can see the same queries being called 3 times or
> > more. =(
> > Everything still works, it's just about 3 times slower.
> >
> > If anyone has solved this problem please let me know!
> >
g called 3 times or
> more. =(
> Everything still works, it's just about 3 times slower.
>
> If anyone has solved this problem please let me know!
>
> On 5/17/07, Daniel Jue <[EMAIL PROTECTED]> wrote:
> > Here is another example when more than one IF component i
, it's just about 3 times slower.
If anyone has solved this problem please let me know!
On 5/17/07, Daniel Jue <[EMAIL PROTECTED]> wrote:
> Here is another example when more than one IF component is used.
>
> It seems the conditional for the first IF gets called 3 times, then
&g
ROTECTED]> wrote:
Here is another example when more than one IF component is used.
It seems the conditional for the first IF gets called 3 times, then
the others just get called once.
plain.java:
package com.phy6.app;
import org.apache.tapestry.ICompon
Here is another example when more than one IF component is used.
It seems the conditional for the first IF gets called 3 times, then
the others just get called once.
plain.java:
package com.phy6.app;
import org.apache.tapestry.IComponent;
import org.apache.tapestry.annotations.Component
Glad to know I'm not alone. I've simplified the problem code even
more, to eliminate any confusion:
plain.java:
package com.phy6.app;
import org.apache.tapestry.IComponent;
import org.apache.tapestry.annotations.Component;
import org.apache.tapestry.annotations.InitialValue;
import org.apache.t
s again
Tony
Daniel Jue wrote:
Hi,
I experienced this problem after upgrading from Tap 4.1 to Tap 4.1.2
Snapshot.
The problem is that I have an IF component that is being called 3
times, when it should only be called once.
I have extracted the problem into a simpler page for examination:
pl
Hi,
I experienced this problem after upgrading from Tap 4.1 to Tap 4.1.2 Snapshot.
The problem is that I have an IF component that is being called 3
times, when it should only be called once.
I have extracted the problem into a simpler page for examination:
plain.page:
http
Hello,
i'm experiencing some trouble here with Tapestry4.1.2 SNAPSHOT and
ognl-expressions.
I've got the following construct in a table-component in my template:
value="ognl:orderPosition.price.netPrice" size="6"
translator="translator:bisoNumber,pattern=#0.00#"
displayName="message:P
Anguita O. <[EMAIL PROTECTED]> wrote:
Hi all,
I'm trying to show different components with the same id using an If
component, but when I run the app it says that i have multiple
components with the same id, so it throws exception error.
For example:
Why i'm trying to
Hi all,
I'm trying to show different components with the same id using an If
component, but when I run the app it says that i have multiple
components with the same id, so it throws exception error.
For example:
value="ognl:person"/>
Why i'm trying
> I suppose I could put use an @Insert statement, but
that seems like an evil kludge.
You could wrap it up into a component if it makes you feel better,
but I don't think you would be violating any commandments here. ;-)
Cheers,
Nick.
--
http://www.t-deli.com/ theres a useful class called the Splitter.
You need only download it, and then setup a bean in your page. The
splitter lets you take a flat collection and produce x collections of
n length each. That way, youre iterating over a collection of
collections.
Peace,
Josh
On 7/
The subject pretty much says it all. I am iterating over values I
want in two columns. For reasons best explained by our html designer,
they are in a table. So after each 12 items, I want to close the
current td, open another td, and then continue. But @If won't let me
do that, because it is i
69 matches
Mail list logo