• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"type" element in TLD

 
Cyril Sadasivan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When is the "type" element for "attribute" required in the TLD for tag handlers?
I tried passing objects using EL expressions as tag attribute for both simple and classic tag handlers without the "type" element in TLD. And the container passed the object of the appropriate datatype to the attribute setter method.

Any help on the topic is welcome.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2536
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cyril,

The type attribute is optional, but it has to be provided when using an enum for example, check this Enumeration values in attribute custom-tag.

Regards,
Frits
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic