Class ComponentStrings

java.lang.Object
org.apache.wicket.core.util.string.ComponentStrings

public class ComponentStrings extends Object
  • Method Details

    • toString

      public static String toString(Component component, Throwable location)
      Creates a location stacktrace string representation for the component for reference when the render check fails. This method filters out most of the unnecessary parts of the stack trace. The message of the location is used as a verb in the rendered string. Use "added", "constructed" or similar verbs as values.
      Parameters:
      component - the component that was constructed or added and failed to render
      location - the location where the component was created or added in the java code.
      Returns:
      a string giving the line precise location where the component was added or created.