You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Reinier Mostert <re...@clabo.co.za> on 2003/04/11 00:14:42 UTC

EvenOdd Bean doesn't even-odd

Me again ;-).  

I'm having some difficulty using the EvenOdd bean (and a few other
things ;-). 

I set it up in the .page file:
<page-specification class="clabo.pages.BrowseStoresPage">
	<bean name="evenOdd" class="org.apache.tapestry.bean.EvenOdd"/>
</page-specification>

I use it in my table in the .html:
	<span jwcid="table@Contrib:Table" border=1
rowsClass="beans.evenOdd.next" width="100%"
tableModel="ognl:tableModel"/>

I've also tried it with a ForEach in a normal HTML table:
<span jwcid="@Foreach" source="ognl:dataList" value="ognl:dataRow">
	<tr class="beans.evenOdd.next">

Both is no go.  If I look at the source produced, I see
class="beans.evenOdd.next", and not successive "even" & "odd"s.

Any ideas?
reinier

-- 
------------------------------------------------------------------------------
     rendier at clabo.co.za           Linux - choice of a GNU
generation!  

Coach: What's up, Norm?
Norm:  Corners of my mouth, Coach.
        -- Cheers, Fortune and Men's Weights


Re: EvenOdd Bean doesn't even-odd

Posted by Reinier Mostert <re...@clabo.co.za>.
Never mind - the Any component did the trick!

<span jwcid="@Any" class="ognl:beans.evenOdd.next" element="tr">

Thanx for the hint, though!

On Fri, 2003-04-11 at 00:33, Reinier Mostert wrote:
> Thanx a mill - that works for the Contrib:Table.
> 
> I have actually tried the ognl tag earlier, because I suspected it
> should be there, but that was probably in a normal table, where Tapestry
> wasn't involved.  Then I decided that isn't the problem.
> 
> Any ideas for a HTML table, as well?
> 
> Thanx again
> reinier
> 
> On Fri, 2003-04-11 at 00:25, Richard Lewis-Shell wrote:
> > Actually, I don't think that will work either as there is no tapestry id in
> > the tr, so I doubt Tapestry would get involved with that tag at all.  But in
> > your other example, the ognl: prefix does appear to be missing...
> > 
> > R
> > 
> > ----- Original Message -----
> > From: "Richard Lewis-Shell" <rl...@mac.com>
> > To: "Tapestry users" <ta...@jakarta.apache.org>
> > Sent: Friday, April 11, 2003 10:20 AM
> > Subject: Re: EvenOdd Bean doesn't even-odd
> > 
> > 
> > > Looks like you're missing the ognl: prefix:
> > > <tr class="ognl:beans.evenOdd.next">
> > >
> > > Richard
> > >
> > > ----- Original Message -----
> > > From: "Reinier Mostert" <re...@clabo.co.za>
> > > To: "Tapestry users" <ta...@jakarta.apache.org>
> > > Sent: Friday, April 11, 2003 10:14 AM
> > > Subject: EvenOdd Bean doesn't even-odd
> > >
> > >
> > > > Me again ;-).
> > > >
> > > > I'm having some difficulty using the EvenOdd bean (and a few other
> > > > things ;-).
> > > >
> > > > I set it up in the .page file:
> > > > <page-specification class="clabo.pages.BrowseStoresPage">
> > > > <bean name="evenOdd" class="org.apache.tapestry.bean.EvenOdd"/>
> > > > </page-specification>
> > > >
> > > > I use it in my table in the .html:
> > > > <span jwcid="table@Contrib:Table" border=1
> > > > rowsClass="beans.evenOdd.next" width="100%"
> > > > tableModel="ognl:tableModel"/>
> > > >
> > > > I've also tried it with a ForEach in a normal HTML table:
> > > > <span jwcid="@Foreach" source="ognl:dataList" value="ognl:dataRow">
> > > > <tr class="beans.evenOdd.next">
> > > >
> > > > Both is no go.  If I look at the source produced, I see
> > > > class="beans.evenOdd.next", and not successive "even" & "odd"s.
> > > >
> > > > Any ideas?
> > > > reinier
> > > >
> > > > --
> > >
> > > --------------------------------------------------------------------------
> > > ----
> > > >      rendier at clabo.co.za           Linux - choice of a GNU
> > > > generation!
> > > >
> > > > Coach: What's up, Norm?
> > > > Norm:  Corners of my mouth, Coach.
> > > >         -- Cheers, Fortune and Men's Weights
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > 
> > 
> > 
> -- 
> ------------------------------------------------------------------------------
>      rendier at clabo.co.za           Linux - choice of a GNU
> generation!  
> 
> Quantum Mechanics: The dreams stuff is made of
> 
>   -- Steven Wright
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
-- 
------------------------------------------------------------------------------
     rendier at clabo.co.za           Linux - choice of a GNU
generation!  

Shin: a device for finding furniture in the dark.

  -- Steven Wright


RE: EvenOdd Bean doesn't even-odd

Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
<tr jwcid="@Any" element="tr" class="ognl:beans.evenOdd.next"> .... </tr>

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry



> -----Original Message-----
> From: Reinier Mostert [mailto:rendier@clabo.co.za] 
> Sent: Thursday, April 10, 2003 6:33 PM
> To: Tapestry users
> Subject: Re: EvenOdd Bean doesn't even-odd
> 
> 
> Thanx a mill - that works for the Contrib:Table.
> 
> I have actually tried the ognl tag earlier, because I 
> suspected it should be there, but that was probably in a 
> normal table, where Tapestry wasn't involved.  Then I decided 
> that isn't the problem.
> 
> Any ideas for a HTML table, as well?
> 
> Thanx again
> reinier
> 


Re: EvenOdd Bean doesn't even-odd

Posted by Reinier Mostert <re...@clabo.co.za>.
Thanx a mill - that works for the Contrib:Table.

I have actually tried the ognl tag earlier, because I suspected it
should be there, but that was probably in a normal table, where Tapestry
wasn't involved.  Then I decided that isn't the problem.

Any ideas for a HTML table, as well?

Thanx again
reinier

On Fri, 2003-04-11 at 00:25, Richard Lewis-Shell wrote:
> Actually, I don't think that will work either as there is no tapestry id in
> the tr, so I doubt Tapestry would get involved with that tag at all.  But in
> your other example, the ognl: prefix does appear to be missing...
> 
> R
> 
> ----- Original Message -----
> From: "Richard Lewis-Shell" <rl...@mac.com>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Friday, April 11, 2003 10:20 AM
> Subject: Re: EvenOdd Bean doesn't even-odd
> 
> 
> > Looks like you're missing the ognl: prefix:
> > <tr class="ognl:beans.evenOdd.next">
> >
> > Richard
> >
> > ----- Original Message -----
> > From: "Reinier Mostert" <re...@clabo.co.za>
> > To: "Tapestry users" <ta...@jakarta.apache.org>
> > Sent: Friday, April 11, 2003 10:14 AM
> > Subject: EvenOdd Bean doesn't even-odd
> >
> >
> > > Me again ;-).
> > >
> > > I'm having some difficulty using the EvenOdd bean (and a few other
> > > things ;-).
> > >
> > > I set it up in the .page file:
> > > <page-specification class="clabo.pages.BrowseStoresPage">
> > > <bean name="evenOdd" class="org.apache.tapestry.bean.EvenOdd"/>
> > > </page-specification>
> > >
> > > I use it in my table in the .html:
> > > <span jwcid="table@Contrib:Table" border=1
> > > rowsClass="beans.evenOdd.next" width="100%"
> > > tableModel="ognl:tableModel"/>
> > >
> > > I've also tried it with a ForEach in a normal HTML table:
> > > <span jwcid="@Foreach" source="ognl:dataList" value="ognl:dataRow">
> > > <tr class="beans.evenOdd.next">
> > >
> > > Both is no go.  If I look at the source produced, I see
> > > class="beans.evenOdd.next", and not successive "even" & "odd"s.
> > >
> > > Any ideas?
> > > reinier
> > >
> > > --
> >
> > --------------------------------------------------------------------------
> > ----
> > >      rendier at clabo.co.za           Linux - choice of a GNU
> > > generation!
> > >
> > > Coach: What's up, Norm?
> > > Norm:  Corners of my mouth, Coach.
> > >         -- Cheers, Fortune and Men's Weights
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
-- 
------------------------------------------------------------------------------
     rendier at clabo.co.za           Linux - choice of a GNU
generation!  

Quantum Mechanics: The dreams stuff is made of

  -- Steven Wright


Re: EvenOdd Bean doesn't even-odd

Posted by Richard Lewis-Shell <rl...@mac.com>.
Actually, I don't think that will work either as there is no tapestry id in
the tr, so I doubt Tapestry would get involved with that tag at all.  But in
your other example, the ognl: prefix does appear to be missing...

R

----- Original Message -----
From: "Richard Lewis-Shell" <rl...@mac.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Friday, April 11, 2003 10:20 AM
Subject: Re: EvenOdd Bean doesn't even-odd


> Looks like you're missing the ognl: prefix:
> <tr class="ognl:beans.evenOdd.next">
>
> Richard
>
> ----- Original Message -----
> From: "Reinier Mostert" <re...@clabo.co.za>
> To: "Tapestry users" <ta...@jakarta.apache.org>
> Sent: Friday, April 11, 2003 10:14 AM
> Subject: EvenOdd Bean doesn't even-odd
>
>
> > Me again ;-).
> >
> > I'm having some difficulty using the EvenOdd bean (and a few other
> > things ;-).
> >
> > I set it up in the .page file:
> > <page-specification class="clabo.pages.BrowseStoresPage">
> > <bean name="evenOdd" class="org.apache.tapestry.bean.EvenOdd"/>
> > </page-specification>
> >
> > I use it in my table in the .html:
> > <span jwcid="table@Contrib:Table" border=1
> > rowsClass="beans.evenOdd.next" width="100%"
> > tableModel="ognl:tableModel"/>
> >
> > I've also tried it with a ForEach in a normal HTML table:
> > <span jwcid="@Foreach" source="ognl:dataList" value="ognl:dataRow">
> > <tr class="beans.evenOdd.next">
> >
> > Both is no go.  If I look at the source produced, I see
> > class="beans.evenOdd.next", and not successive "even" & "odd"s.
> >
> > Any ideas?
> > reinier
> >
> > --
>
> --------------------------------------------------------------------------
> ----
> >      rendier at clabo.co.za           Linux - choice of a GNU
> > generation!
> >
> > Coach: What's up, Norm?
> > Norm:  Corners of my mouth, Coach.
> >         -- Cheers, Fortune and Men's Weights
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>



Re: EvenOdd Bean doesn't even-odd

Posted by Richard Lewis-Shell <rl...@mac.com>.
Looks like you're missing the ognl: prefix:
<tr class="ognl:beans.evenOdd.next">

Richard

----- Original Message -----
From: "Reinier Mostert" <re...@clabo.co.za>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Friday, April 11, 2003 10:14 AM
Subject: EvenOdd Bean doesn't even-odd


> Me again ;-).
>
> I'm having some difficulty using the EvenOdd bean (and a few other
> things ;-).
>
> I set it up in the .page file:
> <page-specification class="clabo.pages.BrowseStoresPage">
> <bean name="evenOdd" class="org.apache.tapestry.bean.EvenOdd"/>
> </page-specification>
>
> I use it in my table in the .html:
> <span jwcid="table@Contrib:Table" border=1
> rowsClass="beans.evenOdd.next" width="100%"
> tableModel="ognl:tableModel"/>
>
> I've also tried it with a ForEach in a normal HTML table:
> <span jwcid="@Foreach" source="ognl:dataList" value="ognl:dataRow">
> <tr class="beans.evenOdd.next">
>
> Both is no go.  If I look at the source produced, I see
> class="beans.evenOdd.next", and not successive "even" & "odd"s.
>
> Any ideas?
> reinier
>
> --
> --------------------------------------------------------------------------
----
>      rendier at clabo.co.za           Linux - choice of a GNU
> generation!
>
> Coach: What's up, Norm?
> Norm:  Corners of my mouth, Coach.
>         -- Cheers, Fortune and Men's Weights
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>