title: h:commandLink rendered working disabled not working
body: <p>I have a page on which i am displaying a prime faces table using p dataTable  whose value is coming from session scoped bean. One of the columns in table is a commmandLink. I have a h:commandLink under p:columns in the table. I need to render the h:commandLink depending on specific condition. I need to disable / enable the h:commandLink on another condition. The logic written for rendering the h:commandLink  works correctly, but logic for disabling it does not work. the h:commandLink has a nested outputText and graphicImage. Even defaulting disabled = "true" does not work. when i click on image displayed for commandLink, i see the dialog which i am displaying using javascript on commandLink onClick.</p>
  
  <pre><code>&lt;p:dataTable value="#{myBean.items}" 
                  id="pdatatableid"
                  var="oneItem"
                  rowIndexVar="rowIdxVar"
                  rows="#{myBean.displayRows}" 
                  cellspacing="0" 
                  width="500px"
                  emptyMessage="Item(s) requested cannot be found" 
                  lazy="true"
                  first="#{myBean.firstRow}" 
                  paginator="true" 
                  paginatorPosition="top"&gt;
  
          &lt;p:columns value="#{myBean.headerList}" var="colHeader"
                      columnIndexVar="colIdx" sortBy="#{oneItem[colHeader.attribute]}" headerText="#{colHeader.label}" rendered="#{not empty myBean.headerList}"&gt;
  
              &lt;h:commandLink action="#{myBean.performLinkAction(colHeader)}"
                          rendered="#{colHeader.commandLink &amp;amp;&amp;amp; colHeader.linkAction != 'removeWorkItemEscalation' &amp;amp;&amp;amp; colHeader.linkAction == 'orderCancellation' &amp;amp;&amp;amp; oneItem.cancelOrder}"
                          disabled="true" immediate="true"
                          onclick="#{rich:component('cancellationDlg')}.show();return false;"&gt;
                          &lt;h:outputText rendered="#{(colHeader.valueImage) == null}"
                              value="#{myBean.getColumnValue(colHeader,colIdx)}" /&gt;
                          &lt;h:graphicImage rendered="#{(colHeader.valueImage) != null}"
                              value="#{colHeader.valueImage}"
                              alt="#{myBean.getColumnValue(colHeader,colIdx) ? 'Yes':'No'}"
                              title="Cancel Quote" /&gt;
              &lt;/h:commandLink&gt;                    
          &lt;/p:columns&gt;
  &lt;/p:dataTable&gt;
      public boolean getCancelOrder(){
          boolean cancelOrder = false;
          if(!StringUtils.isEmpty(getOrderVO().getRealm())
                  &amp;&amp; "NETWORK".equalsIgnoreCase(getOrderVO().getRealm())){
              cancelOrder = true;
          }
  
          return cancelOrder;
      }
  
  above is the bean method used for rendered attribute which is working.
  
  Similar implementation and even defaulting disabled to "true" does not work.
  </code></pre>