DataSet and Tree component binding
Could you please tell me how you set up data binding between
DataSet and Tree component?
download "Dataset connection wizard" extension.
its simple useful and visual ;)
Similar Messages
-
Ext. data source and Tree component
Im using tree component and XMLConnector here.
as far as i can see results in my tree (when testing my
movie) it ouputs data thats loaded fom ext. XML file.
But the problem is that it publishes [type Function] in the
tree.
no actual xml nodes are visible, just bunch of [type
Function]
ive also searched for info / tutorial how to publish actual
xml data in the tree component but without any luck.
So what should i do and how ?Solved
xml tags needed just a label with attributes -
Slide presentation and Tree component
Hello there,
I'm trying to develop a small multimedia application which
will use the Tree component as the menu navivation. I've managed to
setup the tree object and load the menu titles from an external
.xml file. The problem i'm experiencing is that i cannot assign
actions to the menu selections so it will jump to their respective
slide. I have placed the tree component inside a movie clip and at
the presentation level. On first key frame of the movie clip i've
placed this
code but
still can't refence the slide2.
Thank you in advance,
DeannNot sure, would have to try it myself, but try evt.target
instead of this. -
Issue with Drag&Drop between table and tree component
I want to drag table rows and drop it on the tree node. I use following code to achieve this:
<af:table value="#{bindings.pricingObjects.collectionModel}"
var="row"
rows="#{bindings.pricingObjects.rangeSize}"
emptyText="#{bindings.pricingObjects.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.pricingObjects.rangeSize}"
selectionListener="#{workspaceBean.onTableSelect}"
rowBandingInterval="0" id="poTable"
partialTriggers=":::csTree :::cbRefresh"
columnStretching="column:c4"
displayRow="selected"
contentDelivery="immediate"
clientComponent="true"
binding="#{workspaceBean.table}"
rowSelection="multiple">
<af:dragSource actions="MOVE" defaultAction="MOVE" discriminant="rowmove"/>
</af:table>
<af:tree value="#{bindings.privateChangeSets.treeModel}"
var="node" displayRow="selected"
selectionListener="#{workspaceBean.onTreeSelect}"
rowSelection="single" id="csTree"
expandAllEnabled="false"
binding="#{workspaceBean.tree}">
<af:dropTarget dropListener="#{workspaceBean.dropListener}" actions="MOVE">
<af:dataFlavor flavorClass="org.apache.myfaces.trinidad.model.RowKeySet"
discriminant="rowmove"/>
</af:dropTarget>
</af:tree>
With this code I am getting the data of dragged rows but I am not able to get the tree node where rows are dropped. Dropevent.getDropSite() always returns NULL.
Strangely, I tried to use deprecated tags <af:collectionDragSource> and <af:collectionDropTarget> and everything works fine. Dropevent.getDropSite() returns me the correct rowkey of tree node.
Any idea why am I not getting desired result with <af:dropTarget>?Hi,
+" Please note that dropSite==null is a legal value for collection components. dropSite=null and DropOrientation==ON indicates that the drop has happened outside the data portion of the collection component and should be treated as a drop on the entire component Also note that dropSite==null and DropOrientation==AFTER indicates that the drop has happened on an empty collection component and the user intends to append the data."+
http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e10684/oracle/adf/view/rich/event/DropEvent.html#getDropSite__
List dropRowKey = (List) dropEvent.getDropSite();
//if no dropsite then drop area was not a data area
if(dropRowKey == null){
return DnDAction.NONE;
}Frank
Edited by: Frank Nimphius on Feb 18, 2011 11:18 PM -
Binding menu model to a tree component
Hi,
I have generated menu models to all my unbounded task flows in my application and I want to display the menus as a tree in the side bar ...
The hosted demo here tells that we can add the same menu model to a tree component...
http://jdevadf.oracle.com/adf-richclient-demo/faces/components/pagehierarchy/page.jspx?_afrLoop=14156998585414802&_afrWindowMode=0&_afrWindowId=null
Is it possible to bind a menu model to a Tree component? If possible...how to achieve this? If not...Is there any other way we can display the application menu in the form a tree...using the existing menu models?
Edited by: user12747136 on Apr 13, 2010 12:26 AMHi,
I don't understand your question. You simply can use the tree and specify the MenuModel as its value and define the right detailStamp, like any kind of tree. Or was your question more general like how to use a tree?
~ Simon -
[F8] Tree Component: How can I hide/remove the scrollbar and border?
I'm using the Tree Component in my Flash 8 Pro - Project. I'm
trying to customize the look of the Tree component in two ways:
1. Is there any way to remove the scrollbar from the Tree
Component?
2. Can I also remove the Border from the Tree Component?
I checked the Component Inspector and couldn't find any
options for the scrollbar nor the border.
Does anyone know how to do this or could you point me in the
right direction?
ThanksYou can use the Status-4-Evar extension to replace some functionality that was lost withthe removal of the Status bar in Firefox 4.
Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout" after you have installed the Status-4-Evar extension and drag the items (Status Text, Progress Meter, Download Status) upon the Add-ons Bar (View > Toolbars > [X] Add-on Bar)
* Status-4-Evar: https://addons.mozilla.org/firefox/addon/235283/ -
Tree component and loading xml files into text field
Hello and thank you for taking the time to read my issue....
I am making a simple self help application. I have a tree component that loads the different catagories and topics for my help app dynamically via an xml file...no issues there.
I then want it so that when the user cliecks on the actual topic that the TextArea component will load the info from another xml file using the name of the topic as the name of the xml file to make it that much easier for anyone to maintain this program.
So far the code i have is this.
myTreeListener.change = function(eventObject)
var theSelectedNode = eventObject.target.selectedNode;
var theSelectedNodeLabel = theSelectedNode.attributes.label;
topicTextArea.text +=
I am a little fuzzy when it comes to loading the xml file in. Should i be loading html instead of xml is my other question as well?
Thanks in advance for your help
FGCheck out the Oracle XDB Developer's Guide, Chapter 3. There is an example of using BFileName function to load the xml files from a directory object created using create or replace directory. It works really well.
Ben -
Hello ..
my problem is tree component and AS3 , before we hade such
easy time with tree component in as2 but now i founded that we cant
talk directly to tree component and we have to use API and XML ,
well i never liked XML and before i worked with tree component
directly and no problem but now , Flex force me to work with XML or
API(well I don’t know what dose it mean ) and I was tiring to
find any way to get directly to tree component in Flex2 and no
result … so my question , do I have use XML ? Is there any
another way to get to Tree Component ? I was looking in Flex help ,
and I find the help content is really bad . pleas help , I get
crazy about this problem …….
BWY this form work terrible on my PC ….. anyone have
same problem ?Use xml. Resistance is futile.
Tracy -
Tree component bug (?) and some questions
Hi! I have some problems and questions about tree component.
Problems:
1. I have an expanded tree with ~300 items. Each item label
displayed in 2-3 strings. After QUICK tree scrolling using mouse
wheel (I make 3-5 scrolls) for most of items displayed only last
string and one empty string :(
Bug of tree renderer? Is it fixable?
Questions:
1. Can I have font color X for tree item 1 and font color Y
for tree item 2?
2. I have a tree with ~300 items. Expand/Collapse tree
operations takes 5 to 10 seconds on Core2Duo. Is it possible to
speed up this operations?
Code:Hello.
About problem 1.
I faced this problem several times, cann't understand the
problem. May be it's a bug.
Questions.
1. Of course you can. Write itemRenderer for this.
2. Tree has effects for expanding and collapse events, you
can reduce times for them. -
Hi, I've been playing around with a trail version of flex and
was interested to know if anybody had tried to implement the drag
and drop functionality of the Tree component to a TileList? After
much messing about I noticed the format of the Tree data in the
DragSource was different to that of other lists. I've tried
overriding the addDragData method to see if I can change the format
of the data although this seems to cause problems when the Drag
complete event is triggered. Any ideas or help would be
appreciated.Hey, Thanks for the reply. Yes this appears to work although
it took a bit of messing around and I still had to override the
dragCompleteHandler method of the Tree component to get the tree
view to update. One issue I do have (This appears to be an issue
with the tree component) is as you drag and drop files across from
one tree to another, when you remove the last child node the parent
node which has a folder icon changes to a document icon. Is there a
way around this? -
Transparency in Tree component and actions in its sheets
Hello people
I'm doing a kind of catalog, and I'm using a component "tree" for listing.
But here's the problem: I need to use the background I have in the scene, and the component has a white background I need to remove. The workaround I've found is to give 0 _alpha property to the instance of the tree I have in the scene, but it also hides its icons, and I need those visible.
The other thing is that I need that when you run over a leaf, multimedia displays a small view of an image, and when you click-go to a specific frame where I have the large image with description.
If anyone knows how can help me I would be greatly appreciated.
I searched the online help that Adobe is now, and I found these properties of the tree but there is no way to work (at least I need):
themeColor
backgroundColor
backgroundDisabledColor
depthColors
borderStyle
color
disabledColor
embedFonts
Thanks in advance.
P.S: Sorry my bad englishUse xml. Resistance is futile.
Tracy -
Save last selected and state for Tree Component?
I have a Tree component that refreshes its data everytime I
open the Tab containing it (doing a SQL call to return an index of
models). The problem is that everytime the dataProvider changes (a
new one overwrites the old one) with databinding, even if the data
is exactly the same, it loses its old state and selected node. Is
there any way to save this state/selected node when the
dataProvider updates?good article on all aspects of trees including your issue.
http://www.adobe.com/devnet/flex/quickstart/working_with_tree/ -
ADFPhaseListener prepareRender and component binding problem
I´m Using ADF Faces and using the ADFPhaseListener. My BackingBean extends from the PageController class
and so can use prepareModel(LifecycleContext context) or prepareRender(LifecycleContext context). This works fine so far. The
event handler methods are called as expected (in my example prepareRender). But I have one question.
I´m using Component binding in my JSF-Page:
<af:inputText binding="#{backing_untitled1.inputText1}" id="inputText1">
Code snippet from my ControllerClass
public class Untitled1 extends PageController{
CoreInputText inputText1;
public void setInputText1(CoreInputText inputText1) {
System.out.println("setInputText1");
this.inputText1 = inputText1;
public void prepareRender(LifecycleContext context) {
super.prepareRender(context);
System.out.println("inside prepareRender");
I´ve written a second PhaseListener that just print´s out the JSF lifecycle phase numbers for better tracing.
The first time I call my JSF-Page the following output is generated:
07/01/03 08:32:38 Before Phase: 1 Source:com.sun.faces.lifecycle.LifecycleImpl@163
07/01/03 08:32:38 After Phase: 1
07/01/03 08:32:38 inside prepareRender
07/01/03 08:32:38 Before Phase: 6 Source:com.sun.faces.lifecycle.LifecycleImpl@163
07/01/03 08:32:39 setInputText1
07/01/03 08:32:40 After Phase: 6
I can see that the prepareRender is called before phase 6. The component binding is done in phase 6. What I would like to
do is access the component binding in my prepareRender method. But this is not possible as it is null before phase 6.
Is there a way to create event handling code after the component binding has taken place?
When I do a postback (second call to the same JSF page) this thing changes
07/01/03 08:37:23 Before Phase: 1 Source:com.sun.faces.lifecycle.LifecycleImpl@163
07/01/03 08:37:24 setInputText1
07/01/03 08:37:24 After Phase: 1
07/01/03 08:37:24 Before Phase: 2 Source:com.sun.faces.lifecycle.LifecycleImpl@163
07/01/03 08:37:24 After Phase: 2
07/01/03 08:37:24 Before Phase: 3 Source:com.sun.faces.lifecycle.LifecycleImpl@163
07/01/03 08:37:24 After Phase: 3
07/01/03 08:37:24 Before Phase: 4 Source:com.sun.faces.lifecycle.LifecycleImpl@163
07/01/03 08:37:24 After Phase: 4
07/01/03 08:37:24 Before Phase: 5 Source:com.sun.faces.lifecycle.LifecycleImpl@163
07/01/03 08:37:24 After Phase: 5
07/01/03 08:37:24 inside prepareRender
07/01/03 08:37:24 Before Phase: 6 Source:com.sun.faces.lifecycle.LifecycleImpl@163
07/01/03 08:37:24 After Phase: 6
Here in my prepareRender method I could access the component binding as it has been initialized in phase 1.
Thanks in advance
Rainerhi, you can use this way to initially a value:
public void setInputText1(CoreInputText inputText1) {
this.inputText1 = inputText1;
if( !AdfFacesContext.getCurrentInstance().isPostback() ){
this.inputText1.setValue("somevalue");
in the RenderModel phase is not possible set value to a component because this one is null, as you have said.. by this way you can do this too:
public void setInputText1(CoreInputText inputText1) {
this.inputText1 = inputText1;
if( !AdfFacesContext.getCurrentInstance().isPostback() ){
DCIteratorBinding ib = (DCIteratorBinding)Utilidades.resolveExpression("#{bindings.BanksView1Iterator}");
RowIterator iter = ib.getRowSetIterator();
Row row = iter.first();
if (row != null){
this.inputText1.setValue(row.getAttribute(BanksViewRowImpl.COD));}
} -
Component binding and state saving
Hello,
I have a few questions in regards to component binding and state saving (specifically in regards to the reference implementation) when the saving method is client and backing-beans are in the request scope rather than in the session scope:
1) if a component instance is bound to a backing-bean property then does the state of that component get saved when the view state is saved?
2) for UIData component, if the component value is bound to a list, does the actual list (after being wrapped) serve as the local data for the component? If this is the case, when the state is saved and then subsequently restored, does the list get re-created with the original number of items?
Regards,
Len TakeuchiThanks for the quick response.
(2) The actual list is not saved; the list will be
re-queried on subsequent requests.The list composition may have changed by the time the list is re-queried. If the table being displayed is updatable then transfer of information from request back to the list (during Apply Request Values) may not happen properly. So does that pretty much mean that the original list has to be kept around (in the session)? If the state saving method is server then does the saved state maintain a reference to the original list across requests?
Len Takeuchi -
I have a work to do, in ssrs we are using server reports in our project. i am looking for dynamically generating the ssrs dataset and filling the data into the dataset and binding the dataset to ssrs report(RDL) dynamically.
Getting the dataset dynamically has a solution by using Report Definition Customization Extension (RDCE), but the problem is binding that dataset to the report(RDL) dynamically was not there.
Here is the reference for RDCE http://www.codeproject.com/Articles/355461/Dynamically-Pointing-to-Shared-Data-Sources-on-SQL#6
I looked for binding the dataset to the report(RDL) dynamically and searched many sites but i did not get the solution. Can anyone help me here.
Is there any custom assemblies or any Custom data processing extensions to work around. Please help.
Thanks in advanceHi Prabha2233,
Thank you for your question.
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support
Maybe you are looking for
-
My iphone 5 won't send pictures or accomplish group messaging. Anyone else having this problem? Will be switching to Galaxy if not fixed soon.
-
I can play most video files using Quicktime but I can't always cut them. When I play mpeg files the commands for cut, copy, delete and paste are not in bold--in other words, they are not available. Can anyone help?
-
Add additional table in Outgoing payment PLD.
Dear Expert, Can i know how to add additional table which is VPM4 to my Outgoing payment PLD to show out the Bank GL account number? In original outgoing payment PLD does not have this table. Regards, Vivian
-
Hi all, I have 4 XMLSchema files and need to generate JAXB classes out of them. But most of the nodes like header parts of request and response of messages are same in structure. If I generate classes in 4 different packages how can I separate out th
-
OWB and OEM Version ERROR (Urgent)
Hi All, I am using OracleWarehouse builder version 9.2.0.2.0.8 and OEM version 9.2.0.2.0.10 and i am getting error while creating cubes in OEM. Is it due to different versions of OWB and OEM. Please Let me know, if anyone knows about it. with regards