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
JavaRanch » Java Forums » Java » JSF
Bookmark "disabled attribute not rendered in commandButton" Watch "disabled attribute not rendered in commandButton" New topic
Author

disabled attribute not rendered in commandButton

Sagar Salimath
Greenhorn

Joined: Jul 01, 2010
Posts: 4

Hi,

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?

Thanks,
Sagar Salimath
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16228
    
  21

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: http://aspose.com/file-tools
 
subject: disabled attribute not rendered in commandButton