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
praveen murugesanpraveen murugesan 

Rerendering apex:actionSupport on null value in apex:inputText

This is my code

<apex:inputText  value="{!Name}" id="targetName">
      <apex:actionSupport event="onchange" action="{!userExist}" reRender="errorId,theForm"/>     
</apex:inputText>

I am using popup(to show some list) in VF page. On actionsupport rerendering popup gets closed. So, if actionSupport executes only on null value in inputtext means that will be good. Popup will not close.

Thanks.
VikashVikash (Salesforce Developers) 
Hi,

The attribute "reRender" for "apex:actionSupport" returns the ID of one or more components that are redrawn when the result of an AJAX update request returns to the client. This value can be a single ID, a comma-separated list of IDs, or a merge field expression for a list or collection of IDs. So, when you include the value as "errorId,theForm" it start searching for the id which is not available and will not allow to pop up the window. When you keep the value as "Null" the code will work fine as it is not searching any value.

Hope this helps.

Thanks
Vikash_SFDC