Attribute align invalid for tag panelGrid according to TLD
Question
i have developed application with following facets
- Dynamic Web Module 2.5
- JavaServer Faces 1.2
- Java 5
and i m using Rich Faces 3.2, Sever is Tomcat 6
i get an error
Attribute align invalid for tag panelGrid according to TLD.
i did followed the link
Layout out invalid according to TLD
but it didnt solve my problem since i m already using JSF 1.2. What could be the possible cause of this error. I can give following hints
- the project was initially developed with no JavaServer Facet installed
- i add JSF 1.2 and Rich faces (for some enhancement that i needed to be incorporated).
- ever since then i started getting this error.
Thanks in Advance.
La solution
The other question is irrelevant. It's about the layout
attribute while you're attempting to use the align
attribute. The layout
attribute of <h:panelGrid>
was introduced in JSF 1.2. The align
attribute was never supported by <h:panelGrid>
. This attribute is not listed among the supported attributes of the <h:panelGrid>
tag for JSF 1.2, as per its TLD documentation.
So, remove that align
attribute and do whatever you're trying to do using CSS instead.