So I don't want to add another code in my controller class.
Is there a way I can accomplish this?
I have an actionFunction named makeEditable
<apex:actionFunction name="makeEditable" action="{!dispEdit}" reRender="pbt" />
I have an outputpanel with onclick attribute
<apex:outputPanel
onclick="{!
IF(canEdit,
'makeEditable(\'{!fdsw.fds.Forecast_User__c}|{!fdsw.fds.User_Role__c}|commit\')',
'alert(/'Unable to edit this field/')')
}" >
--someFields---
</apex:outputPanel>
the onclick is not working. Am I doing it wrong?
Please help me.
Thanks