Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
General questions on TextField & RichTextArea...
Hi all,
I'm Asela, a software developer form Sri Lanka.
I started using Vaadin recently & find it very interesting.
I have a few general questions & I would like to seek your assistance in resolving them.
They are as follows.
1. Do we have a way of setting the Content Type for a TextField ? [[color=#3A2AD2]as in myLabel.setContentMode(Label.CONTENT_XHTML) for a Label]
2. How do I specify the X & Y coordinates for a RichTextArea?
Thanks in advance.
Cheers,
Asela.
Hi Asela,
Asela Neligama: 1. Do we have a way of setting the Content Type for a TextField ? [[color=#3A2AD2]as in myLabel.setContentMode(Label.CONTENT_XHTML) for a Label]
No, since the HTML input element doesn't support any other rendering than plaintext. CONTENT_PRE is possible to accomplish, but RAW and XHTML not so much. You'd need to create a custom widget for those, and the end results would probably look somewhat like the RichTextArea.
Asela Neligama: 2. How do I specify the X & Y coordinates for a RichTextArea?
What do you mean by coordinates? Do you wish to position the editor itself, or some content that lives inside the editor?
Hi Jouni,
Thanks for the replay.
What do you mean by coordinates? Do you wish to position the editor itself, or some content that lives inside the editor?
Yes I wanted to position the editor itself.
However, it was a stupid question to be asked in the first place, coz I found the answer just 15mins after I posted the question. My bad...
:(
Anyways, now I'm confronted with a new problem that I've already opened another thread.
http://vaadin.com/forum/-/message_boards/message/143059
It would be much appreciated if you could have a look into this.
Thanks again.
Cheers,
Asela