This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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
jQuery in Action, 3rd edition