Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Operating System: Windows XP
Platform: PC
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
I have added Appear/Fade effects to the login popup for icefaces.org (See bug
#1084 for details). The following method is used to open the login popup and
request focus on the first inputText component.
public void openLogin(ActionEvent ae) {
openLogin("ui");
HtmlInputText toFocus = findUserNameField(ae.getComponent().getParent
());
if (toFocus != null) {
toFocus.requestFocus();
}
}
I have checked to make sure this method is getting the appropriate inputText
component and calling requestFocus() on the component - it is. The initial
firing of the effect appears to be blocking the focus being set on the
component. If you hit the login link a second time, the component will gain
focus.
#1084 for details). The following method is used to open the login popup and
request focus on the first inputText component.
public void openLogin(ActionEvent ae) {
openLogin("ui");
HtmlInputText toFocus = findUserNameField(ae.getComponent().getParent
());
if (toFocus != null) {
toFocus.requestFocus();
}
}
I have checked to make sure this method is getting the appropriate inputText
component and calling requestFocus() on the component - it is. The initial
firing of the effect appears to be blocking the focus being set on the
component. If you hit the login link a second time, the component will gain
focus.
This was fixed in Revision #13239
We added a FocusEffect class:
public class FocusEffect extends Effect {
@Override
{ return "Ice.Focus.setFocus"; }public String getFunctionName()
}
VisitorBean's buildEffect() method had the following added:
loginPopupEffect.setSequence("a");
loginPopupEffect.setSequenceId(1);
inputEffect = new FocusEffect();
inputEffect.setSequence("a");
inputEffect.setSequenceId(2);
The new effect is applied to the appropriate inputText component.
The previous code finding the component through it's id was removed.
This is ready to be closed