Hi Murray, Peter,
The element="tr" is not required if you use instead of .
Tapestry components like For will automatically use the tag from the template.
This doesn't have any side-effects, and keeps your template HTML valid for
viewing
in a browser or editing in an HTML editor.
Cheers,
Nick.
murray -> my tr tag does have element="tr" within it. the problem was
that i have a lot of css formatting within my code, and i had a class
element within my table tag which was overriding the odd and even
element tags. and once i remove that class statement, it works fine.
but again thanks for yo
HI Peter
The HTML needs to be almost identical to mineyou will notice in my span
there is a
parameter called: element="tr" this is the trick that adds the style stuff to
the 'tr' tag during
rendering. Sounds like you need to remove your 'tr' tag and live with my
'span' tag.
Also, if it
That all looks very complicated. Typically people setup a bean in their
page,
http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/bean/EvenOdd.html
.
Then, on each iteration of the row you say class="ognl:myBean.next" .
Also, Foreach should be avoided whenever possible. For
yahooo. finally got it to work. thanks to all including murray.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
mate,
i dont know what to say. but i am still not able to get it to work. i
have tried to put this code before my pagerender method and after but
it still does not work. the only other diff i can see is that my
foreach comp is within a tr tag and not a span as yours. i am not sure
if this is a pro
Hi Peter
I've been struggling with this alternating row thing for the last couple of
days and finally
cracked it this morning. Here is what I have:
[[Test.html]]
Action
Name
Phone
Mobile
Address
Notes
1
George
Smith
i tried this, within my html file
class="ognl:(beans.evenodd.next.equals('odd') ? 'odd' : 'even') and
this within my page file,
and this produces alternate colour blank rows just above my table and
my table is still the same.
---
cant get it to work. am getting an error component For not found in
application namespace.
am also getting errors for value="entries" Attribute value not defined
in the DTD for element binding
am also getting errors for value="beans.evenOdd.next" Attribute value
not defined in the DTD for element
eachEntry is the component id used in HTML eg ...
will generate a class
attribute with alternating "even" and "odd" for each row.
... and so on.
On 6/29/06, Peter Dawn <[EMAIL PROTECTED]> wrote:
thanks for the info. but where should i specify the colours of the
rows. and is
thanks for the info. but where should i specify the colours of the
rows. and is eachEntry the value element.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Peter,
You can do something like this in the page specification ...
~KEGan
On 6/28/06, Peter Dawn <[EMAIL PROTECTED]> wrote:
this question has probably been asked a few times, so my apologies for
being repetitive here.
i have been able to get alternate row colours within my con
12 matches
Mail list logo