Package org.apache.wicket
Class DefaultMarkupIdGenerator
- java.lang.Object
-
- org.apache.wicket.DefaultMarkupIdGenerator
-
- All Implemented Interfaces:
IMarkupIdGenerator
public class DefaultMarkupIdGenerator extends java.lang.Object implements 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
Constructors Constructor Description DefaultMarkupIdGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgenerateMarkupId(Component component, boolean createIfDoesNotExist)Generates markup id for the given component
-
-
-
Method Detail
-
generateMarkupId
public java.lang.String generateMarkupId(Component component, boolean createIfDoesNotExist)
Description copied from interface:IMarkupIdGeneratorGenerates markup id for the given component- Specified by:
generateMarkupIdin 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 whethernullshould be returned.- Returns:
- The generated markup id
-
-