JSF getValue() v.s. getSubmittedValue()

前端 未结 4 1460
一整个雨季
一整个雨季 2020-12-09 09:06

I\'ve been developing a few JSF applications lately and am disturbed with the inconsistency in the web component APIs.

I\'ve noticed that there is extremely unpredi

4条回答
  •  粉色の甜心
    2020-12-09 09:50

    I work on xpages which are based on JSF so.. it could be the same...

    Anyway, getSubmittedValue(); always returns what you see in firebug/chrome develepers network tab. That is value within sent packet. I have it shown (chrome) in headers tab, in form data section, named $$xspsubmitvalue.

    On the other hand, getValue() is component specific. <-- not 100% sure here.

提交回复
热议问题