[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Semicolon in SmartTextArea results in ArrayIndexOutOfBoundsException  XML
Forum Index -> Development
Author Message
hilka

Power User

Joined: 23/11/2007 09:00:08
Messages: 191
Offline

Hi Captain,

we use a smarttextarea with smarttexttype="xml" to let the user enter information that he wants to send as email.

Unfortunately, if the user enters a ; somewhere in the text, an exception is thrown in the client and the text is truncated after the first ; in the text.

This is the stack trace:

[java] java.lang.ArrayIndexOutOfBoundsException: 2
[java] at org.eclnt.client.util.valuemgmt.SmartText.setSmartTextCSV(SmartText.java:190)
[java] at org.eclnt.client.util.valuemgmt.SmartText.createSmartTextByCSV(SmartText.java:133)
[java] at org.eclnt.client.controls.impl.SimpleEditorTextPane.getSimpleText(SimpleEditorTextPane.java:189)
[java] at org.eclnt.client.controls.impl.SimpleEditorTextPane.getSimpleTextXML(SimpleEditorTextPane.java:215)
[java] at org.eclnt.client.elements.impl.SMARTTEXTAREAElement.processChangeByUser(SMARTTEXTAREAElement.java:648')
[java] at org.eclnt.client.elements.impl.SMARTTEXTAREAElement.access$0(SMARTTEXTAREAElement.java:642)
[java] at org.eclnt.client.elements.impl.SMARTTEXTAREAElement$MyFocusListener.focusLost(SMARTTEXTAREAElement.java:86)

Seems like the text is interpreted as CSV text. The behavior is like that since a long time, I re-tested it with the version from last week ('5_0_20160118')

Best regards,

Tobias
CaptainCasa

Power User
[Avatar]

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

Hi Tobias,

thanks for the info - it is corrected now (or: with next update...).

Regards, Björn

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