This content has been marked as final. Show 5 replies
If the requirement is to hide the field, please set the rendered prorerty to false which would hide the field.
Thanks for the reply. Though I tried to hide the field using rendered property, since its a mandatory field it is asking to enter the value.
You can hide the madetory filed using below steps:
Set any default Value for the mandatory field using bean.setText();
Then hide it by using bean.setRendered(flase);
I have already tried the approach and it does hide the field but its asking to enter a value though I have set the value with setText() method.
I have achieved the functionality like below, I thought it will be helpful for any others if anybody is facing the issue.
- I have created DFF value set as non-mandatory
- Am disabling the filed with setReadOnly() method in CO
- Am making the field mandatory for other responsibility with setRequired() and setShowRequired() methods.