Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP 1.5M4 Redirect using ProtocolMessageWriter
RAP 1.5M4 Redirect using ProtocolMessageWriter [message #769108] Wed, 21 December 2011 12:27
Farooq Kamal is currently offline Farooq KamalFriend
Messages: 40
Registered: January 2010
Location: Karachi, Pakistan

With RAP 1.5 M4 (full implementation of JSON), I cant figure out how to rewrite my existing redirect code for logging out

(with help from Stefan

final String browserText = 
MessageFormat.format("parent.window.location.href = \"{0}\";", urlToLoginPage);

final JavaScriptResponseWriter writer = 

The problem is JavaScriptResponseWriter has now been replaced with ProtocolMessageWriter and the code should be

final ProtocolMessageWriter writer = 
writer.appendExecuteScript(String target, String scriptType, String code);

I'm looking for what to pass as target and scriptType. The ProtocolMessageWriter also has other methods which can be used but I guess this one should work.

Previous Topic:Invisible non editable input with chrome
Next Topic:RAP 1.5M4 Redirect using ProtocolMessageWriter
Goto Forum:

Current Time: Fri Oct 21 15:07:45 GMT 2016

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

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