JDeveloper 11.1.2.3, ADF Faces: need declarative component idea for table

Some background:
I'm trying to create a reusable toolbar for standard af:table behavior, see screen shot
http://wesfang.files.wordpress.com/2013/05/dc.jpg
I got the idea from the from using documentation Frank has published in the past
1. http://www.oracle.com/technetwork/developer-tools/adf/learnmore/001-access-declarative-comp-attr-169113.pdf
2. Adding a new row programatically
The consuming subsystem's page passes in a "MyPageBean" which is a subclass of a "ArchBean" where all actionlistener operations are defined. The idea here is to minimize developer customization when using this component.
... <f:facet name="toolbar">             <af:toolbar id="t2">                 <mskcc:basicTransactionToolbar id="btt1" pageBean="#{MyPageBean}" tableId="t1"/>             </af:toolbar> </f:facet> ...
The table within the consuming page is by default dropped off as a "editable" table. The developer needs to further modify the "disable" attribute to true for all the input fields and command components within the table. I would like to remove this developer step and instead have it in an architectural component. All ideas are welcome.

Ok, finally got it working (sort of)
Using the following method as you suggested:
public void encodeChildren(FacesContext fc){
        try {          
            super.encodeChildren(fc);
            RichTable table =
                (RichTable)ADFFacesUtil.findComponentInRoot((String)this.getAttributes().get("tableId"));
            lockUnlockTable(table); //method for toggling disable attribute for all command and input components
        } catch (IOException e) {
            e.printStackTrace();
}Now the strange problem I encountered is that the encode methods are not called if the declarative component is defined within a panelCollection's f:facet-toolbar like below:
<f:facet name="toolbar">
                    <mskcc:basicTransactionToolbar id="btt1" tableId="t1" pageBean="#{TestBean}"/>
</f:facet>Also the above code has to be manually created because the design time editor does not allow me to drop off the dc within the toolbar facet (even though the dc is a toolbar!)
Instead, If I move the dc outside the panelcollection, then the encode methods are invoked and the desired enable/disable behavior is correctly displayed.

Similar Messages

  • JDeveloper 11.1.2.3, ADF Faces: declarative component does not support af:clientListener?

    I am trying to create a declarative component with the following code:
    <?xml version='1.0' encoding='UTF-8'?>
    <af:componentDef xmlns:af="http://xmlns.oracle.com/adf/faces/rich" var="attrs" componentVar="comp" definition="private"
                     xmlns:afc="http://xmlns.oracle.com/adf/faces/rich/component">
        <af:xmlContent>
            <afc:component>
                <afc:display-name>DoubleClickTableDialogClientServerListener</afc:display-name>
                <afc:component-extension>
                    <afc:component-tag-namespace>org.mskcc.crdb.common.declarativecomponent</afc:component-tag-namespace>
                    <afc:component-taglib-uri>http://www.mskcc.org</afc:component-taglib-uri>
                </afc:component-extension>
            </afc:component>
                <af:clientAttribute name="serverListenerType" value="TableDoubleClickEvent"/>
                <af:clientListener method="handleTableDoubleClick" type="dblClick"/>
                <af:serverListener type="TableDoubleClickEvent"
                                   method="#{EditAddDialogTemplateBean.handleTableDoubleClick}"/>
        </af:xmlContent>
    </af:componentDef>
    At runtime I recieve the following error:
    javax.faces.view.facelets.FaceletException: ADF_FACES-60023:Component: DoubleClickTableDialogClientServerListenerComponent[oracle.adf.view.rich.component.fragment.UIXInclude$ContextualFacesBeanWrapper@7170a7, id=dctdcsl1] does not support client listeners.
      at oracle.adfinternal.view.faces.facelets.rich.BaseClientListenerHandler.apply(BaseClientListenerHandler.java:53)
    This component was intended to be dropped off within an af:table component. I would like to hear suggestions on workarounds, one other way I thought about was to create a code template for the three tags, however, the con to this approach is each developer would need to configure this template within jdeveloper. Ideas are appreciated.
    Also a side question, how can I embed code properly with the new forum? [code] tag does not seem to work now.

    Wes, can't help with the real question, but can tell you how to format code
    Change to the advanced editor (top right over the editor field), then you get more options. The one you are looking for is behind the blue '>>'. Here you select the language you want to insert and you get nice code formatting and color.
    Timo

  • JDeveloper Visual Editor not rendering ADF Faces

    Hi guys, thanks for read my post.
    I'm working on a MVC application, and using ADF Faces in view. I did any changes, editing my jsf pages sources.
    Now JDeveloper doesn't show the design view of no one jsf pages.
    I followed the steps enumerated by Didier Laurent in:
    http://blogs.oracle.com/Didier/2006/11/22
    (thanks Didier), but it didn't resolve the trouble.
    When i run jdev.exe instead jdevW.exe I watch the following lines:
    (digester.Digester 164) [ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
    (digester.Digester 164) [ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
    (digester.Digester 164) [ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
    (digester.Digester 164) [ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
    But I can't see the error cause,
    Have you seen this problem before?
    Thanks in advance

    Hi again, thanks for your reply Shay. I had followed this steps to, but I don't reach to get the misconfiguration or error in my faces pages for showing design time messages in log. Log is empty and if I run JDeveloper from jdev.bin I don't see more than some lines I sent before.
    Thanks

  • JDeveloper 11.1.2.3, ADF Faces, JQuery Integration via ADF Library

    I cannot seem to get a consuming application to execute jquery's ready() function defined within a adflib application. Here is my setup
    directory structure of where my javascript files are:
    CommonApp
    -ViewController
    --public_html
    ---resources
    ----js
    -----jquery-1.6.2.min.js
    -----acme.js
    The above structure created by default by jdev when creating a new javascript file. Now the test code (also within CommonApp) which works looks like the following:
    test.jsf
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="test.jsf" id="d1">
            <af:group id="g1">
                <af:resource type="javascript" source="/resources/js/jquery-1.6.2.min.js"/>
                <af:resource type="javascript" source="/resources/js/acme.js"/>
            </af:group>
            <af:form id="f1">
             </af:form>
        </af:document>
    </f:view>Contents of acme.js
    $(document).ready(function () {
        // do jQuery
        alert('jquery ready called')
    });OK so far so good, test.jsf runs and an alert dialog pops up. Moving on... CommonApp is deployed as an ADF Library and consumed by a ChildApp.
    There is a single .jsf file within the ChildApp and the code is exactly identical to the above test.jsf. Upon runtime there is no alert dialog! What am I missing?

    A bit more fiddling around:
    I have added the following code to acme.js
    function test() {
        alert('test');
    }redeployed the adflib
    Within my ChildApp I have added the following code to test.jsf:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="test.jsf" id="d1">
            <af:group id="g1">
                <af:resource type="javascript" source="/resources/js/jquery-1.6.2.min.js"/>
                <af:resource type="javascript" source="/resources/js/acme.js"/>
            </af:group>
            <af:form id="f1">
                <af:commandButton text="commandButton 1" id="cb1">
                    <af:clientListener method="test" type="click"/>
                </af:commandButton>
            </af:form>
        </af:document>When the code is ran, I clicked the button and the alert dialog is invoked.
    </f:view>

  • JDeveloper 11.1.2.3, ADF Faces: aberrant behavior declarative components

    Strange things have been happening with my research into declarative components.
    1. declarative component cannot be used the within the same project it is defined. only in a separate project which consumes it as an adflib
    2. periodically, in the componentdef property inspector for my declarative component would miss displaying all values I defined for "Facet Definitions, Method Signature, Methods". Closer inspection of the code reveals that somehow, the afc tags disappeared! so the code for something like a method attribute would look like:
    <method-attribute>
      <attribute-name>
       commit
      </attribute-name>
    <method-signature>
      void method(javax.faces.event.ActionEvent)
    </method-signature>
    </method-attribute>
    ...instead of:
    <afc:method-attribute>
    <afc:attribute-name>
      commit
    </afc:attribute-name>
    <afc:method-signature>
      void method(javax.faces.event.ActionEvent)
    </afc:method-signature>
    </afc:method-attribute>
    ...3. during design time, the ActionListener attribute of a button (in the declarative component definition) shows up under "warning node" and states "Reference comp.nameofactionlistener" not found.
    Code will run but there are many warnings similar to this.
    anyone else on 11.1.2.3 have similar issues working with declarative components? i'm trying to find steps to reproduce but havent stumbled upon it yet.

    Wes,
    1) is documented at http://docs.oracle.com/cd/E35521_01/web.111230/e16181/af_reuse.htm#autoId21
    2) and 3) I personally have not stumbled upon, but if you have a reproducible test case you should open an SR or make an entry in the ADFEMF issue tracker (http://java.net/jira/browse/ADFEMG side is currently down :()
    Timo

  • ADF Faces - issue with Portal and af table

    I wonder if anybody could help me with a problem we are experiencing with running our ADF Faces app inside a portal (NOT Oracle Portal). We are using the af table tag with the rows attribute set as follows:
    <af:table emptyText="No items found"
    rows="10" banding="row"
    bandingInterval="1"
    binding="#{backing_ModuleSearchReg.table1}"
    id="table1"
    var="row">
    What this does is if we have more than 10 rows to display it will display
    a table header that has a label 'Previous 1-10 of nnn' Next 10. However, when you click on 'Next 10' it produces a Javascript error.
    When we run the app outside of the portal we do not get this problem.
    I believe this is related to known issues with JSF and Javascript inside a 'framed' web page. But if anybody help me with this or point me to a resource that can help it would be very much appreciated.
    Many Thanks in advance.
    Chris

    Hi,
    I remember a similar issue with inner frames that should be fixed in JDeveloper 10.1.3.3. The problem was that the ADF Faces JavaScript did not get the correct document root.
    Frank

  • ADF Faces: Making a component non-navigable. How?

    Hi,
    Is it possible to make an ADF Faces component non-navigable? Something like specifying
    tabindex="-1"in HTML.
    I need this most for buttons.
    Best regards,
    Bisser

    That's right. JSF produces such IDs. They are causing problems with JAAS login forms, so we should use plain JSPs for login, but for the rest of the tasks such IDs are okay.
    What I meant is that currenty the buttons are not rendered as
    <input type="button" ... />but as pictures embedded in hyperlinks (&lt;a>).
    It's possible, though not likely, that in some future version of ADF Faces some component will be rendered as an HTML element that doesn't support tab ordering (although I haven't really considered if there are such elements). Then the trick with manually setting the tabIndex of the parent HTML element won't work.
    Of course, I deeply appreciate the fact that you take the time to help us on this forum. In fact, I will go ahead and do just that -- I will dynamically set the tabIndex via JavaScript. I was simply wanting to make sure that I wasn't taking such a hack-like approach, if there was a better method.
    Thank you again.
    Best regards,
    Bisser

  • ADF FACES:Creating custom component on top of adf

    My UI requiement is sth like
    Name : xxxxxxx
    Description : xxxxxxxxx
    Search : cccccc
    This UI i want to create as a custom tag and use it across our project.
    We need to include this utiltiy in JSP Tag libraries so that it appears in
    the compoent palette.
    WE have done the same thing using pure JSF and it is working fine.
    But we need to leverage ADF classes.. so that we can get the same look and
    feel and we simply set our proprties and renering part will come from ADF faces.
    In my main component class I have written the code sth like
    public void encodeChildren(FacesContext context)throws IOException {
    RenderKit rk = context.getRenderKit();
    CoreInputText buton = new CoreInputText();
    buton.setValue("my text");
    buton.setRendered(true);
    rk.getRenderer("myFamily", getRendererType()).encodeBegin(context, buton);
    After doing this I run my test.jsp and no output is produced.
    So can you let us know the correct way for doing this.
    This is a high priority requirement for US.if anybody can pls help asap..
    Thanks
    Ravi

    Hi All,
    I was able to get this code to run and wanted to share with you the corrections
    ================== HelloUIComp.java ==============
    package view.components.msg;
    import java.io.IOException;
    import javax.faces.application.Application;
    import javax.faces.component.UIComponentBase;
    import javax.faces.component.UIViewRoot;
    import javax.faces.context.FacesContext;
    import oracle.adf.view.faces.component.core.CoreForm;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.adf.view.faces.component.core.layout.CorePanelForm;
    import oracle.adf.view.faces.component.core.nav.CoreCommandButton;
    import oracle.adf.view.faces.component.core.output.CoreMessage;
    import oracle.adf.view.faces.component.core.output.CoreMessages;
    public class HelloUIComp extends UIComponentBase {
    private CoreCommandButton button;
    private CoreInputText intext;
    private CoreInputText description;
    private CorePanelForm panel;
    private CoreForm form;
    public static final String COMPONENT_TYPE = "com.mycompany..hello";
    // This will be a self-rendering component
    public static final String RENDERER_TYPE = null;
    public HelloUIComp() {
    FacesContext context = FacesContext.getCurrentInstance();
    Application apps = context.getApplication();
    UIViewRoot root = context.getViewRoot();
    panel = (CorePanelForm)apps.createComponent(CorePanelForm.COMPONENT_TYPE);
    panel.setId("errPanel");
    panel.setLabelWidth("35%");
    panel.setRows(7);
    getChildren().add(panel);
    form = (CoreForm)apps.createComponent(CoreForm.COMPONENT_TYPE);
    form.setId("errForm");
    panel.getChildren().add(form);
    intext = (CoreInputText)apps.createComponent(CoreInputText.COMPONENT_TYPE);
    intext.setId("name");
    intext.setLabel("Name");
    intext.setRendered(true);
    intext.setRequired(true);
    form.getChildren().add(intext);
    description = (CoreInputText)apps.createComponent(CoreInputText.COMPONENT_TYPE);
    description.setId("description");
    description.setLabel("description");
    description.setRendered(true);
    description.setRequired(true);
    description.setRows(3);
    form.getChildren().add(1, description);
    public boolean getRendersChildren() {
    return true;
    public void encodeChildren(FacesContext context) throws IOException {
    // Encode the top most component
    panel.encodeAll(context);
    /* The below code can replace the encodeAll call
    panel.encodeBegin(context);
    if(panel.getRendersChildren()){
    panel.encodeChildren(context);
    panel.encodeEnd(context);
    public String getFamily() {
    return COMPONENT_TYPE;
    ==========================================================
    Notice, you don't need any setters/getters for this object.
    You will need the following tag file:
    ============= HelloUICompTag.java ========
    package view.components.msg;
    import javax.faces.webapp.UIComponentTag;
    public class HelloUICompTag extends UIComponentTag{
    public HelloUICompTag() {
    public String getComponentType() {
    return HelloUIComp.COMPONENT_TYPE;
    public String getRendererType() {
    // Self rendering components return null
    return HelloUIComp.RENDERER_TYPE; // should be null
    =========================================
    You will need to update your faces.config file with the following entry. Notice you do not need an entry under render kit.
    <component>
    <component-type>com.mycompany.hello</component-type>
    <component-class>view.components.msg.HelloUIComp</component-class>
    </component>
    Finally, you will need to create (or append to) a tag library
    ================== myTest.tld ====================
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <taglib xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
    version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee">
    <display-name>tests</display-name>
    <tlib-version>1.0</tlib-version>
    <short-name>tests</short-name>
    <uri>http://mycompany.mil/tests</uri>
    <tag>
    <name>hello</name>
    <tag-class>view.components.msg.HelloUICompTag</tag-class>
    <body-content>JSP</body-content>
    </tag>
    </taglib>
    =============================================
    Notice you don't need a custom renderer class. The component is self-redering.
    To use the component, create a myTest.jspx file like the following:
    ============ myTest.jspx ===============
    <?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:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:mebs="http://mycompany.com/tests">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <afh:html>
    <afh:head title="Testing Components">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <h:form>
    <af:panelPage title="My Component Test">
    <f:facet name="menu1"/>
    <f:facet name="menuGlobal"/>
    <f:facet name="branding"/>
    <f:facet name="brandingApp"/>
    <f:facet name="appCopyright"/>
    <f:facet name="appPrivacy"/>
    <f:facet name="appAbout"/>
    <!--
    Well, this is a bad place to put our component
    This will render a <af:form> within the above <h:form>
    Should be placed outside the h:form or edit the component and remove the form
    -->
    <mebs:hello/>
    </af:panelPage>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    ===================================
    Hope this helps you.

  • ADF Faces af:showOneTab component - Mozilla Firefox problem

    I'm new to ADF Faces.
    I made simple subpage flow with showOneTabs component. It looks like thist:
    <f:view>
    <afh:html>
    <afh:head title="title"/>
    <afh:body>
    <af:panelPage>
    <f:facet name="pageHeader">
    <af:form id="formNavigate">
    <af:panelGroup type="vertical">
    <af:showOneTabs position="above">
    <af:showDetailItem text="Tab1">
    <jsp:include page="sub1.jsp"/>
    </af:showDetailItem>
    <af:showDetailItem text="Tab2">
    <jsp:include page="sub2.jsp"/>
    </af:showDetailItem>
    Subpages (sub1.jsp and sub2.jsp) looks like this:
    <afh:html>
    <afh:body>
    <af:outputText value="sub1"/>
    and it works fine. But only with IE. When try to swith to Tab2 in Mozilla Forefox 0.9 nothig happends. Anyone knows why.
    Regards
    bhs

    Get rid of the <afh:html> and <afh:body> in sub1.jsp and sub2.jsp; you can't have <HTML> and <BODY> inside other <HTML> and <BODY> tags.
    -- Adam Winer

  • [ADF Faces] How to set target for commandLink in af:menuTabs

    I try to use tabbedpane component from Oracle ADF...As I found, they stated that only <af:commandLink> can be child of <af:menuTabs>
    I want to press the tab then the result can be show at the bottom of that tab...as same as the jsf demo from SUN.
    <af:menuTabs binding="#{editor.component}">
    <af:commandLink text="Quick-Info" action="#{action.qinfo_page}"
    selected="true" />
    <af:commandLink text="Vertrieb" action="#{action.vertrieb_page}"/>
    <af:commandLink text="Wichtig" action="#{action.wichtig_page}"/>
    <af:commandLink text="Kontakt" action="#{action.kontakt_page}"/>
    <af:commandLink text="Notizen" action="#{action.notizen_page}"/>
    </af:menuTabs>
    Now when i press to each tab, it will redirect to new page as i define (such as the code in welcome.jsf...then it redirect to qinfo.jsf when i press at Quick-Info tab).
    Pleas help me to solve this problem...I need to show the result at that page (area below the tab). Thank you in advance.

    We're sorry, but this isn't supported. One rationale is that it's not generally sufficient to simply reload the target page; you also have to reload the tab control itself to show the new selection. We generally recommend not using frames in this circumstance, instead putting the menuTabs and the content on one page.
    (BTW, "target" isn't really supported on <h:commandLink> either)

  • ADF Faces - Using ProgressIndicator Component as a Process Indicator

    Hi, I'm working on JDeveloper 10.1.3.2.0 and I'd like to know if there is an example anywhere for the next case:
    I have 2 jspx pages: one is a form with search fields. The other one is a table with the results of the search.
    I made some tests with both Poll and ProgressIndicator so that, when the user clicks the "Search Button", the clock of the ProgressIndicator component appears (just the clock) and, when the search is over, the application redirects you to the results page.
    I had to use javascript and I almost got it, but there's a problem. Once you're in the results page, if you click the "Back" button of the browser, the clock appears as if you're requesting the search again (but you're not, of course)
    Do you know if there is a simpler way to achieve this solving this last problem and without javascript code?
    Thanks in advance

    Hi,
    you can use the JavaScript on the target page in an onLoad statement to delete the browser history. This way the back button doesn't work at all. I received a mail from another customer who did it that way
    Frank

  • Pls help me any one, ADF Faces EO,VO creation in mutiple table..

    problem here:
    table1
    field1 (pk)
    field2 NAME
    table2
    field1 (pk)
    field2 (fk for table1)
    field3 NAME
    table3
    field1 (pk)
    field2 (fk for table2)
    field3 NAME
    Here each table having separate panel tabbed, i want to show table1 of
    field2 in third panel tabbed(screen). How i can create EO,VO to show
    with success.
    When i'm showing the table1 of field2, is not require to do a DML operations.
    like this my third screen's adf table
    field2(table1) field2(table3) field3(table3)
    (showing for
    user identify)
    Urgent Requirement pls help me.
    In case of any query please free to mail @ [email protected]
    Thanks & Regards,
    Rengaraj
    Edited by: user11129216 on May 4, 2009 7:21 AM

    Like Frank, I'm not 100% sure I'm understanding your requirement, but here are some observations.
    Your three tables look like master/detail/detail, let's say it was Regions->Countries->Locations
    So, you would build a RegionsView VO to show the Regions information.
    You would build a CountriesView VO to show the Countries information.
    You would build a LocationsView VO to show the Locations information.
    Then you would create a view link between RegionsView and CountriesView to coordinate that master/detail relationship.
    Then you would create a view link between CountriesView and LocationsView to coordinate that master/detail relationship.
    All of the above will be created automatically for you if you have foreign keys defined in the database when you use the Create Business Components from Tables wizard. (including the underlying entity objects for your database tables, associations that reflect your foreign key relationships).
    If you want LocationsView to show information from its parent, you can include the Country EO as an entity usage in the LocationsView and include the attributes from country that you want to appear in that (join) query. You can repeat to also add the Region EO as an entity usage to join all three.
    Then, you would drop RegionsView from the data control palette onto tab1, CountriesView onto tab2, and LocationsView onto tab 3.

  • Need some design idea for a multi- thread  concurrent system

    I am totally new to this area. Hope ppl can give me some suggestion for the following project.
    The project is using socket to deal with huge concurrent data. Server will send me more than 50K (maybe more) XML strings in a short time.
    I need parse strings and save them in the data structure.
    What I have done is using ExecutorService to deal with this problem. Unfortunately, it's already too slow even I don't save data into data structure.(data structure will cause synchronization problem, and make system even worse).
    I was required to develop this software in a single machine and windows based OS.
    Should I only use single thread to do this project? or some other strategy?
    Can anybody give me some suggestion.
    Thanks so much.

    Peter. Thanks again.
    Could you help me to take a look at this code. Appreciate that.
    ThreadPool class:
    protected ExecutorService threadPool = Executors.newFixedThreadPool(5);
       incoming = new Socket("127.0.0.1", port1);
       outcoming = new Socket("127.0.0.1", port2);
       out = new PrintWriter(outcoming.getOutputStream(), true);
       isr = new InputStreamReader(incoming.getInputStream());
       is = new BufferedReader(isr);
    while (true) {
         String str;
         str = is.readLine();
         if (str == null) {
                 cleanup();
                 closeSocket();
                 printout();
            } else {        
                             this.threadPool.submit(new WorkerRunnable(str,          
                                                             "Thread Pooled Server"));
           }WorkerRunnable class:
    public void run() {
    try {
                SAXBuilder builder = new SAXBuilder();
                InputSource is = new InputSource( );
                is.setCharacterStream(new StringReader(xmlString));
                org.jdom.Document doc = builder.build(is);
                org.jdom.Element root = doc.getRootElement();
                org.jdom.Element order = root.getChild("Changes");
                List orderList = order.getChildren("OrderChange");
                if (orderList.size() != 0) {
                               org.jdom.Element orderchange = (org.jdom.Element) orderList.get(0);
                               String price = orderchange.getAttribute("orderPrice").getValue();
                               String quantity = bookchange.getAttribute("orderQuantity").getValue();
                               String symbol = bookchange.getAttribute("orderName").getValue();
                                } catch(Exception e)
                              {}

  • Can Siri have a face? Just an idea for the future.

    I think it would be awesome if Siri had a face with key expressions and the same responses she has now or better. You would really feel as if you had a pocket assistant then. What do you guys think?

    I don't have an openion as my iphone4 nor my ipad2 have Siri but you can let apple know using the feedback
    http://www.apple.com/feedback/iphone.html

  • ADF Faces & BC, JDeveloper 10.1.3.4: Editable af:table question

    Hi all,
    I have a dialog which pops up with an af:table inside, the table is bound to a viewobject which is used to create multiple rows which upon clicking a save button, these records will go into the db. My problem is that lets say I have 3 rows that are created (via programmatic CreateInsert on the AM), when I use the UI to modify a attribute value on the first row, the same value is copied to the rest of the 2 rows.
    See image of UI below:
    [http://i108.photobucket.com/albums/n23/zeoneozero/beforesave.gif]
    I do not wish to use a radio button next to the rows as I want the user to freely edit which ever field directly without clicking around too much. Should I be setting the autosubmit to true and a valuechange listener to set the current row?
    Many thanks,
    Wes
    Edited by: Wes Fang on Mar 13, 2009 8:36 AM

    Fixed. This is a similar problem to:
    JDeveloper 10.1.3.4,ADF Faces & BC: InputText PPR Problem

Maybe you are looking for

  • EBS 11i AutoInvoice Performance Very Slow

    Hi all, EBS 11i Oracle 9.2.0.6 32bit AutoInvoice Transfer Program has been bugging down the Company's business, a bad start for 2013. Please help for this serious problem :( Attached is the "STATSPACK" report for the slow performance time. STATSPACK

  • Unable to create a folder in lower levels of root folder

    It appears to me I cannot create a new folder in the lower levels of root folder. Currently, I have to create a new folder right below root folder and then drag it to lower level folder. Why I can't do it in one go. Thanks!

  • Is there any way that I can upgrade my iMac 5,1 to 1TB of memory?

    I have an older iMac, with the Core duo 2 processor. Let me say that I am not too savy when it comes to computers but I have upgraded my memory about  two years ago. However for the last year I have recieved a notice every now and then that my startu

  • Moving a file without using Cmd+Drag option

    Is there any third party software or command such as Cmd+X to move folders on a finder window other than Cmd+Drag. I find Cmd+Drag annoying and very difficult to use in OSX as you have to keep pressed the mouse button till u have reached to the desti

  • Delete records from multiple table

    Hi, I need to delete records from multiple tables using a single delete statement. Is it possible ? If so please let me know the procedure. Kindly Help. Thanks, Alexander.