Hi all,

I have a Submit button in my form that I want to have disabled and to only
be disabled if the form does not contain any errors and the form is not
rewinding.

So, what I would like to do is (I assume)
public void pageBeginRender(PageEvent event) {
   disable button ???
}

if (!delegate.getHasErrors()) {
 enable button ???
}

Is this possible? I looked at the tapestry API and I found code similar to

Submit reservationButton = (Submit) getComponent("submitReservationButton");
IBinding b = (IBinding) component.getBinding("disabled");

but I cant set a new value (i.e. "ognl:false") to the button. How to do it?
Any help would be appreciated

Grigoris

Reply via email to