UIX Data Binding sorting

I set up a UIX drop down data binding field on my application which works great, now I need to make the list sorted but i do not know where and how to do this. Does anyone know?

You've got to use the BC4J bindings; or build a bean, or a
DataObjectList which present your data. Take a look at the BC4J chapter
of the Developer's Guide.

Similar Messages

  • Example Wanted:  JSP UIX data binding

    Hullo! I'm trying to display an active tree using 9.0.3 JSP UIX. I was successful in straight UIX (thanks to the examples), but can't figure out how do get the databinding correct in JSP/UIX. Does anyone have an example using <uix:tree>, or failing that how about anything substantial in JSP/UIX?
    The uiXML/UIX download examples are great, and the online documentation is extensive though I find it hard to follow... but for the JSP side there just aren't any working examples!
    Thanks so much.
    Heather

    Thank you very much for the response.
    It got me looking in the right direction, and now I have something working!
    Sincerely,
    Heather
    btw In case anyone else is ever in a similar position, here is an implementation of the above example, with some really silly data plugged in.
    jsp" contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ page import = "oracle.cabo.ui.data.tree.*" %>
    <%@ page import = "oracle.cabo.ui.data.*" %>
    <%@ page import = "oracle.cabo.ui.*" %>
    <%@ page import = "oracle.cabo.ui.data.*" %>
    <%-- user interface begins here --%>
    <HTML>
    <HEAD>
    <TITLE>Browse Page</TITLE>
    <uix:styleSheet/>
    </HEAD>
    <BODY>
    <uix:pageLayout>
    <%-- Main page contents go here --%>
    <uix:contents>
    <uix:header text="Tree Demo"/>
    <uix:spacer height="15" />
    <%
    SimpleTreeData shop = new SimpleTreeData();
    shop.setText("Shop");
    shop.setDescription("Spend some money!");
    shop.setDestination( "http://bali.us.oracle.com");
    shop.setDestinationText( "More Information");
    shop.setExpandable(UIConstants.EXPANDABLE_EXPANDED);
    SimpleTreeData books = new SimpleTreeData();
    books.setText("Books");
    books.setDescription("books have pages!");
    books.setDestination( "http://bali.us.oracle.com");
    books.setDestinationText( "More Information");
    books.setExpandable(UIConstants.EXPANDABLE_EXPANDED);
    SimpleTreeData art = new SimpleTreeData();
    art.setText("Art");
    art.setDescription("picasso et al!");
    art.setDestination( "http://bali.us.oracle.com");
    art.setDestinationText( "More Information");
    SimpleTreeData[] bookCategories = { art, art };
    books.addChildren( bookCategories );
    SimpleTreeData[] categories = { books, books };
    shop.addChildren(categories);
    ListDataObjectList treeData = new ListDataObjectList();
    treeData.addItem(shop);
    request.setAttribute("treeData", treeData);
    ClientStateTreeDataProxy proxy =
    new ClientStateTreeDataProxy("",
    request.getParameter(UIConstants.STATE_PARAM),
    request.getParameter(UIConstants.NODE_PARAM),
    request.getParameter(UIConstants.SELECTION_PARAM));
    request.setAttribute("treeProxy", proxy);
    %>
    <uix:tree id="myId" nodesBinding="treeData@servletRequest"
    proxyBinding="treeProxy@servletRequest">
    <uix:nodeStamp>
    <uix:flowLayout>
    <uix:contents>
    <uix:link destinationBinding="destination" textBinding="text" />
    </uix:contents>
    </uix:flowLayout>
    </uix:nodeStamp>
    </uix:tree>
    </uix:contents>
    </uix:pageLayout>
    </BODY>
    </HTML>
    <jbo:ReleasePageResources />

  • ADF UIX programatic data binding

    Oracle ADF UIX Developer's Guide mentions the possibility to use the UIX framework in Java, to create new objects or alter the existing ones.
    E.g. we can create a table using a construct like:
    TableLayoutBean tlb = new TableLayoutBean();
    The same document demonstrates the data binding:
    BoundValue rows = new DataBoundValue(_YOUR_NAMESPACE, YOURNAME, "rows");
    tlb.setIndexedNodeList(new DataObjectListNodeList(rows));
    For "simple" attributes using DataObject DataObjectList, etc. the procedure is clear. But what about creating a data bound table or input text:
    <table model="${bindings.EmpView1}" ... >
    <messageTextInput model="${bindings.DeptCode}"/>
    It’s easy to understand that model="${bindings.EmpView1}" or model="${bindings.DeptCode}" are equivalent to multiple attribute bindings (data, validation, read-only, etc.), but it looks that the classes/methods resolving these equivalences and linking the bean to the corresponding DCControlBinding, are not public (or maybe I was not able to find them).
    How can we obtain programmatically, in Java, the same structure as described above (in XML)? The best would be to use the same classes used when the UIX XML document is parsed to create the page description.
    It would be very nice to be able to use a structure like
    tbl.setModel( new JUCtrlRangeBinding(...) );
    txt.setModel( new JUCtrlValueBinding(...) );
    or maybe
    txt.setAttribute( "model", new TextInputModelBoundValue(...) ) etc.
    In JSF we can do something like:
    ValueBinding vb = application.createValueBinding(value);
    component.setValueBinding(attributeName, vb);
    Can we do something similar in UIX?
    Any help will be appreciated,
    thanks,
    Mircea Ionita

    Since the code is already written, it's a pity that we can't use/extend it. I don't like to say it (sorry) but I find this design choice (implement the "model" only into the XML parsing layer) a little bit strange (or maybe I don't understand... ;-) ). We should (or we are supposed to) be able to do in java everything that we can do in XML.
    I would like to find more support/help for the programmatic approach. I have the feeling that you are too focalised on "use-our-state-of-the-art-tools/wizards-to-write-the-code-for-you" and you forgot that this is not suitable for all projects. E.g. our application creates the user interface according to a layout defined by each user. To generate it, we need to use at maximum the extension mechanism and we can't simply relay on "rendered" attribute etc.
    -When should we expect this new UIX release?
    -What about the UIX controller? The Struts controller will replace it?
    -What about the source code of uixexp2-demo.jar (distributed with ADF_UIX_component_guide)?
    -Why while debugging we can't set a method/class breakpoint on UIX classes (to understand the data flow) - the stack is secret?
    Thanks

  • Data Binding in ADF UIX example trouble

    Two related questions:
    From the help example 3. Data Binding in ADF UIX example trouble in JDeveloper on UIX. If this worked I was going to run a small java class that captures the login and passes it as a messagebox with a Welcome login name on the first page, but I can't get past the example and path problems.
    From the example..."
    package yourpackage;
    import java.util.Date;
    public class CurrentDateBean
    public CurrentDateBean() { }
    public String getTime()
    return (new Date()).toString();
    Now, we want to change the page so it uses getTime(). We need to do three things: Tell UIX to data bind the text attribute. Add a <dataScope> to the page to provide data to the content. Write a small "data provider" in Java that can access the bean. First, we'll data bind "text": <text xmlns="http://xmlns.oracle.com/uix/ui"
    text="${uix.data.currentDate.time}"/>The example has one small change. The value is changed to ${uix.data.currentDate.time}, which is an expression that defines the data. This is shorthand for "get the time property from currentDate." If you tried running this example, you'd see nothing. That iss because we haven't given currentDate to the page, so the databinding failed, and the "text" is left to null. We do this by adding <dataScope> to the page: <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    Q#1?? Trying to follow the demo. The method class and method name do not seem to match the names in the above class from the demo. Am I missing a point here, please help.
    <data name="currentDate">
    <method class="yourpackage.DataDemo" method="getCurrentDate"/>
    </data>
    </provider>
    <contents>
    <text text="${uix.data.currentDate.time}"/>
    </contents>
    </dataScope>
    Q#2?? When I try and apply the demo class to my home.uix XML file with
    "<?xml version = '1.0' encoding = 'windows-1252'?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- start Add DataProviders (<data> elements) here -->
    <data name="currentDate">
    <method class="us.mn.state.dot.apptrack.security.CurrentDateBean" method="getTime()"/>
    </data>
    <!-- end Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <text text="${uix.data.currentDate.time}"/>
    <document>
    <metaContainer>"
    I get the following, and I don't know how to make the UIX XML accept the correct path, please help:
    �file:/C:/JDeveloper905p/jdev/mywork/ProjTrack/AppTrack/ViewController/public_html/home.uix: Parsing error, line 12, column 97: Could not find class us.mn.state.dot.apptrack.security.CurrentDateBean

    for question 1 the name of the class CurrentDateBean
    actually has nothing to do with the el expression
    uix.data.currentDate.time. The currentDate part of the
    el expression is coming from the method data provider part
    of your page:
    <data name="currentDate">
    <method class="yourpackage.DataDemo"
    method="getCurrentDate"/>
    </data>
    so if you changed the name of the data provider to "foo":
    <data name="foo">
    <method class="yourpackage.DataDemo"
    method="getCurrentDate"/>
    </data>
    your el would look like this:
    uix.data.foo.time
    by the way the uix.data part tells UIX to look for
    a <data> element define in the <provider> section of
    your dataScope.
    For question #2, do you have the java file
    us.mn.state.dot.apptrack.security.CurrentDateBean on
    your classpath and is it compiled? You will get that
    warning if it is not on your classpath.
    Also you are incorrectly interpreting the example. What
    you are doing is trying to reference the actual bean
    object and its getTime() method. What you want to do
    is write a method data provider that returns your
    CurrentDataBean. so uix.data.currentDate would return
    a CurrentDateBean instance object. the .time part of the
    el expression would tell UIX to look for a method named
    getTime() and use that value.
    let me know if you have any more questions.

  • Help: Data binding using uix:choice

    I have a uix jsp page with the following code snippets (trying to make a simple drop down list):
    <jbo:DataSource id="ds2" appid="PubModuleDef" viewobject="PubModule.FOAOIDGroupsVO" />
    and further down:
    <uix:choice>
    <uix:contents>
    <jbo:RowsetIterate datasource="ds2">
    <uix:option text="<%= ds2.getRowSet().getCurrentRow().getAttribute(\"Name\") %>" />
    </jbo:RowsetIterate>
    </uix:contents>
    </uix:choice>
    I am looking for a more elegant way to do this. Particularly I would like to eliminate the <%= ... %> code but I simply have not been able to figure out how to use Data Binding...
    Any advice?
    Claus

    Hi Matthias,
    I hope this is what you are looking for:
    http://help.sap.com/saphelp_erp2004/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/frameset.htm
    Regards,
    Rainer

  • Getting at the data binding for table rows in ADF/UIX

    At the highest level, I'm trying to figure out the best way to get spreadsheet-like behavior in a table where some of the cells are editable. The table cells were created using the "model=${uix.current.<columnName>}" mechanism.
    I've been able to specify event handlers triggered by the <primaryclientaction> for a table cell component which call into static java methods. But I haven't been able to figure out what binding to use to get at the Java instance for that cell's row in order to use <invoke> to get at non-static methods in the row's view object. The ${uix.current} binding is stale at that point.
    Are the table row data bindings just gone after the table is rendered or is there some alternate notation that lets me get at them.
    Thanks in advance.

    the primaryclient action should pass the rowkey of the current row (${uix.current.rowKeyStr}) as a parameter. This way the server can find the corresponding row on the server in an event handler.
    see
    http://www.oracle.com/technology/products/jdev/tips/jacobi/edittable/tip_adfuixtable_edit.html

  • The data binding isn't working, what have I done wrong?

    I'm writing a very simple WPF app, one view. I've got a few models defined for the small handful of tables this app works with. I'm making some sort of boneheaded mistake, but I can't see what it is. I'm trying to bind to a property of one of the model
    classes I've define, to a textbox in a stackpanel. Here's the XAML:
    <StackPanel Orientation="Horizontal" Margin="0, 5" DataContext="{Binding cvsSpecMapping}">
    <TextBlock Margin="10,0,5,0">Specimen Mapping: </TextBlock>
    <TextBox x:Name="txtHl7SpecMap"
    Text="{Binding HL7SpecimenTypeName}"
    ToolTip="{Binding HL7SpecimenTypeName}"
    MinWidth="50"
    MaxWidth="100"
    MaxLength="250" />
    </StackPanel>
    Earlier in the same XAML file I've got the following collection view source defined in the windows' resources:
    <CollectionViewSource x:Key="cvsSpecMapping" />
    This isn't rocket science. Here's the model class definition. I'm removing all but the relevant property:
    using System;
    using System.ComponentModel;
    using System.Runtime.CompilerServices;
    namespace SpecMapException.Models
    * This class I am interested in knowing what properties change.
    * Also note that the properties in this class do NOT represent all of the properties
    * in the Prism.SpecimenMapping table. It only represents what this application has
    * to store.
    public class SpecimenMapping : INotifyPropertyChanged
    private const int MAX_HL7SPECIMENTYPENAME_LEN = 250;
    #region class properties
    private string _hl7SpecimenTypeName = "";
    public string HL7SpecimenTypeName
    get { return _hl7SpecimenTypeName; }
    set
    if (value != _hl7SpecimenTypeName)
    _hl7SpecimenTypeName = EnforceMaxLength(value, MAX_HL7SPECIMENTYPENAME_LEN);
    NotifyPropertyChanged();
    #endregion //class properties
    #region local routines
    private string EnforceMaxLength(string PassedValue, int MaxLength)
    if (PassedValue.Length <= MaxLength)
    return PassedValue;
    return PassedValue.Substring(0, MaxLength);
    #endregion
    #region PropertyChanged code
    * The usual property changed code.
    public event PropertyChangedEventHandler PropertyChanged;
    private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    #endregion
    And lastly here's the relevant code which I've put into the windows Loaded event:
    Models.SpecimenMapping sm = null;
    private void Window_Loaded(object sender, RoutedEventArgs e)
    var cvsSpecMapNames = (CollectionViewSource)(this.FindResource("cvsSpecMapping"));
    cvsSpecMapNames.Source = sm;
    So what is the mistake that I've made? Why isn't the data binding to the textbox txtHl7SpecMap working?
    (I'm using VS 2013, .NET 4.5.)
    Rod

    cvsSpecMapping is a resource and not a property so you should set the DataContext using the StaticResource markup extension instead of Binding:
    <StackPanel Orientation="Horizontal" Margin="0, 5" DataContext="{StaticResource cvsSpecMapping}">
    Also, the Source property of a CollectionViewSource is supposed to be set to a collection:
    private void Window_Loaded(object sender, RoutedEventArgs e)
    sm = new Models.SpecimenMapping();
    var cvsSpecMapNames = (CollectionViewSource)(this.FindResource("cvsSpecMapping"));
    cvsSpecMapNames.Source = new List<Models.SpecimenMapping>() { sm };
    You may also want to set a default value of the HL7SpecimenTypeName property to confirm that the binding actually works after you have done the above changes:
    public class SpecimenMapping : INotifyPropertyChanged
    private const int MAX_HL7SPECIMENTYPENAME_LEN = 250;
    #region class properties
    private string _hl7SpecimenTypeName = "def....";
    public string HL7SpecimenTypeName
    get { return _hl7SpecimenTypeName; }
    set
    if (value != _hl7SpecimenTypeName)
    _hl7SpecimenTypeName = EnforceMaxLength(value, MAX_HL7SPECIMENTYPENAME_LEN);
    NotifyPropertyChanged();
    Hope that helps.
    Please remember to mark helpful posts as answer to close your thread and then start a new thread if you have a new question.

  • [UIX] Data not visible in template, litteral instead of the value

    Hello,
    I follow this tuto :How To create a Look and Feel for ADF UIX
    (url : http://www.oracle.com/technology/products/jdev/howtos/10g/adf_uix_laf_ht/index.html)
    So my page is made with a pageLayout.uit.
    And i want to retrieve and display some data (e.g method result or simple string) on every page. But when i run my page, it displays with a literal "${uix.current.value}" instead of theValue.
    It is the same if i put ${ui:cond(..,true,false)}, it display the litteral "${ui:cond(..,..,...)}" instead of true or false.
    This is my page (where i use pageLayout template)
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    <!--<data name="link">
    <method class="view.Auser" method="getURLAndText"/>
    </data>-->
    <data name="commonName">
    <inline value="Outer text"/>
    </data>
    <data name="rareName">
    <inline value="Rare text"/>
    </data>
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title="Template SIGILI2"/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0" method="post">
    <contents>
    <pageLayout>
    this is my pageLayout.uit
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Copyright (c) Oracle Corporation 2003. All Rights Reserved. -->
    <!-- Template used by sample sample LAF for page layout. -->
    <templateDefinition xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    xmlns:demo="http://www.example.org/demo/templates"
    xmlns:sample="http://xmlns.example.org/laf/sample"
    targetNamespace="http://www.example.org/demo/templates"
    localName="pageLayout">
    <version>$Name: $ ($Revision: 1.0 $) $Date: 2004/02/18 13:40:50 $</version>
    <author>Jonas Jacobi</author>
    <!-- Import template for startarea -->
    <!-- <templates>
    <templateImport source="startContainer.uit"/>
    </templates> -->
    <!-- Define the template's type information - we extend pageLayout -->
    <type base="ui:pageLayout"/>
    <!-- Define the template's content -->
    <content>
    <dataScope>
    <provider>
    <!--<data name="someData">
    <method class="view.Auser" method="getChaine"/>
    </data>-->
    <data name="commonName">
    <inline value="Inner text"/>
    </data>
    </provider>
    <contents>
    <!--Where i want to display my data -->
    <contents>
    <!--<messageStyledText id="txtHeaderInfo" text="${uix.data.dat1.name}"/>-->
    <styledText>
    <attributeMap>
    <rootAttributeMap/>
    </attributeMap>
    </styledText>
    <!--<link text="${uix.data.link.text}"
    destination="${uix.data.link.url}"/>-->
    <styledText text="${uix.data.commonName.value}"/>
    <styledText>
    <attributeMap>
    <rootAttributeMap/>
    </attributeMap>
    </styledText>
    <styledText text="${uix.data.rareName.value}"/>
    </contents>
    But doesn't work.
    I follow this help from JDev Help, Templates and Data Binding[b]
    Thands for your help

    thank for your answer
    As i see it in JDev help, i'm sure it is possible.
    Can someone help me with that problem ?

  • Drag-drop data column sorting

    Hey guys,
    Does any one know how to achieve drag-drop data column
    sorting? I tried, but could not find an efficient way to do this.
    It would be an awesome spry feature if possible, but if someone
    else knows how to do this already it would help.
    Thanks,
    Timothy D Farrar

    Hey guys,
    We aim to be as compatible as possible with the other
    frameworks but sometimes problem may exists. We need to see the
    crashing pages to be able to determine the causes for the JS error
    message and where the incompatibilities are located and either fix
    the problems or help you to change your pages to work.
    In this situation I suspect the issue appears because the
    spry region is generated after the drag and drop code from the
    script.aculo.us is instantiated and we destroy the initial elements
    to which this widget is binded. In this situation the solution is
    to instantiate the drag and drop after the region generate its
    content by using the region observers. You'll have to put the drag
    and into a separated function and register the code so the region
    will call it automatically onPostUpdate.
    We include in our documentation more details about the
    Region
    observer notifications. Please search the dedicated chapter
    inside this doc: "Region observer notifications"
    Regards,
    Cristian MARIN

  • Best Practice: Data Binding

    Each non-trivial Swing application needs to bind GUI elements (windows and components) to data. Ten years back in my MFC times, the typical solution was to initialize the GUI with fixed data, show the window, and read back the modified data after window closure. But in Swing, there is more flexibility (data can be dynamic for example). But what is the best way to deal with data binding?
    - Writing custom models, bound directly to data objects?
    - Initializing once and read back after window closure?
    - Using the non-standard (but rather interesting) beans binding API?
    Certainly there are more solutions, but my intention is not to write a list of possibilities or to get your opinion on one of these solutions. Actually I'd like to know from the experienced Swing pros in this forum, whether there is a best practice for data binding?

    Hi,
    I'd say it depends on what kind of data are you binding and if they're refreshed or not. In our "framework" we're using Properties-based approach for dialogs - server packs an @Entity into class similar to Properties - basically it's s Map<String, Object>, sends this Properties to client and values are put into our customised components. We're using component name as a key, most of controls are simple extends of standard JComponents with handful of methods from common interface (like load(), save(), ...). This approach seems to work fine.
    For refreshed "lists" we're using again our custom "framework" based on sending initial batch and consequent diffs - there is sort of event queue responsible for telling everyone what had been changed. Because this kind of data tends to be quite huge, we're sending gzipped binary representation of source data.
    With beans there might be a way how to implement both simply by calling getters, but then every single value results in one roundtrip, which was absolutely unacceptable for us. But I can imaging this working fine on LAN.

  • Xcontrols and Data Binding

    Hi
    Is it possible to bind specific controls in a Xcontrol to e.g. a Shared Variable programmatically? I have tried using the Bind to Network Path method, but I only manage to bind the Xcontrol it self. When I try to bind a controller inside the Xcontrol, nothing happens. I have tried applying the method in both Init.vi and under Exec State Change in Facade.vi.
    Regards gelmin
    Message Edited by gelmin on 03-06-2007 11:46 AM

    Hi Nick_CH.
    Thank you for your reply. I have actually looked at this example, but unfortunately it doesn't help me as I want to bind the control inside the Xcontrol, and not the Xcontrol it self. The reason why I'm looking in to this is that I need a way to dynamically both read and write several shared variables inside a Xcontrol. With data binding of controls I could sort of do something like this.
    The most obvious way to achieve this though is to use Datasocket, but I'm afraid this will affect performance as I will have a lot of variables to manage. I have read somewhere that one should only use Datasocket when dealing with less than 30 variables or so. Are there some clever way to dynamically read/write Shared Variables whit out loss of performance?
    Best regards gelmin

  • 10g: Data Binding in event handlers?

    I'm trying to use data binding in my event handlers so that I can have a definitive source for the Strings that name things like this. I can see that the page is getting generated with the proper names on the elements in the page, but I always get an UnhandledEventException when I trigger the event. The idea is something like this:
            <submitButton text="Refresh" event="${ pageBean.controlRefreshEventName }" >
            </submitButton>
            <submitButton text="Hide Controls" event="${ pageBean.controlHideEventName }" >
            </submitButton>
        <handlers>
            <event name="${ pageBean.controlRefreshEventName }">
                <method class="com.avega.portlets.view.EventHandler"
                        method="handleControlFormSubmit"/>
            </event>
            <event name="${ pageBean.controlHideEventName }">
                <method class="com.avega.portlets.view.EventHandler"
                        method="handleControlFormSubmit"/>
            </event>
        </handlers>
    ...Now in my EventHandler I would be able to use the getXXXName methods when checking for which submit button was hit. Except I'm getting an exception instead.
    (BTW, I only have the two event tags because I wasn't sure how to concatenate the el expressions with a space...)

    No, there's no indication that anything is wrong until I cause the event and get the UnhandledEventException.
    However, I did the an experiment with the following tags, the first in a plain JSP, the second in a UIX page, and it seems that this is the normal way of handling a non-existant bean reference. Both cases printed 'text' in the page and did not complain that 'noBean' didn't exist. It seems you get an error when you reference a non-existant property on an existing bean, but no error if the bean itself doesn't exist. Anyway, UIX doesn't appear to be any different from JSP in this regard.
    <c:out value="${ noBean.noProperty } text" />
    <styledText text="${ noBean.noProperty } text" />

  • Access/SQL to PDF data binding question

    Hello,
    The goal = Using an access form, fill out fields which populate a table on the sql server. Open a PDF and data bind the fields to that table. Lock the fields with the correct information. Then send to an individual with read only data that is NOT bound to the server.
    I can get to binding the data and seeing the correct information populate on the PDF fields, but I'm stuck on how to make the fields read only and turn the data binding off through script.
    Any and all help is greatly appreciated!!
    I'm using LCD ES2, Access 2010, SQLExpress 2008 R2
    Thank you,
    James

    There are a number of ways you could do it, but the most seamless involve some type of programming. Here's a good article that discusses some of the ways: http://acrobatusers.com/articles/getting-external-data-acrobat-x-javascript
    In item #3 the article touches on the importTextData method. If you export the spreadsheet to a tab-delimited text file, you can use the doc.importTextData method to (manualy) import a row of data from the file: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.502.html
    This is probably the simplest method that will get you what you want. The first row of the data file has to be the tab-delimited field names.
    Another way that can be automated would be to create an FDF file using a macro in Excel and then loading the FDF into the form. If you haven't done this sort of thing before, it will involve a bit of a learning curve.

  • Display dropdown by key data with sorting

    Hi,
    My requirement is to display dropdown by key data with sorting getting this data from XML in KM.
    Tell me different possibilities to sort the data.
    Regards,
    surya.

    Hi,
    Use DropDownByIndex instead of DropDownByKey
    Create a node with a attribute for eg. Colors node with Color attribute and add the values in the elements of the node, Bind attribute to DropDownByIndex UI.
    Create a custom comparator class like below
    import java.util.Comparator;
    import com.sap.tc.webdynpro.progmodel.api.IWDNodeElement;
    import com.sap.tc.webdynpro.progmodel.repository.enums.WDComponentLifecycleEnumInfo;
    public class CustomComparator implements Comparator {
         String attribute;
         public CustomComparator(String attrib) {
              this.attribute = attrib;
         public int compare(Object o1, Object o2) {
              try
                   IWDNodeElement units1 = (IWDNodeElement) o1;
                   IWDNodeElement units2 = (IWDNodeElement) o2;
                   return units1.getAttributeAsText(attribute).compareTo(units2.getAttributeAsText(attribute));
              catch (Exception e)
                   e.printStackTrace();
              //arbitrary order
              return 1;
    Once you read values in the Colors node, call the sortElements method of the node as below to sort the elements of the node
    wdContext.nodeColors().sortElements(new CustomComparator("Color"));
    Regards,
    Amol

  • Quick question(s) about UIX Data Providers...

    Hello,
    I have a UIX Template that I use for all of the pages in my application. In this template, I have several data providers bound that are used to create the accessible tabs and links for navigation within the application.
    When a data provider is called, does a constructor for the class get called before the actual method to get the Object/DataObject/DataObjectList is called? For the providers that I have defined (3), there is a common set of information that is needed by by each before it can provide the required data. All of these methods are in the same class. Each of these methods call an 'init()' method to retrieve the pre-requisite information. My problem is that when the page loads, as each method is called the 'init()' method is called. So 'init()' is called 3 times. Ideally, I'd like the logic in 'init()' to be executed once per page load. If I put this in a constructor for my provider, will it be executed on page load? Do UIX templates/pages created multiple class instances for data provider definitions?
    How does classloading for data providers work? What is the best way to handle what I am trying to do?
    Thank you.
    August Harrison

    Hi August Harrison,
    UIX doesn't instantiate your data provider classes.
    If you look closely, they are call to static methods.
    When this returns a bean class - you would have taken care to instantiate them.
    Data binding chapter in developers guide - Clearly state how every thing works.
    There is a simple example which talks about a similar kind of scenario which you are refering to.
    Hope this helps.
    Regards,
    Vijay V

Maybe you are looking for

  • How to hide a field based on the value of a field in a different subform - null check doesn't work!

    I'm using Javascript to set the actions. I need to hide a text field if the value of a field in another sub-form is null. - tried checking the value of the other field for null - doesn't work - tried setting a variable str2 where I know the value of

  • What quicktime movie settings for use in Logic

    Hi, I'm working on a 50 track mix of a live gig which was also filmed and I have to work to picture. I was advised to ask the video editor to give me the following: Quicktime Sorenson codec (or Sorenson3). Limit data rate to 500 kbps, 320 x 240. But,

  • Unable to delete column created under document library.

    I've created custom column in SharePoint online (2013). I want to delete one column from my document library. In library settings all columns are showing but its not clickable to select and delete the particular column. Please advice.

  • InDesign, Acrobat CS3 will not print.

    Help! Neither InDesign CS3 nor Acrobat 8 will print at all from my G5 PPC to a Canon 9000 Acrobat never has, but InDesign did until recently. Incidentally, InDesign CS2 does print, though it can't open CS3 documents. All other CS3 programs print prop

  • Transfer Spotlight Comments?

    Is there a way I can use Automator to transfer all of my photo archive's Spotlight Comments to IPTC or EXIF comment or description boxes?