File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes JSF and CSS issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF and CSS issues" Watch "JSF and CSS issues" New topic

JSF and CSS issues

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

I've been working today on moving all style attributes into CSS styles. I am specifically having issues with tables and css. I have the following JSF page.

This produces the following output

If you notice the 2 TD tags from the outer parent table both have the correct class= value. But the inner table (menu) TD tags, only the first one has the value. The others are all left blank. Now, if I change:


I get the correct results. Anyone have any idea why this might be happening?

GenRocket - Experts at Building Test Data
Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 361
Hi i have following jsp code


css code

when the Login.jsp loads for the first time, the back ground color is not changed as in style sheet. But if i hit submit the color changes.....

can some one pls tell what mistake i am doing......I am making use of Tomcat 5.x

SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 361
sorry greg, by mistake i posted that question
I agree. Here's the link:
subject: JSF and CSS issues
It's not a secret anymore!