Hi Mike, ULCTextArea does not have the API getLineStartOffset() and getLineEndOffset() unlike in JTextArea because the model document is not available on the server.
If you want to retrieve text separated '\n' character, then you can get the whole text and use StringTokenizer to retrieve each line. However, if you mean by "line" the lines that are created in texarea due to wrapping of lines and words then there is no direct way of getting these "lines". You can look at this: http://forum.java.sun.com/thread.jspa?threadID=479820&messageID=2235104. But to implement any such thing you will have to extend ULCTextArea. Thanks and regards, Janak >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of McWhirter, >Michael >Sent: Monday, August 13, 2007 7:05 PM >To: [email protected] >Subject: [ULC-developer] Retrieve text from ULCTextArea > > >We would like to retrieve the text from a text area line by line instead >of retrieving the complete text area all at once. Is this possible? > >If so, can the text be retrieved as it appears in the browser with word >wrapping? > >Thanks, > >Mike > > ><This message has been scanned for viruses by a Barracuda Spam Firewall.> >_______________________________________________ >ULC-developer mailing list >[email protected] >http://lists.canoo.com/mailman/listinfo/ulc-developer _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
