Hi, Darren.
Correct me if I'm wrong: you want second tr:inputText not to be rendered
if "#{bean1.appointGprnRender}" is true? Then you can simply change
"#{bean1.appointGprnRender}" to something like
"#{!bean2.appointGprnRender && bean1.appointGprnRender}" (for second
input changes are similar).
Alternatively, you can use yet another bean to control such behavior. Or
use it as wrapper for calls to bean1 or bean2 while moving them to
"none" scope. In that case you can use single tr:inputText. Don't know
what approach would be better in your situation.


Darren McEntee wrote:
>
> Hi Guys,
>
>  
>
> If I have two trinidad inputText fields like below…
>
>  
>
> <tr:inputText label="GPRN: (reg)" value="#{bean1.gprn}"
> rendered="#{bean1.appointGprnRender}"/>
>
> <tr:inputText label="GPRN: (Non reg)" value="#{bean2.gprn}"
> rendered="#{bean2.appointGprnRender}"/>
>
>  
>
> The page this can display data coming from two different beans.
>
> I want to render one field at a time, when I use a specific bean in
> each case.
>
> i.e.:
>
> rendered="#{bean1.appointGprnRender}" ... or
>
> rendered="#{bean2.appointGprnRender}"
>
>  
>
> This seems fine, but when I use the both beans in the same session, it
> obviously causes both fields to render as both are set to true.
>
> Is there a way to get around this, and only render one no matter what
> bean is used in any session.
>
>  
>
> Thanks.
>
> Darren.
>
>  
>
>  
>
>  
>
>  
>
>
>  
> P Please consider the environment before printing this email
> _________________________________________________________ 
>  
> 1. The information contained in this E-mail, including any files
> transmitted with it, is confidential and may be legally privileged.
> This E-mail is intended only for the personal attention of the stated
> addressee(s). Any access to this E-mail, including any files
> transmitted with it, by any other person is unauthorised. If you are
> not an addressee, you must not disclose, copy, circulate or in any
> other way use or rely on the information contained in this E-mail or
> any files transmitted with it. Such unauthorised use may be unlawful.
> If you have received this E-mail in error, please inform the sender
> immediately and delete it and all copies from your system. You may not
> forward this E-mail without the permission of the sender.
>  
> 2. The views expressed in this E-mail are those of the author, and do
> not necessarily represent the views of AMT-SYBEX. Internet
> communications are not secure and AMT-SYBEX cannot, therefore, accept
> legal responsibility for the contents of this message nor for any
> damage caused by viruses.
>  
> AMT-SYBEX Limited is a UK company, registration number GB03036807 at
> address The Spirella Building, Bridge Road, Letchworth, SG6 4ET. 
> AMT-SYBEX (NI) Limited is a UK company, registration number NI024104
> at address Edgewater Office Park, Edgewater Rd, Belfast, BT3 9JQ.
> For more information on the AMT-SYBEX Group visit
> http://www.amt-sybex.com <http://www.amt-sybex.com/>
> _________________________________________________________
>
>
> __________ NOD32 2497 (20070901) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com

Reply via email to