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



Aug 5, 2014, 8:16 PM
7 Posts

Not rendering panel on page load

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 3

Hi, all. Likely a rather simple solution that is evading me.  I have on an Xpage a table with 2 columns and 5 rows.  The left cells of the table each contain a .jpg that, when clicked, refreshes a panel contained in the cell to the right. Simple so far.  In each of those 5 panels sits a view control. I have it set up this way so that when the page loads, only the .jpg are visible. Each view becomes rendered when - and only when - its respective .jpg is clicked. My issue, though, is not knowing how to configure the view-containing panels to not render on page load.

I've done this many times with an Xpage dynamically displaying both a view and a document. In that case, however, the rendering of the document is based on a sessionScope.docUNID. I assume I'll need to create a similar variable that has its value change when a .jpg is clicked (and thus enable rendering in the now-refreshed panel)? 

Thanks for any insight you all can provide.  I've already received an amazing amount of help from reading these forums.  Cheers!

AJ

 

Aug 6, 2014, 12:19 PM
366 Posts
Every component has a "rendered" property

this value can default to false and then be set to true when the jpg is clicked either by using the component api or by setting the rendered property to a scoped variable and then having the click event set it to true.

Aug 6, 2014, 12:19 PM
366 Posts
Every component has a "rendered" property

this value can default to false and then be set to true when the jpg is clicked either by using the component api or by setting the rendered property to a scoped variable and then having the click event set it to true.

Aug 11, 2014, 7:56 PM
7 Posts
Thanks

Decided to go a different route, but thanks for clearing that up.  Cheers!


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