myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mr Arvind Pandey <arvindspan...@yahoo.co.in>
Subject Re: Question about using "rendered"
Date Tue, 23 Jan 2007 11:29:30 GMT
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 <thomas2004ch@yahoo.de> 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:
> 
> ...
> ...
> <h:inputText id="search_item2" 
> 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/

Mime
View raw message