You need to sign in to do that
Don't have an account?
VT878
Attribute disabled and value on server
Hi guys,
I have a question for you.
I have just find a very strange issue with <apex:selectList> tag and disabled attribute used on it.
So, I post some code snippets:
In the Action Method in the Controller I have a String to send back the errorMessage on the page e print it:
If I remove attribute disabled from JQuery or directly on the Chrome DevTools, the pickList become editable and I can choose a value but this value is not pass to server because the erroreMessage on page is "null".
Why?
Thanks a lot and have a nice day.
I have a question for you.
I have just find a very strange issue with <apex:selectList> tag and disabled attribute used on it.
So, I post some code snippets:
<apex:selectList id="idPicklist" size="1" value="{!parameter1}" disabled="true" > <apex:selectOptions value="{!picklistValues}" /> </apex:selectList>
In the Action Method in the Controller I have a String to send back the errorMessage on the page e print it:
public String parameter1 {get; set;} public String postBackMessage {get; set;} public void actionMethod1(){ postBackMessage = parameter1; return null; }
If I remove attribute disabled from JQuery or directly on the Chrome DevTools, the pickList become editable and I can choose a value but this value is not pass to server because the erroreMessage on page is "null".
Why?
Thanks a lot and have a nice day.