Package org.apache.wicket
Class DefaultMarkupIdGenerator
java.lang.Object
org.apache.wicket.DefaultMarkupIdGenerator
- All Implemented Interfaces:
IMarkupIdGenerator
An implementation of IMarkupIdGenerator that uses the Session to generate
sequence numbers for the component markup ids.
As a prefix for the generated markup id in development mode it uses the component id
and in production mode the string id.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateMarkupId
(Component component, boolean createIfDoesNotExist) Generates markup id for the given component
-
Constructor Details
-
DefaultMarkupIdGenerator
public DefaultMarkupIdGenerator()
-
-
Method Details
-
generateMarkupId
Description copied from interface:IMarkupIdGenerator
Generates markup id for the given component- Specified by:
generateMarkupId
in interfaceIMarkupIdGenerator
- Parameters:
component
- The component for which to generate a markup idcreateIfDoesNotExist
- When there is no existing markup id, determines whether it should be generated or whethernull
should be returned.- Returns:
- The generated markup id
-