• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the default value of required while defining the tag attribute.

 
Abhishek Sharma
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

What is the default value of <required> tag while defining the attribute of a custom tag?




Thanks in advance,
Abhishek
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If not present then the default is "false", i.e the attribute is optional.
If you define it, you've got to tell whether it's true, or false.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic