+ Start a Discussion

component in pageblocksection

I want to create a component to set a field value in a pageblock section, any ideas how to do this? My inclination is something like this:
     <apex:outputLabel value="My Field Labell" />

But I am not sure how I would use attributes like required="false" that you would usually use on an InputFIeld. Do I put this in the component?