Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Articles
Articles_cn
Articles_de
Articles_pt
Articles_zh
CreateActions
CreateActions_de
CreateActions_it
CreateActions_pt
CreateActions_zh
...and 1 more




JSPWiki v2.2.33

[RSS]


Hide Menu

TapestryPages


Difference between version 13 and version 12:

At line 150 removed 1 line.
At line 153 added 1 line.
import org.apache.tapestry.engine.ILink;
At line 155 changed 1 line.
import org.apache.tapestry.event.PageRenderListener;
import org.apache.tapestry.event.PageBeginRenderListener;
At line 160 changed 1 line.
public abstract class PersonForm extends BasePage implements PageRenderListener {
public abstract class PersonForm extends BasePage implements PageBeginRenderListener {
At line 162 removed 1 line.
public abstract void setPersonManager(PersonManager mgr);
At line 174 changed 6 lines.
public void cancel(IRequestCycle cycle) {
if (log.isDebugEnabled()) {
log.debug("Entering 'cancel' method");
}
cycle.activate("mainMenu");
public ILink cancel(IRequestCycle cycle) {
log.debug("Entering 'cancel' method");
return getEngineService().getLink(false, "persons");
At line 182 changed 4 lines.
public void delete(IRequestCycle cycle) {
if (log.isDebugEnabled()) {
log.debug("entered 'delete' method");
}
public ILink delete(IRequestCycle cycle) {
log.debug("entered 'delete' method");
At line 187 changed 1 line.
getPersonManager().removePerson(getPerson().getId().toString());
getPersonManager().removePerson(getPerson().getPersonId().toString());
At line 189 changed 3 lines.
MainMenu nextPage = (MainMenu) cycle.getPage("mainMenu");
nextPage.setMessage(getMessage("person.deleted"));
cycle.activate(nextPage);
PersonList nextPage = (PersonList) cycle.getPage("persons");
nextPage.setMessage(getText("person.deleted"));
return getEngineService().getLink(false, nextPage.getPageName());
At line 194 changed 6 lines.
public void edit(IRequestCycle cycle) {
Object[] parameters = cycle.getServiceParameters();
Long id = (Long) parameters[0];
if (log.isDebugEnabled()) {
log.debug("getting person with id: " + id);
public ILink save(IRequestCycle cycle) {
if (getDelegate().getHasErrors()) {
return null;
At line 201 removed 9 lines.
setPerson(getPersonManager().getPerson(id.toString()));
cycle.activate(this);
}
public void save(IRequestCycle cycle) {
if (getValidationDelegate().getHasErrors()) {
return;
}
At line 211 changed 1 line.
boolean isNew = (getPerson().getId() == null);
boolean isNew = (getPerson().getPersonId() == null);
At line 218 changed 3 lines.
MainMenu nextPage = (MainMenu) cycle.getPage("mainMenu");
nextPage.setMessage(getMessage(key));
cycle.activate(nextPage);
PersonList nextPage = (PersonList) cycle.getPage("persons");
nextPage.setMessage(getText(key));
return getEngineService().getLink(false, nextPage.getPageName());
At line 222 changed 3 lines.
PersonForm nextPage = (PersonForm) cycle.getPage("personForm");
nextPage.setMessage(getMessage(key));
cycle.activate("personForm"); // return to current page
setMessage(getText(key));
return null; // return to current page

Back to TapestryPages, or to the Page History.