Task #627
GWT: x.x, Edition, allow user enter the page number to display a specific page of an edition
Statut: | Closed | Début: | 19/02/2014 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | - | Temps passé: | - | |
Version cible: | Portal 0.6.1 | Temps estimé: | 5.00 heures |
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
- No: display an error messagev in status line
- check if page exists
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)
Historique
#1 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Temps estimé mis à 2.00
#2 Mis à jour par Matthieu Decorde il y a plus de 11 ans
- Version cible changé de Portal 0.6 à Portal 0.7
#3 Mis à jour par Matthieu Decorde il y a presque 11 ans
- Description mis à jour (diff)
- Version cible changé de Portal 0.7 à Portal 0.6.1
- Temps estimé changé de 2.00 à 5.00
#4 Mis à jour par Matthieu Decorde il y a presque 11 ans
- Description mis à jour (diff)
- % réalisé changé de 0 à 70
#5 Mis à jour par Matthieu Decorde il y a presque 11 ans
- % réalisé changé de 70 à 80
#6 Mis à jour par Alexey Lavrentev il y a presque 11 ans
- Description mis à jour (diff)
- Statut changé de New à Feedback
- % réalisé changé de 80 à 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 Mis à jour par Matthieu Decorde il y a presque 11 ans
- Description mis à jour (diff)
#8 Mis à jour par Matthieu Decorde il y a presque 11 ans
- % réalisé changé de 70 à 80
#9 Mis à jour par Alexey Lavrentev il y a presque 11 ans
- (+) 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 Mis à jour par Alexey Lavrentev il y a presque 11 ans
- Statut changé de Feedback à Resolved
- % réalisé changé de 80 à 90
#11 Mis à jour par Matthieu Decorde il y a presque 11 ans
- Statut changé de Resolved à Closed
#12 Mis à jour par Matthieu Decorde il y a presque 11 ans
- % réalisé changé de 90 à 100