martin-g commented on a change in pull request #481:
URL: https://github.com/apache/wicket/pull/481#discussion_r749124609



##########
File path: 
wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/NavigatorLabel.java
##########
@@ -46,11 +46,21 @@
        public NavigatorLabel(final String id, final IPageableItems pageable)
        {
                super(id);
-               setDefaultModel(new StringResourceModel("NavigatorLabel", this,
+               setDefaultModel(new 
StringResourceModel(getNavigationLabelKey(), this,
                        new Model<>(new LabelModelObject(pageable))));
        }
 
-       private static class LabelModelObject implements IClusterable
+       /**
+        * Allows to override the key used for navigation label.
+        *
+        * @return The i18n key.
+        */
+       protected String getNavigationLabelKey()

Review comment:
       What bothers me here is that we don't do this anywhere else. It just 
feels inconsistent.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to