Is it really a good solution ?I think a good way to do it is to refactor the onClick method. A new method should be created. This method does the RPC call and has the parameters that the stored procedure needs. The onClick method will call this method. Also each token for the History class should contains the parameters that the stored procedure needs so then a RPC call can be made when the onHistoryChange is fired.
