Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Combo Box "problem"
Combo Box "problem" [message #888021] Sun, 17 June 2012 14:51 Go to next message
Anna Friedrich is currently offline Anna FriedrichFriend
Messages: 8
Registered: June 2012
Junior Member
Hi there,
I am still new to RAP and maybe my problem is easy to fix. I didn't find another topic describing the same problem.

I am using a Combo box inside my View. The user can keep the text he typed in for later use:

 combo.add(combo.getText(), 0);



If I access the application from another browserwindow(like a second user), I see the previously kept text in this combobox as well.

Is it possible to work with sessionSingleton to avoid this behaviour? I did see how to use SessionSingleton in RAP/FAQ, but that's a bit too abstract. Is there another example anywhere?

Thanks in advance
Anna
Re: Combo Box "problem" [message #888523 is a reply to message #888021] Mon, 18 June 2012 08:34 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Anna,

> combo.add(combo.getText(), 0);

This line alone should not cause the text to be displayed in another
user session. Do you store the text somewhere else in your application?

Maybe the article on scopes and data stores in the developer's guide [1]
helps you understanding SessionSingletons better.

Best regards,
Ralf


[1]
http://eclipse.org/rap/developers-guide/devguide.php?topic=rwt/scopes.html

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Combo Box "problem" [message #888570 is a reply to message #888523] Mon, 18 June 2012 09:51 Go to previous message
Anna Friedrich is currently offline Anna FriedrichFriend
Messages: 8
Registered: June 2012
Junior Member
Hi Ralf,
sometimes you just have to write down your problem and the solution suddenly appears Very Happy

The combotext was stored in a textfile on serverside as well. That was my problem.
Thanks for your help nonetheless, the article helps me a lot!

best regards
Anna
Previous Topic:Setting different initial perspective possible?
Next Topic:Working with internal browser
Goto Forum:
  


Current Time: Fri Apr 26 09:18:38 GMT 2024

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

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

Back to the top