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
Anu Raj.ax1269Anu Raj.ax1269 

How to use apex:component

 

How to use apex:component (also please help me how to use apex:attribute in apex:component )

I reefed - http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_attribute.htm

 

<apex:page> </apex:page> 
<apex:component>
<!--<apex:attribute name="myValue" description="This is the value for the component." type="String" required="true"/> -->
</apex:component>

 this is the code i try to do but i am getting this error :

 

 

ErrorError: componet line 2, column 2: The markup in the document following the root element must be well-formed 
Error

Error: The markup in the document following the root element must be well-formed.

 

 

thanks

Anuraj

Sourabh_Master10Sourabh_Master10

Hi,

See these links:-
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_component.htm

if you think that answer is right then please tick the answers.
Thanks
Sourabh

Jerun JoseJerun Jose
The definition for the custom component will not have the apex:page tag.