-
10 Aug 2009 1:19 PM #1
[FNR] PagingToolBar and PagingToolBarMessages
[FNR] PagingToolBar and PagingToolBarMessages
There is a minor bug in the PagingToolBar in regards to how it handles the PagingToolBarMessages. PagingToolBar exposes a public void setMessages(PagingToolBarMessages messages) method, but the messages are used in the constructor of the toolbar and there is effectively no way to override the default behaviour of the toolbar displaying 'Page'. This should be a fairly simple refactor and would be appreciated.
thanks,
Michael
-
11 Aug 2009 11:08 AM #2
Same issue exists with most of the widgets as well. (DatePicker, if needed to name one) There is no easy to override methods, which deals with translations. You have to prepare a translation file to override existing translations most of the time. There should have been an easier way to override the translations programatically.
-
11 Aug 2009 11:14 AM #3
In this case we aren't changing it due to translation, it is because the word 'Page' doesn't make sense in the given context. We would still want the word 'Page' to be displayed on other forms in the app. IMHO the current design of the paging toolbar wouldn't prevent a quick refactoring that would make the widget more flexible while not breaking existing use of it. I am not familiar enough with the other widgets to comment on their refactorability.
Mike
-
13 Aug 2009 12:49 AM #4
but this overwriting the translation file also not work :-(
(copy XMessages_de.properties with the same structure to my project - this overwrites the messages only in Hosted Mode. the GWT Compiler ignore this :-( )This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.
GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041
-
13 Aug 2009 12:50 AM #5
This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.
GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041
-
25 Oct 2009 7:35 PM #6
-
26 Oct 2009 11:28 PM #7
if I hide the text "Page" by css, the part of "of x" also hidden, I just hope "Page" is disappered .
-
15 Jun 2010 5:40 AM #8
overriding PagingToolBarMessages
overriding PagingToolBarMessages
Has there been a solution to this? It seems like a horrible gap in functionality....clearly the authors felt it was necessary and desirable to let the developer have control over these messages.
There has to be a better way (or a bug fix).
- Bob
-
15 Jun 2010 5:42 AM #9
I have this on the list for 2.2 and already a patch pending.
-
15 Jun 2010 6:19 AM #10
PagingToolBar and PagingToolBarMessages
PagingToolBar and PagingToolBarMessages
I've patched it in my world.... can you publish your patch...at least if I use your patch, then it will be closer (or the same) when 2.2 comes out.
Thanks!
-Bob
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FNR] Change the language of PagingToolBarMessages
By Iron Bull in forum Ext GWT: Bugs (2.x)Replies: 3Last Post: 15 Jul 2010, 7:06 AM -
[FNR] ScaleProvider
By petko.ivanov in forum Ext GWT: Bugs (2.x)Replies: 1Last Post: 15 Mar 2010, 2:08 PM -
How to declare grid with pagingtoolbar, without calling PagingToolbar constructor
By grzegorz.borkowski in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 9 Feb 2009, 5:57 AM -
[FIXED][Beta 5] PagingToolBar.PagingToolBarMessages#setDisplayMsg not respected
By uwolfer in forum Ext GWT: Bugs (1.x)Replies: 1Last Post: 20 Jun 2008, 7:05 AM


Reply With Quote

