• Soni21
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies

I noticed that , rerenderinf do not work, when the field is required , anyone know why is it the case ?

 

<apex:outputPanel id="header01"  layout="block" styleClass="pbHeader">            
                 <table class="detailList" cellspacing="0" cellpadding="0" border="0">                           
                    <tr>
                       <td class="labelCol">{!$ObjectType.DomaineMarque__c.fields.Name.label}</td>
                        <td class="dataCol" style="width:70%">
                             <div class="requiredInput">
                                <div class="requiredBlock"></div>
                                 <apex:selectList id="dom" value="{!selectedDomaine}" size="1" onchange="RefreshHeader();">
                                      <apex:selectOptions value="{!DomaineList}"/>
                                 </apex:selectList>
                                 <apex:actionFunction name="RefreshHeader" immediate="true" action="{!Refresh}" rerender="header01" status="myStatus" />
                              </div>
                          </td>
                    </tr>
                    <tr style="display:{!IF(selectedDomaine == 'new','','none')}">
                        <td class="labelCol">{!$ObjectType.DomaineMarque__c.fields.Type__c.label}</td>
                        <td class="dataCol"><apex:inputfield value="{!domaine.Type__c}" /></td>
                    </tr>
                    <tr style="display:{!IF(selectedDomaine == 'new','','none')}">
                        <td class="labelCol">{!$ObjectType.DomaineMarque__c.fields.Article__c.label}</td>
                        <td class="dataCol"><apex:inputfield value="{!domaine.Article__c}"/></td>
                    </tr>
                    <tr style="display:{!IF(selectedDomaine == 'new','','none')}">
                        <td class="labelCol">{!$ObjectType.DomaineMarque__c.fields.Nom__c.label}</td>
                        <td class="dataCol"><apex:inputfield value="{!domaine.Nom__c}" required="true"/></td>
                    </tr>  
                </table>          
           </apex:outputPanel>

 

if i remove the required=true part, the rerendering works fine. Is this a salesforce bug?

Hi ,

 

I am new for webservices,For better understanding pls give me the small example of webservices in visualforce and apex.

 

Thanks

  • April 03, 2012
  • Like
  • 0
<apex:page> property 'pageStyle' is not working correctly  

when i use following code:

<style>
  .PageClass{
    background-color:Blue;
  }
</style>

and
<apex:page id="pg"  standardcontroller="Candidate__c" extensions="ControllerAIG_Demo" pageStyle="PageClass">
it gives error:
No enum const class common.page.PageStyle.PageClass

even i use inline CSS style as
<apex:page id="pg"  standardcontroller="Candidate__c" extensions="ControllerAIG_Demo" pageStyle="background-color:Blue;">
it gives error:
No enum const class common.page.PageStyle.background-color:Blue;

any idea ....   :smileywink: