[AgileWiki] assignment request from Niall--Swing field length
Status: Beta
Brought to you by:
blaforge
From: Bill la F. <bil...@su...> - 2006-06-27 00:21:46
|
Niall, Such a nice email for first thing in the morning! (It is 5:30AM in India as I read this.) I feel like it is Christmas and I just saw a whole pile of presents under the tree. :-) Lets have two threads on this, one for each assignment. And of course I'm responding to the simpler one first, swing field length. I'll start by confirming your understanding. Lets start by looking at the second half of org.agilewiki.framework.Form. This is where we request field input. Look at three methods, password, passwordChallenge and editText. These are the 3 methods which request field input. And they pass a size attribute giving a suggested field width. Note that this is not a max field length, only a suggestion to the display. Note also that this is a character count, not a size in pixels. So you will need to use a fudge factor (times 10 or something like that) to get a reasonable field length. Now if we look at the swing client, there are two modules that need updating: org.agilewiki.swingclient.common.EditText and org.agilewiki.swingclient.common.Password. Note that these two modules process the event objects produced by the three methods mentioned above. Now the servlet code already uses variable length field entry. The idea behind this project is partly to keep the servlet and swing programs similer in feel for the user and partly to improve the look of the swing client. Bill . . . . .. . . . . . . . . . . . Hi Bill, I would like to work on these open issues: GUI: SwingFieldLength - i presume that you are talking about database field lengths here? - ie when the gui needs a field length it should ignore the lengths of recieved field lengths? Doc - Table LSecs should be displayed using AwServer-generated HTML, allowing for clickable links within cells. Niall |