Getting user confirmation commented on by Eelco Hillenius (Jan 09, 2007).

Comment:

It was just an example smart ass . But if you want to create a reusable behavior, even nicer would be:

public class _javascript_EventConfirmation extends AttributeModifier {

  public _javascript_EventConfirmation(String event, String msg) {
    super(event, true, new Model(msg));
  }

  protected String newValue(final String currentValue, final String replacementValue) {
    return replacementvalue + ";" + currentValue;
  }
}

or something in that fashion.

Reply via email to