-
1. Re: Howto enable a disabled rich:select?
mp911de May 27, 2011 2:17 PM (in response to djnose)either
#{rich:component('selectNumberSelection')}.disabled = false
or bind the disabled-Attribute to a Bean and rerender it (Ajax)
-
2. Re: Howto enable a disabled rich:select?
djnose Jun 16, 2011 10:10 AM (in response to mp911de)hi Mark,
sorry for that delay answering your Question
.. disabled = false
did not do the trick. Thought it could be easily done with JavaScript. I finally rerendered it.
Thx for your reply!
Cheers
-
3. Re: Howto enable a disabled rich:select?
lfryc Jun 16, 2011 11:05 AM (in response to djnose)Hello,
this seems like reasonable feature request, could you please open JIRA for that?
-
4. Re: Howto enable a disabled rich:select?
djnose Jun 22, 2011 4:14 AM (in response to lfryc)Where can i do that?
-
5. Re: Howto enable a disabled rich:select?
knoxor Jun 22, 2011 5:55 AM (in response to djnose)Have your disabled property based on a bean boolean value
e.g
<rich:select id='selectNumberSelection' disabled='#{bean.selectNumberSelectionDisabled}'>
...
</rich:select>
then in your managed bean
@ManagedBean(name="bean")
public BeanName
private boolean selectNumberSelectionDisabled;
public boolean getSelecteNumberSelectionDisabled() {
return this.selectNumberSelectionDisabled;
}
public void setSelectNumberSelectionDisabled(boolean value) {
this.selectNumberSelectionDisabled = value;
}
You can then set the value of the field depending on any conditon you may need on the server side.