Trying to override the default af:tree expanded and collapsed icons
Hi,
I initially hijacked a thread from 2010 that was vaguely similar to what I need to ask, but a kind forum moderator split my post out to stand on its own merits.
I am trying to override the default af:tree expanded and collapsed icons I am using the following styles for my af:tree but they are not reflecting any thing on my tree with the styleclass orgType.
af|tree.orgType::expanded-icon {
content: url("../images/ac-expand.png");
cursor: default;
af|tree.orgType::collapsed-icon {
content: url("../images/ac-collapsed.png");
cursor: default;
af|tree::expanded-icon {
content: url("../images/folder_open.png");
cursor: default;
af|tree::collapsed-icon {
content: url("../images/folder_close.png");
cursor: default;
After working for long hours I realized that there is some problem with af:tree and treeTable. They are not taking the styles where as for the other components, every thing works fine. Is there any way to achieve the task. Could you suggest any alternative way to do this. Thanks in advance. Your suggestions for this task can really help me and my team a lot.
Regards,
Krishna Sumanth.
Hi,
do the icons show without the style class reference used in the skin file? If so, then the style class for this component might be rendered differently for the tree, e.g.
.orgType af|tree ...
Frank
Similar Messages
-
ADF &CSS :overriding the default ADF:tree icons and CSSs
Hi,
I have major layout issue regarding ADF:tree, how can I override the default icons?
I override the oracle CSS with my own, but when I did that, the tree images has changed, its now small hideous triangles, I copied some lines from the oracle CSS and it worked, but the small triangles still show inside the images, how can I remove those triangles, or can I write something in my CSS to override them?
Thanks in prior,
Ahmad EsbitaAhmad,
According to bug 5682799, you cannot work around this in the current JDeveloper release. It is fixed in 10.1.3.3 (due out "soon," perhaps as early as 15th June, according to another post on this forum)
John -
Is it possible to make the TOC expand and collapse icons larger?
OR to have the TOC expanding and collapsing by usage of a self made buttons?
You can use graphics that are slightly taller, but not wider.
If you go to this page and take a look at the example named Supply Chain Management, you will see that I have used a different TOC expand image that is slightly taller:
http://www.infosemantics.com.au/portfolio
I had originally tried to use a larger image but it appears that Captivate limits the width.
You can use the On Success action of a button to assign the value of the cpCmndTOCVisible system variable to 1 or 0 to open or close the TOC. You can create a toggle action using a Standard or Conditional action to make the same button alternately open or close the TOC each time it is clicked. -
Changing JTree Expand And collapsed Icons
Hi,
can anyone tell me how to change the expanded and collpased icons on a JTree, i am using windows look and feel, and i don't know how to change the '+' and '-' icons, the other icons are changed using the DefaulTreeCellRenderer, but i haven't found a way to achieve my goal....
thanksIn the beginning of your main method you write :
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
UIManager.put("Tree.collapsedIcon",new ImageIcon("plus.gif");
UIManager.put("Tree.expandedIcon",new ImageIcon("minus.gif");
catch (Exception exc) {
System.err.println("Error loading L&F: " + exc);
}And you change the name of the images with the wanted ones.
Denis -
Forms Builder-hierarchical tree(expanding and collapsing nodes)
hi friends,
can anyone help me with populating my hierarchical tree form by using codes for collapsing and expanding?
for instance when_button_pressed:
tree_control.expand_all(tree_control.v_item_name); //this is for expanding all the nodes in the tree structure
well, i have an sql statement in my record group which in turn defines the structure of the hierarchical tree.
Is it possible to just use the codes 'tree_control.expand_all(tree_control.v_item_name);' like that in the when-button-pressed trigger?
Thanks for any help :)Hi
can anyone help me with populating my hierarchical tree form by using codes for collapsing and expanding?
Pls have a look here ....
Hope this helps...
Regards,
Amatu Allah. -
Can I override the default ReadObjectQuery for an entity and specify my own call
Hi,
I am trying to override the default ReadObjectQuery and the ReadAllQuery for an entity and supply my own call.The entities have to be read from the database using a StoredProcedure.I tried doing something like
Descriptor desc=evt.getSession().getDescriptor(Configuration.class);
desc.getQueryManager().setReadObjectQuery(new ReadObjectQuery());
StoredProcedureCall call = new StoredProcedureCall();
call.setProcedureName("CONFIGSVC");
call.addUnamedArgument("CATEGORY");
call.addUnamedArgument("CFGKEY");
call.addUnamedArgument("VALUE");
desc.getQueryManager().getReadObjectQuery().setCall(call1);
desc.getQueryManager().getReadObjectQuery().addArgument("CATEGORY");
desc.getQueryManager().getReadObjectQuery().addArgument("CFGKEY");
desc.getQueryManager().getReadObjectQuery().addArgument("VALUE");
When I try to execute the query
ExpressionBuilder builder = new ExpressionBuilder();
Expression expr = (builder.getField("category").equal("GOESVC.GETTDEV")).and(
new ExpressionBuilder().getField("configKey").equal("GOESVC.REQ")).and(
new ExpressionBuilder().getField("value").equal("$ENV.$ORIGIN.GOESVC.REQ"));
ReadObjectQuery query = new ReadObjectQuery(Configuration.class, expr);
session.executeQuery(query);
I can see in the log that it completely ignores the call I set and tries to execute using the default call and that too with incorrect mappings between the "entity" field names and the actual database field names.
2002.11.01 08:50:52.640--ClientSession(8218801)--Thread[main,5,main]--#executeQuery(ReadObjectQuery(com.fmrco.gett.toplink.Configuration))
2002.11.01 08:50:52.750--ServerSession(7721862)--Thread[main,5,main]--Connection(5230193)--SELECT CFGKEY, CATEGORY, VALUE FROM CONFIG_ETT WHERE (((category = 'GOESVC.GETTDEV') AND (configKey = 'GOESVC.REQ')) AND (value = '$ENV.$ORIGIN.GOESVC.REQ'))
2002.11.01 08:50:53.375--ClientSession(8218801)--Thread[main,5,main]--EXCEPTION [TOPLINK-4002] (TopLink - 9.0.3 with StoredProcedureCall patch [email protected] 28/10/2002 (Build 423)): oracle.toplink.exceptions.DatabaseException
EXCEPTION DESCRIPTION: java.sql.SQLException: [SQL0206] Column CONFIGKEY not in specified tables.
INTERNAL EXCEPTION: java.sql.SQLException: [SQL0206] Column CONFIGKEY not in specified tables.
How to I solve this issue?
Thanks,
HariniHi,
The "ReadObjectQuery" in a descriptor's query manager can only be used to change the primary key read query. It will be used only for a ReadObjectQuery that either has a selection key, selection object, or an expression that exactly matches the primary key.
If you have a non-primary key query that you want to use, you can add it as a named query to the descriptor's query manager.
I'm not sure of the primary key of your descriptor, assuming that it is a 3 part composite key, then your ReadObjectQuery procedure is defined correctly in the descriptor. However the ReadObjectQuery is incorrect, you must use "get" not "getField", also you must use a single expression builder.
i.e.
ExpressionBuilder builder = new ExpressionBuilder();
Expression expr = (builder.get("category").equal("GOESVC.GETTDEV")).and(
builder get("configKey").equal("GOESVC.REQ")).and(
builder.get("value").equal("$ENV.$ORIGIN.GOESVC.REQ"));
ReadObjectQuery query = new ReadObjectQuery(Configuration.class, expr);
session.executeQuery(query);
you could also do,
Vector key = new Vector(3);
key.add("GOESVC.GETTDEV");
key.add("GOESVC.REQ");
key.add("$ENV.$ORIGIN.GOESVC.REQ");
ReadObjectQuery query = new ReadObjectQuery(Configuration.class);
query.setSelectionKey(key);
session.executeQuery(query);
If the descriptor primary key is not 3 part, then add this query as a named query.
Descriptor desc=evt.getSession().getDescriptor(Configuration.class);
ReadObjectQuery query = new ReadObjectQuery();
StoredProcedureCall call = new StoredProcedureCall();
call.setProcedureName("CONFIGSVC");
call.addUnamedArgument("CATEGORY");
call.addUnamedArgument("CFGKEY");
call.addUnamedArgument("VALUE");
query.setCall(call);
query.addArgument("CATEGORY");
query.addArgument("CFGKEY");
query.addArgument("VALUE");
desc.getQueryManager().addQuery("findConfigSVC", query);
To execute the query,
Vector arguments = new Vector(3);
arguments.add("GOESVC.GETTDEV");
arguments.add("GOESVC.REQ");
arguments.add("$ENV.$ORIGIN.GOESVC.REQ");
session.executeQuery(Configuration.class, "findConfigSVC", arguments); -
How to override the default height of tree component...
Hi,
Can anyone please tell me how to override the default height of <af:tree> component.
Actual Problem:
I have a PanelBox in which I have a ShowDetail component. ShowDetail contains Tree component. When I click on ShowDetail item the Tree component have to be displayed. But, PanelBox is expanding to TREE default height(27.27 ems) instead of expanding to exact height of Tree.
How to manage this issue?
Thanks
-SukumarDid you already try
<af:treeTable value="#{bindings.DashProjectPhasesDev.treeModel}"
var="node"
selectionListener="#{bindings.DashProjectPhasesDev.treeModel.makeCurrent}"
rowSelection="none" rowBandingInterval="0"
inlineStyle="width:810px; height:1100px;"> Check the last line with inlineStyle...
Julian -
Revision: 12963
Revision: 12963
Author: [email protected]
Date: 2009-12-15 10:34:20 -0800 (Tue, 15 Dec 2009)
Log Message:
Add IDebuggerCallbacks.terminateDebugTarget(), so that the debugger can override the default termination behavior.
Modified Paths:
flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/DefaultDebuggerCallbacks.ja va
flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/IDebuggerCallbacks.java
flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSession.java
flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSessionManag er.javaGordon, it looks like its been a while since you made this post. Not sure how valid it is now... I am particularly interested in the LigatureLevel.NONE value. It seems that it is no longer supported.
How do I turn of ligatures in the font rendering?
My flex project involves trying to match the font rendering of Apache's Batik rendering of SVG and ligatures have been turned off in that codebase. Is there any way (even roundabout) to turn ligatures off in flash?
Thanks,
Om -
Trying to overrde the default MouseListener
Hi all,
I am trying to remove the default MouseListener of a JTable control.
For that I try to get the Class instance of the MouseListener. But I
am not reaching it. This is my code:
EventListener el = table.getListener(Class.forName("java.awt.event.MouseListener"));
so that then I can execute:
table.removeListener(el);
but I am always catching a "ClassNotFoundException".
Could anyone please explain how to do this?
Thanks in advance,
Chal_lo.
so that thenHi Chal_lo,
EventListener el =
table.getListener(Class.forName("java.awt.event.MouseLi
tener"));
table.removeListener(el);That's wrong syntax. You should use:
import java.awt.event.MouseListener;
EventListener[] el // note: that's an array
= table.getListeners(MouseListener.class)); // getListeners not getListener
// MouseListener.class ensures against ClassNotFoundException
for (int i = 0; el.length > i; ++i)
table.removeListener((MouseListener) el);
But this may still be not quite what you want.
For similar need, I subclassed javax.swing.plaf.basic.BasicTableUI,
and overrode createMouseInputListener(). -
Trying to get the default database connection
I'm trying to use the default database connection that the application server has but when I call this method I get an error :
Connection conn = (new oracle.jdbc.driver.OracleDriver()).defaultConnection();
java.sql.SQLException: Invalid Oracle URL specified
Do I have to do some setup? I don't want to hard code the connection URL in my code.
Thanks,
MercedHi Avi,
Thank you so much. I added the following and I was able to get the connection:
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/DBConnection1CoreDS");
Connection c = ds.getConnection();
Currently I'm running it from JDeveloper and the data-source.xml gets generated automatically. How will it work when I deploy this application to the Oracle Application server? Do I have to update or copy data-source.xml? What does "jdbc/DBConnection1CoreDS" mean? I only know that in data-source.xml I have location="jdbc/DBConnection1CoreDS". I don't understand how Context is able to find this. I also deleted this entry from data-souce.xml but it got generated again. I don't understand that either.
Your help is appreciated.
Thanks,
Merced -
How to override the default delete operation
Hi,
I am new to Jheadstart, java coding for that matter.
Here's my situation,
I have a view which is based on a function (function returns a collection).
I have created instead of triggers on this view to perform insert/update/delete operations.
All these DML operations work as expected in Oracle database.
Now, I created an Entity object and a view object on this view in my jheadstart project.
When I run this Jheadstart application my insert and search operations run fine but update and delete operations fail with JBO-26080 error.
The underlying oracle error is "ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc."
I know that delete and update operations work fine in Oracle and hence I would like to override the default Jheadstart operations. Can any body tell me how can I do it or point me in right direction?Hi,
From the JHeadstart Developer's Guide, chapter TroubleShooting - Problem Assessment:
If you are getting a JBO error (Business Components for Java error), try to perform the same data retrieval or data manipulation action using the BC4J Tester. You can
invoke the tester through a right-mouse-click on the BC4J application module. If you get the same error using the BC4J tester, the problem is in the BC4J object definitions. If you added business rules, or other custom code to your BC4J objects that executes during your data retrieval or data manipulation action, you can debug this code line-by-line by running the tester in debug mode. You can also look up the JBO error in the JDeveloper online help, for each error possible causes and how to solve them are described.
It sounds to me like you will also get this error in the BC4J Tester. This means that the problem is not related to JHeadstart. You can go to the JDeveloper discussion forum http://otn.oracle.com/discussionforums/jdev.html and ask your question there without mentioning JHeadstart. Maybe there is some switch you can set in the BC4J object to let BC4J not use SELECT FOR UPDATE.
Hope this helps,
Sandra Muller
JHeadstart Team -
Error trying to Change the default encoding for JVM
I tried to change the default encoding for my JVM on a SUN but when i use the java -Dfile.encoding = ISO8859_1 command, i obtain the following error:
Error occurred during initialization of VM
java.lang.Error: java.io.UnsupportedEncodingException:
Is there something wrong with my command or something that i have to take into account in order to try to change this property?
I am using the j2sdk1.4.1_02 and now i have ISO646-US an i need to use ISO8859_1 on a Sun Solaris Box
Thanks in Advance.try Dfile.encoding=ISO-8859-1
(I saw that in http://forum.java.sun.com/thread.jsp?forum=37&thread=405778&tstart=15&trange=15) -
Overriding the default heap size of 64mb
I run the java program on my pc on windows xp
I need to increase the heap size, currently I launch the jar file using a batch file, the contents of the batch file are:
java -Xms64m -Xmx512m -jar Lines.jar
I have set the min and max heap size and when I click on the .bat file it launches the jar file with tose heap settings
But I do not want to launch the jar file in this way(I don't want to use a batch file), is there anyway to override the default heap size for the java program to 512mb so that every time I launch the jar file the heap size is 512mb??
Edited by: muddy777 on Sep 23, 2009 6:30 PMVikash.SunJava wrote:
set this in some machine startup like a scheduled task at machine startup
java -Xms64m -Xmx512m
This this will be default JVM settings.Huh? -
I am really having a horrible time when trying to do our Church announcements in FCP X. When I try to take a clip from the event to the timeline my clips expanded and my timeline zoom level does not stay in the original place it moves to the right and is max out which makes every clip that I bring to the timeline expanded.
What format etc. are the video clips and what were they shot on?
Before you do anything else, trash the preferences with this free app:-
http://www.digitalrebellion.com/prefman/ -
IWork overrides the default app system
iWork overrides the default app system. When I select a pages (or keynote or numbers) file, get info, set the default application to Pages '09 and click "change all" it does not honor my choice of default application. It reverts back to the new iWork. I need to use '09 for now but I don't necessarily want to delete the new version.
Thanks, Apple for making my decisions for me. GRRRRRRRRR
Anyway to override this? I'm getting tired of "open with" rather than just double clicking files.Using Get Info to change all documents to open with Pages 4.3 doesn't work. It will work on individual files, but that could be a lot of files to reset.
This is what works for me. After I installed the new iWork updates I created a folder on an external drive & named it "other applications." I then moved the new iWork apps to this folder & renamed the applications Keynote 6, Pages 5 & Numbers 3. I have icons for two versions of Pages & Numbers (I rarely use Keynote) in my Dock. Even with two versions of Pages & Numbers running, double-clicking an existing file opens in Pages 4.3 or Numbers 2.3. This should also keep the Mac App Store from nagging you to update.
Maybe you are looking for
-
How to close a former Apple ID
My Apple ID is my current email. I stopped using another email service a year ago. How do I get Apple to stop referring that old email address?
-
PLUG-IN for ADOBE PREMIERE PRO CROP IN NOT WORKING RIGHT
please help, I use mojo, fx factory atrtitude and and they recently have been cropping in when trying to mask out an object. Doesn't mask correctly and something is going wrong...
-
I need to edit out parts of a song to cut it down to two minutes for my daughter's talent show. I went to info/start time and it will cut down one part but only one part. I need to put three parts together. I tried adding duplicates of the song to th
-
Illustrator CS3 and CS4 crashes on two different Mac Pro systems
We have two Mac pro systems. Both are running 10.5.6. As of this morning both systems crash when trying to save files from Illustrator CS3 and CS4. I'm not sure if this started with a corrupted file, and when we tried to work with it on both machines
-
I am having a strange error I never had before. My program gives me the NumberFormatException every time, the matter what I type in. It seems to be trying to parse the text in the println instead of the actual input, because when I told it to print o