• Shrikant Patil 3
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
Apex:code

public class Example2{
public integer avalue{set;get;}
public integer bvalue{set;get;}
public integer result{set;get;}
public String operation{set;get;}
public pageReference subb(){
result=avalue - bvalue;
operation ='SUBTRACTION';
return null;
}
public pageReference add(){
result = avalue + bvalue;
operation ='ADDITION';
return null;
   }
}

Vf Code:


<apex:page controller="Example2">
<apex:form >
<apex:pageBlock title="caluculator">
<apex:pageBlockSection columns="1" title="simple operation" collapsible="false">
<apex:pageBlockSectionItem >
<apex:outputLabel >enter a value</apex:outputLabel>
<apex:inputText value="{!avalue}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel >enter b value</apex:outputLabel>
<apex:inputText value="{!bvalue}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem >
<apex:outputLabel >you have performed {!operation} of{!avalue} and {!bvalue} and result is {!result}</apex:outputLabel> </apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
 


Hi all,,

I create wrapper class pageblock table with checkbox with checkAll checkbox with pagination ..but it is not working for checkbox with checkAll with pagination functionality

 

 

thanks in advance..

  • October 31, 2012
  • Like
  • 0