Hi, I am a junior-java I have to work with JSF in it, I like in a ballet (no way).

Guru and JSF lovers need your help!

There is a textPanel:

<ss:textPanel title="Комментарии" icon="fa fa-comments"> <ui:fragment rendered="true"> *** </ui:fragment> 

and for its element (the "Add Comment" button) I want to change the property from normal to unavailable. I marked the necessary (as I pitch) line with asterisks ***.

I want to get something like:

 <ui:fragment rendered="true" disabled="true"> 

but instead of disabled something working.

I probably even ask the wrong question, poking my nose in the basics and kicking for not understanding truths is welcome!

before: as it is now after: This is how it should turn out

  • for the whole day, not a single plus / minus or comment ... maybe Monday? PEOPLE AU YOU ARE HERE? Simplified code for clarity - Jiraff537
  • For the button, the fragment is used, not the button? What for? - Sergey Gornostaev
  • @SergeyGornostaev Yes, as I understand it, the button is part of the JSF element and the element itself is a block + button + text editor that appears after pressing the button - Jiraff537
  • one
    Something prevents you from setting the disabled attribute and / or the customDisabled class on the button, not the fragment that contains it? - Sergey Gornostaev
  • @SergeyGornostaev did just that: found the implementation of the button, added the buttondisabled: boolean attribute. - Jiraff537

1 answer 1

Found the button implementation, added the buttondisabled:boolean attribute there.

tnx to @SergeyGornostaev