You need to sign in to do that
Don't have an account?
SFDC Learning 6
Visualforce page with SLDS tag Issue
Here is my Visualforce code:
on button press , Pageblock will be no longer to appear. Can anyone please tell me whats the issue with it?
Thanks in advance
<apex:form id="frm"> <div style="width:50%;"> <apex:pageMessages escape="false" ></apex:pageMessages> </div> <apex:inputHidden value="{!abc}" id="abc"/> <div id="selctMaster"> <apex:pageBlock id="adminValues"> <apex:pageBlockSection columns="1" collapsible="false" > <label class="slds-form-element__label" style="font-weight:bold;color:black;margin-top:10px;font-size:20px;color: #2574a9;test-align:right;">Configure Settings</label> <apex:pageBlockSectionItem labelStyle="background-color:#F4F6F9;" > <apex:outputpanel > <table style="width:100%"> <tbody> <div class="slds-form-element__row" > <div style="width:50%;"> <div class="slds-form-element"> <apex:outputLabel styleClass="slds-form-element__label">Account name:</apex:outputLabel> <apex:inputText value="{!name}" styleClass="slds-form-element__control slds-input"/> </div> </div> </tbody> </table> </apex:outputpanel> </apex:pageBlockSectionItem> </apex:pageBlockSection> <div class="slds-p-horizontal--small slds-m-top--medium slds-size--1-of-1 slds-align--absolute-center"> <apex:commandButton styleclass="slds-button slds-button--brand" value="Save" action="{!abcds}" status="actStatusId" reRender="frm" /> </div> </apex:pageBlock> </div>
on button press , Pageblock will be no longer to appear. Can anyone please tell me whats the issue with it?
Thanks in advance
Could you share the full code and controller code aswell to help you better.
Thanks and Regards,
Shiva RV
Not sure why, but when you are reRendering the form using id "frm" at line 38, the input test box is being disappearing.
You can replate it with div id "selctMaster" and the input box won't disapper. As Shiva suggested, you can share full code for better understanding.
Let us know if that helps you.
Best Regards,
BALAJI
Hi Balaji ,
One quick question to your statement . If it worked right , could you explain why the above phenomon you have mentioned work!
I mean
if div with id as mentioned in the reRender doesn't exist and the Controller action returns null ,then either no reRender happens or the whole page is reRendered , why will the PageBlock or the div content goes invalid?
Could you explain regarding this.
Thanks and Regards,
Shiva RV
Thanks for pointing this out. I have just tried out his code with a custom controller and a method which returns nothing. As he said, the Input text boxi is being disappearing and I'm not sure why. When I replaced reRendering with div id, it stays there. I think we can only know the exact issue if we have full code.
You can give out a try with the code.