Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Cr in textarea
Cr in textarea [message #28487] Wed, 30 May 2007 21:24 Go to next message
Eclipse UserFriend
Originally posted by: oberhack.softwarefabrik.net

Hi all,

when entering cr into a text area and trying to show that again my browser
freezes.

Bug or feature?

By the way: fantastic framework!

Andreas
Re: Cr in textarea [message #28948 is a reply to message #28487] Wed, 30 May 2007 22:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: b.muskalla.gmx.net

Hi Andreas,

just to be sure: you mean a Carriage Return?!

just tested this with current CVS and it worked without any problem.
Maybe you can try to reproduce it in the controls demo of RAP or give us
a simple example.

btw: which version are you using? M3 or CVS? And which browser are you
using?

Cheers
Benny

Andreas wrote:
> Hi all,
>
> when entering cr into a text area and trying to show that again my browser
> freezes.
>
> Bug or feature?
>
> By the way: fantastic framework!
>
> Andreas
>
>
Re: Cr in textarea [message #29363 is a reply to message #28948] Thu, 31 May 2007 18:16 Go to previous message
Eclipse UserFriend
Originally posted by: oberhack.softwarefabrik.net

Hi Benny,
First of all: thank you for the fast response!
And second: sorry for not being precise!
The Carriage Return stuff seems to happen in the getText and setText method
on Text.

textArea = new Text( parent, SWT.MULTI | SWT.WRAP
| SWT.V_SCROLL | SWT.BORDER );
textArea.setEditable( true);
Activator.addObjectChangedListener( this, new ObjectChangedListener(){
public void changed( IComponent oldObject, IComponent newObject )
{
String str = validateString(newObject.getComment());
getTextArea().setText( str );
}
});
In the "validateString" method I'm now filtering the whole CR stuff. If I
don't do it, it will not show the text and the app freezes.
It also doesnt work in your demo. If you check on the "WRAP" checkbox and
enter text with CR and press change it will not show up. (in the second text
field)
Ok - so far so good :-) I will now check out the latest code from CVS.

Thanks

Andreas

"Benjamin Muskalla" <b.muskalla@gmx.net> schrieb im Newsbeitrag
news:f3kvjd$4m8$1@build.eclipse.org...
> Hi Andreas,
>
> just to be sure: you mean a Carriage Return?!
>
> just tested this with current CVS and it worked without any problem. Maybe
> you can try to reproduce it in the controls demo of RAP or give us a
> simple example.
>
> btw: which version are you using? M3 or CVS? And which browser are you
> using?
>
> Cheers
> Benny
>
> Andreas wrote:
>> Hi all,
>>
>> when entering cr into a text area and trying to show that again my
>> browser freezes.
>>
>> Bug or feature?
>>
>> By the way: fantastic framework!
>>
>> Andreas
Previous Topic:Preload images
Next Topic:Hide a ViewPart
Goto Forum:
  


Current Time: Tue Apr 23 17:11:38 GMT 2024

Powered by FUDForum. Page generated in 0.03864 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top