Re: if/else if component

2012-08-31 Thread karthi
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

Re: if/else if component

2012-08-31 Thread Thiago H de Paula Figueiredo
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

Re: if/else if component

2012-08-31 Thread Michael Prescott
> > > > -- > 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

Re: if/else if component

2012-08-31 Thread Christian Riedel
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

if/else if component

2012-08-31 Thread karthi
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

Re: IncludeJavaScriptLibrary doesn't work if component is included later

2011-11-14 Thread Paul Stanton
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

IncludeJavaScriptLibrary doesn't work if component is included later

2011-11-14 Thread Paul Stanton
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

Re: Q : IF component in tapestry 5 ?

2009-03-18 Thread Andy Pahne
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... ---

Re: IF component in tapestry 5 ?

2009-03-15 Thread dwi ardi irawan
thnx u for the information^_^v

Re: Q : IF component in tapestry 5 ?

2009-03-15 Thread dwi ardi irawan
thnx u. it works now -- http://www.dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"

Re: Q : IF component in tapestry 5 ?

2009-03-14 Thread Luther Baker
dailyChart = "D"; >>>monthlyChart = null; >>>yearlyChart = null; >>>}else if (chartType==ChartType.MONTHLY) { >>>dailyChart = null; >>>monthlyChart = "M"; >

Re: Q : IF component in tapestry 5 ?

2009-03-14 Thread Ulrich Stärk
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

Re: Q : IF component in tapestry 5 ?

2009-03-14 Thread Alex Kotchnev
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

Re: IF component in tapestry 5 ?

2009-03-14 Thread ningdh
ry users" Sent: Saturday, March 14, 2009 9:25 PM Subject: Re: IF component in tapestry 5 ? > @Persist("flash") > > what does "flash" mean ?? >

Re: IF component in tapestry 5 ?

2009-03-14 Thread dwi ardi irawan
@Persist("flash") what does "flash" mean ??

Re: IF component in tapestry 5 ?

2009-03-14 Thread dwi ardi irawan
It Works.Thnx you -- http://www.dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"

Re: IF component in tapestry 5 ?

2009-03-14 Thread ningdh
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

Q : IF component in tapestry 5 ?

2009-03-14 Thread dwi ardi irawan
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/>

Re: If component

2009-02-19 Thread Thiago H. de Paula Figueiredo
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&#

Re: If component

2009-02-19 Thread Davor Miku
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

Re: If component

2009-02-19 Thread Davor Miku
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:

Re: If component

2009-02-19 Thread Ulrich Stärk
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

Re: If component

2009-02-19 Thread Thiago H. de Paula Figueiredo
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 --

If component

2009-02-19 Thread Davor Miku
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

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-tp17667375p176

Re: T5 if component

2008-06-05 Thread Marcelo Lotif
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

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

T5 if component

2008-06-05 Thread maxthesecond
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

RE: T5: Using expression language in If component

2008-04-08 Thread Jonathan Barker
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

Re: T5: Using expression language in If component

2008-04-08 Thread Joshua Jackson
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

Re: T5: Using expression language in If component

2008-04-08 Thread Igor Drobiazko
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

T5: Using expression language in If component

2008-04-08 Thread Joshua Jackson
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

Re: updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-04 Thread caarney
> 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

Re: updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-02 Thread Igor Drobiazko
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 >

Re: updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-02 Thread Andy Pahne
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: --

Re: updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-02 Thread caarney
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

Re: updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-02 Thread Igor Drobiazko
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

updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-02 Thread caarney
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

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

T5 : if component help

2008-01-11 Thread Ville Virtanen
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

T5 : if component help

2008-01-11 Thread Ville Virtanen
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

Re: expressions in "If" component?

2007-11-15 Thread Howard Lewis Ship
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

[Tap 4.1.3] multiple ognl evaluation problem (was Re: [Tap 4.1.2] Problem with repeated calls to an If component)

2007-11-02 Thread Aaron Kaminsky
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

Re: Checking null value using If component on UI

2007-10-23 Thread Marcos Chicote
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

Checking null value using If component on UI

2007-10-23 Thread Joshua Jackson
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

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

T5 If component and static variables

2007-10-09 Thread Daniel Jue
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

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:

T5:If component

2007-08-28 Thread Angelo Chen
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

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Jesse Kuhnert
/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

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Daniel Jue
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! > >

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Jesse Kuhnert
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

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Andreas Andreou
, 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

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Daniel Jue
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

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Daniel Jue
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

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Daniel Jue
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

Re: [Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Tony Nelson
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

[Tap 4.1.2] Problem with repeated calls to an If component

2007-05-17 Thread Daniel Jue
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

If-component and T4.1.2-Snapshot

2007-03-28 Thread Patrick Klein
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

Re: Multiple components error with an If component (Help!)

2007-02-15 Thread Howard Lewis Ship
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

Multiple components error with an If component (Help!)

2007-02-15 Thread Daniel Anguita O.
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

Re: no way to put in @If component if (index % value) == true?

2006-07-31 Thread Nick Westgate
> 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. --

Re: no way to put in @If component if (index % value) == true?

2006-07-31 Thread Josh Long
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/

no way to put in @If component if (index % value) == true?

2006-07-31 Thread Sam Gendler
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