You need to sign in to do that
Don't have an account?
Pls help with these errors..
Hi guys,
below is my code.. but these error messages keep poping up..can someone help me?
Error: BillingClose line 2, column 2: The markup in the document following the root element must be well-formed | ||
Error: The markup in the document following the root element must be well-formed. |
VF page:
<apex:page tabStyle="Billing_Close__c" showHeader="true" controller="BillingCloseController" />
<apex:form>
<apex:pageBlock title="BillingClose">
<apex:pageBlockButtons location="both">
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
<apex:commandButton value="Billed" action="{!billed}"/>
</apex:pageBlockButtons>
<apex:pageBlockSection columns="2">
<apex:pageBlockSectionItem >
<apex:outputLabel value="BillingClose Name" />
<apex:inputField value="{!billingclose.name}"/>
<apex:outputLabel value="Invoice_Date__c" />
<apex:inputField value="{!billingclose.invoicedate}" />
<apex:outputLabel value="Comments__c" />
<apex:inputField value="{!opportunity.comments}"/>
<apex:outputLabel value= "Status__c"/>
<apex:inputField value="{!billingclose.status}" id="status_select"/>
<apex:selectOption itemLabel="Billed" itemValue="Billed"></apex:selectOption >
<apex:selectOption itemLabel="To be Billed" itemValue="To be Billed"></apex:selectOption >
<apex:selectOption itemLabel="Do not Bill" itemValue="Do not Bill"></apex:selectOption >
<apex:inputCheckbox onselect="Reconciled__c"/>
<apex:outputLabel value="Owner" />
<apex:outputLabel value="{!$User.FirstName} {!$User.LastName}"/>
<apex:inputField value="{!billingclose.owner.name}"/>
</apex:pageBlockSectionItem >
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Class:
public with sharing class BillingCloseController { } |
in the first line you should not close the apex:page tag with />
remove the /
this remains:
<apex:page tabStyle="Billing_Close__c" showHeader="true" controller="BillingCloseController" >
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.