Closed
Bug 372324
Opened 18 years ago
Closed 18 years ago
Xforms doesn't display complete initial instance data for textarea
Categories
(Core Graveyard :: XForms, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 357652
People
(Reporter: cray99, Unassigned)
References
()
Details
Attachments
(1 file)
7.16 KB,
application/xhtml+xml
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070226 Ubuntu/dapper-security Firefox/1.5.0.10
Build Identifier: xforms 0.7
First. Great job everyone. Second. the sample web url provided makes things very clear. Just two clicks and you'll get the picture.
I have developed an xforms maker application that requires a textarea to accept several hundred lines of initial value from the instance. It's a normal xforms form hosted in an xhtml document(served as application/xhtml+xml). Everything works fine but the displayed initial instance data in the textarea is truncated, somewhere around line 100 to 120. However, !!the form submits the complete instance value!! --so no data is really lost--the problem is in the texarea display. If I manually type the same number of lines, the textarea scrolls and displays as normal, it's only when the instance value exceeds over 100 lines. Almost forgot, this is an external instance.xml file. (decided to double check--no matter whether it's internal or external instance!)
I just realized the number of lines depends on the size of the textarea so its nor relevant but I am using about 7ems total of margin/border space and a text box of height 25em width 100%.
Reproducible: Always
Steps to Reproduce:
1.create an xforms such as sample.xhtml (served as application/xhtml+xml) with a textarea
box size height:25em width:100% ;
html border-top(and bottom): 2em, border-left(right):4em;
body margin-top(bottom):1em margin left(right):2em
2.create an external xml file to be used for the instance. Supply an instance with an initial value for the textarea exceeding 200 lines or so (or just a lot of data).
3.open the form, scroll down to see if the data is complete.
4. submit (recieve and check the data from the server)
Actual Results:
Opened the xhtml/xforms file (served as application/xhtml+xml)
Looked at the textarea box, data after 112 lines was truncated--everytime.
However, the data submitted contained 100% of the initial texarea value of the instance from the xml file.
actually several tests revealed the number of lines is variable between 100 and 130 with variable initial value instance sizes (200 lines, 250, 230 etc)
Expected Results:
expected to see the complete instance value displayed in the textarea box
displayed the complete instance value in the textarea box
Comment 1•18 years ago
|
||
The textarea displays only a limited size of data. With the attachment, only up to lines 62 are fully shown. However if each line of instance data is reduced in length, more lines are shown.
This is independent of the textarea's styled size
This is fixed in the trunk as I see 100 lines in the textarea. I assume by the patch for 357652. So this won't be an issue in 0.8.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•