Task #627

GWT: x.x, Edition, allow user enter the page number to display a specific page of an edition

Added by Alexey Lavrentev about 9 years ago. Updated over 8 years ago.

Status:Closed Start date:02/19/2014
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:- Spent time: -
Target version:Portal 0.6.1 Estimated time:5.00 hours

Description

  • replace the page ID label with an editable text field
  • set field character length to 5 and don't enforce value length (MD: setEnforceLength is not available in current SmartGWT library)
  • On escape event: abort and reset the field value
  • On return event:
    • check if page exists
      • No: display an error messagev in status line
        • after 5 tries, show the error message in a dialog box
      • Yes: Go to the page

Test protocol

  • open Graal edition
  • type in the page number field "190b" and Enter
    • the page 190b is displayed
  • type "z190b"
    • the page z190b (from the Z manuscript) is displayed
  • type "999" (not existing page)
    • error message is displayed, the wrong number is still displayed, the page displayed does not change
  • re-type Enter four more times
    • another error message is displayed, the page number is reset to the one of the page being displayed
  • type another wrong page number "xxx"
    • error message is displayed
  • type Escape
    • the page number is reset to current

note: see http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/widgets/form/fields/TextItem.html setEnforceLength(boolean enforceLength) setLength(Integer length)

History

#1 Updated by Matthieu Decorde about 9 years ago

  • Estimated time set to 2.00

#2 Updated by Matthieu Decorde almost 9 years ago

  • Target version changed from Portal 0.6 to Portal 0.7

#3 Updated by Matthieu Decorde over 8 years ago

  • Description updated (diff)
  • Target version changed from Portal 0.7 to Portal 0.6.1
  • Estimated time changed from 2.00 to 5.00

#4 Updated by Matthieu Decorde over 8 years ago

  • Description updated (diff)
  • % Done changed from 0 to 70

#5 Updated by Matthieu Decorde over 8 years ago

  • % Done changed from 70 to 80

#6 Updated by Alexey Lavrentev over 8 years ago

  • Description updated (diff)
  • Status changed from New to Feedback
  • % Done changed from 80 to 70

Test partly successful:

  • (+) can type an existing page number, and the page is displayed
  • (-) if the number is wrong, no error message displayed bu just "Loading page with ID=XXX" in the console
  • (+) after 5 attempts "No page found with ID=XXX" error message is displayed
  • (-) Escape button has no effect

#7 Updated by Matthieu Decorde over 8 years ago

  • Description updated (diff)

#8 Updated by Matthieu Decorde over 8 years ago

  • % Done changed from 70 to 80

#9 Updated by Alexey Lavrentev over 8 years ago

  • (+) can type an existing page number, and the page is displayed
  • (+) if the number is wrong, the error message is displayed in the status bar
  • (+) after 5 attempts an error message is displayed in a pop-up
  • (+) Escape button sets page to the number previously displayed

#10 Updated by Alexey Lavrentev over 8 years ago

  • Status changed from Feedback to Resolved
  • % Done changed from 80 to 90

#11 Updated by Matthieu Decorde over 8 years ago

  • Status changed from Resolved to Closed

#12 Updated by Matthieu Decorde over 8 years ago

  • % Done changed from 90 to 100

Also available in: Atom PDF