-
1. Re: ModalPanel onshow focus Problem
trigun Apr 26, 2012 5:43 AM (in response to trigun)Think it has something to do with chrome automatically select the value of the input ... because when i change my onshow to this:
onshow="#{rich:element('incPnlEdtServer:editServerForm:inputName')}.focus();#{rich:element('incPnlEdtServer:editServerForm:inputName')}.select();return false;">
the value in firefox will also not update ...
-
2. Re: ModalPanel onshow focus Problem
trigun Apr 26, 2012 7:49 AM (in response to trigun)Hm, sry for spaming, but found out that it hast nothing to do with the focus ...
my input which gets the focus looks like:
<h:inputText id="inputName" styleClass="addEdtInput" value="#{adminServerManager.selectedServer.name}"
size="20" valueChangeListener="#{adminServerManager.valueChanged}"
required="true" requiredMessage="#{messages['admin.required.message'] }" >
<rich:ajaxValidator event="onblur" />
<f:validateLength maximum="20" />
</h:inputText>
<rich:message for="inputName" errorClass="errorReqired" />
found out, when i remove validation and faces message everything works fine ...
-
3. Re: ModalPanel onshow focus Problem
trigun Apr 30, 2012 8:42 AM (in response to trigun)Answer to the problem described here: http://balusc.blogspot.com/2012/03/reset-non-processed-input-components-on.html