Open danhyun opened 11 years ago
The code does currently work as the search form specifies a name of query
for the search text field. That said, I have linked to this issue from the [Proposed Changes] wiki page, which already has an item for investigating this particular example. Several people have commented on the use of query
as the parameter name being confusing, so we may change it to loginId
or perhaps searchText
.
The only reason I'm hesitant about loginId
is that it doesn't have to a be a full login ID.
The data-binding to the parameter of
UserController.result
was looking forparams.query
. As a result, myusers
object was always size 0. Either we need to updatesearch.gsp
to change the name of the textfield fromloginId
toquery
or adjust the parameter name inUserController.result
to beloginId
instead ofquery
. I chose the second becauseloginId
is more consistent with the rest of the app.