vaadin/cdi — pull request #28 by DalayMabboux (2014-01-29 14:03:06+00:00)
Title: Fixed subview handling

I the method **parseViewName()** this code **viewName.split("/")[0]** breaks the sub-view handling (e.g. view/subview1/subview2/parameters).

With this patch the method **getViewName()** has been changed to work with sub-views. Now it returns the view name with the longest level match: some examples:
- viewAndParameters = "view/params" then "view" will be returned
- viewAndParameters = "view/subview1/subview2" then "view/subview1/subview2" will be returned

Regards Dalay