Hello Friends,
I am using BrowserContent, RenderingApplication and RenderingSession classes for rendering twitter oauth login page. But when i am using below code then my login page gets render successfully...
Code:
browserContent = _renderingSession.getBrowserContent( _currentConnection, null, e);
if (browserContent != null) {
final Field field = browserContent.getDisplayableContent();
if (field != null) {
synchronized (Application.getEventLock()) {
demoScreen.deleteAll();
demoScreen.add(field);
}
}
browserContent.finishLoading();
}
but as i want callback in my application i have to pass the second parameter as my applications reference.
Code:
but when i change the line from this:-
browserContent = _renderingSession.getBrowserContent( _currentConnection, null, e);
to:-
browserContent = _renderingSession.getBrowserContent( _currentConnection, this, e);//where this is my RenderingApplication class reference
i always get illegalstateexception on the line finishLoading() and i am not able to even catch that exception and my page never gets render.
Can anyone please tell me where i am wrong.Please Please Please help me out...i m stuck in this very badly.
Thanks in advance.
Rachna