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
DhaDha 

Rerender problem after showing validation error

Not rerendering properly after getting validation error.am using opoup to display the value in the textbox.If am clicking the values in the popup,the value is getting displayed correctly.Suppose i left the required field and save.getting msg as "Error: You must enter a value".

 

 

After getting this msg, try to display the value in the textbox thru by popup.It is not getting displayed in the input textbox.

plz help me to resolve the issue.

 

when i debugging the code, the value is getting correctly but not showing(rerendering) in the textbox

 

for your reference, updated my sample coding below

 

<apex:outputPanel id="accpanel">
<div>
<div />

<apex:inputText value="{!accval}" id="acc" />//popup value displayed in this textbox
<apex:image styleclass="lookupIcon" id="theImage1" onclick="YAHOO.force.com.showMe()" value="/s.gif" />
</div>
</apex:outputPanel>

.................//other coding

<apex:inputField required="true" value="{!case.status}"/>
<apex:inputField id="case" value="{!case.priority}"/>
<apex:inputField required="true" value="{!case.origin}"/>

 <apex:pageBlockButtons >
<apex:commandButton action="{!saveCase}" value="Save"/>
<apex:commandButton action="{!cancel}" value="Cancel"/>
</apex:pageBlockButtons>

 

//coding for modal dialog -

 

<div id="myPanel" style="display: none" >
<div class="hd">
<apex:outputText value="Accounts" />
<apex:form >
<apex:panelGrid columns="3">
<apex:inputText value="{!SearchaccText}"/>
<apex:commandButton reRender="accform" value="Search Account" action="{!searchaccresult}"/>
</apex:panelGrid>
</apex:form>
</div>
<div class="bd" style="overflow:auto; background-color:fff;padding:10px;" >
<apex:form id="accform" >
<apex:dataTable value="{!accounts}" var="a" cellPadding="4" border="1">
<apex:column headervalue="Account Name">
<apex:commandLink oncomplete="YAHOO.force.com.hideMe();" rendered="true" reRender="acc,assetform">
{!a.Name}
<apex:param name="id" assignTo="{!aidval}" id="accid" value="{!a.Id}"/>
<apex:param name="name" assignTo="{!accval}" id="name" value="{!a.Name}"/>
</apex:commandLink>
</apex:column>
</apex:dataTable> <apex:commandButton value="Cancel" immediate="true" oncomplete="YAHOO.force.com.hideMe();"/>
</apex:form>
</div>
</div