-
1. Re: Conditional filling field value in EL
pbaker01 Jul 25, 2013 10:58 PM (in response to wrdlprmpft)Hi Chris,
I could not understand your question, could reword it?
I've been using the autocomplete and if a single space is entered then no selections are going to be shown.
Your example shows a single space, it is not an empty string....
It's not clear to me what you are trying to do here.
onfocus="#{rich:component('region')}.setValue(' ');" is not the same as
onfocus="#{rich:component('region')}.setValue('');"
-
2. Re: Conditional filling field value in EL
bleathem Jul 30, 2013 11:50 PM (in response to wrdlprmpft)How about a getValue() call? as in:
onfocus="#{empty rich:component('institutionName')}.getValue() ? #{rich:component('institutionName')}.setValue(' ');"
-
3. Re: Conditional filling field value in EL
wrdlprmpft Sep 9, 2013 1:52 PM (in response to pbaker01)Thanks, Paul, for your reply.
Indeed I found that entering a single space is a work around to RF-12152, which means that it triggers the autocomplete. Admittedly I confounded single space and empty string in my question. With the answer by Brian, my question is answered now.