maybe that error occurs, because your widget is somewhere out of sight of the client. Check it via FireBug or something else.
You should check for css styles - with "display:none" or "visibility:hidden", too.
If that doesn't help, please let's have a look at the SSearchDetailResult class.
Greetz,
Markus
Am Freitag, 2. März 2012 07:23:45 UTC+1 schrieb tong123123:
-- Am Freitag, 2. März 2012 07:23:45 UTC+1 schrieb tong123123:
there is a TablayoutPanel tabLayoutPanel, and FocusPanel SSearchDetailResult
there is a button in the first tab of tabLayoutPanel and when press that button, I want the focuspanel tab is selected, so I write
[code]
SSearchDetailResult sSearchDetailResult = new SSearchDetailResult();
tabLayoutPanel.add(sSearchDetailResult, "Detail");
sSearchDetailResult.setVisible(true);
tabLayoutPanel.selectTab(sSearchDetailResult);
// tabLayoutPanel.selectTab(1);
[/code]
the result is the sSearchDetailResult can be selected, but there is error in eclipse development tab as follow:JavascriptException: (Error): Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
what is the problem come from?!!
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dvs2PA4n9fgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment