reiern70 commented on a change in pull request #481:
URL: https://github.com/apache/wicket/pull/481#discussion_r749204276



##########
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:
       I can revert this if we do the model object for navigation class public.




-- 
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