I'm relatively new to working with MyFaces so I don't know if this has
been brought up before, but I'm looking for advice on the proper usage
of h:PanelGrid and h:Column, along with their Tomahawk extensions
t:PanelGrid and t:Column.

My question arose when I was attempting to use t:Column with
t:PanelGrid to format the display of a web page I'm working on.  What
I was attempting to do, was utilize the additional attributes in the
t:Column tag, such as style, to specify the formatting for the cells
in the table.  In particular I was looking to adjust the alignment of
the elements in the cells.

Since the JavaDoc for the Tomahawk TLD states that t:Column is "A tag
that extend h:column to provide HTML passthrough attributes" I was
under the belief that I could use a t:Column as one would use a
h:Column in a PanelGrid.  However, looking at the HTML code that was
generated, I noticed that the output was simply rendering standard
HTML td elements without applying the HTML passthroughs for the
additional attributes which the documentation suggested.

I know the documentation suggests that t:Column can be used in
t:DataTables instead of h:Column, so does the same hold true in the
use of PanelGrids?

If not, what is the best practice for using t:PanelGrid (and for that
matter, h:PanelGrid)?  Should I just use t:HtmlTag to manually specify
tr and td tags to be used in this case?  Since I'm trying to use the
style attribute, h:Column is not an option since there is no way to
specify a style to be used in the tag.

Thanks in advance,
Ryan

Reply via email to