aspose file tools*
The moose likes Struts and the fly likes Custom tld declaration and nested tiles... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Custom tld declaration and nested tiles..." Watch "Custom tld declaration and nested tiles..." New topic
Author

Custom tld declaration and nested tiles...

Tad Dicks
Ranch Hand

Joined: Nov 16, 2004
Posts: 264
I'm using a custom tag library with tiles and for some reason, when I declare the tag library in a template, and try to use the tags inside of tiles that get inserted into the template the tags don't get created (a quick look at the source of the html shows the tags are tehre just not getting interpetted). When I declare the tag library in each component jsp document it works.

All of the struts tlds work "across" tiles, is there something special I need to do get mine to work that way too?
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Originally posted by Tad Dicks:

All of the struts tlds work "across" tiles, is there something special I need to do get mine to work that way too?


Each tile gets rendered independently. It was my understanding that not even struts tags could be declared in the template and implemented in the inner tiles.


A good workman is known by his tools.
Tad Dicks
Ranch Hand

Joined: Nov 16, 2004
Posts: 264
Well they work... but maybe I've got it declared in a header.fragment and not a template. Wether or not the IDE picks up on the included tld seems hit or miss (at least with netbeans).
...
Ok, I do have them in a fragment jsp headerfile (in addition to the template, guess I should take them out of the template heh).


-Tad
 
Don't get me started about those stupid light bulbs.
 
subject: Custom tld declaration and nested tiles...