This content has been marked as final.
Show 1 reply
-
1. Re: How to disable ajax commandLink?
wbossons Feb 6, 2008 9:21 AM (in response to prasad_k)You should create a condition where you can track whether there are records to traverse previous or next. Then, check for the condition and create HtmlOutputText in the condition where there is no movement previous or next.
HtmlPanelGrid panel = ...
if (morePrevious) {
HtmlAjaxCommandLink ...
...
} else {
HtmlOutputText ...
outputtext.setStyleClass("disabled");//set up a style class disabled to indicate to the user this is disabled.
render output by adding each to the panel while in the condition and then add the panel to the parent and call its render methods.
..\Wendy