You need to sign in to do that
Don't have an account?
chris01010
Can't get commandlink to display on page
Hi,
I have a piece of code that should display a link that will rerender a section when clicked (add a new row). It works in other places, but for this page it doesn't seem to render (the link).
<apex:pageBlockSection id="eRGVBreakdownTable" showHeader="false" columns="1"> <apex:pageBlockTable var="newFormChild" value="{!newFormChilds1}" columns="7"> <apex:column style="width:25px;"><apex:outputText style="color:#ccc;" value="{!TEXT(newFormChild.TF_Position__c+1)}"/></apex:column> <apex:column headervalue="Site number"> <apex:inputField value="{!newFormChild.Site_Number_eRGV_Brkdwn_eESES_CC2__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}"/></apex:column> <apex:column headervalue="Institution code"> <apex:inputField value="{!newFormChild.Institution_code_eRGV_Brkdwn_eESES_CC2__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}"/></apex:column> <apex:column headervalue="Routing code"> <apex:inputField value="{!newFormChild.Routing_code_eRGV_Brkdwn_eESES_CC2__c}" styleclass="{!IF(newFormChild.TF_Position__c==0, 'required', '')}"/></apex:column> <apex:column headervalue="Read"> <apex:inputField value="{!newFormChild.Read_eRGV_Brkdwn_eESES_CC2__c}" /></apex:column> <apex:column headervalue="Write"> <apex:inputField value="{!newFormChild.Write_eRGV_Brkdwn_eESES_CC2__c}" /></apex:column> <apex:column style="width:80px;"> <apex:commandLink rendered="{!NOT(ISBLANK(newFormChild.Id))}" rerender="eRGVBreakdownTable" status="eRGVStatus" style="font-style:italic;color:#999;" action="{!deleteChildFormData}"> <apex:param value="{!newFormChild.Id}" name="ItemToDelete" assignTo="{!recordToDelete}"/> <apex:param value="1" name="GroupToDelete" assignTo="{!recordGroup}"/> Delete </apex:commandLink> <apex:outputText rendered="{!ISBLANK(newFormChild.Id)}" value=" "/> </apex:column> </apex:pageBlockTable> <script type="text/javascript"> // this script is there to change the none value default of SFDC for the rows that are added by customers j$(document).ready(function () { changeNoneValue(); addRequireFieldMarker(); }); </script> <apex:commandLink reRender="eRGVBreakdownTable" status="eRGVStatus" style="font-weight:bold ;color:#999;float:right;display;block;width:130px;text-align:left;" value="<Add an account>" action="{!addOneChildFormData}"> <apex:param value="0" name="Group" assignTo="{!recordGroup}"/> <apex:actionStatus id="eRGVStatus"> <apex:facet name="start"> <apex:image style="float:right;margin:0 10px;" url="/img/loading.gif" /> </apex:facet> </apex:actionStatus> </apex:commandLink> </apex:pageBlockSection> </apex:pageBlockSection>
To be fair it's been a while since I looked at it, so I may be missing something really simple (here's hoping).
Any help would be appreciated.
Thanks