Discussions
Categories
- 197K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.8K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 556 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.4K SQL Developer
- 296.4K Development
- 17 Developer Projects
- 139 Programming Languages
- 293.1K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 159 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 471 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
ADF af:panelSplitter binding in threeColumnTemplate NullPointerException

690077
Member Posts: 17
Oracle Fusion ADF - Accessing ADF af:panelSplitter binding in threeColumnTemplate NullPointerException
Hi,
when using the template containing panel splitter binding to backing bean panelSpliterRightShoppingCart a RichPanelSplitter,
when clicking on a command button, the action throws a NullPointerException. Any ideas as to why the component is NULL on
a fully rendered page? I want to be able to set the collapsed attribute to true or false and of course see that state in the browser view, Thanks...
<af:panelSplitter collapsed="false" binding="#{backingBeanScope.backing_jsp_myDetails.panelSpliterRightShoppingCart}"
orientation="horizontal"
splitterPosition="#{attrs.endColumnSize}"
positionedFromEnd="true" id="panelSpliterRightCart">
<f:facet name="first">
<!-- start of main decoration -->
<af:decorativeBox theme="default" id="pt_db2">
<f:facet name="center">
<af:facetRef facetName="center"/>
</f:facet>
</af:decorativeBox>
<!-- end of main decoration -->
</f:facet>
<f:facet name="second">
<af:facetRef facetName="end"/>
</f:facet>
</af:panelSplitter>
Edited by: meet.mrnrg on Sep 1, 2009 12:05 PM
Hi,
when using the template containing panel splitter binding to backing bean panelSpliterRightShoppingCart a RichPanelSplitter,
when clicking on a command button, the action throws a NullPointerException. Any ideas as to why the component is NULL on
a fully rendered page? I want to be able to set the collapsed attribute to true or false and of course see that state in the browser view, Thanks...
<af:panelSplitter collapsed="false" binding="#{backingBeanScope.backing_jsp_myDetails.panelSpliterRightShoppingCart}"
orientation="horizontal"
splitterPosition="#{attrs.endColumnSize}"
positionedFromEnd="true" id="panelSpliterRightCart">
<f:facet name="first">
<!-- start of main decoration -->
<af:decorativeBox theme="default" id="pt_db2">
<f:facet name="center">
<af:facetRef facetName="center"/>
</f:facet>
</af:decorativeBox>
<!-- end of main decoration -->
</f:facet>
<f:facet name="second">
<af:facetRef facetName="end"/>
</f:facet>
</af:panelSplitter>
Edited by: meet.mrnrg on Sep 1, 2009 12:05 PM
Answers
-
Usually when the page breaks like that is because you have a problem on either one of the EL in your page or some of the business logic that you invoke is throwing the NPE. Can you output some of the debugging information from your log file so we can have more lights on what's going on?
thanks,
Juan Camilo -
Yes - the problem is with the current limitations on the level of EL expression language capabilities on the EL expression enabled attributes of various tags.
1) The Oracle Fusion Expression - BUILDER - currently only allows the following operations;
#{&&} #{||} #{>} #{<} #{>=} #{<=} #{==} #{!=} #{-} #{!} #{+} #{-} #{*} #{} #{%}
2) The Oracle Fusion Expression - BUILDER - currently DOES NOT allow;
a) access to public methods
b) access to public methods of any return type
c) access to public methods with any parameter lists
-- My Problem --
<af:pageTemplate viewId="/templates/threeColumnTemplate.jspx"> -- This is the template with the following;
The code:
af:panelSplitter collapsed="false" binding="#{backingBeanScope.backing_jsp_myDetails.panelSpliterRightShoppingCart}"
a) This binding attribute as a valid EL expression, the page compiles with no-errors.
b) The backing bean and the field attribute exist
c) The filed attribute of type RichPanelSplitter - it has setter and getter methods.
d) The code: The if check removes the NullPointerException, but does not explain why the field data member is not populated, it show not be NULL, all other Richxxx types are populated with valid page object references.
public void collapseExpandRightCartPanelSplitter() {
System.out.println("collapseExpandRightCartPanelSplitter: " + "collapseExpandRightCartPanelSplitter()");
System.out.println("panelSpliterRightShoppingCart: " + panelSpliterRightShoppingCart);
if (this.panelSpliterRightShoppingCart != null) { //Removes NullPointerException
if (this.panelSpliterRightShoppingCart.isRendered()) {
this.panelSpliterRightShoppingCart.setCollapsed(false);
} else {
this.panelSpliterRightShoppingCart.setCollapsed(true);
}
}
}
e) The main JSPX page calls the template and has a RichCommandButton - this button has an action which invokes the collapseExpandRightCartPanelSplitter() method in the backing bean! But of course as mentioned the field data member is not populated and is always NULL for some reason!
This discussion has been closed.