+ Start a Discussion

InputText gets 0 after form submit with error

Hey folks,

I have a Visualforce Page where I can order items out of a table.

I choose the quantity by writing an Integer value in a column with <apex:inputText> fields.

Once I submit the page with a command button and an error pagemessage occurs, the <apex:inputText> fields that I didn't fill with an Integer value get a standard value 0 instead of staying empty. Why?



Is there any default value set on the quantity field? If so, it is displaying the default value.