Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Default Event Type
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 43 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dan Wilson  
View profile  
 More options May 19, 3:50 pm
From: Dan Wilson <sipac...@gmail.com>
Date: Tue, 19 May 2009 15:50:45 -0400
Local: Tues, May 19 2009 3:50 pm
Subject: Default Event Type

I want to start a thread about Default Event Types.
Event Types, as you know are a ModelGlue:3 feature for defining behavior
under an Event Type and assigning those Event Types to your Event
Handlers. (lost?
Read here:
http://docs.model-glue.com/wiki/HowTos/HowToUseTypedEvents#HowToUseTy...)

A discussion came up in the  MG BOF at CFObjective about a default event
type. Presently there is no such functionality and some members of the
audience felt it was a good idea, though there has yet to be a consensus on
how it works.

Let's start the discussion with the following two questions.

1) Should there be a Default Event Type?

2) Model-Glue 3 allows for an event handler to have multiple event types.
This means the Default Event Type should technically stay with the
Event-Handler regardless if the Event-Handler has other Event Types. If this
is the case, how does a Default Event Type differ from adding logic to
OnRequestStart?  If not, and the Default Event Type vanishes if a specific
type is set for a specific Event Handler, what would the usage be?

The Model-Glue mailing list is full of very smart people, so let's get the
initial ideas out there and we'll work on refining them as we go along.

Your input appreciated.

DW

--
“Come to the edge, he said. They said: We are afraid. Come to the edge, he
said. They came. He pushed them and they flew.”

Guillaume Apollinaire quotes


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Hughes  
View profile  
 More options May 19, 4:26 pm
From: Doug Hughes <dhug...@alagad.com>
Date: Tue, 19 May 2009 16:26:41 -0400
Local: Tues, May 19 2009 4:26 pm
Subject: Re: [Model-Glue] Default Event Type

If it doesn't vanish when you ad other event types, how do you indicate that
an event is untyped?

Doug Hughes, President
Alagad Inc.
dhug...@alagad.com
888 Alagad4 (x300)
Office: 919-550-0755
Fax: 888-248-7836


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Silverberg  
View profile  
 More options May 19, 4:58 pm
From: Bob Silverberg <bob.silverb...@gmail.com>
Date: Tue, 19 May 2009 16:58:42 -0400
Local: Tues, May 19 2009 4:58 pm
Subject: Re: [Model-Glue] Default Event Type

On Tue, May 19, 2009 at 3:50 PM, Dan Wilson <sipac...@gmail.com> wrote:
> I want to start a thread about Default Event Types.
> Event Types, as you know are a ModelGlue:3 feature for defining behavior
> under an Event Type and assigning those Event Types to your Event Handlers.
> (lost? Read
> here: http://docs.model-glue.com/wiki/HowTos/HowToUseTypedEvents#HowToUseTy...
> )
> A discussion came up in the  MG BOF at CFObjective about a default event
> type. Presently there is no such functionality and some members of the
> audience felt it was a good idea, though there has yet to be a consensus on
> how it works.
> Let's start the discussion with the following two questions.
> 1) Should there be a Default Event Type?

Yes, but it should be optional (in case that isn't obvious), meaning
that a developer doesn't have to specify a default event type.

> 2) Model-Glue 3 allows for an event handler to have multiple event types.
> This means the Default Event Type should technically stay with the
> Event-Handler regardless if the Event-Handler has other Event Types. If this
> is the case, how does a Default Event Type differ from adding logic to
> OnRequestStart?  If not, and the Default Event Type vanishes if a specific
> type is set for a specific Event Handler, what would the usage be?

I think that the default event type should vanish if one or more types
is specified for the event-handler. To me that's what default means:
use this if I'm not overridden. One should be able to specify multiple
event types as the default event type, just as one can specify
multiple event types on an event-handler. In order to allow a
developer to specify *no* event types for a particular event-handler,
they could specify type="" in the <event-handler> element.  In terms
of how to implement it in the xml, I can see a couple of options:

1. Make it a Model-Glue configuration setting, for example
"DefaultEventTypes", and allow a comma delimited list of event types.

2. Allow for a <default-event-types> element inside the <event-types>
element.  For example:

<event-types>
     <default-event-types="TemplatedEvent,SecuredEvent" />
     <event-type name="TemplatedEvent">
        <after>
            <views>
                <include name="main" template="templates/main.cfm" />
            </views>
        </after>
    </event-type>
    <event-type name="SecuredEvent">
        <before>
            <broadcasts>
                <message name=”LoginRequired” />
            </broadcasts>
            <results>
                <result name=”NotLoggedIn” do=”user.login” />
            </results>
       </before>
    </event-type>
</event-types>

> The Model-Glue mailing list is full of very smart people, so let's get the
> initial ideas out there and we'll work on refining them as we go along.

> Your input appreciated.
> DW

--
Bob Silverberg
www.silverwareconsulting.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Blackwell  
View profile  
 More options May 19, 5:22 pm
From: Chris Blackwell <ch...@team193.com>
Date: Tue, 19 May 2009 22:22:39 +0100
Local: Tues, May 19 2009 5:22 pm
Subject: Re: [Model-Glue] Re: Default Event Type

I was thinking about this last night, and very nearly posted to the list
about.. spooky.
I'd like to see this feature, I think it makes sense not to have to
enter type="TemplatedEvent,SecuredEvent" on nearly every handler, as has
been mentioned it should be optional, and the ability to remove the default
for a specific handler is a must.

As for configuration i'd go with Bob's option 1.  The MG config bean already
contains the defaultEvent property so this seems to fit nicely. Although
something doesn't feel quite right about specifying type="" to remove the
default type.

While i think of it, would it be any use to have a defaultEventType
attribute for the event-handlers block, like Coldspring has the
defaultAutoWire attribute for the beans tag?

<event-handlers defaultEventType="TemplatedEvent,SecuredEvent">
...
</event-handlers>
<event-handlers defaultEventType="SomeOtherEventType">
...
</event-handlers>
<event-handlers>
...
</event-handlers>

I don't know whether MG would like multiple <event-handlers> blocks in a
single file, but that would be a very clear way to apply a default event
type to a group of events.  Its not an across the board catch all default,
but it would certainly save a lot of repetition.

Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Silverberg  
View profile  
 More options May 19, 5:40 pm
From: Bob Silverberg <bob.silverb...@gmail.com>
Date: Tue, 19 May 2009 17:40:36 -0400
Local: Tues, May 19 2009 5:40 pm
Subject: Re: [Model-Glue] Re: Default Event Type

On Tue, May 19, 2009 at 5:22 PM, Chris Blackwell <ch...@team193.com> wrote:
> While i think of it, would it be any use to have a defaultEventType
> attribute for the event-handlers block, like Coldspring has the
> defaultAutoWire attribute for the beans tag?
> <event-handlers defaultEventType="TemplatedEvent,SecuredEvent">
> ...
> </event-handlers>
> <event-handlers defaultEventType="SomeOtherEventType">
> ...
> </event-handlers>
> <event-handlers>
> ...
> </event-handlers>

Oooh, I like that.  That would allow a developer, for example, to have
one set of default event types for the public side and a different set
of default event types for the admin side.

Were you thinking that that approach would be in addition to being
able to set one set of default event types in the model-glue config,
or in place of that?  I can see how giving developers two different
ways of specifying default event types could be seen as confusing by
some, but it would allow for maximum flexibility.

Bob

--
Bob Silverberg
www.silverwareconsulting.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Hughes  
View profile  
 More options May 19, 6:00 pm
From: Doug Hughes <dhug...@alagad.com>
Date: Tue, 19 May 2009 18:00:08 -0400
Local: Tues, May 19 2009 6:00 pm
Subject: Re: [Model-Glue] Re: Default Event Type

Any concern that this muddies up the XML?

Doug Hughes, President
Alagad Inc.
dhug...@alagad.com
888 Alagad4 (x300)
Office: 919-550-0755
Fax: 888-248-7836

On Tue, May 19, 2009 at 5:40 PM, Bob Silverberg <bob.silverb...@gmail.com>wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
denstar  
View profile  
 More options May 19, 6:34 pm
From: denstar <valliants...@gmail.com>
Date: Tue, 19 May 2009 16:34:28 -0600
Local: Tues, May 19 2009 6:34 pm
Subject: Re: [Model-Glue] Default Event Type

On Tue, May 19, 2009 at 1:50 PM, Dan Wilson wrote:
> I want to start a thread about Default Event Types.

What about using some form of advice instead of configuring the event
handlers themselves?

I had pretty good success wrapping the event stuff in some CS advice
and doing things based on the event name, etc..

Just tossing it out there.  *shrug*

--
Avoid lawsuits beyond all things; they pervert your conscience, impair
your health, and dissipate your property.
Jean de la Bruyere


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Hughes  
View profile  
 More options May 19, 7:41 pm
From: Doug Hughes <dhug...@alagad.com>
Date: Tue, 19 May 2009 19:41:04 -0400
Local: Tues, May 19 2009 7:41 pm
Subject: Re: [Model-Glue] Re: Default Event Type

I'm just trying to play the defensive role... I'm on the side of being very
conservative on changes to the framework.  I think any feature should be
declined by default and only added if a war is waged and the winners wanted
the feature. :)  (Or if I want the feature... then it should go in too.)

Doug Hughes, President
Alagad Inc.
dhug...@alagad.com
888 Alagad4 (x300)
Office: 919-550-0755
Fax: 888-248-7836


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
denstar  
View profile  
 More options May 19, 9:57 pm
From: denstar <valliants...@gmail.com>
Date: Tue, 19 May 2009 19:57:03 -0600
Local: Tues, May 19 2009 9:57 pm
Subject: Re: [Model-Glue] Re: Default Event Type
Dude, saying "no", is like, a fscking *skill*.

Unless you yourself have a need, of course! ;-)

I'm very fond of heavy vetting (that almost sounded funny)-- if the
need/use cases don't stand up under that bright light, that's "a
sign", ja know?

FWIW, accomplishing this end goal seems like it would give *far* more
bang for the buck than, say, dicking with lazy-loading controllers.

Scaffolding, for instance, is has some pretty good ROI as far as R&D
and whatnot.  We could make sooooo many people's lives sooooooo much
easier...  ;-)

So, be an advocate for the devil all you want, he (she? ;]) always
gets his due, so it's best to think about it a bit ahead of time.

--
"Three cheers for not just saying 'yes, sounds swell, done deal'"
-Denny


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gmail  
View profile  
 More options May 19, 10:08 pm
From: Gmail <bob.silverb...@gmail.com>
Date: Tue, 19 May 2009 22:08:20 -0400
Local: Tues, May 19 2009 10:08 pm
Subject: Re: [Model-Glue] Re: Default Event Type

Yes. Although it still sounds like a useful feature. I see pros and  
cons to this suggestion.

Sent from my iPhone

On 19-May-09, at 6:00 PM, Doug Hughes <dhug...@alagad.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gmail  
View profile  
 More options May 19, 10:20 pm
From: Gmail <bob.silverb...@gmail.com>
Date: Tue, 19 May 2009 22:20:20 -0400
Local: Tues, May 19 2009 10:20 pm
Subject: Re: [Model-Glue] Re: Default Event Type

I'm not prepared to wage war over it, but I suggest that the simple  
version (allowing for a single list of default event types in the  
model-glue config) is not really a change to the framework.

Event types are new to MG3, so now's the time to make sure that they  
are implemented in the most useful way. I truly believe that this  
would be a very useful feature and really is in keeping with the  
spirit of event types (which is to save on having to specify the same  
logic in multiple places).

I agree that the suggestions that result in added complexity to the  
XML file might not be the best route, even though they may extend the  
usefulness of the feature.

So I suppose my stance is that default event types should be made  
available, but perhaps only in the simplest way.

Cheers,
Bob

On 19-May-09, at 7:41 PM, Doug Hughes <dhug...@alagad.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
denstar  
View profile  
 More options May 19, 10:40 pm
From: denstar <valliants...@gmail.com>
Date: Tue, 19 May 2009 20:40:21 -0600
Local: Tues, May 19 2009 10:40 pm
Subject: Re: [Model-Glue] Re: Default Event Type
The nice thing about the XML approach is that it's explicit.

I pretty much always split my MG XML into separate files, for the sake
of organization, so the suggested modification to the event-handlers
block would tie in quite nice.

A nice thing about XML is that you don't *have* to define the element
if it's not required by the DTD ;).

There's always CS for advice based on event names* (tho it would be
nice if one didn't have to extend the MG core to wrap the event
handler stuff, and it was in the default ModelGlue.xml instead, like
the orm stuffs).

*Example name-based advice is stuff like public.home, private.home,
sometemplate.mainpage, public.sometemplate.home, etc.. with SES for
pretty-ness and whatnot.

--
If our life is unhappy it is painful to bear; if it is happy it is
horrible to lose, So the one is pretty equal to the other.
Jean de la Bruyere


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Blackwell  
View profile  
 More options May 20, 2:55 am
From: Chris Blackwell <ch...@team193.com>
Date: Wed, 20 May 2009 07:55:34 +0100
Local: Wed, May 20 2009 2:55 am
Subject: Re: [Model-Glue] Re: Default Event Type

I don't think it would really. The main change would be to add the
defaultEventType attribute to <event-handlers>, this would be optional so I
don't see that causes a problem. Allowing multiple <event-handlers> blocks
in a single config file wouldn't break any existing apps
I guess it would just require some documentation, and therein lies the real
problem ;)

2009/5/19 Doug Hughes <dhug...@alagad.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Blackwell  
View profile  
 More options May 20, 3:14 am
From: Chris Blackwell <ch...@team193.com>
Date: Wed, 20 May 2009 08:14:56 +0100
Local: Wed, May 20 2009 3:14 am
Subject: Re: [Model-Glue] Re: Default Event Type

We can def do without any more wars :)
I've been thinking about how i use event types and looking back over a few
apps i never use an event type for every event (ie a default event), or have
an event type thats used in a single place (which is pointless).  I'm always
using event types on groups of handlers.

So specifiying an all encompassing default type doesn't do much for me as
i'd have to pick my most commonly used types then override on every handler
where i need a different type or adding type="" where I don't want a
default, which seems wrong.

Adding an optional attribute doesn't seem like anymore of a change than a
config property.  If allowing multiple <event-handlers> blocks in a single
config file is a problem, then i'd settle for splitting my differently typed
events into separate files, but as it wouldn't break any existing apps I
think it would be fine.

Back to some real work now
Chris

2009/5/20 Gmail <bob.silverb...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Hughes  
View profile  
 More options May 20, 5:57 am
From: Doug Hughes <dhug...@alagad.com>
Date: Wed, 20 May 2009 05:57:36 -0400
Local: Wed, May 20 2009 5:57 am
Subject: Re: [Model-Glue] Re: Default Event Type

I must admit that if pressed to pick an idea I liked best, I like having the
ability to have multiple <event-handlers> blocks with an eventType attribute
which overrides the event type attribute on the <event-handler> tag.

Doug Hughes, President
Alagad Inc.
dhug...@alagad.com
888 Alagad4 (x300)
Office: 919-550-0755
Fax: 888-248-7836


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Silverberg  
View profile  
 More options May 20, 8:00 am
From: Bob Silverberg <bob.silverb...@gmail.com>
Date: Wed, 20 May 2009 08:00:37 -0400
Local: Wed, May 20 2009 8:00 am
Subject: Re: [Model-Glue] Re: Default Event Type
I think that would be the most useful implementation as well.  I was
just addressing your concerns of adding complexity to the xml.  It's
true that adding a single attribute to the <event-handlers> element
doesn't add that much complexity - I think it's more in the way that
people will then have to write their <event-handlers> blocks, meaning
that they'll have to put thought into which events to group into which
<event-handlers> blocks. Not that that's a bad thing, but it does
introduce one more thing to think about.

On Wed, May 20, 2009 at 5:57 AM, Doug Hughes <dhug...@alagad.com> wrote:
> I must admit that if pressed to pick an idea I liked best, I like having the
> ability to have multiple <event-handlers> blocks with an eventType attribute
> which overrides the event type attribute on the <event-handler> tag.

--
Bob Silverberg
www.silverwareconsulting.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Henry  
View profile  
 More options May 20, 8:11 am
From: David Henry <davidhe...@coldfusionpowered.com>
Date: Wed, 20 May 2009 08:11:47 -0400
Local: Wed, May 20 2009 8:11 am
Subject: Re: [Model-Glue] Re: Default Event Type
I'm still not sure I see a clear use case for a default event type.

Can anyone show me an example where my time spent learning MG,
developing an application, and maintaining that application is reduced
with this feature?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Silverberg  
View profile  
 More options May 20, 8:22 am
From: Bob Silverberg <bob.silverb...@gmail.com>
Date: Wed, 20 May 2009 08:22:55 -0400
Local: Wed, May 20 2009 8:22 am
Subject: Re: [Model-Glue] Re: Default Event Type
Just look at the existing info on event types at
http://docs.model-glue.com/wiki/HowTos/HowToUseTypedEvents#HowToUseTy....

I can think of many cases where the majority of my events which are
responsible for rendering output would need the "TemplatedEvent" type.
 By allowing me to specify that as the default event type I can avoid
having to specify it on each event handler than needs it.

The latest idea from Chris extends that even further, where one could
group together event handlers that share a common type (or types), and
then specify that type in the event-handlers block, and thereby avoid
having to specify it on each event handler.

It's not something that everyone would use (nor would they have to use
it), but I definitely see value in it.

On Wed, May 20, 2009 at 8:11 AM, David Henry

--
Bob Silverberg
www.silverwareconsulting.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Wilson  
View profile  
 More options May 20, 8:32 am
From: Dan Wilson <sipac...@gmail.com>
Date: Wed, 20 May 2009 08:32:00 -0400
Subject: Re: [Model-Glue] Re: Default Event Type

It sounds like we are getting closer to a practical implementation of a
default event type. This discussion has been very productive and helpful.
Keep the ideas coming!
DW

On Wed, May 20, 2009 at 8:22 AM, Bob Silverberg <bob.silverb...@gmail.com>wrote:

--
“Come to the edge, he said. They said: We are afraid. Come to the edge, he
said. They came. He pushed them and they flew.”

Guillaume Apollinaire quotes


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Henry  
View profile  
 More options May 20, 10:16 am
From: David Henry <davidhe...@coldfusionpowered.com>
Date: Wed, 20 May 2009 10:16:03 -0400
Local: Wed, May 20 2009 10:16 am
Subject: Re: [Model-Glue] Re: Default Event Type

I was fishing for an answer more like this:

By applying an event type to a group of events instead of individual
events the xml becomes easier to understand at a glance.  Improved code
comprehension makes for faster and easier application maintenance by
developers unfamiliar with an application.  Removing the repetitive type
declaration makes code refactoring easier and less error prone.  
Grouping handlers by type makes David less likely to accidentally expose
administrative functions without password protection.  An example usage
could look something like this:

|    <event-types>
        <event-type name="SecuredEvent">
            <before>
                <broadcasts>
                    <message name="LoginRequired" />
                </broadcasts>
                <results>
                    <result name="NotLoggedIn" do="user.login" />
                </results>
            </before>
        </event-type>
    </event-types>  
    <event-handlers defaultType="SecuredEvent">|
|        <event-handler name="admin.administrate">|
|            <broadcasts>|
|                <message name="AdminIsDoingStuff" />|
|            </broadcasts>|
|            <views>|
|                <include name="body" value="admin.cfm" />|
|            </views>|
|        </event-handler>|
|        |
|        ...|
|
    </event-handlers>|
|
    <event-handlers>|
|        <event-handler name="home.page">|
|            <views>|
|                <include name="home" value="home.cfm" />|
|            </views>|
|        </event-handler>|
|        ...|
|    </event-handlers>|


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Hughes  
View profile  
 More options May 20, 10:21 am
From: Doug Hughes <dhug...@alagad.com>
Date: Wed, 20 May 2009 10:21:53 -0400
Local: Wed, May 20 2009 10:21 am
Subject: Re: [Model-Glue] Re: Default Event Type

If we're grouping events by type, then the attribute on event-handlers
should not be default, but type.

Doug Hughes, President
Alagad Inc.
dhug...@alagad.com
888 Alagad4 (x300)
Office: 919-550-0755
Fax: 888-248-7836

On Wed, May 20, 2009 at 10:16 AM, David Henry <


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Silverberg  
View profile  
 More options May 20, 10:42 am
From: Bob Silverberg <bob.silverb...@gmail.com>
Date: Wed, 20 May 2009 10:42:53 -0400
Local: Wed, May 20 2009 10:42 am
Subject: Re: [Model-Glue] Re: Default Event Type
Perhaps, but that might suggest that it cannot be overridden.  By
calling it defaultType I think it better describes the behaviour,
which is "this is the default type(s) used if no type is specified in
the handler itself".

On Wed, May 20, 2009 at 10:21 AM, Doug Hughes <dhug...@alagad.com> wrote:
> If we're grouping events by type, then the attribute on event-handlers
> should not be default, but type.

> Doug Hughes, President
> Alagad Inc.
> dhug...@alagad.com
> 888 Alagad4 (x300)
> Office: 919-550-0755
> Fax: 888-248-7836

--
Bob Silverberg
www.silverwareconsulting.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Henry  
View profile  
 More options May 20, 10:54 am
From: David Henry <davidhe...@coldfusionpowered.com>
Date: Wed, 20 May 2009 10:54:09 -0400
Local: Wed, May 20 2009 10:54 am
Subject: Re: [Model-Glue] Re: Default Event Type

Perhaps my use case calls for something more aptly named "event type
groups" instead of "default event type".  Again I'm left wondering: Why
would I want a default event type?

I'll re-re-read the event types documentation as time permits and ponder
this further.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Silverberg  
View profile  
 More options May 20, 11:09 am
From: Bob Silverberg <bob.silverb...@gmail.com>
Date: Wed, 20 May 2009 11:09:11 -0400
Local: Wed, May 20 2009 11:09 am
Subject: Re: [Model-Glue] Re: Default Event Type
Thinking about this some more, it does seem to be morphing a bit from
what I originally saw as an enhancement, but that's cool.

I think you're right, one single default event type will not be very
flexible.  Being able to assign an event type to a group of event
handlers will be more flexible and useful.

That raises the question: will the event type(s) assigned to a group
of event handlers be "default" event types (i.e. they can be
overridden in an individual event handler), or will they be the actual
event types that are applied to *all* handlers in that block (with no
opportunity to override)?  I can see how the latter might make sense,
as now the developer is deciding to group event handlers together by
type, so if they don't want a particular handler to have that
"default" type they just wouldn't put it in the group.

The problem this raises is that now, in order to use that feature, a
developer is going to have to group event handlers based on type,
which might make the xml less reader-friendly.  For example, I might
like to group all event handlers that deal with Users together, but if
some of those event handlers need the "TemplatedEvent" type and others
do not then I'll end up with two blocks instead of one.

I suppose that allowing the event handler type to override the default
type would alleviate that problem, allowing developers to group their
event handlers however they see fit.  if they want to use separate
blocks an no overrides great, if they prefer to group differently and
therefore need overrides, fine too.  I do see that it could be a bit
confusing to describe, but it does seem to provide maximum
flexibility. It still leaves the issue of type="", which I agree is
ugly, but I'm not sure how to address that.

Thoughts?

On Wed, May 20, 2009 at 10:54 AM, David Henry

--
Bob Silverberg
www.silverwareconsulting.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Hughes  
View profile  
 More options May 20, 11:33 am
From: Doug Hughes <dhug...@alagad.com>
Date: Wed, 20 May 2009 11:33:49 -0400
Local: Wed, May 20 2009 11:33 am
Subject: Re: [Model-Glue] Re: Default Event Type

Seems that a simple little feature is getting to be a real box of hurt.....
is it worth all the tradeoffs to save a few characters of typing?

Doug Hughes, President
Alagad Inc.
dhug...@alagad.com
888 Alagad4 (x300)
Office: 919-550-0755
Fax: 888-248-7836

On Wed, May 20, 2009 at 11:09 AM, Bob Silverberg
<bob.silverb...@gmail.com>wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 43   Newer >
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google