function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
palash paunikar 6palash 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>
Shubham_KumarShubham_Kumar
Hi Palash

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