• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

disabled attribute not rendered in commandButton

 
Greenhorn
Posts: 4
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 28665
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic