Menu

#31 Pagination controls "Next" and "Previous" strange characters

open
nobody
None
5
2007-08-16
2007-08-16
Anonymous
No

The strings used in the "Next" and "Previous" Hyperlink's in DefaultPaginationBehavior.java show up as the untranslated character entities: "»" and "«" (see the attached image).

This is because the Hyperlink's do not use the "asHTML" parameter, and so are not treated as such.

Discussion

  • Nobody/Anonymous

    screen grab

     
  • matt

    matt - 2007-08-16

    Logged In: YES
    user_id=1779268
    Originator: NO

    I don't see where I would attach the patch for this bug, but here's a description of the simple fix:

    On line 113 of DefaultPaginationBehavior, change
    Hyperlink previousPageLink = new Hyperlink(previousPageText, "previousPage");
    to
    Hyperlink previousPageLink = new Hyperlink(previousPageText, true, "previousPage");

    and on line 169, change
    Hyperlink nextPageLink = new Hyperlink(nextPageText, "nextPage");
    to
    Hyperlink nextPageLink = new Hyperlink(nextPageText, true, "nextPage");

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.