File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark ""type" element in TLD" Watch ""type" element in TLD" New topic
Author

"type" element in TLD

Cyril Sadasivan
Greenhorn

Joined: Jul 17, 2012
Posts: 22
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
Bartender

Joined: Apr 07, 2010
Posts: 1522
    
  22

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "type" element in TLD
 
Similar Threads
taglib descriptor doubt
Custom tags: telling the developer the attributes
"taglib" and "uri" attributes of taglib directive
default value for a custom tag attribute
Doubts in Mock exam HFSJ