As the apex:inputField doesn't support disabled attribute (but apex:inputText does), I was using arbitrary attribute html-disabled to accomplish this. But, I was wondering if we can add a condition or boolean to arbitrary attributes. I tried something like
<apex:inputField value="{!ObjA.inputPicklist1__c}" html-disabled="{!editFlag}"/>
and the field always remained disabled regardless of the flag value. So, conditional disabling of apex:inputField is not possible this way and can only be achieved via javascript? Thanks.