RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Jonathan Barker

Why are you trying to use Strings for your PropertySelectionModel?  This
seems more like a case where you would want to use a list of Integers (there
are a few PropertySelectionModel implementations floating around).

Then you make your tableSize property an Integer.


> -Original Message-
> From: Ken nashua [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 09, 2007 2:52 PM
> To: users@tapestry.apache.org
> Subject: RE: does T-4.1.* have a COUNT component?
> 
> 
> Folks, I still cannot get any coercian on this propertyselection
> 
> Can anyone elaborater on whats going on? Aren't we suppose to use this as-
> is in OGNL?
> 
> 
> 
> My condition keeps causing this exception...
> 
> 
>  For input string: "tableSize"
> 
> 
> 
>   java.lang.NumberFormatException
> 
> 
> 
>   For input string: "tableSize"
> 
> 
> 
> 
> 
> 
> 
> 
>   Stack Trace:
> 
> 
> 
> 
> 
> 
>   java.lang.NumberFormatException.forInputString(NumberFormatException
> .java:48)
>
java.lang.Long.parseLong(Long.java:403)
>
java.lang.Long.parseLong(Long.java:461)
>
ognl.OgnlOps.longValue(OgnlOps.java:220)
>
ognl.OgnlOps.remainder(OgnlOps.java:932)
> 
>   ognl.ASTRemainder.getValueBody(ASTRemainder.java:51)
> 
>   ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)
> 
>   ognl.SimpleNode.getValue(SimpleNode.java:246)
>
ognl.ASTEq.getValueBody(ASTEq.java:50)
> 
>   ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)
> 
>   ognl.SimpleNode.getValue(SimpleNode.java:246)
>       ognl.Ognl.getValue(Ognl.java:494)
> 
> Best regards
> Ken in nashua
> 
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: does T-4.1.* have a COUNT component?
> Date: Tue, 9 Oct 2007 14:08:57 -0400
> 
> 
> 
> 
> 
> 
> 
> 
> Just one final help ques...
> 
> I switched to PropertySelection
> 
> my condition now always yeilds a divide by zero exception.
> 
> Since my propertlselection is strings... how do i model my condition now?
> condition="ognl:(index % tableSize)  ???
> 
> 
> 
> 
> 
> 
> 
>  model="ognl:@[EMAIL PROTECTED]"
> value="ognl:tableSize"
> onchange="javascript:this.form.events.refresh();">
> 
> 
>         
>     
> 
> 
> 
> 
> 
>  value="ognl:currentObject" index="ognl:index">
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> Best regards
> Ken in nashua
> 
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: does T-4.1.* have a COUNT component?
> Date: Tue, 9 Oct 2007 11:08:14 -0400
> 
> 
> 
> 
> 
> 
> 
> 
> Thanks Rob... I got it to work... here is the template logic.
> 
> 
>  value="ognl:currentObject" index="ognl:index">
> 
>         
> 
> 
> 
> 
> 
> 
> 
> 
> Best regards
> Ken in nashua
> 
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: does T-4.1.* have a COUNT component?
> Date: Tue, 9 Oct 2007 10:59:17 -0400
> 
> 
> 
> 
> 
> 
> 
> 
> I will try that Rob... so your saying I do not need the ELSE component?
> 
> Best regards
> Ken in nashua
> 
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: does T-4.1.* have a COUNT component?
> Date: Tue, 9 Oct 2007 10:36:01 -0400
> 
> 
> 
> 
> 
> 
> 
> 
> Ok, I am trying this now... hopefully it will work...
> 
> 
>  value="ognl:currentObject" index="ognl:index">
> 
> 
> 
> 
>         
>     
> 
> 
> 
> 
> Best regards
> Ken in nashua
> 
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: does T-4.1.* have a COUNT component?
> Date: Tue, 9 Oct 2007 10:33:33 -0400
> 
> 
> 
> 
> 
> 
> 
> 
> Ok, now I have the template PARSE problem... on the  line... this
> is what ROB was referring to in earlier post.
> 
> Why hasn't tapestry fixed this? Is there a way around it?
> 
> 
>  value="ognl:currentObject" index="ognl:index">
> 
> 
>

Re: does T-4.1.* have a COUNT component?

2007-10-09 Thread Igor Drobiazko
You put a string into a mathematical expression. Look at the
NumberFormatExpression  :)

setTableSize(tableSizeModel.getOption(0).toString()); <String


On 10/9/07, Ken nashua <[EMAIL PROTECTED]> wrote:
>
>
> Folks, I still cannot get any coercian on this propertyselection
>
> Can anyone elaborater on whats going on? Aren't we suppose to use this
> as-is in OGNL?
>
> 
>
> My condition keeps causing this exception...
>
>
>   For input string: "tableSize"
>
>
>
>java.lang.NumberFormatException
>
>
>
>For input string: "tableSize"
>
>
>
>
>
>
>
>
>Stack Trace:
>
>
>
>
>
>
> java.lang.NumberFormatException.forInputString(NumberFormatException.java
> :48)
>java.lang.Long.parseLong(Long.java
> :403)
>java.lang.Long.parseLong(Long.java
> :461)
>ognl.OgnlOps.longValue(OgnlOps.java
> :220)
>ognl.OgnlOps.remainder(OgnlOps.java
> :932)
>ognl.ASTRemainder.getValueBody(
> ASTRemainder.java:51)
>
> ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)
>ognl.SimpleNode.getValue(
> SimpleNode.java:246)
>ognl.ASTEq.getValueBody(ASTEq.java
> :50)
>
> ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)
>ognl.SimpleNode.getValue(
> SimpleNode.java:246)
>    ognl.Ognl.getValue(Ognl.java:494)
>
> Best regards
> Ken in nashua
>
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: does T-4.1.* have a COUNT component?
> Date: Tue, 9 Oct 2007 14:08:57 -0400
>
>
>
>
>
>
>
>
> Just one final help ques...
>
> I switched to PropertySelection
>
> my condition now always yeilds a divide by zero exception.
>
> Since my propertlselection is strings... how do i model my condition now?
> condition="ognl:(index % tableSize)  ???
>
>
> 
>
>
>
>
> value="ognl:tableSize" onchange="javascript:this.form.events.refresh
> ();">
>
>        
>        
>
> 
>
> 
>
>
> value="ognl:currentObject" index="ognl:index">
>
>
>
>   
>
>
>
> 
>
>
>
> Best regards
> Ken in nashua
>
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: does T-4.1.* have a COUNT component?
> Date: Tue, 9 Oct 2007 11:08:14 -0400
>
>
>
>
>
>
>
>
> Thanks Rob... I got it to work... here is the template logic.
>
> 
> value="ognl:currentObject" index="ognl:index">
>    
>    
>
>
>
>
>
>
> 
>
> Best regards
> Ken in nashua
>
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: does T-4.1.* have a COUNT component?
> Date: Tue, 9 Oct 2007 10:59:17 -0400
>
>
>
>
>
>
>
>
> I will try that Rob... so your saying I do not need the ELSE component?
>
> Best regards
> Ken in nashua
>
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: does T-4.1.* have a COUNT component?
> Date: Tue, 9 Oct 2007 10:36:01 -0400
>
>
>
>
>
>
>
>
> Ok, I am trying this now... hopefully it will work...
>
> 
> value="ognl:currentObject" index="ognl:index">
>
>
>    
>    
>    
>
>
>
> 
>
> Best regards
> Ken in nashua
>
> From: [EMAIL PROTECTED]
> To: users@tapestry.apache.org
> Subject: RE: does T-4.1.* have a COUNT component?
> Date: Tue, 9 Oct 2007 10:33:33 -0400
>
>
>
>
>
>
>
>
> Ok, now I have the template PARSE problem... on the  line... this
> is what ROB was referring to in earlier post.
>
> Why hasn't tapestry fixed this? Is there a way around it?
>
> 
> value="ognl:currentObject" index="ognl:index">
>
>
>
>render image stuff
>
> 
>
> Best regards
> Ken in nashua
>
> From: [EMAIL PROTECTED]
> To: us

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

Folks, I still cannot get any coercian on this propertyselection

Can anyone elaborater on whats going on? Aren't we suppose to use this as-is in 
OGNL?



My condition keeps causing this exception...


   For input string: "tableSize"



java.lang.NumberFormatException



For input string: "tableSize"








Stack Trace:






java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
java.lang.Long.parseLong(Long.java:403)
java.lang.Long.parseLong(Long.java:461)
ognl.OgnlOps.longValue(OgnlOps.java:220)
ognl.OgnlOps.remainder(OgnlOps.java:932)

ognl.ASTRemainder.getValueBody(ASTRemainder.java:51)

ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)

ognl.SimpleNode.getValue(SimpleNode.java:246)
ognl.ASTEq.getValueBody(ASTEq.java:50)

ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:202)

ognl.SimpleNode.getValue(SimpleNode.java:246)
ognl.Ognl.getValue(Ognl.java:494)

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 14:08:57 -0400








Just one final help ques...

I switched to PropertySelection

my condition now always yeilds a divide by zero exception.

Since my propertlselection is strings... how do i model my condition now?
condition="ognl:(index % tableSize)  ???








 












   







Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 11:08:14 -0400








Thanks Rob... I got it to work... here is the template logic.













Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:59:17 -0400








I will try that Rob... so your saying I do not need the ELSE component?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:36:01 -0400








Ok, I am trying this now... hopefully it will work...













Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:33:33 -0400








Ok, now I have the template PARSE problem... on the  line... this is 
what ROB was referring to in earlier post.

Why hasn't tapestry fixed this? Is there a way around it?






render image stuff



Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:26:55 -0400








I am giving this a shot...










Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:20:40 -0400








OK given 9 elements...

0   1   2   3   4   5   6   7   8   9  

Here is the case logic...
1. I need to render a  on the 1st of every 3rd.
2. I need to render a  on 3rd of every 3rd

I am not sure if "ognl:(index % 3) == 0" even qualifies for any of these but I 
need two cases.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:16:23 -0400








Richard... that worked... (or at least the condition is functioning). Thanks.

BUT...

Only half the rows contain 2 elements. So the logic is working only half way. 
To get this proper, there needs to be a startOfRow condition and an endOfRow 
condition

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

oops... bad init call

This I think will fix it...
setTableSize(tableSizeModel.getOption(0).toString());

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 14:12:23 -0400








Here is my static model... (just strings of numbers)
public static final IPropertySelectionModel tableSizeModel = new 
StringPropertySelectionModel(new String[] {
"1", "2", "3", "4", "5", "10", "25", "50", "100", "500", "1000", 
"2500", "5000", "1", "25000", "5" });

Then I set it up during initialize render.

@Override
protected void prepareForRender(IRequestCycle cycle)
{
super.prepareForRender(cycle);

setCollection(loadCollection(getCollectionType()));
if ( getTableSize() == null )
setTableSize(tableSizeModel.getValue(0));
}

Does the string in the condition need to be coerced somehow?

Any ideas?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 14:08:57 -0400








Just one final help ques...

I switched to PropertySelection

my condition now always yeilds a divide by zero exception.

Since my propertlselection is strings... how do i model my condition now?
condition="ognl:(index % tableSize)  ???








 











        
           







Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 11:08:14 -0400








Thanks Rob... I got it to work... here is the template logic.





        
    
    
    




Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:59:17 -0400








I will try that Rob... so your saying I do not need the ELSE component?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:36:01 -0400








Ok, I am trying this now... hopefully it will work...




        
        
    
    





Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:33:33 -0400








Ok, now I have the template PARSE problem... on the  line... this is 
what ROB was referring to in earlier post.

Why hasn't tapestry fixed this? Is there a way around it?


    
    
    
    
render image stuff



Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:26:55 -0400








I am giving this a shot...




        
        




Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:20:40 -0400








OK given 9 elements...

0   1   2   3   4   5   6   7   8   9  

Here is the case logic...
1. I need to render a  on the 1st of every 3rd.
2. I need to render a  on 3rd of every 3rd

I am not sure if "ognl:(index % 3) == 0" even qualifies for any of these but I 
need two cases.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:16:23 -0400








Richard... that worked... (or at least the condition is functioning). Thanks.

BUT...

Only half the rows contain 2 elements. So the logic is working only half way. 
To get this proper, there needs to be a startOfRow condition and an endOfRow 
condition.

Can anyone elaborate on a formula for that? Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:02:09 -0400








I guess I am trying to determine what the two conditions are for rendering. 
There is a startOfRow  condition and then an endOfRow  condition.

Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain wh

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

Here is my static model... (just strings of numbers)
public static final IPropertySelectionModel tableSizeModel = new 
StringPropertySelectionModel(new String[] {
"1", "2", "3", "4", "5", "10", "25", "50", "100", "500", "1000", 
"2500", "5000", "1", "25000", "5" });

Then I set it up during initialize render.

@Override
protected void prepareForRender(IRequestCycle cycle)
{
super.prepareForRender(cycle);

setCollection(loadCollection(getCollectionType()));
if ( getTableSize() == null )
setTableSize(tableSizeModel.getValue(0));
}

Does the string in the condition need to be coerced somehow?

Any ideas?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 14:08:57 -0400








Just one final help ques...

I switched to PropertySelection

my condition now always yeilds a divide by zero exception.

Since my propertlselection is strings... how do i model my condition now?
condition="ognl:(index % tableSize)  ???








 











        
           







Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 11:08:14 -0400








Thanks Rob... I got it to work... here is the template logic.





        
    
    
    




Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:59:17 -0400








I will try that Rob... so your saying I do not need the ELSE component?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:36:01 -0400








Ok, I am trying this now... hopefully it will work...




        
        
    
    





Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:33:33 -0400








Ok, now I have the template PARSE problem... on the  line... this is 
what ROB was referring to in earlier post.

Why hasn't tapestry fixed this? Is there a way around it?


    
    
    
    
render image stuff



Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:26:55 -0400








I am giving this a shot...




        
        




Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:20:40 -0400








OK given 9 elements...

0   1   2   3   4   5   6   7   8   9  

Here is the case logic...
1. I need to render a  on the 1st of every 3rd.
2. I need to render a  on 3rd of every 3rd

I am not sure if "ognl:(index % 3) == 0" even qualifies for any of these but I 
need two cases.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:16:23 -0400








Richard... that worked... (or at least the condition is functioning). Thanks.

BUT...

Only half the rows contain 2 elements. So the logic is working only half way. 
To get this proper, there needs to be a startOfRow condition and an endOfRow 
condition.

Can anyone elaborate on a formula for that? Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:02:09 -0400








I guess I am trying to determine what the two conditions are for rendering. 
There is a startOfRow  condition and then an endOfRow  condition.

Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

Just one final help ques...

I switched to PropertySelection

my condition now always yeilds a divide by zero exception.

Since my propertlselection is strings... how do i model my condition now?
condition="ognl:(index % tableSize)  ???








 












   







Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 11:08:14 -0400








Thanks Rob... I got it to work... here is the template logic.













Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:59:17 -0400








I will try that Rob... so your saying I do not need the ELSE component?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:36:01 -0400








Ok, I am trying this now... hopefully it will work...













Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:33:33 -0400








Ok, now I have the template PARSE problem... on the  line... this is 
what ROB was referring to in earlier post.

Why hasn't tapestry fixed this? Is there a way around it?






render image stuff



Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:26:55 -0400








I am giving this a shot...










Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:20:40 -0400








OK given 9 elements...

0   1   2   3   4   5   6   7   8   9  

Here is the case logic...
1. I need to render a  on the 1st of every 3rd.
2. I need to render a  on 3rd of every 3rd

I am not sure if "ognl:(index % 3) == 0" even qualifies for any of these but I 
need two cases.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:16:23 -0400








Richard... that worked... (or at least the condition is functioning). Thanks.

BUT...

Only half the rows contain 2 elements. So the logic is working only half way. 
To get this proper, there needs to be a startOfRow condition and an endOfRow 
condition.

Can anyone elaborate on a formula for that? Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:02:09 -0400








I guess I am trying to determine what the two conditions are for rendering. 
There is a startOfRow  condition and then an endOfRow  condition.

Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component or the 
condition is bogus to render 3 rows.

Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Peek-a-boo FREE Tricks & Treats for You! Get 'em!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Climb to the top of the charts!  Play Sta

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

Thanks Rob... I got it to work... here is the template logic.













Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:59:17 -0400








I will try that Rob... so your saying I do not need the ELSE component?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:36:01 -0400








Ok, I am trying this now... hopefully it will work...













Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:33:33 -0400








Ok, now I have the template PARSE problem... on the  line... this is 
what ROB was referring to in earlier post.

Why hasn't tapestry fixed this? Is there a way around it?






render image stuff



Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:26:55 -0400








I am giving this a shot...










Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:20:40 -0400








OK given 9 elements...

0   1   2   3   4   5   6   7   8   9  

Here is the case logic...
1. I need to render a  on the 1st of every 3rd.
2. I need to render a  on 3rd of every 3rd

I am not sure if "ognl:(index % 3) == 0" even qualifies for any of these but I 
need two cases.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:16:23 -0400








Richard... that worked... (or at least the condition is functioning). Thanks.

BUT...

Only half the rows contain 2 elements. So the logic is working only half way. 
To get this proper, there needs to be a startOfRow condition and an endOfRow 
condition.

Can anyone elaborate on a formula for that? Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:02:09 -0400








I guess I am trying to determine what the two conditions are for rendering. 
There is a startOfRow  condition and then an endOfRow  condition.

Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component or the 
condition is bogus to render 3 rows.

Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Peek-a-boo FREE Tricks & Treats for You! Get 'em!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Peek-a-boo FREE Tricks & Treats for You! Get 'em!

_
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

I will try that Rob... so your saying I do not need the ELSE component?

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:36:01 -0400








Ok, I am trying this now... hopefully it will work...













Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:33:33 -0400








Ok, now I have the template PARSE problem... on the  line... this is 
what ROB was referring to in earlier post.

Why hasn't tapestry fixed this? Is there a way around it?






render image stuff



Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:26:55 -0400








I am giving this a shot...










Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:20:40 -0400








OK given 9 elements...

0   1   2   3   4   5   6   7   8   9  

Here is the case logic...
1. I need to render a  on the 1st of every 3rd.
2. I need to render a  on 3rd of every 3rd

I am not sure if "ognl:(index % 3) == 0" even qualifies for any of these but I 
need two cases.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:16:23 -0400








Richard... that worked... (or at least the condition is functioning). Thanks.

BUT...

Only half the rows contain 2 elements. So the logic is working only half way. 
To get this proper, there needs to be a startOfRow condition and an endOfRow 
condition.

Can anyone elaborate on a formula for that? Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:02:09 -0400








I guess I am trying to determine what the two conditions are for rendering. 
There is a startOfRow  condition and then an endOfRow  condition.

Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component or the 
condition is bogus to render 3 rows.

Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Peek-a-boo FREE Tricks & Treats for You! Get 'em!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

_
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

Re: does T-4.1.* have a COUNT component?

2007-10-09 Thread Robert Zeigler
You're still going to get parse errors. The trick around the parse  
errors is to use the insert component.



Definitely a kludge. But it will get the job done.

Cheers,

Robert

On Oct 9, 2007, at 10/99:36 AM , Ken nashua wrote:



Ok, I am trying this now... hopefully it will work...


value="ognl:currentObject" index="ognl:index">











Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:33:33 -0400








Ok, now I have the template PARSE problem... on the   
line... this is what ROB was referring to in earlier post.


Why hasn't tapestry fixed this? Is there a way around it?


value="ognl:currentObject" index="ognl:index">




render image stuff



Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:26:55 -0400








I am giving this a shot...


value="ognl:currentObject" index="ognl:index">








Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:20:40 -0400








OK given 9 elements...

0   1   2   3   4   5   6   7   8   9

Here is the case logic...
1. I need to render a  on the 1st of every 3rd.
2. I need to render a  on 3rd of every 3rd

I am not sure if "ognl:(index % 3) == 0" even qualifies for any of  
these but I need two cases.


Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:16:23 -0400








Richard... that worked... (or at least the condition is  
functioning). Thanks.


BUT...

Only half the rows contain 2 elements. So the logic is working only  
half way. To get this proper, there needs to be a startOfRow  
condition and an endOfRow condition.


Can anyone elaborate on a formula for that? Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:02:09 -0400








I guess I am trying to determine what the two conditions are for  
rendering. There is a startOfRow  condition and then an  
endOfRow  condition.


Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.

value="ognl:currentObject" index="ognl:index">



true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component  
or the condition is bogus to render 3 rows.


Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated  
indices between collection and loop.


All I want to do is increment a count within the template and act  
on it when it reaches a certain value and then reset it.


IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word  
scramble challenge with star power. Play Now!


Peek-a-boo FREE Tricks & Treats for You! Get 'em!

Windows Live Hotmail and Microsoft Office Outlook – together at  
last. Get it now!


Climb to the top of the charts!  Play Star Shuffle:  the word  
scramble challenge with star power. Play Now!


Climb to the top of the charts!  Play Star Shuffle:  the word  
scramble challenge with star power. Play Now!


Climb to the top of the charts!  Play Star Shuffle:  the word  
scramble challenge with star power. Play Now!


Help yourself to FREE treats served up daily at the Messenger Café.  
Stop by today!


_
Windows Live Hotmail and Microsoft Office Outlook – together at  
last.  Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx? 
pid=CL100626971033



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

Ok, I am trying this now... hopefully it will work...













Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:33:33 -0400








Ok, now I have the template PARSE problem... on the  line... this is 
what ROB was referring to in earlier post.

Why hasn't tapestry fixed this? Is there a way around it?






render image stuff



Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:26:55 -0400








I am giving this a shot...










Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:20:40 -0400








OK given 9 elements...

0   1   2   3   4   5   6   7   8   9  

Here is the case logic...
1. I need to render a  on the 1st of every 3rd.
2. I need to render a  on 3rd of every 3rd

I am not sure if "ognl:(index % 3) == 0" even qualifies for any of these but I 
need two cases.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:16:23 -0400








Richard... that worked... (or at least the condition is functioning). Thanks.

BUT...

Only half the rows contain 2 elements. So the logic is working only half way. 
To get this proper, there needs to be a startOfRow condition and an endOfRow 
condition.

Can anyone elaborate on a formula for that? Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:02:09 -0400








I guess I am trying to determine what the two conditions are for rendering. 
There is a startOfRow  condition and then an endOfRow  condition.

Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component or the 
condition is bogus to render 3 rows.

Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Peek-a-boo FREE Tricks & Treats for You! Get 'em!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today!

_
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it 
now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

Ok, now I have the template PARSE problem... on the  line... this is 
what ROB was referring to in earlier post.

Why hasn't tapestry fixed this? Is there a way around it?






render image stuff



Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:26:55 -0400








I am giving this a shot...










Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:20:40 -0400








OK given 9 elements...

0   1   2   3   4   5   6   7   8   9  

Here is the case logic...
1. I need to render a  on the 1st of every 3rd.
2. I need to render a  on 3rd of every 3rd

I am not sure if "ognl:(index % 3) == 0" even qualifies for any of these but I 
need two cases.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:16:23 -0400








Richard... that worked... (or at least the condition is functioning). Thanks.

BUT...

Only half the rows contain 2 elements. So the logic is working only half way. 
To get this proper, there needs to be a startOfRow condition and an endOfRow 
condition.

Can anyone elaborate on a formula for that? Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:02:09 -0400








I guess I am trying to determine what the two conditions are for rendering. 
There is a startOfRow  condition and then an endOfRow  condition.

Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component or the 
condition is bogus to render 3 rows.

Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Peek-a-boo FREE Tricks & Treats for You! Get 'em!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

_
Help yourself to FREE treats served up daily at the Messenger Café. Stop by 
today.
http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

I am giving this a shot...










Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:20:40 -0400








OK given 9 elements...

0   1   2   3   4   5   6   7   8   9  

Here is the case logic...
1. I need to render a  on the 1st of every 3rd.
2. I need to render a  on 3rd of every 3rd

I am not sure if "ognl:(index % 3) == 0" even qualifies for any of these but I 
need two cases.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:16:23 -0400








Richard... that worked... (or at least the condition is functioning). Thanks.

BUT...

Only half the rows contain 2 elements. So the logic is working only half way. 
To get this proper, there needs to be a startOfRow condition and an endOfRow 
condition.

Can anyone elaborate on a formula for that? Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:02:09 -0400








I guess I am trying to determine what the two conditions are for rendering. 
There is a startOfRow  condition and then an endOfRow  condition.

Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component or the 
condition is bogus to render 3 rows.

Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Peek-a-boo FREE Tricks & Treats for You! Get 'em!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

OK given 9 elements...

0   1   2   3   4   5   6   7   8   9  

Here is the case logic...
1. I need to render a  on the 1st of every 3rd.
2. I need to render a  on 3rd of every 3rd

I am not sure if "ognl:(index % 3) == 0" even qualifies for any of these but I 
need two cases.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:16:23 -0400








Richard... that worked... (or at least the condition is functioning). Thanks.

BUT...

Only half the rows contain 2 elements. So the logic is working only half way. 
To get this proper, there needs to be a startOfRow condition and an endOfRow 
condition.

Can anyone elaborate on a formula for that? Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:02:09 -0400








I guess I am trying to determine what the two conditions are for rendering. 
There is a startOfRow  condition and then an endOfRow  condition.

Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component or the 
condition is bogus to render 3 rows.

Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Peek-a-boo FREE Tricks & Treats for You! Get 'em!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

Richard... that worked... (or at least the condition is functioning). Thanks.

BUT...

Only half the rows contain 2 elements. So the logic is working only half way. 
To get this proper, there needs to be a startOfRow condition and an endOfRow 
condition.

Can anyone elaborate on a formula for that? Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 10:02:09 -0400








I guess I am trying to determine what the two conditions are for rendering. 
There is a startOfRow  condition and then an endOfRow  condition.

Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component or the 
condition is bogus to render 3 rows.

Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Peek-a-boo FREE Tricks & Treats for You! Get 'em!

Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it 
now!

_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct

RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

I guess I am trying to determine what the two conditions are for rendering. 
There is a startOfRow  condition and then an endOfRow  condition.

Thanks for any tips.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: RE: does T-4.1.* have a COUNT component?
Date: Tue, 9 Oct 2007 09:55:07 -0400








Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component or the 
condition is bogus to render 3 rows.

Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

Peek-a-boo FREE Tricks & Treats for You! Get 'em!

_
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it 
now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033

Re: does T-4.1.* have a COUNT component?

2007-10-09 Thread Richard Kirby

Try condition="ognl:(index % 3) == 0"

Richard.

Ken nashua wrote:

Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component or the 
condition is bogus to render 3 rows.

Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

_
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
  



--

CAPDM Limited
Registered in Scotland: SC168970
Registered address: 22 Forth Street, Edinburgh, EH1 3LH
Phone:  0131 477 8620
Fax: 0131 477 8621
Email: [EMAIL PROTECTED]
Website: www.capdm.com
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: does T-4.1.* have a COUNT component?

2007-10-09 Thread Ken nashua

Can anyone explain why this code renders only the true case?

It is as if the ELSE does not even work.




true case



false case



If I have a list of elements 9 in length...

I should get 3 rows in my table right?

Can anyone check this out? Either there is a bug in ELSE component or the 
condition is bogus to render 3 rows.

Thanks in advance.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

_
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

Re: does T-4.1.* have a COUNT component?

2007-10-08 Thread Robert Zeigler

Well, there is... write your own component.
Then you can use it to your heart's content.
And contribute it back.  Other people would probably find it useful,  
too.


Robert

On Oct 8, 2007, at 10/83:23 PM , Ken nashua wrote:



Although I appreciate the attempts to solve, I disagree with all  
solutions and am disheartened.


This capability should be available gracefully without having to  
touch any java.


Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated  
indices between collection and loop.


All I want to do is increment a count within the template and act  
on it when it reaches a certain value and then reset it.


IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word  
scramble challenge with star power. Play Now!


_
Boo! Scare away worms, viruses and so much more! Try Windows Live  
OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx? 
s_cid=wl_hotmailnews



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: does T-4.1.* have a COUNT component?

2007-10-08 Thread Ken nashua

Although I appreciate the attempts to solve, I disagree with all solutions and 
am disheartened.

This capability should be available gracefully without having to touch any java.

Best regards
Ken in nashua

From: [EMAIL PROTECTED]
To: users@tapestry.apache.org
Subject: does T-4.1.* have a COUNT component?
Date: Mon, 8 Oct 2007 14:27:29 -0400








Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power. Play Now!

_
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews

Re: does T-4.1.* have a COUNT component?

2007-10-08 Thread Robert Zeigler

Seems like there are a variety of different ways to do this...
One way would be to have your list be a temporary list of lists...  
you divide your list into sublists of length 3 each, and each sublist  
is an element in a "super" list. Ugly in code. Clean in the template.


Another way to do it would be to use the mod operator in conjunction  
with the if components to determine whether to render a  component.
This one gets a little tricky because tapestry will start complaining  
about invalid nesting of tags... you end up having to write the tags  
out with, say, an input component, with "raw" set to true. So...  
clean in the code, ugly in the template. :)


A modification of approach #2 is something like:

.html:
value="ognl:currentObject">

  


.java:

public String getTheText() {
  StringBuilder b = new StringBuilder();
  if (getIndex()%3==0) {
if(getIndex() > 0)  {
  b.append("");
}
b.append("");
  }
  b.append("");
  b.append(your stuff goes here);
  b.apend("");
  return b.toString();
}

Something along those lines.

Robert

On Oct 8, 2007, at 10/81:27 PM , Ken nashua wrote:



Ok I tried a custom Loop hybrid but that failed to do uncoordinated  
indices between collection and loop.


All I want to do is increment a count within the template and act  
on it when it reaches a certain value and then reset it.


IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
_
Climb to the top of the charts!  Play Star Shuffle:  the word  
scramble challenge with star power.
http://club.live.com/star_shuffle.aspx? 
icid=starshuffle_wlmailtextlink_oct



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: does T-4.1.* have a COUNT component?

2007-10-08 Thread Mauricio Aldazosa
On 10/8/07, Ken nashua <[EMAIL PROTECTED]> wrote:
>
>
> Ok I tried a custom Loop hybrid but that failed to do uncoordinated
> indices between collection and loop.
>
> All I want to do is increment a count within the template and act on it
> when it reaches a certain value and then reset it.
>
> IE. render  tag every 3 iterations of my outer For loop.
>
> Does this exist in Tapestry?


Hello,

I think that the index parameter of the For component does exactly what you
want.

http://tapestry.apache.org/tapestry4.1/components/general/for.html

Greetings,
Mauricio


does T-4.1.* have a COUNT component?

2007-10-08 Thread Ken nashua

Ok I tried a custom Loop hybrid but that failed to do uncoordinated indices 
between collection and loop.

All I want to do is increment a count within the template and act on it when it 
reaches a certain value and then reset it.

IE. render  tag every 3 iterations of my outer For loop.

Does this exist in Tapestry?

Best regards
Ken in nashua
_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct