This is a newbie concern.
I have a selectInputText component that the user can type in text to get a list of matches. I am able to get a list of matches when I start typing into the text box.
The issue I am facing is when I start typing a character/number, the cursor seems to disappear after each character input. I have to Click inside of the text box to resume cursor visibility each time. I am not sure why this is happening and what i am doing wrong.
I would appreciate any help in this regard. I have tried to follow the tutorial closely, but I must be missing something.
Code snippets below that I thought are relevant:
Code:
<ice:panelGroup>
<ice:panelGrid columns="2">
<ice:selectInputText rows="10"
valueChangeListener="#{uiSessionBean.updateAutoCompleteList}"
partialSubmit="true">
<f:selectItems
value="#{uiSessionBean.sepInfoTableBean.alFilterSelectItems}" />
</ice:selectInputText>
<ice:commandButton
value="#{uibundle.filterBtnNm}"
actionListener="#{uiSessionBean.filterButtonListener}"
partialSubmit="true"/>
</ice:panelGrid>
</ice:panelGroup>
The methods that I have to handle the ValueChangeEvent are as below:
Code:
**
* Method to update the auto complete list when user types in choice.
*/
public void updateAutoCompleteList(ValueChangeEvent vce) {
if (this.getSepInfoTableBean() != null) {
this.getSepInfoTableBean().updateList(vce);
}
this.effectChangeListener(vce);
}
UiSessionBean extends BaseBean that comes as part of Icefaces component showcase source
(ICEFaces.1.8.1)
Code:
public class BaseBean implements Serializable {
//the logger for this class
protected final Log logger = LogFactory.getLog(this.getClass());
// effect that shows a value binding chance on there server
protected Effect valueChangeEffect;
public BaseBean() {
valueChangeEffect = new Highlight("#fda505");
valueChangeEffect.setFired(true);
}
/**
* Resets the valueChange effect to fire when the current response
* is completed.
*
* @param event jsf action event
*/
public void effectChangeListener(ValueChangeEvent event){
valueChangeEffect.setFired(false);
}
....................
.....................
}