You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Levi Cook <le...@papajo.com> on 2001/06/22 09:26:00 UTC

Struts 1.1 TODO List -- Event and Listener Model

I realize that the list of 1.1 Event Generators is semi-volatile until
work-flow and validation fall into place. On the flip side, I think there
might be a few "interesting" events we can identify now. For instance, what
do people think of the attached samples and models? What other events are
people anticipating or hoping for?

(forgive the mixed bag Javadoc/UML notation; ascii is rough :)

java.util.EventObject
  |
  +-- org.apache.struts.action.ActionForm
      + addActionFormListener(ActionFormListener) : void
      + removeActionFormListener(ActionFormListener) : void
      - fireActionFormWasReset() : void
      - fireActionFormValidated() : void

java.util.EventObject
  |
  +-- org.apache.struts.action.event.ActionFormEvent
      + ActionFormEvent(ActionForm source) <<constructor>>

java.util.EventListener;
  |
  +-- org.apache.struts.action.event.ActionFormListener <<interface>>
      + actionFormWasReset(ActionFormEvent) : void
      + actionFormValidated(ActionFormEvent) : void


org.apache.struts.action.eventActionFormListener
  |
  +-- org.apache.struts.action.event.ActionFormAdaptor  {
      + actionFormWasReset(ActionFormEvent) : void
      + actionFormValidated(ActionFormEvent) : void


-- Levi

Re: Struts 1.1 TODO List -- Event and Listener Model

Posted by Jonathan Asbell <ja...@i-2000.com>.
That is what I was saying yesterday Levi, when I mentioned:

"One thing I may suggest is that maybe you dont need to be explicit with the
type of listeners, and just register listeners"

Since we dont know and really will never know what kind of listeners we will
need because it may be specific to an app, maybe the validators should just
take some kind of generic Listeners or Events interface, or both.

.
----- Original Message -----
From: "Levi Cook" <le...@papajo.com>
To: "struts-dev" <st...@jakarta.apache.org>
Sent: Friday, June 22, 2001 3:26 AM
Subject: Struts 1.1 TODO List -- Event and Listener Model


> I realize that the list of 1.1 Event Generators is semi-volatile until
> work-flow and validation fall into place. On the flip side, I think there
> might be a few "interesting" events we can identify now. For instance,
what
> do people think of the attached samples and models? What other events are
> people anticipating or hoping for?
>
> (forgive the mixed bag Javadoc/UML notation; ascii is rough :)
>
> java.util.EventObject
>   |
>   +-- org.apache.struts.action.ActionForm
>       + addActionFormListener(ActionFormListener) : void
>       + removeActionFormListener(ActionFormListener) : void
>       - fireActionFormWasReset() : void
>       - fireActionFormValidated() : void
>
> java.util.EventObject
>   |
>   +-- org.apache.struts.action.event.ActionFormEvent
>       + ActionFormEvent(ActionForm source) <<constructor>>
>
> java.util.EventListener;
>   |
>   +-- org.apache.struts.action.event.ActionFormListener <<interface>>
>       + actionFormWasReset(ActionFormEvent) : void
>       + actionFormValidated(ActionFormEvent) : void
>
>
> org.apache.struts.action.eventActionFormListener
>   |
>   +-- org.apache.struts.action.event.ActionFormAdaptor  {
>       + actionFormWasReset(ActionFormEvent) : void
>       + actionFormValidated(ActionFormEvent) : void
>
>
> -- Levi
>


Re: Struts 1.1 TODO List -- Event and Listener Model

Posted by William Jaynes <wj...@mediaone.net>.
A comment I just made on the new thread about "Extending the scope of the struts
validation", really belongs here on this thread... My problem with tying forms
to JavaBeans is that JavaBeans don't seem to be flexible enough to use for
dynamic forms. If I need to create a form or modify it at runtime, how do I do
it using a JavaBean? How do I add properties to a JavaBean dynamically? If
dynamic forms are going to require more than just a JavaBean, then the
validation framework can't be tied to just JavaBeans.

Will

----- Original Message -----
From: "Levi Cook" <le...@papajo.com>
To: "struts-dev" <st...@jakarta.apache.org>
Sent: Friday, June 22, 2001 3:26 AM
Subject: Struts 1.1 TODO List -- Event and Listener Model


> I realize that the list of 1.1 Event Generators is semi-volatile until
> work-flow and validation fall into place. On the flip side, I think there
> might be a few "interesting" events we can identify now. For instance, what
> do people think of the attached samples and models? What other events are
> people anticipating or hoping for?
>
> (forgive the mixed bag Javadoc/UML notation; ascii is rough :)
>
> java.util.EventObject
>   |
>   +-- org.apache.struts.action.ActionForm
>       + addActionFormListener(ActionFormListener) : void
>       + removeActionFormListener(ActionFormListener) : void
>       - fireActionFormWasReset() : void
>       - fireActionFormValidated() : void
>
> java.util.EventObject
>   |
>   +-- org.apache.struts.action.event.ActionFormEvent
>       + ActionFormEvent(ActionForm source) <<constructor>>
>
> java.util.EventListener;
>   |
>   +-- org.apache.struts.action.event.ActionFormListener <<interface>>
>       + actionFormWasReset(ActionFormEvent) : void
>       + actionFormValidated(ActionFormEvent) : void
>
>
> org.apache.struts.action.eventActionFormListener
>   |
>   +-- org.apache.struts.action.event.ActionFormAdaptor  {
>       + actionFormWasReset(ActionFormEvent) : void
>       + actionFormValidated(ActionFormEvent) : void
>
>
> -- Levi
>