public String getCompleteRenderedInput ( InputElementStructure inputStruct , FormCheckerElement elem , boolean firstRun ) { StringBuilder elemHtml = new StringBuilder ( ) ; Wrapper elementWrapper = getWrapperForElem ( elem , firstRun ) ; elemHtml . append ( elementWrapper . start ) ; elemHtml . append ( inputStruct . getErrors ( ) ) ; Wrapper labelWrapper = getWrapperForLabel ( elem ) ; elemHtml . append ( labelWrapper . start ) . append ( inputStruct . getLabel ( ) ) . append ( labelWrapper . end ) ; Wrapper inputWrapper = getWrapperForInput ( elem ) ; elemHtml . append ( inputWrapper . start ) ; elemHtml . append ( inputStruct . getInput ( ) ) ; elemHtml . append ( inputStruct . getHelp ( ) ) ; elemHtml . append ( inputWrapper . end ) ; elemHtml . append ( elementWrapper . end ) ; return elemHtml . toString ( ) ; }
override this if you want to have a different order of the elements .