This discussion is archived
4 Replies Latest reply: Feb 8, 2013 12:49 PM by 973650 RSS

inputvalue bindind & disabled not working

973650 Newbie
Currently Being Moderated
when i set property disabled to true in this input-text
<af:inputText label="#{bindings.FirstName.label}"
value="#{bindings.FirstName.inputValue}"
required="#{bindings.FirstName.mandatory}"
disabled="true">
<af:validator binding="#{bindings.FirstName.validator}"/>
</af:inputText>
(FirstName is String)
it is not working correct
but i delete inputValue and change value to value="#{bindings.FirstName}"
it is working correct
what is the matter?

Edited by: Mehdi Jalali on Feb 5, 2013 2:05 AM
  • 1. Re: inputvalue bindind & disabled not working
    Timo Hahn Oracle ACE
    Currently Being Moderated
    It so much help us if you tell us your jdev version and format the code you post here. Please read the FAQ (https://forums.oracle.com/forums/help.jspa) to find out how to format code you post here!

    What does 'it is not working correct' mean? As we don't know your use case we can't comment on this.

    Where does the binding for the inputText come from?
    Is it generated by dropping a rwo onto a page?
    Did you create it yourself?

    Timo
  • 2. Re: inputvalue bindind & disabled not working
    973650 Newbie
    Currently Being Moderated
    hi i use jDev 11.1.2.3
    What does 'it is not working correct' mean? my mean : it is read only always.
    i set property disable ="true" in jsf tag but it is not working it is not disable
    i binding input text value to my field in view object.
    my view object create from two entity object.(join table)
    this field is from reference entity object.
    when i delete inputValue from end binding it is working correctly my input text did disabled (only my field type is string)

    Edited by: Mehdi Jalali on Feb 6, 2013 10:19 AM
  • 3. Re: inputvalue bindind & disabled not working
    bigchill Newbie
    Currently Being Moderated
    Mehdi Jalali wrote:
    What does 'it is not working correct' mean? my mean : it is read only always.
    i set property disable ="true" in jsf tag but it is not working it is not disable
    in the first line you say it is disabled, and in the next line you say its not disabled.

    which one of the 2 statements above are correct, or else please rephrase the question
    when you set disable=true, it means the field will be disabled(or read only), so from the first statement seems like disabled is working, though you next line turns the plate.
  • 4. Re: inputvalue bindind & disabled not working
    973650 Newbie
    Currently Being Moderated
    i want to set it to disable but i can not.
    why?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points