With Servoy-1.1rc2 and java-1.3.1 on linux, HTML_AREA isn’t workikng for me
If I do a basic form with a large text field (e.g. 4000 chars) it’s all fine as a TEXT_AREA but as a HTML_AREA something goes wildly wrong: the short story is that I can step through the records but nothing appears in the fields and there’s a bunch of java errors scroll over the xterm from where servoy was started.
Before I go digging up more details: is this a known bug?
This is what I get when starting Servoy then switching to the offending form…
java.lang.NullPointerException
Exception occurred during event dispatching:
java.lang.NullPointerException
at javax.swing.text.html.StyleSheet.getRule(StyleSheet.java:166)
at javax.swing.text.html.StyleSheet$ViewAttributeSet.<init>(StyleSheet.java:2767)
at javax.swing.text.html.StyleSheet.getViewAttributes(StyleSheet.java:285)
at javax.swing.text.html.ParagraphView.setPropertiesFromAttributes(ParagraphView.java:85)
at javax.swing.text.ParagraphView.<init>(ParagraphView.java:42)
at javax.swing.text.html.ParagraphView.<init>(ParagraphView.java:40)
at javax.swing.text.html.HTMLEditorKit$HTMLFactory.create(HTMLEditorKit.java:969)
at javax.swing.text.View.updateChildren(View.java:995)
at javax.swing.text.View.removeUpdate(View.java:683)
at javax.swing.text.View.forwardUpdateToView(View.java:1096)
at javax.swing.text.View.forwardUpdate(View.java:1069)
at javax.swing.text.BoxView.forwardUpdate(BoxView.java:172)
at javax.swing.text.View.removeUpdate(View.java:689)
Hmm… I wonder if my version of Java (1.3.1 on Linux) has problems/whatever in the HTMLEditorKit department?
I still cannot reproduce the problem, when I fill a html_text area with:
Foo 1
It displayed correctly (I tried 1.3.1 and 1.4.1 on windows)
Note: if I use it does not render(display) the html but shows the source, so I changed those tags to and