jakartaee / faces

Jakarta Faces
Other
99 stars 55 forks source link

Unify NavigationHandler and ConfigurableNavigationHandler #1833

Open tandraschko opened 1 year ago

tandraschko commented 1 year ago

why was it introduced? backward compatibility?

BalusC commented 10 months ago

Looks like so. A whole new class for this doesn't seem to be necessary. It could have implemented default behavior. E.g. simply returning null or delegating to existing method or throwing UnsupportedOperationException.

tandraschko commented 10 months ago

Yep exactly

tandraschko commented 1 month ago

I moved now all methods from ConfigurableNavigationHandler to NavigationHandler and marked ConfigurableNavigationHandler + Wrapper als Deprecated

tandraschko commented 1 month ago

https://github.com/apache/myfaces/commit/f06506b5d644539080507f29667e4e0f8de86cdb

tandraschko commented 1 month ago

should we make the abstract methods just return null or empty collection?

tandraschko commented 1 month ago

fixed backward compatibility with PF: https://github.com/apache/myfaces/commit/edb58a9f41a7bd3a891bc596a40226e2d3178920