You need to sign in to do that
Don't have an account?

Force Apex:Component to render a div ?
I have wrapped some html tags in an <apex:component> but upon rendering it generates a span in which all contents are placed.
This sometimes messes up with styles.
Is there a property or method by which apex component can be forced to render a div or no wrapper at all ?
Hi Shikibu,
Thanks for your reply.
But i really need the code to be inside a component because i would be calling from multiple pages and would like to avoid copy pasting of code.
I also had this problem once before. I did a simple trick and solved the problem. I don't know whether it would be helpful for you. See my answere in this thread.
http://community.salesforce.com/sforce/board/message?board.id=sites&message.id=1530#M1530
Seems interesting..
But i wish i had a property on component to control its rendering container.
As of API 25, component has a "layout" attribute. You can specify "Block" to make it wrap with a div, "Inline" (which is default) for a span, or "None" for no wrapping.
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_component.htm