aspose file tools*
The moose likes JSF and the fly likes disabled attribute not rendered in commandButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "disabled attribute not rendered in commandButton" Watch "disabled attribute not rendered in commandButton" New topic

disabled attribute not rendered in commandButton

Sagar Salimath

Joined: Jul 01, 2010
Posts: 4


I am facing a wiered issue.
I am using JSF commandButton for some links on a portlet. I have diabled attribute in the tag to handle role based access.
The tag looks like this,

Here the disabled is set to true.
But when this page is rendered, I get this,

As you can see, the disabled attribute does not get rendered. And I DONT KNOW WHY?

Anyone has any answer to this? Is onclick creating an issue here?

Sagar Salimath
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15665

Nothing is obviously wrong, although I'm rather appalled at the style attribute value. Something that complex deserves its own class definition. And while I THINK css is case-insensitive, the convention is to use lower-case names for the style elements.

But as for your REAL problem, all I can say is "check the return value from the bean's property accessor and make sure its signature is as follows:

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: disabled attribute not rendered in commandButton
Similar Threads
Safari and IE issues.
JSP Page to know what it does
Need help editing some css if possible (SOLVED)
Page displaying in IE6 and older versions but not in Higher versions, chrome and firefox also.