what is the difference between setText and setValue

Hi Can someone explain to me what is the difference between setText() and setValue() Because it seems to me so far both are doing the same thing. Thanks
[180 byte] By [just_a_kid83a] at [2007-11-27 4:46:08]
# 1

I found the following in the sources. Method setText() is implemented on a deeper level of the inheritance structure. Usually setText() calls the setValue() method only, which is inherited from a superclass. But under some circumstances there is executed additional code. If you use a TextField (<ui:textField>), set readonly="true" and use setValue() instead of setText(), the value (or the whole component - I don't remember.) is not rendered. I had really a problem with that. That's why I use always setText().

I'am missing the explanation for the difference between setValue() and setText() in the API. Also what are submittedValue, localValue ... and when these values are used, when they are null ... Confusing!

Ingmara at 2007-7-12 9:58:39 > top of Java-index,Development Tools,Java Tools...
# 2

Hello there, in my experience the diference between this two depends on what are you doing.

When i begin to use Creator, (1 year ago) i found that when i use textField, staticText or label component, i droped a float converter, integer converter, or any other kind of converter over the component, then i retrieve the value to manipulate with getValue() property instead gettext(), thats because you want to get the value that can be in float, integer, maybe date, and store the value in a proper variable. If u use getText() u will get an error, but if u only want to get the chars ot the component u use getText() that can be stored only in a String variable. any doubt post again

Belthazor!

Beltazora at 2007-7-12 9:58:39 > top of Java-index,Development Tools,Java Tools...
# 3
But it seems GetText() and GetValue() still return me java.lang.Long if i use LongConverter to my text field
just_a_kid83a at 2007-7-12 9:58:39 > top of Java-index,Development Tools,Java Tools...
# 4
This is the expected behaviour.
Ingmara at 2007-7-12 9:58:39 > top of Java-index,Development Tools,Java Tools...