Can input form property be omitted in a formbean ? is it mandatory for every form property to have a corresponding formbean get/set and variable ?

Showing Answers 1 - 4 of 4 Answers

murugan

  • Nov 6th, 2006
 

No....

Input form property cannot be ommitted it is mandatory property

  Was this answer useful?  Yes

babuna

  • Nov 16th, 2006
 

Yes , you can left. (Try it ) Other wise I will show you.....

  Was this answer useful?  Yes

sandeep verma

  • Mar 14th, 2007
 

Can you give me one example

  Was this answer useful?  Yes

Yes, if you omit the property in a form bean, that it is in the form. The disadvantage for this is you can't use the property in your application. That means it is useless to have a property value in your form. For example you have username property in your form but you don't have the corresponding bean property you can't use this property. In this case getUsername() throws error and will show an error message like formbeanname.getUsername() not found.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions