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 10:51 Go to next message
Anna Friedrich is currently offline Anna Friedrich
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 04:34 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
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 05:51 Go to previous message
Anna Friedrich is currently offline Anna Friedrich
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:RWT FileDialog (without RAP)
Next Topic:Context Sensitive Help in RAP
Goto Forum:
  


Current Time: Fri Aug 29 10:28:21 EDT 2014

Powered by FUDForum. Page generated in 0.07896 seconds