You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by sh...@sms.at on 2005/08/17 14:32:51 UTC

Button attribute disabled

Hello! 

I found the disabled attribute.
In some cases I set the disabled attribute of my button true. But I have to refresh the jsp side before it works... 
Can I do something like submit() in java?

My button: 
<h:commandButton id="submitSave" styleClass="button" action="#{ScheduleBean.saveSchedule}" value="OK" disabled="#{ScheduleBean.disabledButton}" immediate="true"/> 

in my Bean: 

public boolean getDisabledButton() { 
return disabledButton; 
} 

public void setDisabledButton(boolean disabledButton) { 
this.disabledButton = disabledButton; 
} 

Thanks! 

Conny

--
Ein Service von http://www.sms.at