@ Override public void onComponentTagBody ( final MarkupStream _markupStream , final ComponentTag _openTag ) { setEscapeModelStrings ( false ) ; String value = getDefaultModelObjectAsString ( getDefaultModelObject ( ) ) ; // if the value contains the EFAPSTMPTAG all tags from this component // will be moved to the subcomponent if ( value != null && value . contains ( IUserInterface . EFAPSTMPTAG ) ) { final StringBuilder tagBldr = new StringBuilder ( ) ; final List < ? extends Behavior > behaviors = getBehaviors ( ) ; final ComponentTag tmpTag = new ComponentTag ( _openTag ) ; for ( final Behavior behavior : behaviors ) { behavior . onComponentTag ( this , tmpTag ) ; } final IValueMap map = tmpTag . getAttributes ( ) ; for ( final Entry < String , Object > entry : map . entrySet ( ) ) { final String key = entry . getKey ( ) ; if ( ! "wicket:id" . equals ( key ) ) { tagBldr . append ( " " ) . append ( key ) . append ( "=\"" ) . append ( entry . getValue ( ) ) . append ( "\" " ) ; } } // if no id is given add the id here if ( ! map . containsKey ( "id" ) ) { tagBldr . append ( " id=\"" ) . append ( getMarkupId ( ) ) . append ( "\" " ) ; } value = value . replace ( IUserInterface . EFAPSTMPTAG , tagBldr ) ; } super . replaceComponentTagBody ( _markupStream , _openTag , value ) ; }
Must be overwritten so that no replacing of html tags is done .