You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
@ItemSelect does not work on method named onItemSelected() #997
This is true, but why would one create a method with a general name like onItemSelected? A good thing in AA is that we do not have to name our methods with restrictions due to overriding.
By the way, @WonderCsabo I'm not sure what else I would want to name this method. It's a method that gets called when an item is selected... concise and intuitive, and following common naming conventions in my project.
Activity
jacobtabak commentedon May 12, 2014
A solution would be to change the generated code to:
GeneratedClass_.this.onItemSelected(false, -1)WonderCsabo commentedon May 12, 2014
This is true, but why would one create a method with a general name like
onItemSelected? A good thing in AA is that we do not have to name our methods with restrictions due to overriding.jacobtabak commentedon May 12, 2014
Not sure why I chose to name my method like that, but it took me 5 minutes to figure out this error message:
If the point is to save time (rather than waste it), and the fix is easy, why not? :)
jacobtabak commentedon May 12, 2014
By the way, @WonderCsabo I'm not sure what else I would want to name this method. It's a method that gets called when an item is selected... concise and intuitive, and following common naming conventions in my project.
WonderCsabo commentedon May 12, 2014
OK.
I just realized that we already handle
onItemSelectedthat way, so we indeed should do the same foronNothingSelected.WonderCsabo commentedon May 31, 2014
@DayS This can be closed now.