Skip to main content
added 1 character in body
Source Link
Nick
  • 7.2k
  • 27
  • 147
  • 286

enter image description hereenter image description here

    <apex:pageBlock title="Employee Salary">           
        <br/>
         <apex:pageBlockSection columns="4" >             
            <apex:pageBlockTable value="{!wrappers}" var="wrapper">                
                    <apex:column headerValue="Ident" >
                        <apex:outputText value="{!wrapper.ident+1}"/>
                    </apex:column>                
                    <apex:column headerValue="From">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>                 
                    <apex:column headerValue="to">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>
                    <apex:column headerValue="Action">
                        <apex:commandButton value="Delete" action="{!delWrapper}"> 
                        </apex:commandButton>
                    </apex:column>
            </apex:pageBlockTable>  
<apex:pageBlockTable value="{!wrappers}" var="wrapper">                
                    <apex:column headerValue="Ident" >
                        <apex:outputText value="{!wrapper.ident+1}"/>
                    </apex:column>                
                    <apex:column headerValue="From">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>                 
                    <apex:column headerValue="to">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>
                    <apex:column headerValue="Action">
                        <apex:commandButton value="Delete" action="{!delWrapper}"> 
                        </apex:commandButton>
                    </apex:column>
            </apex:pageBlockTable>  

<apex:pageBlockTable value="{!wrappers}" var="wrapper">                
                    <apex:column headerValue="Ident" >
                        <apex:outputText value="{!wrapper.ident+1}"/>
                    </apex:column>                
                    <apex:column headerValue="From">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>                 
                    <apex:column headerValue="to">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>
                    <apex:column headerValue="Action">
                        <apex:commandButton value="Delete" action="{!delWrapper}"> 
                        </apex:commandButton>
                    </apex:column>
            </apex:pageBlockTable>  
        </apex:pageBlockSection>
      </apex:pageBlock>

enter image description here

<apex:pageBlock title="Employee Salary">           
    <br/>
     <apex:pageBlockSection columns="4" >             
        <apex:pageBlockTable value="{!wrappers}" var="wrapper">                
                <apex:column headerValue="Ident" >
                    <apex:outputText value="{!wrapper.ident+1}"/>
                </apex:column>                
                <apex:column headerValue="From">
                    <apex:input type="text"   value="{!myTime}"/>
                </apex:column>                 
                <apex:column headerValue="to">
                    <apex:input type="text"   value="{!myTime}"/>
                </apex:column>
                <apex:column headerValue="Action">
                    <apex:commandButton value="Delete" action="{!delWrapper}"> 
                    </apex:commandButton>
                </apex:column>
        </apex:pageBlockTable>  
    </apex:pageBlockSection>
  </apex:pageBlock>

enter image description here

    <apex:pageBlock title="Employee Salary">           
        <br/>
         <apex:pageBlockSection columns="4" >             
            <apex:pageBlockTable value="{!wrappers}" var="wrapper">                
                    <apex:column headerValue="Ident" >
                        <apex:outputText value="{!wrapper.ident+1}"/>
                    </apex:column>                
                    <apex:column headerValue="From">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>                 
                    <apex:column headerValue="to">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>
                    <apex:column headerValue="Action">
                        <apex:commandButton value="Delete" action="{!delWrapper}"> 
                        </apex:commandButton>
                    </apex:column>
            </apex:pageBlockTable>  
<apex:pageBlockTable value="{!wrappers}" var="wrapper">                
                    <apex:column headerValue="Ident" >
                        <apex:outputText value="{!wrapper.ident+1}"/>
                    </apex:column>                
                    <apex:column headerValue="From">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>                 
                    <apex:column headerValue="to">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>
                    <apex:column headerValue="Action">
                        <apex:commandButton value="Delete" action="{!delWrapper}"> 
                        </apex:commandButton>
                    </apex:column>
            </apex:pageBlockTable>  

<apex:pageBlockTable value="{!wrappers}" var="wrapper">                
                    <apex:column headerValue="Ident" >
                        <apex:outputText value="{!wrapper.ident+1}"/>
                    </apex:column>                
                    <apex:column headerValue="From">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>                 
                    <apex:column headerValue="to">
                        <apex:input type="text"   value="{!myTime}"/>
                    </apex:column>
                    <apex:column headerValue="Action">
                        <apex:commandButton value="Delete" action="{!delWrapper}"> 
                        </apex:commandButton>
                    </apex:column>
            </apex:pageBlockTable>  
        </apex:pageBlockSection>
      </apex:pageBlock>
added 308 characters in body
Source Link
Nick
  • 7.2k
  • 27
  • 147
  • 286

Edit: I'm trying to have apex:pageBlockSection side by side as shown here in the screen shot: I just want to have individual apex:pageBlockTable title rather then one title for all three pageblcoktable

enter image description here

END EDIT

I'm trying to add title on top of the pageblockSection but could not able to do so and I have tried with span and apex:outputlabel none of those attributes work.

Visualforce page:

<apex:pageBlock title="Employee Salary">           
    <br/>
     <apex:pageBlockSection columns="4" >             
        <apex:pageBlockTable value="{!wrappers}" var="wrapper">                
                <apex:column headerValue="Ident" >
                    <apex:outputText value="{!wrapper.ident+1}"/>
                </apex:column>                
                <apex:column headerValue="From">
                    <apex:input type="text"   value="{!myTime}"/>
                </apex:column>                 
                <apex:column headerValue="to">
                    <apex:input type="text"   value="{!myTime}"/>
                </apex:column>
                <apex:column headerValue="Action">
                    <apex:commandButton value="Delete" action="{!delWrapper}"> 
                    </apex:commandButton>
                </apex:column>
        </apex:pageBlockTable>  
    </apex:pageBlockSection>
  </apex:pageBlock>

Screen shot:

enter image description here

I'm trying to add title on top of the pageblockSection but could not able to do so and I have tried with span and apex:outputlabel none of those attributes work.

Visualforce page:

<apex:pageBlock title="Employee Salary">           
    <br/>
     <apex:pageBlockSection columns="4" >             
        <apex:pageBlockTable value="{!wrappers}" var="wrapper">                
                <apex:column headerValue="Ident" >
                    <apex:outputText value="{!wrapper.ident+1}"/>
                </apex:column>                
                <apex:column headerValue="From">
                    <apex:input type="text"   value="{!myTime}"/>
                </apex:column>                 
                <apex:column headerValue="to">
                    <apex:input type="text"   value="{!myTime}"/>
                </apex:column>
                <apex:column headerValue="Action">
                    <apex:commandButton value="Delete" action="{!delWrapper}"> 
                    </apex:commandButton>
                </apex:column>
        </apex:pageBlockTable>  
    </apex:pageBlockSection>
  </apex:pageBlock>

Screen shot:

enter image description here

Edit: I'm trying to have apex:pageBlockSection side by side as shown here in the screen shot: I just want to have individual apex:pageBlockTable title rather then one title for all three pageblcoktable

enter image description here

END EDIT

I'm trying to add title on top of the pageblockSection but could not able to do so and I have tried with span and apex:outputlabel none of those attributes work.

Visualforce page:

<apex:pageBlock title="Employee Salary">           
    <br/>
     <apex:pageBlockSection columns="4" >             
        <apex:pageBlockTable value="{!wrappers}" var="wrapper">                
                <apex:column headerValue="Ident" >
                    <apex:outputText value="{!wrapper.ident+1}"/>
                </apex:column>                
                <apex:column headerValue="From">
                    <apex:input type="text"   value="{!myTime}"/>
                </apex:column>                 
                <apex:column headerValue="to">
                    <apex:input type="text"   value="{!myTime}"/>
                </apex:column>
                <apex:column headerValue="Action">
                    <apex:commandButton value="Delete" action="{!delWrapper}"> 
                    </apex:commandButton>
                </apex:column>
        </apex:pageBlockTable>  
    </apex:pageBlockSection>
  </apex:pageBlock>

Screen shot:

enter image description here

Source Link
Nick
  • 7.2k
  • 27
  • 147
  • 286

How to display title on top of the pageblockSection

I'm trying to add title on top of the pageblockSection but could not able to do so and I have tried with span and apex:outputlabel none of those attributes work.

Visualforce page:

<apex:pageBlock title="Employee Salary">           
    <br/>
     <apex:pageBlockSection columns="4" >             
        <apex:pageBlockTable value="{!wrappers}" var="wrapper">                
                <apex:column headerValue="Ident" >
                    <apex:outputText value="{!wrapper.ident+1}"/>
                </apex:column>                
                <apex:column headerValue="From">
                    <apex:input type="text"   value="{!myTime}"/>
                </apex:column>                 
                <apex:column headerValue="to">
                    <apex:input type="text"   value="{!myTime}"/>
                </apex:column>
                <apex:column headerValue="Action">
                    <apex:commandButton value="Delete" action="{!delWrapper}"> 
                    </apex:commandButton>
                </apex:column>
        </apex:pageBlockTable>  
    </apex:pageBlockSection>
  </apex:pageBlock>

Screen shot:

enter image description here