Aleks87 wrote:
>
>
> Aleks87 wrote:
>>
>> 1)
>> I have a ToolClass with objects: Description (Description: TextArea),
>> Title (Title: String), URL (URL: String).
>> Creating a new Tool I have to fill out these objects. "Description" is a
>> TextArea object (editor: PureText) and it can contain line breaks. In my
>> Livetable I show these objects and their contents. But if I have a line
>> break in "Description" my Livetable doesn't show anything.
>>
>> How can I solve this problem? Does anyone has an idea? Or do I have to
>> remove "Description" from my Livetable list? Perhaps it is possible to
>> transform all line breaks to one blank line? Or is this to complex?^^
>>
>> Ps. What for are "Validation Regular Expression" and "Validation Message"
>> in the "Description" object made. I tried to put things like [a-zA-Z] in
>> but it doesnt work. Entering numbers still work.
>>
>
> Here is a part of my ToolClassSheet file:
>
> <td
> class="label"><label>#displayPropName($class.get("Description")):</label></td>
> <td>$doc.display("Description", $obj)</td>
>
> I'm not allowed to enter line breaks in the Description field 'cause
> Livetable doesn't work then.
> Can someone tell me how to modify the $doc.display to filter out line
> breaks?
>
My ToolClass is similiar to the TodoClass in the DevGuide.
I have the idea to create another object called "string" and then to set the
"Description" object equal to "string" object and transform the "string"
object into a string. Then I can give out "string" in my Livetable. But I'm
still not familiar with the API Guide (javadoc). I tried things like:
#set($string = $Description.toString())
or
$string = doc.getDoc("Description", $obj.toString())
But nothing had the wanted effect.
Can someone help me please?!
--
View this message in context:
http://xwiki.475771.n2.nabble.com/4-Questions-Livetable-1-3-Photo-Album-4-tp5297342p5316283.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users