This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 30, 2012, 5:07 PM
19 Posts

Trying to unhide a panel based on a value of a radio button

  • Category: Debugging
  • Platform: All
  • Release: 8.5.3
  • Role:
  • Tags: partial refresh radio group
  • Replies: 3
I have a custom control with a bunch of radio buttons.  When the user selects Yes or No, I want to un-hide some fields without refreshing the entire page.  So I put a panel control before a table row.  The problem is when I select the radio button to unhide the panel I get the following error since it is not rendered yet.
 
Any thoughts on how to resolve this?
 
 
Apr 30, 2012, 5:59 PM
10 Posts
Re: Trying to unhide a panel based on a value of a radio button
The panel you are trying to show is not rendered (because it is hidden). So it can not be refreshed.
 
Add another panel outside of the hidden panel and then refresh the outer panel. 
May 31, 2012, 10:28 AM
15 Posts
Re: Trying to unhide a panel based on a value of a radio button
Hi,
If you have solved this problem, please send me the code.
 
thanks 
May 31, 2012, 12:00 PM
126 Posts
Re: Trying to unhide a panel based on a value of a radio button
The problem was that he could reference the ID of the hidden panel because it didn't exist yet. simply refresh a parent of the panel instead.
 
for example 
 
<xp:panel id="panel1"> 
    <xp:panel id="panel2" rendered="#{javascript:viewScope.example}">   // example is false
    ...... 
    </xp:panel>  
</xp:panel> 
 
in this situation you can't change viewScope.example and refresh panel2 because it doesn't exist, modify example and refresh panel1  

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal