Folder icon display at richfaces tree node
Hello All,
I would like to use richfaces tree structure.
But the issue with that is the folder icon display at each tree node.
For some reason i don't want the folder icon at the tree node.
Is there anyway to get rid of that?
I tried to change the image (iconFolder.gif) to some 1X1 pixel image in the richfaces jar file.
But when i added the new jar with new image for icon, that image is not loading.
I'm using Jboss4.2 as my application server.
Please help me to remove the folder display at tree node.
Thanks in advance.
Regards,
Elizabath
Hi,
I could see the icon attribute to specify the folder icon at the node. I placed a 1x1 pixel image as the iconfolder image. But that results in a blank pixel at the node. I wish to get rid of that.
Also i wanted to change the navigation images too. i would like to have the + and - sign images instead of arrows.
Any suggestions?
Similar Messages
-
Folder icon in a hierarchical tree
Hello, I don't know how can I put a folder icon in a hierarchical tree.
I have this query, and I know I have to change the 4th column, but I don't know how to do it.
SELECT -1,level,d_carpeta, null, id_carpeta
FROM DOCUMENTUM.doc_carpetas
START WITH id_carpeta_padre is null
CONNECT BY id_carpeta_padre = prior id_carpeta
and in the trigger (WHEN-TREE-NODE-SELECTED) I have this code
declare
htree ITEM;
n_selected NUMBER;
current_node FTREE.NODE;
begin
htree := Find_Item('blk_arbol_detalle.arb_carpetas');
n_selected := Ftree.Get_Tree_Property(htree, Ftree.SELECTION_COUNT);
FOR j IN 1..n_selected LOOP
current_node := Ftree.Get_Tree_Selection(htree, j);
if Ftree.Get_Tree_Node_Property(htree,
:SYSTEM.TRIGGER_NODE,Ftree.NODE_DEPTH) > 0 then
:blk_detalle.id_carpeta := Ftree.Get_Tree_Node_Property(htree,
:SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE);
else
:blk_detalle.id_carpeta := null;
end if;
END LOOP;
end;Jesús,
just give it the name of an icon without the '.ico' extension. If you run it on the Web then the icon must be available in a gif format. Just the name nothing else. Make sure that in c/s the icon is in a directory mapped by the UI_ICON variable in of the Window Registry. For configuring icons on teh Web, have a look at this paper
http://otn.oracle.com/products/forms/pdf/webicons.pdf
If you need different folder icons on different tree levels, then instead of using a query, use a record group to populate the tree.
Frank -
Needing to use xml data source to populate richfaces tree nodes
Hey I cant seem to figure this out. I know I probably need to write some java code but Im not sure how it should look. I have some xml and I need to use the data from within the elements to populate some nodes on a richfaces tree.
I know how to use a .properties file as the data source for the nodes, and how to use some existign nodes to populate the nodes. Both are done with java code I can post here if needed.
But I dont know how to go about writing the java code to take the data from xml elements, and then somehow parse it to use in a richfaces tree.
Here is some info on what Im using with my project:
eclipse
simplexml
httpclient
jsf
richfaces libraryAdobe Newsbot hopes that the following resources helps you.
NewsBot is experimental and any feedback (reply to this post) on
its utility will be appreciated:
Flex 3 - Using item renderers with the AdvancedDataGrid
control:
Flex Data Visualization Developer's Guide / Advanced Data
Grid Controls and .... that the item renderer is for column 2 of
the control: <?xml version='1.0'?
Link:
http://livedocs.adobe.com/flex/3/html/advdatagrid_10.html
DataGrid ItemRenderer - Flex India Community | Google Groups:
Apr 28, 2008 ... My dataGrid itemRenderer displays a certain
icon and sets fontStyle ... <mx:Label id='txt' fontWeight='bold'
text='{data.subject}'/>
Link:
http://groups.google.com/group/flex_india/browse_thread/thread/bd30dd974da47d68
Flex 3 - DataGrid control:
<mx:Button label='Toggle Price Column'
click='price.visible = !price.visible;' ... Flex lets you populate
a DataGrid control from an ActionScript variable
Link:
http://livedocs.adobe.com/flex/3/html/dpcontrols_6.html
Flex Fun - Advanced DataGrid Topics:
You will notice that the datagrid doesn't have any header
labels or vertical ..... After the opening tag we add a
<mx:itemRenderer> telling Flex that we are
Link:
http://blog.paranoidferret.com/index.php/2007/08/29/flex-fun-advanced-datagrid-topics/
Flex 3 - Instrumenting RandomWalk events:
Flex Data Visualization Developer's Guide / Advanced Data
Grid Controls and Automation Tools ... itemRenderer = child as
Label; dispatchEvent(rEvent);
Link:
http://livedocs.adobe.com/flex/3/html/functest_components2_20.html
Adobe Flex 2: Advanced DataGrid:
Adobe Flex 2: Advanced DataGrid. Drop-in RadioButtonGroupBox;
runtime computed .... Anatole authored number of books and articles
on AJAX, XML, Internet and
Link:
http://flex.sys-con.com/node/311283
Disclaimer: This response is generated automatically by the
Adobe NewsBot based on Adobe
Community
Engine. -
Need Help -- How to Change the icon of a selected Tree Node
Hi java gurus,
i am working on Jtree application, and i am adding image icons to the Nodes.
my dought is when i select a node, i want to display that selected node as opened and all other icons should remain closed.
Example:
-- root
|
----child
----child1
----child2
|
----SubChild
----SubChild1
----subchild2
Here if i am selecting Child2 means, only the image icon of that child2 should open the nodes and display the icon , all other icons from root to subchild should remain same as closed.
please some one suggest how i can do it,
Thanks in advance,
Cheers,
MuraliStop crossposting!
http://forum.java.sun.com/thread.jspa?threadID=787916&messageID=4476842#4476842 -
Display Checkbox along Tree node and its child elements
Experts,
I want to display a checkbox in front of the Tree displayed in the view. This is used for me to select the child item value for my selection condition.
let say if the user selects the node, all the child elements will be used for search condition.
Otherwise, if the node is expanded, then the checkbox selected in the child element will be used for search condition...
Can u ppl suggest me how to design it, if possible can u share some sample code or procedure to customize the Tree as per the requirement...
thanx in advance,
James...hi
please go through this
<a href="http://integration of a tree structure in a web dynpro table">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/de59f7c2-0401-0010-f08d-8659cef543ce</a>
Thanks
Smitha -
Netscape using plugin doesn't display Japanese characters in a tree node
Hi,
I have a problem displaying a swing tree node name in Japanese. The problem only occurs on Netscape browsers. When I run the same applet with Internet Explorer, all the Japanese displays correctly. Now, with Netscape, the node name is displayed in little rectangle characters but the tooltip is displayed in Japanese. I don't believe I have any problem with the Java code because it works with IE.
I am using the java 1.3.1_01 plugin on a Windows NT machine that has a Japanese OS. I've also installed Japanese versions of Netscape. Also, Netscape is able to display my help files in Japanese correctly, so I am wondering if the problem is with the java plugin.
Any clues?
Many thanksFound the problem. I set a font type of Arial. It's best to set the type to MS Gothic, or dont' set it at all so the system default font is used.
-
Tree Nodes has White Outline/Border
Hi,
I'm using an ADF tree located inside a panelGroupLayout.
The panelGroupLayout has the background color "light blue".
At runtime each tree node is displayed with a surrounding white outline and that can only appear when you have a background color different than white (in my case the panelGroupLayout is "light blue").
Does anybody knows how to remove that outline? or to change its color?
Thanks,
Alain.Here are the skin seletors
tr:tree Component
Icon Selectors
Name Description
af|tree::expanded-icon This icon is displayed before the expanded tree node.
af|tree::collapsed-icon This icon is displayed before the collapsed tree node.
af|tree::no-children-icon This icon is displayed instead of the expanded/collapsed icon, when the node has no children
af|tree::line-icon This icon is used as a vertical line between the nodes.
af|tree::line-middle-icon This icon is used as the horizontal line in the background of the expand/collapse icon of the node, in the case the node is not the last sibling of its parent node.
af|tree::line-last-icon This icon is used as the horizontal line in the background of the expand/collapse icon of the node, in the case the node is the last sibling of its parent node.
af|tree::node-icon This icon selector is used in the case the Node class has a getNodeType() method that returns the node type as string. The nodetype gets added to this selector, separated by a ':'. If the node is a container (has children) the following suffixes get added depending on the expanded/collapsed state: '-expanded' / '-collapsed'. e.g. "af|tree::node-icon:container-collapsed", "af|tree::node-icon:container-expanded", "af|tree::node-icon:noncontainer".
Trinidad properties
Name Description
-tr-show-lines Valid values are true or false (default true). Determines whether the tree lines are displayed or not. e.g., af|tree {-tr-show-lines:false} will not show the lines of the tree.Timo -
Hello alllll
i have a master-detail block besides a tree block
All i wanna do Simply and logically is to select a tree node then a Master-Detail records related to this tree node is to be retrieved...
_i have the following code in the WHEN-TREE-NODE-SELECTED Trigger as follow:_
DECLARE
htree ITEM;
node_value VARCHAR2(100);
BEGIN
IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
-- Find the tree itself.
htree := FIND_ITEM ('BL_TREE.IT_TREE');
-- Find the value of the node clicked on.
NODE_VALUE := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE , Ftree.NODE_LABEL );
GO_BLOCK ('STP_COMPANIES');
EXECUTE_QUERY;
END IF;
END;The above code retrieved data as a whole
but i want 2 filter the data selected from the tree node as i said 2 be displayed as filtered by the tree selection.
so i used the following code as follow:
GO_BLOCK ('GL_COST_CENTERS');
set_block_property('GL_COST_CENTERS', DEFAULT_WHERE, 'COMPANY_ID ='||
ftree.get_tree_node_property('BL_TREE.IT_TREE', :SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE));
EXECUTE_QUERY;Any help will be appreciated...
Thanks in Advance..
Regards,
Abdetu...Hello thanks for reply,
STP_COMPANIES your detail block? no it's the master
gets the "Label" of the tree node not the value of the selected nodei tried both but nothing retrieved...!
i thought that the value is the serial of the node and the lable is the text displayed on the tree node no ?
Is this code in the same When-Tree-Node-Selected trigger or a different trigger?yes WHEN-TREE-NODE-SELECTED as my post titled...
is GL_COST_CENTERS the master block? no it's the detail ; every company --- has many <- cost centers
are the tables related? yes
just query the master table and the detail table will automatically be filter through the relationship?i did and it works filtering through the company_id, But what i wanna do is 2 filter the data displayed in the two block Master-Detail according 2 the selection of the tree
Say i selected the ....
+ Assets node
|
|------ - Furnitures 's node is selected so alll the related details of the furniture is displayed in the Master-BLock
| |
| +----chairs
| |
| +----tables
|
+----- LAnds
|So the Tree is used 2 Query or retrieved the selected node's data accordingly...
hope i well explained my issue ..!
is it possible 2 do that ?!
Thanks Again..
Regards,
Abdetu... -
Ok... I am having serious iPod issues. Its an iPod mini 2nd gen, 6 GB. I dropped it while working out, and now all it shows is an icon of a folder and an exclamation point. I have tried everything except a restore, but I can't even get it to show up in iTunes or in Windows Explorer when I connect it to my computer, so I can't force it into disk mode or do a restore. It never had this problem before I dropped it. Is it forever dead? Is there any way to get my music off it even if it won't function anymore? I don't have the songs backed up on my computer. Help!
I have toggled the hold button.
I have held down the menu button and the select button simultaneously for 6-10 secs as instructed...several times.
I've updated my iTunes.
I have tried forcing the iPod into disk mode by resetting it and then holding the select button and play/pause button. It doesn't work.
I still have the "Exclamation point and Folder" icon displayed on my iPod mini.Hi There,
I'm having the same problems with mine, a 30G iPhoto. I plugged it into my computer and it didn't get recognized at all. I unplugged it and that's when the folder and exclamation point showed up. I have tried just about everything on these forums: reset, hold switch toggle, disc mode and several scans, even the smack on the hard surface (which worked last time I ran into a problem, which that time was the frown face.) The document linked above talks about restoring the iPod, but I can't get it to show up on iTunes, so that doesn't seem to be an option. I can force it into disc mode, but so far no luck with any of the options there.
Any other options? Is it worth taking in to Apple? Thanks for any and all help! -
I was reading through Frank Nimphius's Blog and found the entry entitled "ADF Faces: Building a hierarchical tree from recursive tables - October 05, 2006" and found a tree example in which a tree leaf with no child nodes do not display the folder icon.
I've followed the instructions listed with adf:tree, CoreTree and ChildPropertyTreeModel, but my tree leaves with no child nodes still displays the folder icon.
How do I remove this icon when the node is a leaf with no children?
Thanks,
--ToddI figured it out.
I used the ChildPropertyTreeModel.isContainer() method.
--Todd -
Can Tree's folder icon node changed to different icon?
Hi,
Currently, the tree and tree table node's icon is a "folder" icon. Can this be customized to different icons? We would like to have different icons for the nodes for different level in the tree/tree table. For example, level 1's node is icon A; level 2's node is icon B, etc...
Any suggestions?
Thanks.
-MinaHi,
I think the right way of doingthis indeed is skinning. I would try to
- set a styleClass value to the styleClass property using EL against a managed bean method.
- The managed bean method now is called for each node. Use EL in the managed bea method to access the #{node} EL to determine the row you are on
- set the style class to e.g. level1, level2, level3
- Then in the skinning you use
level1 af|tree...{}
level2 af|tree...{}
To define the different icons for the tree levels. Note that using DAF all icons are using folders. So there is no sense in skinning leaf icons
Frank -
I'm using Forms 6i and need to use Hierarchial trees. I've never worked on tree items. I have somehow populated data to the tree but my problem now is i'm not able to display a folder icon for the nodes. I would be very grateful if someone could explain me from the basics, of how to show a folder icon in the nodes, also the icon should be different when a node is expanded ie. folder to be opened when node expanded and closed when node collapsed.
Anitha,
the initial icon can be set when creating the tree. There are two ways to create a tree, one to use a query and another to use a record group.
To set icons due to a user action (e.g. a node selection):
DECLARE
htree ITEM;
current_node FTREE.NODE;
find_node FTREE.NODE;
BEGIN
-- Find the tree itself.
htree := FIND_ITEM('tree_block.htree3');
-- Change the icon of the clicked node. The icon name
-- is "Open"
FTREE.SET_TREE_NODE_PROPERTY(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_ICON, 'Open');
If you running in client/server, the icons need to be in the directory specified by the UI_ICONS registry variable. On the Web the icons must be in a gif format and in the same directory or archive you use for the iconic buttons
see: http://otn.oracle.com/products/forms/pdf/webicons.pdf
Frank
Frank
END; -
How to hide the default arrow icon of af:tree node
Hi All,
I am using Oracle JDeveloper 11g R2.
I want to hide the arrow icon which is displayed by default with af:tree node. The use case is to display custom icons for all the nodes. The problem is that when I am customizing icons of tree node, it is showing arrow as well as the icon with each node. Which doesn't seems fine. Can any one help/guide on how to hide the default af:tree node arrow icon.
Thanks in advance.
Regards
Bilal
Edited by: Bilal on 29-May-2012 01:32Hi,
Use Css to change the icon style:
af|treeTable::expanded-icon {
content: url("/adf/1.gif");//content : none;
outline: none ;
af|treeTable::collapsed-icon {
content: url("/adf/2.gif");//content : none;
outline: none ;
af|treeTable::leaf-icon {
content: url("/adf/3.gif");//content : none;
outline: none ;
Regards,
Raj Gopal K -
Is there a way to define a linkage id to set the icon for the
tree component in external XML? This is what I tried and it does
not work.
<node label="Test" data="SomeID" icon="SomeLinkageID">
The tree node is using the default folder icon. I know I
could set the icon after it is loaded but why cann't I just throw
in something to define the icon in the XML?
ThanksHi,
Could you elaborate a litle more exacly what you need to do?
I found the link http://help.sap.com/saphelp_470/helpdata/en/86/8280db12d511d5991b00508b6b8b11/content.htm that maybe assist you.
Please remember to evaluate the replays, this incentive the SDN to keep growing,
regards,
Fabio -
Display Tree node label/title on page
I'm using Apex version 4.
I have a tree and I want to display (below the tree) the label or title of the node value that's selected.
So my tree query is like:
SELECT (case when connect_by_isleaf = 1 then 0 when level = 1 then 1 else -1 end) status,
level,
office_name title,
null icon
How can I display the office_name on my report page below the tree? Can I somehow capture the value selected in a page item and then display that page item below the tree?
Thanks.Hi Ravindra,
I think it is possible, i have not done it but let me explain how we can do it.
In <htmlb:treeNode> tag there is an attribute 'text' in
which we specify title of that treeNode.
Now you define a page attribute 'treeNodeTitle' type
edpline and in onCreate assign it value <html><b>MyTreeNode</b></html>
When you click on this node then you do event handling
in onInputProcessing, there assign only 'MyTreeNode' to
treeNodeTitle.
sample code may look like this...
<htmlb:treeNode
id = 'treeNode1'
text = '<%=treeNodeTitle %>' >
</htmlb:treeNode>
Page Attribute
treeNodeTitle type edpline
in onCreate
treeNodeTitle = '<html><b>MyTreeNode</b></html>'
in onInputProcessing
in event-handling code for that treeNode write
treeNodeTitle = 'MyTreeNode'
I hope this will work.
Regards,
Narinder Hartala
Maybe you are looking for
-
Lame-3.96.1-2.pkg.tar.gz with MMX/3DNow!/SSE support
Hi! I may be a lamer, but the lame 3.96 version doesn't seem to be compiled with (asm) CPU optimalization. Or it just doesn't show during encoding. But if you have an i686 CPU, it has MMX support(?). So anyone who uses i686 can run MMX optimized prog
-
PSCS4 Memory Error with Image Processor
When I use the image processor in PSCS4 to process a large number of raw files using ACR 5.1 (Nikon D3 NEFs), I consistently receive an error message after about 10-11 files have been processed that the instruction at 0x696336ab tried to read memory
-
DMS Object Link at Maintenence Order and Service order level
Hi SAP Gurus, We had a requirement for maintaining DMS Object at Service order and maintenence order level, as Standard DMS does not provide any Standard Object link at Order level, we went for development and following the Standard procedure i could
-
Hi, 1. I need to send a word document as attachment in email using BPEL process, but the document name I will get in Payload. So how can I provide dynamic name of file. 2. Can we pick files for attachments from a remote ftp server, or it is possible
-
How can I remove Safari's default favorites symbols in iOS 7 iPad screen?
System Prefs: Safari:Favorites setting's check mark resists removal