Partial trigger set showrequired attribute to true, but on page not seeing the required 'star'?

Hi All,
I have a selectonechoice dropdown list and a input field, i want when the second item of dropdown list selected then the showrequired attribute of the input field was set to false, if the first item selected then the showrequired set to true. I also want to see the 'star' sign which indicates the showrequired attribute visually can be seen show and disappeared.
I am using a autosubmit enalbed selecteonechoice and a partialtrigger (set the dropdown's id), but on page I didn't see any visual change : the 'star' sign is now showing or disappearing at all. Should it work? Or it's working but on page just not calling related CSS to show/hide the star sign? BTW I am using an el express for the showrequired attribute:  showRequired="#{bindings.ReferenceValue1.inputValue eq 0? true: false}"
I also tried set the showrequired attribute in java method that listen to the dropdown list's onchange event, but still visually I am not seeing any change.
I did:
      comConEditBankName.setRequired(false);
      comConEditBankName.setShowRequired(false);
Could anyone point out my mistake here or give some guide?
Below are the jsf codes:
                                                <af:selectOneChoice value="#{bindings.ReferenceValue1.inputValue}"
                                                                    label="Invoice Template"
                                                                    required="#{bindings.ReferenceValue1.hints.mandatory}"
                                                                    shortDesc="#{bindings.ReferenceValue1.hints.tooltip}"
                                                                    id="soc2"
                                                                    binding="#{home.invoiceTemplate}"
                                                                    visible="false"
                                                                    autoSubmit="true"
                                                                    valueChangeListener="#{home.invoiceTemplateOnChange}">
                                                    <f:selectItems value="#{bindings.ReferenceValue1.items}"
                                                                   id="si2"/>
                                                </af:selectOneChoice>
<af:inputText label="Bank Name" id="it12"  showRequired="#{bindings.ReferenceValue1.inputValue eq 0? true: false}"
                                              required="#{bindings.ReferenceValue1.inputValue eq '0'? true: false}"
                                              binding="#{home.comConEditBankName}"
                                              autoSubmit="true"
                                              maximumLength="50"
                                              partialTriggers="soc2"
                                              value="#{bindings.ReferenceValue1.inputValue}"/>
Thanks!!!

Did you check the expression bindings.ReferenceValue1.inputValue eq 0 is true or not.
One more thing try showRequired="#{bindings.ReferenceValue1.inputValue eq 0}"

Similar Messages

Maybe you are looking for

  • My neighbor gets service and AT&T cancels my account!

      Extraordinarily long story (15+ hours phone time). So, here's the quick version. ATT changed my service address at some point to my neighbors address. Billing address is of course correct as I had service at my address for years. Found this out the

  • Since updating to version 26, the 'serach toolbar' no longer works, even if i change between various search engines google/yahoo, etc), can anyone please help?

    upon first opening firefox, the search bar works fine for one search only , then does nothing for any subsequent searches ... this was working fine before the recent update to version 26.. even if i go to the google search page web site (www.google.c

  • Work flow in production order

    Hi There is a requirement to trigger a mail to a specific user id whenever the order will be Created, confirmed & TECOed (may be they add other events later on). We can make it through standard production order workflow process I think. For that I ha

  • Error (-50) with iTunes Download

    I am trying to download a tv show and this keeps popping up. I went to the help page about the message. It said to delete the cache. I went to where my downloads go could not find it. In iTunes download window it is only 1.2k in size. Any help is app

  • Host name, port number and service name

    Hi! I have a question that will sound easy and stupid, but not for me. during the instal of 9iAS.There is a screen ask to provide the host name,port number and service name. Did host anme is only the name of my PC? and what is the port number?(window