function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VT878VT878 

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:
 
<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.