On Fri, Oct 11, 2013 at 12:57 PM, Michael Born <born(a)mpdigital.de> wrote:
I have now created a class
"Aktivity.Comment". This class now has a property
textarea with the name "comment".
Now comes my question, what do you mean by link the property?
Do you mean this:
<textarea id='0' name='comment'></textarea>
or should i do $doc.display('comment').
Display works when it is outside of the html tag.
Every time i replace my
html textarea with the $doc.display function it will paste {{html
clean="false" wiki="true"}} here my content {{/html}}.
If you look closely at the output you'll notice that the textarea has
a name attribute which value is a bit special:
Aktivity.Comment_0_comment
which refers to the 'comment' property of the first object of type
Aktivity.Comment. So you either hard-code this in your HTML or you put
wiki=true to your outer HTML macro and use $doc.display('comment'). Of
course in this later case you need to make sure you don't have special
wiki syntax symbols in your HTML (and if you have you need to escape
them; check the syntax help).
Hope this helps,
Marius
Sorry for my stupid questions, but i'm a little bit desperate. I have read
the FAQ Tutorial but for my question I don't found a answer in it.
--
View this message in context:
http://xwiki.475771.n2.nabble.com/XWiki-document-with-textarea-tp7587427p75…
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users