GWT creates quite a few frames.
I have a formpanel. I wish to set its target to the current frame on
which the rootpanel resides.
As a start, I wish to define the term "current frame" to mean the
frame on which all the gwt widgets are displayed.
I have been using two techniques to set the target.
1. "_top"
2. create a namedframe whose url points to a gwt entry point.
But lately, for a reason, I just wish to reference the current frame
without using either of these two techniques.
I wish to submit a formpanel and whoosh, the action url response
replaces the contents of the current frame, without needing to use
either of the above techniques.
Is there such a function as rootpanel.getCurrentFrame() or equivalent?
If not, why not? It's a good and extremely helpful function for GWT to
have, isn't it?
If not, what "native" manipulation could I do to reference the current
frame?
Is there any plan for GWT team to include this function if it does not
already exist?
For example, I wish to do something like this (with hypothetical
function getCurrentFrame included),
[code]
FormPanel authform = new FormPanel(rootpanel.getCurrentFrame());
FlowPanel panel = new FlowPanel();
authform.add(panel);
for (Map.Entry<String, String> pset: openidParams.entrySet()){
Hidden f = new Hidden(pkey, pset.getValue());
panel.add(f);
}
authform.submit();
[/code]
So that authform.submit() would simply place the openid provider's
login page on the current frame without further ado.
I am sure this is a simple affair. GWT has made my life a lot simpler
but intriguingly, absence of getCurrentFrame is a very perplexing
affair for me frequently.
I seem to recall that I could reference it by frames[0] or [1], cannot
recall - could some one tell me?
But that seems like hidden undocumented features and I don't like
undocumented features because there's no assurance they will not be
changed in the future.
Thanks for any advice.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.