Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » How to ignore some tags when create or display the host tag?
How to ignore some tags when create or display the host tag? [message #614467] Mon, 05 November 2007 07:14
Dart peng is currently offline 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.
Previous Topic:Deploy WAR with WTP
Next Topic:How to ignore some tags when create or display the host tag?
Goto Forum:
  


Current Time: Mon Sep 15 04:04:49 GMT 2014

Powered by FUDForum. Page generated in 0.06026 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software