Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.ftlines.wicketsource;
 
 
Sticks the wicket component name into an html attribute on the tag, which makes it easier to find using the Firebug or Chrome Dev Tools "Inspect Element" menu item. This outputs more than just container classes (such as panels); it also tags images, labels, and links. Some of that is noise but some may be useful in locating a component in the source.

Author(s):
Jenny Brown
Creates a visitor
		 = new AttributeModifier("wicketSource"new SourceModel());
	}

Causes this visitor to visit all the children of the Page, attaching an html attribute to each one
	public void addClassNameVisitor(Page page)
	{
		{
			public void component(Component componentIVisit<Voidvisit)
			{
			}
		});
	}

For Page components (only) causes a call to addClassNameVisitor(page) visit all of its children
	public void onBeforeRender(Component component)
	{
		if (!(component instanceof Page)) {
			return;
		}
	}
New to GrepCode? Check out our FAQ X