[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
";" not allowed in Smarttextarea?  XML
Forum Index -> Development
Author Message
kessler

Power User

Joined: 22/01/2008 15:14:19
Messages: 47
Offline

Hi,

I have a text like this and want to show it in a Smarttextarea:

Ein zulässiges Kennwort muss mindestens 16 und darf höchstens 64 Zeichen beinhalten. Darüber hinaus sind Zeichen aus mindestens drei der vier Kategorien "Großbuchstaben", "Kleinbuchstaben", "Ziffern" bzw. "Sonderzeichen" zu wählen. Zulässige Zeichen sind: a-z, A-Z, 0-9, !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~.

If there is a semikolin in the text, the smarttextarea is initialized empty. If I remove the semicolon, the text is shown.
Can you make it work with semicolons in the initialisation-text?

Grettings
Antje
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi,

the text that is passed into the constructor is a semicolon separated text, containing format instructions following the smartext format.

When passing a plain text containing seimcolons you need to pass it properly, using ValueManager.encodeCSV():

Code:
     String csvText = ValueManager.encodeCSV(new String[] {"Some text; containing semicolons;"});
     SmartText m_smartText = new SmartText(csvText);
 


Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team