Re: Question about using "rendered"

2007-01-23 Thread Thomas Chang
Hi Simon, Thanks for the answer. I've solved my problem. I changed the backing bean from "request" to "session" in the faceconfig.xml. It runs. Thanks again. Thomas Simon Kitching <[EMAIL PROTECTED]> schrieb: Thomas Chang wrote: > Hi all, > > I use the rendered inoder

Re: Question about using "rendered"

2007-01-23 Thread Simon Kitching
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: ... ... ... ... public class MyBean{ ... private String searchitem2 = null; ... public String getSearchitem2(){ ... } public void setSe

Re: Question about using "rendered"

2007-01-23 Thread Volker Weber
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

Re: Question about using "rendered"

2007-01-23 Thread Thomas Chang
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: Thanks. Thomas Mr Arvin

Re: Question about using "rendered"

2007-01-23 Thread Mr Arvind Pandey
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 <[EMAIL

Question about using "rendered"

2007-01-23 Thread Thomas Chang
Hi all, I use the rendered inoder to change the showing or hiding of an inputTextField in run-time. My code look as follow: ... ... ... ... public class MyBean{ ... private String searchitem2 = null; ... public String getSearchitem2(){ ... } public void setSearchitem2{ ... } .