We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>FormattedSearchProblem (27 Nov 2001, PeterThoeny)
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

Topic revision: r3 - 27 Nov 2001 - 17:13:33 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback