How to ignore some tags when create or display the host tag? [message #614467] |
Mon, 05 November 2007 07:14 |
Dart peng Messages: 27 Registered: July 2009 |
Junior Member |
|
|
Hi all:
I create a tag converter for my host element A .I don't want that every
tag can drag into the A and been created ,so I need to add a new
ItemCreationTagEditPolicy and overwrite the getCommand method to ignore some
tags been created.When my converter to add the child elements I need to
judge the element , if the element is illegal , I will don't add it.
But I find that there is a method : shouldIgnore in the
AbstractTagConverter class,so I overwrite the method to ignore the tags but
it's useless .It's only called by copyChildren method and dumCopyChildren
method.
Some tag converter for example the CommandLinkTagConverter class uses the
shouldIgnore method when it add the child elements.
why don't write the shouldIgnore method inside the addChild method to
judge which element can be added? And I find that the
ItemCreationTagEditPolicy didn't do any work to ingnore some illegal
elements.
|
|
|
Powered by
FUDForum. Page generated in 0.03419 seconds