This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Saloon Keeper

Joined: Apr 07, 2010
Posts: 2007
    
  39

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
 
Have you checked out Aspose?
 
subject: "type" element in TLD
 
It's not a secret anymore!