[jsr-314-open] Method signatures for event handlers

Cay Horstmann cay at horstmann.com
Fri Jan 22 14:20:46 EST 2010


On 01/22/2010 08:52 AM, Kito Mann wrote:
> Personally, I don't think there's anything wrong with having a signature
> that requires an event listener. Isn't that how most UI toolkits work?
> What about Swing or SWT?
>
> I do understand the desire to have some code completely decoupled,
> though. If we make the signature optional, though, I'm afraid that'll be
> even more confusing for users.

I don't think it is confusing to say "This parameter is optional". Lots 
of things are optional in JSF. The reason you want to make it so is to 
have a better unit testing story.

Cay

-- 

Cay S. Horstmann | http://horstmann.com | mailto:cay at horstmann.com




More information about the jsr-314-open-mirror mailing list