|
Hi there Let’s say I want to do a server
request. I want to search my database for a particular keyword and return a record
set. The user would type in the keyword in a
text area and I would then create a SearchDatabaseEvent which then would
trigger a SearchDatabaseEventCommand and so on … However I also want to send the userID when
I do my server request. Should the SearchDatabaseCommand get the userID from
the model or from the SearchDatabaseEvent (so I would have two properties in my
event “keywords” and “userId”)? The SearchDatabaseCommand
obviously knows about the model because it has to populate the model with the
result record set. So I could just get the user ID from the model when the “execute
method” is triggered. This approach seems a bit wired though
because it seems that couples my command to strongly to the model. On the other
hand it seems strange to query the model from my view to populate the SearchDatabaseEvent
with userId property as well. Any thoughts? Cheers Robin -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- [flexcoders] Cairngorm commands - best practise Robin Burrer
- Re: [flexcoders] Cairngorm commands - best practise hank williams
- [flexcoders] Cairngorm commands - best practise Bjorn Schultheiss
- Re: [flexcoders] Cairngorm commands - best prac... hank williams
- [flexcoders] Cairngorm commands - best prac... Bjorn Schultheiss
- Re: [flexcoders] Cairngorm commands - best practise Tom Chiverton
- Re: [flexcoders] Cairngorm commands - best prac... hank williams
- Re: [flexcoders] Cairngorm commands - best ... Ralf Bokelberg
- RE: [flexcoders] Cairngorm commands - best practise Robin Burrer
- RE: [flexcoders] Cairngorm commands - best practise Evan Gifford

