You need to sign in to do that
Don't have an account?
palash paunikar 6
unknown component apex:pageBlock
<apex:page controller="setterGetterapex_class" >
<apex:form>
<apex:pageBlock title="My calculations">
<apex:pageBlockButtons>
<apex:commandButton value="ADD" action="{!add}"/>
<apex:commandButton value="SUB" action="{!sub}"/>
</apex:pageBlockButtons>
<apex:BlockSection title="Simple Operations">
<apex:pageBlockSectionItem>
<apex:outputLabel>Enter x value</apex:outputLabel>
<apex:inputText value="{!xvalue}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputLabel>Enter y value</apex:outputLabel>
<apex:inputText value="{!yvalue}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
you ave performed{!opretion of value{!xvalue} and {!yvalue} finally result is{!result} }
</apex:pageBlockSectionItem>
</apex:BlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:form>
<apex:pageBlock title="My calculations">
<apex:pageBlockButtons>
<apex:commandButton value="ADD" action="{!add}"/>
<apex:commandButton value="SUB" action="{!sub}"/>
</apex:pageBlockButtons>
<apex:BlockSection title="Simple Operations">
<apex:pageBlockSectionItem>
<apex:outputLabel>Enter x value</apex:outputLabel>
<apex:inputText value="{!xvalue}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
<apex:outputLabel>Enter y value</apex:outputLabel>
<apex:inputText value="{!yvalue}"/>
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>
you ave performed{!opretion of value{!xvalue} and {!yvalue} finally result is{!result} }
</apex:pageBlockSectionItem>
</apex:BlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
You have used <apex:BlockSection title="Simple Operations"> and i don`t think vf page supports this attribute.
You also have " you ave performed{!opretion of value{!xvalue} and {!yvalue} finally result is{!result} }" you have put the text part in the expression too you don`t need to do that.
Do le me know if you have any query.
P.S: Mark this as the best answer if this helped you.
Thanks
Shubham Kumar