Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Layout narrowing

...

Section
Column
Code Block
java
java
titleFor Tapestry 5.3 and later
@InjectComponent
private Zone userInput;

@InjectComponent
private Zone helpPanel;

@Inject
private AjaxResponseRenderer ajaxResponseRenderer;

void onActionFromRegister()
{
    ajaxResponseRenderer.addRender("userInput", userInput)
                userInput).addRender("helpPanel", helpPanel);
}
Column
Code Block
java
java
titleFor Tapestry 5.1, 5.2 and 5.3
@Inject
private Form registrationForm;

@Inject Block registrationHelp;

Object onActionFromRegister()
{
    return new MultiZoneUpdate("userInput", registrationForm)
        registrationForm).add("helpPanel",
        .add("helpPanel", registrationHelp);
}

    Note that MultiZoneUpdate is deprecated starting with Tapestry 5.3.

...