I have dowmload the wmlbrowser, it work nice.
I find a different between <h:inputText/> and <wap:inputText/>. I use the tag like this:
<h:inputText id="name" value="#{someBean.name}"/>(in pagse/htm/login.jsp)
<wap:inputText id="name" value="#{someBean.name}"/>(in pagse/wml/login.jsp)
If I input a invalid value that can not pass the validate phase and repaint the same page, <h:inputText/> will display the invalid value in the input tag, and <wap:inputText/> will display the original value, the invalid value just been give up.
2006/4/22, xie min <[EMAIL PROTECTED]>:
I think It's my simulator's bug, when I input the a invalid name value, the simulator hold this value as a variable in the client, but this value cannot pass the validate in the server side, so the value of the input componnet do not change(the value is empty). When repaint the login pase, the simulator just show the invalid value that it stoned as a variable.I try another simulator, everything is right :-)Sorry for my mistake and my poor english.thx-xiemin2006/4/22, Matthias Wessendorf <[EMAIL PROTECTED]>:Right, just figured out the same, by looking to the *rendered* output.
However, I am using the WML RenderKit in Produktion ([1]) and works fine
the given value is pushed to a web-service and a result will be displayed
-Matthias
[1] http://wap.w3l.de/wap/suche.jsf
On 4/22/06, xie min < [EMAIL PROTECTED]> wrote:
>
> Hi everyone,
> There is someting strange when I use the wml component <wap:inputText/>.
> In my login.jsp, I use the tag like this: <wap:inputText id="name"
> value="#{someBean.name}"/>,and it will be render just like this:<input
> id="_id0_name" name="_id0_name"/>.
> there is not the value attribute in the input tag!!
> When I use the M3Gate wap simulator, the value can be seen, but when I use
> the Opera, no value will be seen.
> Who can tell me that how the value can be see without a value attribute in
> the input tag?
> thx
> -xiemin
--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

