Tags:
create new tag
view all tags

Question

As suggested in the Problem TableMaintenaceViaForm i've created a Web. The only difference is that i have fields in the defined Form of type 'textarea' instead of 'text'.

Everything went well until i filled one of these fields with multiline contents.

I get Output like this:

------------------ cut -----------------

...

Item Category Benefit Effort Priority Description Owner & Contributors Dependencies Status
IssueTest Test Category High none 2 This is a test issue. myself none
| IssueTest2 | Test | Line 1 Line 2 Line 3
none 2 Test Issue 2 i am none
Number of topics: 2

------------------ cut -----------------

This are two lines of the search result. The second one is the one which forms the problem. The value 'Line 1 <newline> Line 2 <newline> Line 3' is the content of one field of type textarea.

Looking at the HTML source it seems significant that the second result line does not begin with a <tr>.

Also the <newlines> should be translated into <br>'s so that the height of the result line will be extended.

Any idea what went wrong ?

  • TWiki version:Beta 20011120
  • Web server: Apache
  • Server OS: Sun OS
  • Web browser: Netscape 4.77 (NT)
  • Client OS: NT v4

-- PetricFrank - 27 Nov 2001

Answer

This is actually spec. It looks like you are using TWiki's table syntax together with multi-lines which is not compatible. TWiki's | .. | .. | table syntax requires that all cells of a row are on one line.

Sandbox.TestTextArea has a sample textarea.

Work around: Define an HTML table in %SEARCH{...} if you want to display a textarea in a table.

This brings up an enhancement request, Codev.RenderMultiLineTextAreaFormField

-- PeterThoeny - 27 Nov 2001

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2001-11-27 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.