ams-tschoening commented on a change in pull request #457: URL: https://github.com/apache/wicket/pull/457#discussion_r508260776
########## File path: wicket-core/src/main/java/org/apache/wicket/markup/transformer/AbstractTransformerBehavior.java ########## @@ -26,17 +31,114 @@ import org.apache.wicket.request.http.WebResponse; /** - * A {@link Behavior} which can be added to any component. It allows to post-process (transform) the + * A {@link Behavior} which can be added to any component, allowing to post-process (transform) the * markup generated by the component. - * + * <p> + * There's one important limitation with the current implementation: Multiple different instances of + * this behavior CAN NOT be assigned to the same component! If one whiches to do so, the contained + * container needs to be used to wrap existing behaviors and that container needs to be added to the + * component instead. The current implementation of works with temporary responses, but does not + * support nesting itself properly, which results in missing rendered output and most likely broken + * HTML documents in the end. + * </p> * @see org.apache.wicket.markup.transformer.AbstractOutputTransformerContainer - * + * @see <a href="https://issues.apache.org/jira/projects/WICKET/issues/WICKET-6823">JIRA issue</a> + * * @author Juergen Donnerstag */ public abstract class AbstractTransformerBehavior extends Behavior implements ITransformer { private static final long serialVersionUID = 1L; + /** + * Container to apply multiple {@link AbstractTransformerBehavior} to some component. Review comment: As someone who ran into that problem, I prefer having such details in the file to get a basic understanding of problems like these without looking at source history, JIRA etc. I regularly miss such details from Wicket's docs and rephrased things to not sound like a commit message too much anymore. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org