Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jsf (richfaces) readonly input text validation [duplicate]

Is there any way I can validate a jsf input text that is readonly but the value is changed upon some other events triggered?

like image 231
Alina Danila Avatar asked Mar 08 '12 08:03

Alina Danila


1 Answers

Set the readonly attribute to true only during render response phase. This way it won't be seen as readonly in all other phases than the render response phase.

<h:inputText ... readonly="#{facesContext.currentPhaseId.ordinal eq 6}" />
like image 135
BalusC Avatar answered Oct 04 '22 12:10

BalusC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!