You need to sign in to do that
Don't have an account?
anveshvarma.k.v1.3880486882520505E12
How to display two outputpanels in the same page horizontally i.e.,on X-axis
Actually i need two output panels in the same page...could any one give me the brief description about it...im new to force.com...so give as detailed as psooible so that i could understand easily
Refer: https://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_repeat.htm
All Answers
Create a component with output panel and include that component in visualforce page twice with different attributes. You can refer sample code in the below mentioned link.
http://salesforce.stackexchange.com/questions/8130/can-we-use-a-custom-visualforce-component-twice-on-the-same-visualforce-page
<apex:form >
<apex:outputpanel style="width:1000px;">
<apex:outputPanel style="width=300px;">
<apex:pageblock >
<apex:outputText style="font-style:italic" value="This is liva it">
</apex:outputText>
</apex:pageblock>
</apex:outputPanel>
<apex:outputPanel style="width=700px;">
<apex:pageblock >
<b><i><apex:commandLink value="Owner" style="font-family:verdana;"/></i></b>
<b><i><apex:commandLink value="New Apartment" style="font-family:verdana;" /></i></b>
<b><i><apex:commandLink value="New House" style="font-family:verdana;" /></i></b>
<b><i><apex:commandLink value="New Payment" style="font-family:verdana;"/></i></b>
</apex:pageblock>
</apex:outputPanel>
</apex:outputpanel>
</apex:form>
</apex:page>
This was the code i have used.....so please help me if there is any mistakes in the above code.....
Thanks and regards,
V ANVESH VARMA KANUMURI
Refer this sample code for including one output panel inside another:
<apex:selectCheckboxes value="{!countries}">
<apex:selectOptions value="{!items}"/>
</apex:selectCheckboxes><br/>
<apex:commandButton value="Test" action="{!test}" rerender="out" status="status"/>
</apex:form>
<apex:outputPanel id="out">
<apex:actionstatus id="status" startText="testing...">
<apex:facet name="stop">
<apex:outputPanel>
<p>You have selected:</p>
<apex:dataList value="{!countries}" var="c">{!c}</apex:dataList>
</apex:outputPanel>
</apex:facet>
</apex:actionstatus>
</apex:outputPanel>
</apex:page>
Refer: https://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_repeat.htm