Note that there are some explanatory texts on larger screens.

plurals
  1. POUI Component issue onPageLoad method ADF oracle
    primarykey
    data
    text
    <p>I am facing problem in accessing the <code>UI component</code> (<code>button</code>) in the page in the <code>onPageLoad()</code> method. I am using ADF technology with JDveloper 11.1.2.3 the use case is:</p> <p>I am trying to disable or enable a button in page load based on information coming form the database. in my situation am executing a query that check if there is a stored file in the database; if there is a file, a button for downloading should be enabled which allow the user to download this file other wise the download button should be disabled. I tried the following code in <code>onPageLoad()</code> method:</p> <pre><code>public void onPageLoad() { // loading Previous file so the user have the option to download // if there is privous file stored in db if ((BlobDomain)tempVO.first().getAttribute("File1") != null) { System.out.println("ther is file stored in db from onPage load"); this.downloadButton.setDisabled(false); } else { // if there is no file stored the download option should be disapled System.out.println("no file stored in db from onPage load"); this.downloadButton.setDisabled(true); } </code></pre> <p><strong>and I got this errors after executing the previous code:</strong></p> <pre><code>&lt;UIXRegion&gt; &lt;_logIllegalContextChangeMessage&gt; ADF_FACES-10026:During the processing of the region component, either a context change was not found or it did not match the instance set up by the current component. Expected oracle.adf.view.rich.component.fragment.UIXRegion$RegionContextChange but found UIXCollection.CollectionComponentChange[Component class: oracle.adf.view.rich.component.rich.data.RichTable, component ID: t1]. &lt;RichExceptionHandler&gt; &lt;_logUnhandledException&gt; ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5 oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload