Hi Thomas,
what exact did you mean by 'I can't get value from the inputTextField.'?
how did you try, in which phase, how did you switch the value of searchLabel?
You give not enough information to identfy your problem.
Regards,
Volker
2007/1/23, Thomas Chang <[EMAIL PROTECTED]>:
HI,
I have the getter and setter for myBean.searchLabel, otherwise the
inputTextField would not change from shown and hidden in run-time. My
problem is: if I use the rendererd, I can't get value from the
inputTextField. I am quite wonder. :-(
Here is my code again:
<h:inputText id="search_item2"
value="#{myBean.searchitem2}" size="30"
rendered="#{myBean.searchLabel == 2}" />
Thanks.
Thomas
Mr Arvind Pandey <[EMAIL PROTECTED]> schrieb:
Hi
It seems as if there is no getter and setter for
myBean.searchLabel which has been used in rendered
attribute. Also you want it to be shown only if
myBean.searchLabel is two '2' . so accordingly as per
your logic you set myBean.searchLabel to 2.
regards....
Arvind
--- Thomas Chang wrote:
> Hi all,
>
> I use the rendered inoder to change the showing or
> hiding of an inputTextField in run-time. My code
> look as follow:
>
> ...
> ...
>
> value="#{myBean.searchitem2}" size="30"
> rendered="#{myBean.searchLabel == 2}" />
> ...
> ...
> public class MyBean{
> ...
> private String searchitem2 = null;
> ...
> public String getSearchitem2(){
> ...
> }
>
> public void setSearchitem2{
> ...
> }
> ...
> }
>
> But it works not so well. Exactly to say: The
> inputTextField can be shown or hidden in run time.
> But I can't get the value from the inputTextField.
>
> But if I remove the "rendererd", I can get the value
> but the inputTextField can not be shown or hidden in
> run-time.
>
> Who can tells me what's wrong?
>
> Thomas
>
>
>
> ---------------------------------
> Yahoo! 360° – Bloggen und Leute treffen. Erstellen
> Sie jetzt Ihre eigene Seite – kostenlos!.
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
________________________________
Was ist Glück? Schlafen Fische überhaupt? Die Antworten gibt's auf Yahoo!
Clever.