Examples of IDebugSettings


Examples of org.apache.wicket.settings.IDebugSettings

  public Component(final String id)
  {
    setId(id);
    getApplication().notifyComponentInstantiationListeners(this);

    final IDebugSettings debugSettings = Application.get().getDebugSettings();
    if (debugSettings.isLinePreciseReportingOnNewComponentEnabled())
    {
      setMetaData(CONSTRUCTED_AT_KEY, Strings.toString(this, new MarkupException(
        "constructed")));
    }
  }
View Full Code Here

Examples of org.apache.wicket.settings.IDebugSettings

   */
  private final void checkRendering(final MarkupContainer renderedContainer)
  {
    // If the application wants component uses checked and
    // the response is not a redirect
    final IDebugSettings debugSettings = Application.get().getDebugSettings();
    if (debugSettings.getComponentUseCheck() && !getResponse().isRedirect())
    {
      final List unrenderedComponents = new ArrayList();
      final StringBuffer buffer = new StringBuffer();
      renderedContainer.visitChildren(new IVisitor()
      {
View Full Code Here

Examples of org.apache.wicket.settings.IDebugSettings

   */
  public void renderHead(IHeaderResponse response)
  {
    super.renderHead(response);

    final IDebugSettings debugSettings = Application.get().getDebugSettings();

    response.renderJavascriptReference(WicketEventReference.INSTANCE);
    response.renderJavascriptReference(WicketAjaxReference.INSTANCE);

    if (debugSettings.isAjaxDebugModeEnabled())
    {
      response.renderJavascriptReference(JAVASCRIPT_DEBUG);
      response.renderJavascript("wicketAjaxDebugEnable=true;", "wicket-ajax-debug-enable");
    }

View Full Code Here

Examples of org.apache.wicket.settings.IDebugSettings

    // Set child's parent
    component.setParent(this);

    final Page page = findPage();

    final IDebugSettings debugSettings = Application.get().getDebugSettings();
    if (debugSettings.isLinePreciseReportingOnAddComponentEnabled())
    {
      component.setMetaData(ADDED_AT_KEY, Strings.toString(component, new MarkupException(
        "added")));
    }
View Full Code Here

Examples of org.apache.wicket.settings.IDebugSettings

    super.renderHead(component, response);

    response.renderJavaScriptReference(WicketEventReference.INSTANCE);
    response.renderJavaScriptReference(WicketAjaxReference.INSTANCE);

    final IDebugSettings debugSettings = Application.get().getDebugSettings();
    if (debugSettings.isAjaxDebugModeEnabled())
    {
      response.renderJavaScriptReference(JAVASCRIPT_DEBUG);
      response.renderJavaScript("wicketAjaxDebugEnable=true;", "wicket-ajax-debug-enable");
    }
View Full Code Here

Examples of org.apache.wicket.settings.IDebugSettings

  public Component(final String id, final IModel<?> model)
  {
    setId(id);
    getApplication().getComponentInstantiationListeners().onInstantiation(this);

    final IDebugSettings debugSettings = getApplication().getDebugSettings();
    if (debugSettings.isLinePreciseReportingOnNewComponentEnabled())
    {
      setMetaData(CONSTRUCTED_AT_KEY,
        ComponentStrings.toString(this, new MarkupException("constructed")));
    }
View Full Code Here

Examples of org.apache.wicket.settings.IDebugSettings

    }

    // Set child's parent
    child.setParent(this);

    final IDebugSettings debugSettings = Application.get().getDebugSettings();
    if (debugSettings.isLinePreciseReportingOnAddComponentEnabled())
    {
      child.setMetaData(ADDED_AT_KEY,
        ComponentStrings.toString(child, new MarkupException("added")));
    }
View Full Code Here

Examples of org.apache.wicket.settings.IDebugSettings

   */
  private final void checkRendering(final MarkupContainer renderedContainer)
  {
    // If the application wants component uses checked and
    // the response is not a redirect
    final IDebugSettings debugSettings = Application.get().getDebugSettings();
    if (debugSettings.getComponentUseCheck() && !getResponse().isRedirect())
    {
      final List<Component> unrenderedComponents = new ArrayList<Component>();
      final StringBuffer buffer = new StringBuffer();
      renderedContainer.visitChildren(new IVisitor<Component>()
      {
View Full Code Here

Examples of org.apache.wicket.settings.IDebugSettings

  public Component(final String id, final IModel<?> model)
  {
    setId(id);
    getApplication().notifyComponentInstantiationListeners(this);

    final IDebugSettings debugSettings = Application.get().getDebugSettings();
    if (debugSettings.isLinePreciseReportingOnNewComponentEnabled())
    {
      setMetaData(CONSTRUCTED_AT_KEY, Strings.toString(this, new MarkupException(
        "constructed")));
    }
View Full Code Here

Examples of org.apache.wicket.settings.IDebugSettings

   */
  public void renderHead(IHeaderResponse response)
  {
    super.renderHead(response);

    final IDebugSettings debugSettings = Application.get().getDebugSettings();

    response.renderJavascriptReference(WicketEventReference.INSTANCE);
    response.renderJavascriptReference(JAVASCRIPT);
   
    if (debugSettings.isAjaxDebugModeEnabled())
    {
      response.renderJavascript("wicketAjaxDebugEnable=true;", "wicket-ajax-debug-enable");
      response.renderJavascriptReference(JAVASCRIPT_DEBUG);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.