Flex 2 Tree component vertical scrollbar not updating
I am using a Tree component to hold a very large dataset. So
instead of loading the whole tree view at once, I only load the
first level and make webservice calls every time the user opens a
node using the itemOpen event handler. My only problem is that the
data shows but the scrollbar does not appear. When I close said
folder, and reopen, then the scrollbar appears.
How should I notify the Tree component that the data has
changed and that it should update the scrollbar. I dont want to use
ItemRenderer if I dont have to.
Ive tried these but they dont work:
m_tree.dataProvider.refresh();
List(m_tree).invalidateDisplayList();
List(m_tree).validateNow();
m_tree.expandItem(m_selectedNode, true, true, true);
Thanks
didn't work for me, but i found something that did:
// set the child data
m_selectedNode.setChildren( node_xml.children() );
// dont show it
m_tree.expandChildrenOf(m_selectedNode, false);
// show it w/o raising an event
m_tree.expandItem(m_selectedNode, true, true, false);
Similar Messages
-
Vertical scrollbar not showing all the records when I scroll down.
Vertical scrollbar not showing all the records when I scroll down.
Using Oracle forms 10g , operating system windows
I have two fields with number of items dispayed = 15.
I have a vertical scroll bar with them. There are 34 records in the table but the scrollbar only shows 15 records.
Here are the properties for block / scrollbar.
WORK_CATEGORY
- Subclass Information
- Comments
* Navigation Style Same Record
- Previous Navigation Data Block
- Next Navigation Data Block
- Current Record Visual Attribute Group
- Query Array Size 0
- Number of Records Buffered 0
* Number of Records Displayed 60
* Query All Records No
- Record Orientation Vertical
* Single Record No
- Database Data Block Yes
- Enforce Primary Key No
- Query Allowed Yes
- Query Data Source Type Table
* Query Data Source Name WORK_CATEGORY
* Query Data Source Columns
* Column Name JOB_TYPE
* Column Type VARCHAR2
- Column Type Name
- Parent Column
* Length 30
* Precision 0
* Scale 0
* Mandatory Yes
* Column Name WORK_CATEGORY
* Column Type VARCHAR2
- Column Type Name
- Parent Column
* Length 30
* Precision 0
* Scale 0
* Mandatory Yes
- Query Data Source Arguments
- Alias
- Include REF Item No
* WHERE Clause
* ORDER BY Clause job_type
- Optimizer Hint
- Insert Allowed Yes
- Update Allowed Yes
- Locking Mode Automatic
- Delete Allowed Yes
- Key Mode Automatic
- Update Changed Columns Only No
- Enforce Column Security No
- Maximum Query Time 0
* Maximum Records Fetched 0
- DML Data Target Type Table
- DML Data Target Name
- Insert Procedure Name
- Insert Procedure Result Set Columns
- Insert Procedure Arguments
- Update Procedure Name
- Update Procedure Result Set Columns
- Update Procedure Arguments
Don't know where am I going wrong. I'll really appreciate if you can help me in this.
Thanks.
Edited by: 831050 on Sep 14, 2011 8:05 AMOne of the items is a list item.. here are it's properties:
* Name JOB_TYPE
* Item Type List Item
- Subclass Information
- Comments
- Help Book Topic
- Enabled Yes
* Elements in List
* Label
* List Item Value LIST20
* List Style Combo Box
- Mapping of Other Values
- Implementation Class
- Case Restriction Mixed
- Popup Menu
- Keyboard Navigable Yes
- Mouse Navigate Yes
- Previous Navigation Item
- Next Navigation Item
- Data Type Char
- Data Length Semantics Null
- Maximum Length 30
- Initial Value
* Required Yes
* Copy Value from Item
- Synchronize with Item
- Calculation Mode None
- Formula
- Summary Function None
- Summarized Block
- Summarized Item
- Current Record Visual Attribute Group
- Distance Between Records 0
* Number of Items Displayed 15
- Database Item Yes
* Column Name JOB_TYPE
- Primary Key No
- Query Only No
- Query Allowed Yes
- Insert Allowed Yes
- Update Allowed Yes
- Update Only if NULL No
- Visible Yes
* Canvas CANVAS2
- Tab Page
* X Position 47
* Y Position 137
* Width 187
* Height 18
- Visual Attribute Group DEFAULT
- Prompt Visual Attribute Group DEFAULT
- Foreground Color
* Background Color white
- Fill Pattern
- Font
* Font Name Tahoma
* Font Size 10
* Font Weight Demilight
* Font Style Plain
* Font Spacing Normal
* Prompt Job Type
- Prompt Display Style First Record
* Prompt Justification Start
* Prompt Attachment Edge Top
- Prompt Alignment Start
* Prompt Attachment Offset 10
* Prompt Alignment Offset 0
- Prompt Reading Order Default
- Prompt Foreground Color
- Prompt Font
* Prompt Font Name Tahoma
* Prompt Font Size 10
* Prompt Font Weight Bold
* Prompt Font Style Plain
* Prompt Font Spacing Normal
- Hint
- Display Hint Automatically No
- Tooltip
- Tooltip Visual Attribute Group
- Direction Default
- Initial Keyboard State Default
- Keyboard State Any
-
Reader X in browser- vertical scrollbar not properly integrated
In both Firefox 4.0beta7 and IE8 on my Windows 7 Ultimate 64-bit system, PDFs displayed in Reader X in the browser do not properly use the browser's vertical scrollbar.
The browser's vertical scrollbar does not reliably indicate the position the user is presently seeing in the PDF document. (Actually, it almost never reasonably represents the current position). Sometimes the vertical scrollbar will move when the user selects the select tool vs. the hand tool, but not usually even then.
This is disconcerting, as there is now no indication of how far the current view (the page the reader is actually seeing) is down in the document.
Reader 9 did properly cause the browser's vertical scrollbar to move relative to the view (page currently being displayed, regardless of cursor position).
Adobe, please fix this.
Thanks,ANNOUNCEMENT: Would you like to help us improve Adobe Reader?
Hi All,
We have had a few bug reports related to Adobe Reader X protected mode coming in from you in this forum. We have addressed a large number of them in our upcoming Reader update and we would like to hear your feedback.
To that extent, we would like to invite you to the Adobe Reader Prerelease program and try out the latest build. To participate, please fill in the form available at https://www.adobe.com/cfusion/mmform/index.cfm?name=reader_prerelease_ interest and indicate Adobe Reader as the product of your interest.
We look forward to your active participation, feedback and help towards making Reader a better product.
Thanks and regards,
Adobe Prerelease Team -
How to make content of af:popup dynamic? Component Value is not updating.
HI,
I am not able to update the component used in af:popup dynamically.
In my case, the value of the component used in the popup is updated every time before opening the popup.
I am building the af:popup. I am using component binding for my components. And I am setting data in the component using the component in the Managed bean only. The getter method for every component that I bind gets called only once i.e. while loading of the page. So when ever I change any thing in the component in managed bean, it is not reflecting in JSPX page. Coz it not calling the getter method of the component, so it is not getting the updated status for the component. But if you refresh the page you will get the updated component.
Following is the sample code to simulate my problem,
JSPX Page:-
<af:commandButton text="RCF Dialog (Without Script)" id="button1"
windowHeight="600" windowWidth="600">
<af:showPopupBehavior popupId="samplePopup" alignId="button1"
align="afterEnd"/>
</af:commandButton>
<af:popup id="samplePopup" clientComponent="false"
contentDelivery="lazyUncached">
<af:dialog title="Sample Dialog Test" modal="true"
cancelVisible="true" okVisible="true">
<af:inputText label="Label 1" value="#{searchField.myValue}"/>
<af:inputText label="Label 2" binding="#{searchField.textField}" />
</af:dialog>
</af:popup>
Managed Bean:-
public static int count = 1;
private String myValue = null;
private CoreInputText textField = new CoreInputText();
public String getMyValue(){
String value = "MESSAGE_" + count;
System.out.println("Count ==>" count " Value ==>"+value);
count++;
return value;
public CoreInputText getTextField() {
//Get called only once at the page load.
textField.setValue(getMyValue()+"_XXX");
return textField;
public void setTextField(CoreInputText textField) {
//Get called every time dialog is opened.
this.textField = textField;
Please let me know what to do make the content of the af:popup dynamic.
Any suggestions are welcome.HI,
I have simulate my problem using one text field component in side the popup. It is the same way that i am using. In my case there is more code in the constructor of the dialog bean.
Following is the code,
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<af:document title="Popup Demo">
<af:form>
<af:spacer width="10"/>
<af:commandButton text="RCF Dialog (With Script)" id="button"
actionListener="#{mainScreen.processAcion}"/>
<f:verbatim>
<![CDATA[
<script>
function launchSampleDialog() {
var popup = AdfPage.PAGE.findComponent("samplePopup");
var hints = {};
hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_OVERLAP;
hints[AdfRichPopup.HINT_ALIGN_ID] = "button";
popup.show(hints);
</script> ]]>
</f:verbatim>
<af:popup id="samplePopup" clientComponent="false" contentDelivery="lazyUncached" >
<af:dialog title="Sample Dialog Test" modal="true" id="dialogId" cancelVisible="true" okVisible="true">
<af:inputText label="Label 1" />
<af:inputText binding="#{dialogBean.textField}" />
</af:dialog>
</af:popup>
</af:form>
</af:document>
</f:view>
</jsp:root>
//Main Screen Bean set in session scope.
public class MainScreenBean {
private static int count = 1;
public void processAcion(ActionEvent event){
String updatedData = "ABCDEFG__" + count;
System.out.println("Inside process Action of Main Bean. Data set in Scope ==>" +updatedData );
FacesContext facesContext = FacesContext.getCurrentInstance();
facesContext.getExternalContext().getSessionMap().remove("dialogBean");
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.getProcessScope().put("updateData", updatedData);
count++;
ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
service.addScript(facesContext, "launchSampleDialog();");
//Popup Dialog Bean set in session scope.
public class DialogBean {
private RichInputText textField = null;
public DialogBean() {
textField = new RichInputText();
textField.setLabel("Custom TextField");
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
textField.setValue(afContext.getProcessScope().get("updateData"));
System.out.println("Data From Scope in Dailog Bean = " + afContext.getProcessScope().get("updateData"));
RequestContext.getCurrentInstance().addPartialTarget(textField);
public RichInputText getTextField() {
System.out.println("Inside getter for the component in Dailog Bean. Value = " + textField.getValue());
return textField;
public void setTextField(RichInputText textField) {
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
//Uncomment following line and run again. It will start showing updated value. But this will get called many times.
//textField.setValue(afContext.getProcessScope().get("updateData"));
System.out.println("Inside setter for the component in Dailog Bean. Value = " + textField.getValue());
this.textField = textField;
} -
Flex Tree component qestion.
Hi, this might be a piece of cake for you guys. But I could not figure out how to expand the tree by default when you bring up your app.
Thanks.
KSet openItems
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
Cost Component Structure Price Not updating
Hi,
I have run cost estimate and successfully Mark and Released(CK40N). But when I see the cost estimate in CK13N its updating Ram Material cost (Overall and Lower level) but rest of the items not getting updated e.g. Mfg. Machine Time, Mfg Operter Labor, Quality Test Labour etc...
I have checked in Routings each acitivity is assigned and checked. In log "Mat xxxx, Routing does not match selection ID. ZC"
Please advise how can will get update fields(mach cost, labour cost) with values in cost componenst strucure in cost estimate..
Thanks
SrinuHi ,
About why routing not match. Please inform your PP consultant as below :
It could be your order type and plant selection id that assign are different. Please Check in OTD in OPL8 under routing tab also check in OPEB for automatic selection of routing also check the status of routing .
If above cannot slove , please goto
Goto OKKN->select the Costing variant that you have used in CK11N and under control tab goto quantity structure control
-check the value or ID assigned for routing selection.
As per this your routing gets selected in CK11N or CK40N.
Thank you. -
Text item of varchar2(2000) with vertical scrollbar not displaying properly
Hi,
I have a text item of varchar2(2000) with a vertical scroll bar.
I am populating data into the text item using a forms procedure.
(Look at the sample code below)
The problem is the rpadding is NOT displayed properly. I mean
the detail records are NOT shown straight below their respective column heading
in the text item. (BUT if I cut this stuff from the text item and paste it in a
notepad, then the alignment is correct and the data is shown below their
respective column headings)
My code is something like below ...
CURSOR c_get_lab_client_results
IS
SELECT res.lr_id lr_id, org.short_name org_name, TO_CHAR(res.specimen_taken_date,'DD-MON-YYYY') std, substr(res.accession_number,1,20) acc_num, res.lr_type lrtype, res.hdc_id hdcid
FROM bc_organisations org,
cq_laboratory_results res
WHERE cli_id = :clients.cli_id
AND lr_id = :results.lr_id
AND res.org_id = org.org_id
ORDER BY lr_id;
Begin
-- Header
SELECT :TRFRDTLS.TRANSFER_DETAILS||RPAD('ORGANISATION',16,' ')||' '||RPAD('SPECIMEN DATE',15,' ')||' '||RPAD('ACCESSION NUMBER',20)||' '||RPAD('RESULTS',16,' ')||chr(10)||chr(10)
INTO :TRFRDTLS.TRANSFER_DETAILS FROM DUAL;
-- Detail
FOR c1 IN c_get_lab_client_results LOOP
ls_results := RPAD('XXXX',16,' '); -- Just for example
SELECT :TRFRDTLS.TRANSFER_DETAILS||RPAD(TO_CHAR(c1.org_name),16,' ')||' '||RPAD(c1.std,15,' ')||' '||RPAD(c1.acc_num,20)||' '||ls_results||chr(10)
INTO :TRFRDTLS.TRANSFER_DETAILS FROM DUAL;
END LOOP;
End;
Thanks in advance.
CheersTry using a monospace font such as Courier New for the text item.
-
ScrollPane problem - scrollbars not updated after child rescaling
Hi.
Here is a simple application using a ScrollPane to display a large circle. Initially everything looks fine but when you use zoom in and zoom out buttons ScrollPane doesn't update the scrollbars. Scrollbars are only updated after you try to scroll. Even worse - if you zoom out a couple of times, scrollbars dissapear. If you then zoom in again scrollbars will only reappear if you resize the stage main window.
Is there something else I should do in addition to rescaling the circle node?
Thanks for your help.
package test2;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ScrollPane;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.scene.transform.Scale;
import javafx.stage.Stage;
public class App2 extends Application {
@Override
public void start(Stage stage) throws Exception {
final Scale scale = new Scale(1,1);
final Circle circle = new Circle(100,100,500, Color.BLUEVIOLET);
BorderPane border = new BorderPane();
ScrollPane scroll = new ScrollPane();
circle.getTransforms().add(scale);
scroll.setNode(circle);
Button zoomin = new Button("+");
Button zoomout = new Button("-");
zoomin.onActionProperty().set(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent arg0) {
scale.setX(scale.getX()*2);
scale.setY(scale.getY()*2);
zoomout.onActionProperty().set(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent arg0) {
scale.setX(scale.getX()/2);
scale.setY(scale.getY()/2);
HBox top = new HBox(5);
top.getChildren().addAll(zoomin, zoomout);
border.setTop(top);
border.setCenter(scroll);
Scene s = new Scene(border,500,500);
stage.setScene(s);
stage.setVisible(true);
public static void main(String[] args) {
Application.launch(args);
}Hi,
see this thread maybe you find something helpful.
javafx.scene.Group "auto-size" doesn't work in my case -
Vertical Scrollbar not resetting in Song View
I'm sure this happened from iTunes 11 onwards and is very irrating.
When in Song View and using the Column Browser to select particular artists I scroll halfway through Artist A's songs and then click on Artist B and the scrollbar is still scrolled halfway through the list, the scrollbar hasn't changed position. iTunes used to reset the scrollbar position to the top of the list when selecting a different artist. This gets even more useless when I scroll halfway through Artist A's list of 100 songs, but if I go to Artist B (who only has 10 songs) the scroll bar is right at the bottom.
Please restore the old setting as it is absolutely pointless that the scrollbar doesn't reset when selecting the next artist. This is poor usability.Post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html
-
Tree control bug for vertical scrollbar
Dear all:
I meet a problem with tree control vertical scrollbar.Pls check the picture
If set the rows of the properties of the Tree control is a number, also set the vertical scroll bar is visible.
Then if i set the height of Tree is unchangeable, then set the Tree childs rows are much more than the height, The problem is that the vertical scroll bar doesn't work. The height is increase than what i have set ,Maybe it is a bug? or not.
Anybody find this?
Attachments:
Image000011.jpg 66 KBHello,
I works fine with me.
But I added my test as attachment, so you can see if you maybe doing something else.
Kind regards,
André
Regards,
André
Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)
Attachments:
Tree control bug question.vi 20 KB -
Urgent ..How to use Tree component in a web based interface
I want to make a Java web based windows explorer type interface.
For that i want to use tree component .
Is it possible for me to do this.
Can anybody suggest me how to do ?Hi,
I assume you plan to do this in a browser and you plan to use JTree. When using an applet, you'd have to make sure that the latest Java Plug-In is available on the client.
If you not plan to use JTree, you could use a Tree component which is not based on swing such as the one at http://www.calcom.de/eng/dev/cctree.htm
In this case still the browser would have to be 'Java enabled' by any kind of plug-in
Ulrich -
Hi. I have some problem with Flex tree component.
When I have XML (1), then I have correct tree output
folder
-item
-item
But when I create something like(2) , then I will have folder
XXX like item.
How can I solve it ?hi theosa
try these
<folder label="XXX" isBranch="true"/> -
Issue with child items of flex tree using QTP
Hi,
We are trying to automate Flex web application using QTP10.
We are facing below issue with Flex tree when we try to automate a scenario of selecting a child item displayed in flex tree.
Issue:
On recording the step of selecting an item from Flex tree using QTP, the script displayed is .Select Index1. But when we replay it back no action is being performed.
Also on object spy we are able to navigate only till flex tree and we are not able to spy child items of flex tree.On the web page the child items are displayed as radio buttons/checkboxes.
Please provide a solution for me to this problem.
ThanksHi,
You could perform a HTTP trace (using HTTP watch) and compare the OCI data in POST method for both users (the correct and incorrect ones).
Perhaps there is some additional/missing information being passed from catalog to SRM.
Kind regards,
Ricardo -
Label display issue in Tree component when it is having vertical scrollbar
I am using tree component as dropdown factory for combo box. When i open dropdown, it doesn't have vertical scrollbar and all the root nodes are getting displayed correctly(in closed mode). Now if i try to open any node, i am getting vertical scrollbar as the child nodes are more. Now the problem is if scroll down, some of the nodes(labels) are not getting displayed but i am able to see the icon. If i keep on scrolling bottom to top and top to bottom, some of the nodes are showing labels and some are not(It is inconsistant).
I have not used any custom item renderer for tree control. I used my custom dataDescriptor which i have implemented from ITreeDataDescriptor. Also I tried extending DefalutDataDescriptor, but no luck.Does it work if the tree is not in a combobox?
-
Component on page not moving as vertical scroll bar is moved
All -
I have a mxml page that is a mx:Application. This page basically consists of a VBox
and a number of components included within that VBox. All but 1 of the components
within this VBox are built-in flex components. The one component that is not a built-in
flex component is the one that is causing me issues. The issue is happening when I run
the application, once running the vertical scroll bar appears on the right-hand side of the
page (as expected because I have quite a few items in my VBox). The problem is that as
I drag the vertical scroll bar from the top of the page to the bottom of the page, the custom
component within my VBox that I built is staying put (it's not moving with respect of the
movement of the vertical scroll bar). All of the built-in flex components that are within my
VBox are moving with respect of the movemnet of the vertical scroll bar as expected.
I appreciate any information that you can provide that will lead me in the right direction,
Thank you,
Wes// THIS IS THE CUSTOM COMPONENT
Maybe you are looking for
-
Labview fpga development board
hi all can i programme my own development board having xillinx fpga using labview fpga .. or lab view fpga can only be used by national instruments hardware ? Regards
-
TS1717 msvcr80.dll now missing after trying to download latest itunes 14
msvcr80.dll now missing after downloading latest update, how do I get this back??? Have tried Regcure Pro and that didn't work, either did restoring to an earlier point
-
I removed InDesign CS6 weeks ago but the Updater keeps showing it being in need of an update. I checked the Adobe Installers folder and there's nothing there related to uninstalling inDesign. I did a search and found no file that includes the word "i
-
X200s--how to change into 5-1 Media card reader and modem
Hi, I just bought this X200s yesterday. I guess I fogot to check option of 5-1 Media Card Reader ? So, what I am gonna do to upgrade them ? Do any one know how ? Is it possible ? Thanks N
-
Upgrade from 10/7/5 returns error 13
I have a 24inch 2007 intel imac. It's on 10.7.5 and won't upgrade to anything else. the apps store just returns error (13) and suggest I try again later. It's also doing lots of strange things since the last upgrade, such as always opening photobooth