Nested Panels with SpringLayout
I've been attempting to use nested JPanels, each with a SpringLayout. However, this seems to cause some very strange behaviour with component scrolling off the left edge of the window unless it's sized narrow. I've not used SpringLayout much, but I'm at a loss to explain it.
I have:
protected void setUpGUI() {
//set up layout
SpringLayout theLayout=new SpringLayout();
super.getContentPane().setLayout(theLayout);
//add EntryPane
super.getContentPane().add(theEntryPane);
theLayout.putConstraint(SpringLayout.NORTH,theEntryPane,5,SpringLayout.NORTH,super.getContentPane());
theLayout.putConstraint(SpringLayout.WEST,theEntryPane,5,SpringLayout.WEST,super.getContentPane());
theLayout.putConstraint(SpringLayout.EAST,super.getContentPane(),5,SpringLayout.EAST,theEntryPane);
//set up buttons
storeButton=new JButton("Store");
refreshButton=new JButton("Refresh");
//add buttons
super.getContentPane().add(storeButton);
theLayout.putConstraint(SpringLayout.NORTH,storeButton,5,SpringLayout.SOUTH,theEntryPane);
theLayout.putConstraint(SpringLayout.WEST,storeButton,5,SpringLayout.WEST,super.getContentPane());
theLayout.putConstraint(SpringLayout.SOUTH,super.getContentPane(),5,SpringLayout.SOUTH,storeButton);
super.getContentPane().add(refreshButton);
theLayout.putConstraint(SpringLayout.NORTH,refreshButton,5,SpringLayout.SOUTH,theEntryPane);
theLayout.putConstraint(SpringLayout.WEST,refreshButton,5,SpringLayout.EAST,storeButton);
theLayout.putConstraint(SpringLayout.SOUTH,super.getContentPane(),5,SpringLayout.SOUTH,refreshButton);
}In my subclass of JFrame, and 'theEntryPane' is a subclass of JPanel which includes the following:
protected void addComponent(Component comp){
add(comp);
theLayout.putConstraint(SpringLayout.WEST,comp, 5,SpringLayout.WEST,this);
theLayout.putConstraint(SpringLayout.EAST,this,5,SpringLayout.EAST,comp);
if(lastComponent==null){
theLayout.putConstraint(SpringLayout.NORTH,comp,5,SpringLayout.NORTH,this);
} else {
theLayout.putConstraint(SpringLayout.NORTH,comp,3,SpringLayout.SOUTH,lastComponent);
lastComponent=comp;
}My subclass of JFrame has a similar method that simply passes the component on to theEntryPane. When I run it and add the following components:
addComponent(new JLabel("Thing!"));
addComponent(new JLabel("Thing!"));
addComponent(new JLabel("Thing!"));The buttons at the bottom are off to the left, and only return when you make the window narrow. If I make my nested pane override getPreferredSize() to return Integer.MAX_VALUE for both dimensions, the buttons at the bottom (which are in a different container!) appear correctly but the top two labels in the nested frame suffer from the same problem.
Can anyone shed any light onto what's going on here? It appears that the nested layouts are somehow interfering with one another.
Found the error. Fixed now.
Similar Messages
-
ADF/Swing probles with nested panels layout.
When panel is placed in other panel, changing of nested panel layout by changing panel properties, results in adding in jbInit() metod code for setting choosen layout at the end of jbInit and not (as in top panel) at the begining of jbInit(). Many times (for instance when layout is BorderLayout) because of this nested panel is displayd empty. It is necessary of course to manually move lines setting layout before lines which adds components to nested panel. Thou it is possible to do it manually it would be nice not to have remember about it.
Remi,
how do I reproduce this? Can you give me a step-by-step instruction? Its not clear from your posting which JDeveloper release you are using (though I assume JDeveloper 10.1.3), nor if the panels are created in external Java file or within the parent panel.
Frank -
Hi,
I have a JPanel inside another one. It hides when I click on "close" ("fermer" in French, below).
I'd like now add a background image to the parent panel (the background panel), so that the child panel appears in the middle of this image.
To make a long story short, my centered panel is okay without background image but disappears when I try and subclass JPanel (paint method) in order to get a back-panel-with image.
You'll find the code I use below. Is there any way to achieve this ?
Thanks for your help !
public class testCenteredPanel extends javax.swing.JFrame {
/** Creates new form testCenteredPanel */
public testCenteredPanel() {
initComponents();
setDefaultLookAndFeelDecorated(true);
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
jPanel1 = new javax.swing.JPanel();
jPanel2 = new javax.swing.JPanel();
jPanel3 = new javax.swing.JPanel();
jButton1 = new javax.swing.JButton();
getContentPane().setLayout(new java.awt.GridBagLayout());
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setLocationRelativeTo(this);
addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
formMouseClicked(evt);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
jPanel1.setLayout(new java.awt.GridBagLayout());
jPanel1.setPreferredSize(new java.awt.Dimension(400, 400));
jPanel1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jPanel1MouseClicked(evt);
jPanel2.setLayout(new java.awt.BorderLayout());
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
jPanel2.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0)));
jPanel2.setPreferredSize(new java.awt.Dimension(200, 200));
jPanel3.setBackground(new java.awt.Color(255, 255, 255));
jButton1.setText("Fermer");
jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButton1MouseClicked(evt);
jPanel3.add(jButton1);
jPanel2.add(jPanel3, java.awt.BorderLayout.SOUTH);
jPanel1.add(jPanel2, new java.awt.GridBagConstraints());
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 1.0;
getContentPane().add(jPanel1, gridBagConstraints);
pack();
private void jPanel1MouseClicked(java.awt.event.MouseEvent evt) {
jPanel2.setVisible(true);
private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
jPanel2.setVisible(false);
private void formMouseClicked(java.awt.event.MouseEvent evt) {
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
* @param args the command line arguments
public static void main(String args[]) {
new testCenteredPanel().show();
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
// End of variables declaration
}Thanks for your answer !
So far, it is better : I have overriden the paintComponent method insteda of the paint method and the background image shows up. But the "close" button on the nested (centrered) panel doesn't work any longer. I can click on it, but it stays grayed and the panel doesn't hide. I read the articles you pointed out but couldn't find much for this (except opacity, which I experimented without success).
Here's the code of my centered panel : maybe there's something wrong here ?
public class CenterPanel extends javax.swing.JPanel {
/** Creates new form CenterPanel */
public CenterPanel() {
initComponents();
public boolean isOpaque(){
return true;
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
setLayout(new java.awt.BorderLayout());
setBackground(new java.awt.Color(255, 255, 255));
setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0)));
setPreferredSize(new java.awt.Dimension(200, 200));
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
jPanel1.setOpaque(false);
jButton1.setText("Acheter");
jPanel1.add(jButton1);
jButton2.setText("Fermer");
jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButton2MouseClicked(evt);
jPanel1.add(jButton2);
add(jPanel1, java.awt.BorderLayout.SOUTH);
private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {
hide();
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JPanel jPanel1;
} -
Mouseclick issue on nested panel
Hi all,
I'm redesigning my portfolio website with Spry sliding panel
tech. and I've encountered a behaviour issue that I was wondering
if anybody else has seen before.
So I've got one set of sliding panels that controls the
sections of the website you visit (ie graphic design, web design
etc) and then a repeating panel inside each one that displays the
different examples in each genre. This nested panel is controlled
by the simple nextFrame(), prevFrame() functionality (as well as
listing the number of panels that are also clickable for more
direct navigation) - to see it all in action, visit
http://www.pixelz.co.uk/newhome.html
My problem is that the FIRST time you click on a navigation
link in the nested panel, nothing happens. After that it all works
fine, but it almost seems that the panel needs to be focused on
first by a click and then will run as normal. Anybody else come
across this issue? Is there a fix for it?
Cheers
PixHi all, anybody found a workaround for this problem?
still searching... -
Right alignment with SpringLayout
I've just started playing with SpringLayout. I've been using mostly BoxLayout up to now but I thought it was time I gave an alternative a go. BoxLayout has it's own erratic sizing problems.
Anyway I'm trying to generate a sub panel like:
Title (centered)
Quantity1 888
Quantity2 99
<Table> <PieChart>
With the numbers against the RHS of the box
First thing I've found is that putting a zero length Spring between the NORTH of the lable and the value doesn't work, I have to set both relative to the previous line or (mysteriously) no vertical separation happens at all.
Here's the code that adds a lable/value pair:
private static Component addPair(Component prev, String label, JLabel value) {
Container c = prev.getParent();
SpringLayout l = (SpringLayout)c.getLayout();
JLabel nameLab = new JLabel(label);
c.add(nameLab);
c.add(value);
l.getConstraints(nameLab).setHeight(Spring.constant(12));
l.putConstraint(SpringLayout.NORTH, nameLab, 2, SpringLayout.SOUTH, prev);
l.putConstraint(SpringLayout.WEST, nameLab, 10, SpringLayout.WEST, c);
l.putConstraint(SpringLayout.EAST, c, 10, SpringLayout.EAST, value);
l.putConstraint(SpringLayout.NORTH, value, 2, SpringLayout.SOUTH, prev);
// l.putConstraint(SpringLayout.SOUTH, nameLab, 0, SpringLayout.SOUTH, value);
l.putConstraint(SpringLayout.WEST, value, Spring.constant(10, 10, 500),
SpringLayout.EAST, nameLab);
return nameLab;
}prev being the label from the previous pair.
It refuses to right align the value lable. It looks like the constraint between the EAST of the value and the EAST of the container has no effect. I've also set the alignment in the JLabels to RIGHT, which has no effect.
If I take out the constraint between the WEST of the value and the EAST of the lable It plonks the lable and value on top of one another.
Furthermore, though the hieght of the pie chart is set explictly by a constraint, the LayoutManager seems incapable of producing a sensible minimum height for the overall box.
All of which makes me wonder if SpringLayout is worth persevering with or if there are just tricks and gaps I have to learn to deal with.I think I've cracked it. Some things they don't tell you about SpringLayout, which I found out mostly by reading the source.
putConstraint is not symetrical. Logically
putConstraint(SpringLayout.WEST, container, 10, SpringLayout.WEST,
valueLab);might be expected to imply:
putConstraint(SpringLayout.WEST, valueLab, -10, SpringLayout.WEST,
container);But it doesn't. Only the first object in the call is actually constrained.
Secondly the "overconstraint" thing is very arbitary. Setting the NORTH or WEST clears the EAST or SOUTH wherease setting the EAST or SOUTH clears the height or width. Hence if you set, for example, EAST and WEST then it's essential to set EAST first, otherwise WEST will be ignored and the WEST will be set from EAST - width. There seems to be no way of clearing a constraint once set, and constraints are intialised from the objects bounds, so NORTH and WEST are always set to zero initially. If seems like the contraints are almost always going to be treated as overconstrained.
Parallel constraints don't get combined, the last one specified predominates so there doesn't seem any sensible way of, for example, setting the width of a container based on the maximum of the widths of fields contained.
There seems to be no use of the springiness of Spring objects. They are merely treated as min, pref and max values. Logically stretchiness should be used to distribute space, and to cope with springs in parallel. It doesn't appear any of that stuff is done. -
How to change a setting in the Java Control Panel with command line
Hi,
I am trying to figure out how to change a setting in the Java Control Panel with command line or with a script. I want to enable "Use SSL 2.0 compatible ClientHello format"
I can't seem to find any documentation on how to change settings in the Java Control Panel via the command line
Edited by: 897133 on Nov 14, 2011 7:15 AMOK figured it out. This is for the next person seeking the same solution.
When you click on the Java Control Panel (found in the Control panel) in any version of Windows, it first looks for a System Wide Java Configuration (found here: C:\Windows\Sun\Java\Deployment). At this point you must be wondering why you don't have this folder (C:\Windows\Sun\Java\Deployment) or why its empty. Well, for an enterprise environment, you have to create it and place something in it - it doesn't exist by default. So you'll need a script (I used Autoit) to create the directory structure and place the the two files into it. The two files are "deployment.properties" and "deployment.config".
Example: When you click on the Java Control Panel it first checks to see if this directory exists (C:\Windows\Sun\Java\Deployment) and then checks if there is a "deployment.config". If there is one it opens it and reads it. If it doesn't exist, Java creates user settings found here C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7.
__deployment.config__
It should look like this inside:
*#deployment.config*
*#Mon Nov 14 13:06:38 AST 2011*
*# The First line below specifies if this config is mandatory which is simple enough*
*# The second line just tells Java where to the properties of your Java Configuration*
*# NOTE: These java settings will be applied to each user file and will overwrite existing ones*
deployment.system.config.mandatory=True
deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
If you look in C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7 for example you will find "deployment.properties". You can use this as your default example and add your settings to it.
How?
Easy. If you want to add *"Use SSL 2.0 compatible ClientHello format"*
Add this line:
deployment.security.SSLv2Hello=true
Maybe you want to disable Java update (which is a big problem for enterprises)
Add these lines:
deployment.javaws.autodownload=NEVER
deployment.javaws.autodownload.locked=
Below is a basic AutoIt script you could use (It compiles the files into the executable. When you compile the script the two Java files must be in the directory you specify in the FileInstall line, which can be anything you choose. It will also create your directory structure):
#NoTrayIcon
#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX64=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Func _JavaConfig()
$ConfigFile_1 = @TempDir & "\deployment.properties"
$ConfigFile_2 = @TempDir & "\deployment.config"
FileInstall ("D:\My Documents\Autoit\Java config\deployment.properties", $ConfigFile_1)
FileInstall ("D:\My Documents\Autoit\Java config\deployment.config", $ConfigFile_2)
FileCopy($ConfigFile_1, @WindowsDir & "\Sun\Java\Deployment\", 9)
FileCopy($ConfigFile_2, @WindowsDir & "\Sun\Java\Deployment\", 9)
Sleep(10000)
FileDelete(@TempDir & "\deployment.properties")
FileDelete(@TempDir & "\deployment.config")
EndFunc
_JavaConfig()
Now if you have SCUP and have setup Self Cert for your organization, you just need to create a SCUP update for JRE.
Edited by: 897133 on Nov 16, 2011 4:53 AM -
I have tried to view videos created in premiere elements 10 and I get the following message: "this file type is not supported, or the required codec is not installed. When it opens there is a red screen in the monitor panel with Korean writing which also appears in the place of each clip in the video. I tried uninstalling and reinstalling premiere elements 10, but that did not have any effect on the video. Do you have any suggestions? I researched codec, but do not understand them at all.
gloucester
In case you did not find it, the following is a copy/paste of the Announcement on Premiere Elements 19/NVIDIA GeForce
that appears at the top of this forum.
Premiere Elements 10 NVIDIA Video Card Driver Roll Back
If you are a Premiere Elements 10 user whose Windows computer uses a NVIDIA GeForce video card and you are experiencing
Premiere Elements 10 display and/or unexplained program behavior, then your first line of troubleshooting needs to be rolling
back the video card driver version instead of assuring that it is up to date.
Since October 2013 to the present, there have been a growing number of reports about display and unexplained workflow
glitches specific to the Premiere Elements 10 user whose Windows computer has a NVIDIA GeForce video card. If this applies
to you, then the “user to user” remedy is to roll back the NVIDIA GeForce video card driver as far as is necessary to get rid of
the problems. The typical driver roll back has gone back as far as March – July 2013 in order to get a working Premiere
Elements 10. Neither NVIDIA nor Adobe has taken any corrective action in this regard to date, and none is expected moving forward.
Since October 2013, the following thread has tried to keep up with the Premiere Elements 10 NVIDIA reports
http://forums.adobe.com/thread/1317675
Older NVIDIA GeForce drivers can be found
http://www.nvidia.com/Download/Find.aspx?lang=en-us
A February 2014 overview of the situation as well as how to use the older NVIDIA GeForce drivers for the driver roll back can be found
http://atr935.blogspot.com/2014/02/pe10-nvidia-video-card-roll-back.html
ATR -
Displaying custom drawn panels in a panel with FlowLayout vs GridLayout
I am having trouble to display my custom panels(on which I have drawn) in another panel with FlowLayout. When I use this layout only a small part of their top-left corner appears, when using the GridLayout they are displayed as should, all. Why is this? Is there any way around it?
The following is the code:
package diagramillustrator;
import java.awt.*;
import java.util.Vector;
import javax.swing.*;
public class ClassDiagram extends JPanel
//fields
//<editor-fold>
//general info
public String title = "class";
public String name;
public Vector interfaces;
public Vector exceptions;
public String superclass;
public Vector subClasses;
public boolean superClass;
public boolean subClass;
public String dPackage;
public String dExtends;
//variables
public FieldStructure field;
//methods
public MethodStructure constructor;
public MethodStructure metho;
//</editor-fold>
/** Creates a new instance of ClassDiagram */
public ClassDiagram()
super();
super.setSize(132,75);
protected void paintComponent(Graphics g)
setBackground(Color.WHITE);
Graphics2D g2d = (Graphics2D) g;
super.paintComponent(g2d);
g2d.setStroke(new BasicStroke(2f));
g2d.drawRect(1,1,132,25);
g2d.setFont(new Font("arial", Font.BOLD, 12));
g2d.drawString(title, 4,18);
g2d.setColor(Color.LIGHT_GRAY);
g2d.fillRect(1,25,132,25);
g2d.setColor(Color.BLACK);
g2d.drawRect(1,25,132,25);
g2d.setColor(Color.WHITE);
g2d.fillRect(1,51,132,25);
g2d.setColor(Color.BLACK);
g2d.drawRect(1,50,132,25);
public static void main(String[] args)
JFrame f = new JFrame("Testing ClassDiagram");
f.setSize(500,400);
//layout shows it correctly
JPanel panel1 = new JPanel(new GridLayout());
//layout shows it incorrectly
//JPanel panel1 = new JPanel(new FlowLayout());
panel1.setSize(200,200);
ClassDiagram c1 = new ClassDiagram();
ClassDiagram c2 = new ClassDiagram();
ClassDiagram c3 = new ClassDiagram();
panel1.add(c1);
panel1.add(c2);
panel1.add(c3);
f.add(panel1);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.show();
}Here is the main method included in the class(the main method is used for testing here) where the adding etc is done.
public static void main(String[] args)
JFrame f = new JFrame("Testing ClassDiagram");
f.setSize(500,400);
//layout shows it correctly
JPanel panel1 = new JPanel(new GridLayout());
//layout shows it incorrectly
//JPanel panel1 = new JPanel(new FlowLayout());
panel1.setSize(200,200);
ClassDiagram c1 = new ClassDiagram();
ClassDiagram c2 = new ClassDiagram();
ClassDiagram c3 = new ClassDiagram();
panel1.add(c1);
panel1.add(c2);
panel1.add(c3);
f.add(panel1);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.show();
}Please help.
Thanks,
AndXerLayout managers.
JPanel panel1 = new JPanel(new GridLayout());GridLayout divides the availabale space into equal cells and expands each child component to fill the cell.
JPanel panel1 = new JPanel(new FlowLayout());FlowLayout attempts to show each child component at its preferred size. The preferredSize is determined by the layout manager in the process of laying out the children. For a graphic component, ie, a component with no child components, the request for the components preferredSize will return the default size which is 10,10 for JPanel. Therefore you will need to either set the preferredSize for the gtaphic component or override the getPreferredSize method and return the desired Dimension. Another limitation of FlowLayout is that it attempts to lay its children out in–line.
GridBagLayout also respects the preferredSize of child components and offers more versatility.
import java.awt.*;
import javax.swing.*;
public class CD extends JPanel
public String title = "class";
public CD()
super();
setPreferredSize(new Dimension(132,75));
setBackground(Color.WHITE);
protected void paintComponent(Graphics g)
Graphics2D g2d = (Graphics2D) g;
super.paintComponent(g2d);
g2d.setStroke(new BasicStroke(2f));
g2d.drawRect(1,1,130,25);
g2d.setFont(new Font("arial", Font.BOLD, 12));
g2d.drawString(title, 4,18);
g2d.setColor(Color.LIGHT_GRAY);
g2d.fillRect(1,25,130,25);
g2d.setColor(Color.BLACK);
g2d.drawRect(1,25,130,25);
g2d.setColor(Color.WHITE);
g2d.fillRect(1,51,130,25);
g2d.setColor(Color.BLACK);
g2d.drawRect(1,50,130,25);
public static void main(String[] args)
JPanel panel1 = new JPanel(new GridBagLayout());
// This has little affect until after realization and
// is then subject to its parent layout manager. Use
// the preferredSize for better results.
//panel1.setSize(200,200);
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(5,5,5,5);
gbc.weightx = 1.0;
gbc.weighty = 1.0;
// Add some components
int n = 5;
// and specify columns
int cols = 3;
for(int j = 0; j < n; j++) {
gbc.gridwidth = ((j+1) % cols == 0) ? GridBagConstraints.REMAINDER
: 1;
panel1.add(new CD(), gbc);
JFrame f = new JFrame("Testing ClassDiagram");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.add(panel1);
f.setSize(500,400);
f.setLocation(200,200);
f.setVisible(true);
} -
Scrolling slow in a panel with 300 images
Hi,
I am using a panel which contains about 300 images (small icons).
I covered this panel with a scroller, and when scrolling, it's very slow.
when there are less images (about 50), it scrolls smoothly.
Any suggestions ?
<s:Panel id="src"
skinClass="SrcSkin"
dragEnter="trashDragEnterHandler(event);"
dragDrop="trashDragDropHandler(event);"
bottom="{bottomBar.height}" width="100%" >
<s:Scroller width="100%" height="100%" id="srcScroller" >
<s:Group width="100%" height="100%" id="aaa" verticalCenter="0">
ADDING 300 IMAGES HERE AT RUNTIME....
<s:layout>
<s:TileLayout verticalGap="-50" horizontalGap="11" />
</s:layout>
</s:Group>
</s:Scroller>
</s:Panel>Try using a list with itemrenderer for image. Scrolling performance will imporve as the list recycles its renderers.
-
View Criteria in ADF Query Panel with Table-Class Cast Exception
Hi,
I am getting Class Cast Exception when using view criteria for ADF Query Panel with Table. The version I am using is 11g Release 1(11.1.1.2.0)
Here is what I did:
1. created a view criteria on a view object
2. all are optional
3. all are Strings
3. Dragged the view criteria as a query component (ADF Query panel with Query table) on to the design layout
and the error when I clicked the Search button is:
javax.el.ELException: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1289)
at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:115)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at sni.foundation.facesextensions.filters.FoundationFilter.doFilter(FoundationFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._clearFilterCriteriaRows(FacesCtrlSearchBinding.java:4549)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._addFilterCriteria(FacesCtrlSearchBinding.java:4603)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:423)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
Thanks
VenkateshHi Frank.
I'm using JDev 11.1.1.3.0 as you suggest the error is no longer present in the latest version.
I can pick my query from the "Saved Search" pick list on the QueryPanel list of queries just fine, and it sets up the filter properly, but when I press the "Search" button, I get the same reported error...
<RegistrationConfigurator><handleError> Server Exception during PPR, #1
javax.el.ELException: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1303)
at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:115)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ClassCastException: oracle.jbo.common.ViewCriteriaImpl cannot be cast to oracle.jbo.ViewCriteriaRow
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._clearFilterCriteriaRows(FacesCtrlSearchBinding.java:4588)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding._addFilterCriteria(FacesCtrlSearchBinding.java:4642)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:424)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
... 42 more -
Error message "can't nest items with different editing timebases"
Hello final cut wiz group!
I just finished a soundtrack in Logic Pro 7 and am trying to import the XML into Final Cut 5 with my G5 (OS 10.4.1). I'm getting a message that says "30 fps, NTSC rate does not match sequence preset time base 25 fps. The timebase defined in the the XML will be used. Unable to edit clip into sequence."
I can get the sound to play after rendering, but when I try to bring the clip into the sequence, I get an error that says cannot nest items with conflicting timebases?
Anybody have an idea how I can get myself out of this problem?
Thanks for your help!
DJI'm not too familiar with using the XML functions but 25fps I believe is PAL and 30fps would be NTSC. That is a problem. When you export from Logic you may be able to change a frame rate setting in the export dialog. Or you could just bounce the file into a compatable format such as AIF or wave/PCM and then import that. Good luck.
-
Can I hide the Adobe Reader panel with "Export, Create and Edit PDF and Send and Store Files"? I don't use it and it takes up space
If you just mean, can I close it, sure. In Reader XI click the Tools button to close or reopen it.
-
Using Srpy tabbed panels with slidding panels
I am very new to spry and so I am still just figuring it all
out. How I found it was I wanted a tabbed panel like the one on the
IBM website. Anyway, I am trying to
use the tabbed panels with the sliding panels and it just does not
seem to be working. I found
this
tutorial and followed the codes but it still only works as just the
tabbed panels - nothing has changed at all. Can someone tell me
what I might be doing wrong? I am attaching both my html and css
code for you to inspect.
HTML Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<script
src="file://///172.16.10.251/users$/kduverna/Desktop/SpryAssets/SpryTabbedPanels.js"
type="text/javascript"></script>
<link
href="file://///172.16.10.251/users$/kduverna/Desktop/SpryAssets/SpryTabbedPanels.css"
rel="stylesheet" type="text/css" />
</head>
<body>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0"><a
href=”#Tab1″>Tab 1</a></li>
<li class="TabbedPanelsTab" tabindex="0"><a
href=”#Tab1″>Tab 2</a></li>
</ul>
<div class="TabbedPanelsContentGroup">
<div class="TabbedPanelsContent">Content 1</div>
<div class="TabbedPanelsContent">Content 2</div>
</div>
</div>
<script type="text/javascript">
<!--
var TabbedPanels1 = new
Spry.Widget.TabbedPanels("TabbedPanels1");
//-->
</script>
</body>
</html>
css code to follow in post below - too many characters.and here is the css code
CSS Code
@charset "UTF-8";
/* SpryTabbedPanels.css - Revision: Spry Preview Release 1.4
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights
reserved. */
/* Horizontal Tabbed Panels
* The default style for a TabbedPanels widget places all tab
buttons
* (left aligned) above the content panel.
/* This is the selector for the main TabbedPanels container.
For our
* default style, this container does not contribute anything
visually,
* but it is floated left to make sure that any floating or
clearing done
* with any of its child elements are contained completely
within the
* TabbedPanels container, to minimize any impact or
undesireable
* interaction with other floated elements on the page that
may be used
* for layout.
* If you want to constrain the width of the TabbedPanels
widget, set a
* width on the TabbedPanels container. By default, the
TabbedPanels widget
* expands horizontally to fill up available space.
* The name of the class ("TabbedPanels") used in this
selector is not
* necessary to make the widget function. You can use any
class name you
* want to style the TabbedPanels container.
.TabbedPanels {
margin: 0px;
padding: 0px;
float: left;
clear: none;
width: 100%; /* IE Hack to force proper layout when preceded
by a paragraph. (hasLayout Bug)*/
/* This is the selector for the TabGroup. The TabGroup
container houses
* all of the tab buttons for each tabbed panel in the
widget. This container
* does not contribute anything visually to the look of the
widget for our
* default style.
* The name of the class ("TabbedPanelsTabGroup") used in
this selector is not
* necessary to make the widget function. You can use any
class name you
* want to style the TabGroup container.
.TabbedPanelsTabGroup {
margin: 0px;
padding: 0px;
/* This is the selector for the TabbedPanelsTab. This
container houses
* the title for the panel. This is also the tab "button"
that the user clicks
* on to activate the corresponding content panel so that it
appears on top
* of the other tabbed panels contained in the widget.
* For our default style, each tab is positioned relatively 1
pixel down from
* where it wold normally render. This allows each tab to
overlap the content
* panel that renders below it. Each tab is rendered with a 1
pixel bottom
* border that has a color that matches the top border of the
current content
* panel. This gives the appearance that the tab is being
drawn behind the
* content panel.
* The name of the class ("TabbedPanelsTab") used in this
selector is not
* necessary to make the widget function. You can use any
class name you want
* to style this tab container.
.TabbedPanelsTab {
position: relative;
top: 1px;
float: left;
padding: 4px 10px;
margin: 0px 1px 0px 0px;
font: bold 0.7em sans-serif;
background-color: #DDD;
list-style: none;
border-left: solid 1px #CCC;
border-bottom: solid 1px #999;
border-top: solid 1px #999;
border-right: solid 1px #999;
-moz-user-select: none;
-khtml-user-select: none;
cursor: pointer;
/* This selector is an example of how to change the appearnce
of a tab button
* container as the mouse enters it. The class
"TabbedPanelsTabHover" is
* programatically added and removed from the tab element as
the mouse enters
* and exits the container.
.TabbedPanelsTabHover {
background-color: #CCC;
/* This selector is an example of how to change the
appearance of a tab button
* container after the user has clicked on it to activate a
content panel.
* The class "TabbedPanelsTabSelected" is programatically
added and removed
* from the tab element as the user clicks on the tab button
containers in
* the widget.
* As mentioned above, for our default style, tab buttons are
positioned
* 1 pixel down from where it would normally render. When the
tab button is
* selected, we change its bottom border to match the
background color of the
* content panel so that it looks like the tab is part of the
content panel.
.TabbedPanelsTabSelected {
background-color: #EEE;
border-bottom: 1px solid #EEE;
/* This selector is an example of how to make a link inside
of a tab button
* look like normal text. Users may want to use links inside
of a tab button
* so that when it gets focus, the text *inside* the tab
button gets a focus
* ring around it, instead of the focus ring around the
entire tab.
.TabbedPanelsTab a {
color: black;
text-decoration: none;
/* This is the selector for the ContentGroup. The
ContentGroup container houses
* all of the content panels for each tabbed panel in the
widget. For our
* default style, this container provides the background
color and borders that
* surround the content.
* The name of the class ("TabbedPanelsContentGroup") used in
this selector is
* not necessary to make the widget function. You can use any
class name you
* want to style the ContentGroup container.
.TabbedPanelsContentGroup {
clear: both;
border-left: solid 1px #CCC;
border-bottom: solid 1px #CCC;
border-top: solid 1px #999;
border-right: solid 1px #999;
background-color: #EEE;
/* This is the selector for the Content panel. The Content
panel holds the
* content for a single tabbed panel. For our default style,
this container
* provides some padding, so that the content is not pushed
up against the
* widget borders.
* The name of the class ("TabbedPanelsContent") used in this
selector is
* not necessary to make the widget function. You can use any
class name you
* want to style the Content container.
.TabbedPanelsContent {
padding: 4px;
/* This selector is an example of how to change the appearnce
of the currently
* active container panel. The class
"TabbedPanelsContentVisible" is
* programatically added and removed from the content element
as the panel
* is activated/deactivated.
.TabbedPanelsContentVisible {
/* Vertical Tabbed Panels
* The following rules override some of the default rules
above so that the
* TabbedPanels widget renders with its tab buttons along the
left side of
* the currently active content panel.
* With the rules defined below, the only change that will
have to be made
* to switch a horizontal tabbed panels widget to a vertical
tabbed panels
* widget, is to use the "VTabbedPanels" class on the
top-level widget
* container element, instead of "TabbedPanels".
/* This selector floats the TabGroup so that the tab buttons
it contains
* render to the left of the active content panel. A border
is drawn around
* the group container to make it look like a list container.
.VTabbedPanels .TabbedPanelsTabGroup {
float: left;
width: 10em;
height: 20em;
background-color: #EEE;
position: relative;
border-top: solid 1px #999;
border-right: solid 1px #999;
border-left: solid 1px #CCC;
border-bottom: solid 1px #CCC;
/* This selector disables the float property that is placed
on each tab button
* by the default TabbedPanelsTab selector rule above. It
also draws a bottom
* border for the tab. The tab button will get its left and
right border from
* the TabGroup, and its top border from the TabGroup or tab
button above it.
.VTabbedPanels .TabbedPanelsTab {
float: none;
margin: 0px;
border-top: none;
border-left: none;
border-right: none;
/* This selector disables the float property that is placed
on each tab button
* by the default TabbedPanelsTab selector rule above. It
also draws a bottom
* border for the tab. The tab button will get its left and
right border from
* the TabGroup, and its top border from the TabGroup or tab
button above it.
.VTabbedPanels .TabbedPanelsTabSelected {
background-color: #EEE;
border-bottom: solid 1px #999;
/* This selector floats the content panels for the widget so
that they
* render to the right of the tabbed buttons.
.VTabbedPanels .TabbedPanelsContentGroup {
clear: none;
float: left;
padding: 0px;
width: 30em;
height: 20em;
/* BEGIN: Spry Horizontal Tabbed Panels meets Sliding Door
and CSS Sprites */
/* Revision by Craig Malcolm Petrou of CPMMUG.com */
.TabbedPanels {
margin: 10px 0 5px 0;
.TabbedPanelsTab {
font-weight: bold;
font-size: 100%;
background-color: #FFF;
border: solid 0 #FFF;
.TabbedPanelsTabHover {
background-color: #FFF;
.TabbedPanelsTabSelected {
background-color: #FFF;
border-bottom: 1px solid #FFF;
position: relative;
.TabbedPanelsContentGroup {
background-color: #FFF;
ul.TabbedPanelsTabGroup a {
display: block;
ul.TabbedPanelsTabGroup li.TabbedPanelsTab {
background: url(/images/brown.png) no-repeat 0 0;
margin: 0 0 0 -1px;
padding: 0 0 0 10px;
ul.TabbedPanelsTabGroup li.TabbedPanelsTab a {
background: url(/images/brown.png) no-repeat 100% 0;
padding: 7px 10px 5px 0;
ul.TabbedPanelsTabGroup li.TabbedPanelsTabSelected {
background: url(/images/brown.png) no-repeat 0 -41px;
ul.TabbedPanelsTabGroup li.TabbedPanelsTabSelected a {
background: url(/images/brown.png) no-repeat 100% -41px;
/* END: Spry Horizontal Tabbed Panels meets Sliding Door and
CSS Sprites */
Also - is there a way to get rounded corners on the tabs in
spry? Any good tutorials I can follow about spry - more
specifically about using widgets and effects together.
Thanks so much -
How can I retrieve "AIPanelRef" for an Illustrator panel with CS6 SDK?
I used to get the reference of Swatch panel with the following code in cs5 sdk
ADMDialogRef dialogRef;
sADMDialogGroup->GetNamedDialog("AdobeSwatch_", &dialogRef);
And ADM suite is deprecated in CS6 SDK. I tried to go through all the windows on the Windows desktop (the panels are even not child windows of Illustrator window), but failed to identify a certain panel, e.g "Swatch". Caption of window makes no sense.
Is there some suite avaible in CS6 SDK? Any clues will be appreciated.
Thanks"My Iphone screen is smashed (Because apple sells garbage products that are DESIGNED to break)"
Drama queen. I have yet to have an Apple product fail - 6 year old computer, original iphone, iphone 3gs, 6 year old ipod, 5 year old ipod, original ipod touch, iphone 4, iphone 4s, 3 year old imac. No failures, no breakage.
Your contacts should be on your computer in whatever program you have been syncing -
Failing to refresh LOV fields added in the query panel with table
Hi.. Iam using Jdev 11.1.1.2.0
I have a scenario like ..i need to add 2 cascaded lovs in search panel and clicking on search button, the result should be displayed in table form.
For example..
I have cascaded LOV fields departmentId and Firstname ,
first name dropdown values depends on the selection of value in DepartmentIddropdown. I need to add only these 2 fields in search panel and clciking on search buton , the result should be displayed in emp table.
I have achieved the same creating View criteria with 2 fields and dragging and dropping that as query panel with table. But my problem is First name lov is not populating based on department id. It is showing static dropdown list.
Please help me how to achieve this ? thanks in advance.
Regards
Alekhya.Thanks for the reply.. actually if iam using those cascaded lovs in a form then we can set properties as u mentioned to refresh and display values correctly in the dropdown.
My scenario is like i need to use those fields in query panel header
code snippet
<af:panelHeader text="Employees" id="ph1">
<af:query id="qryId1" headerText="Search" disclosed="true"
value="#{bindings.EmployeesViewCriteria1Query1.queryDescriptor}"
model="#{bindings.EmployeesViewCriteria1Query1.queryModel}"
queryListener="#{bindings.EmployeesViewCriteria1Query1.processQuery}"
queryOperationListener="#{bindings.EmployeesViewCriteria1Query1.processQueryOperation}"
resultComponentId="::resId1"/>
</af:panelHeader>
Iam not having any field names to add properties.
Regards
Alekhya
Maybe you are looking for
-
Need suggestion in MERGE Statement
Hi, I have a scenario like, I have one table T1 with 500,000 to 700,000 records and now I want to check the other table T2 if record exists or not. If record exists with opposite amount ( - or + ) as compare with first table T1 then I need to insert
-
How can I add a new task to an online project from outlook
At the moment, I can see tasks in outlook. I can modify them. But cant add a new one. Seems strange behaviour.
-
How do I get my monitor to turn off after use?
For some reason my monitor will not turn off.I have gone to setting to correct this,but that doesn't work either.
-
Hey Guys, Google search results sometimes come back with extra information just below the name of the web site; for example, if you Google the word 'evosport', along with the web address you get information such as this: Products - www.evosport.com/p
-
JavaDocs for Module Development
Hi All, I need to find a documentation for the methods getMessageProperty/setMessageProperty of the Message Class in the Adapter Framework. I have already looked into the <b>sample_ra.rar</b> from my XI installation but i couldn't find this method in