ADF Faces Output Text - Automatic Update?

Say you had a stock value in a view object as an output text field that updates in the view object once a minute. During this time, validate() is called on the row (which i thought would update the client). How can i get the client web page to update the field automatically?
OR
Have the client request an update of the text field from the view object once a minute?

+1
its the only way you could handle this. In JDeveloper 11 there will be a technology available for pushing such information to the cient. But in 10.1.3.x poll is the only option you have.
Frank

Similar Messages

  • ADF Faces -- Input Text

    Hello all
    I am developing a GUI using ADF Faces and I have only one problem left in my jsp. I use an Input Text with its "readOnly" attribute set to true to show some values in the screen and it works just fine, but now I need to input the values shown in the InputText field.
    I mean...i need to show a value in the InputText field and i must be able to update this value. What i did is set the attribute "readOnly" to false and add a binding Attribute. But i got an error saying that it's not possible to have a "readOny" and "binding" Attribute at the same time and it seems to be logical it the readOnly where set to TRUE, but it's set to false so I can't see why i am wrong.
    I put here the code for the input Text. I wonder if someone know what's the issue or another way to do what i am trying to do
    <af:inputText label="#{bundle[\'showResults.refTexto\']}"
                                    binding="#{mostrarResultadoDiagQuery.descripTexto}"
                                    rows="1" readOnly="false" rendered="true"/> I am using Jdeveloper 10.1.3.4
    Thanks to all, thanks in advance
    Edited by: Jose Miguel on Dec 15, 2008 8:42 AM

    Hello again
    I've been doing some testing but I still have the original problem.
    I have tried getting the entered text in another been but i still get the same problem.
    I do have getter and setters methods for the attribute where i update the values.
    The message i get is the following
    javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'result' from bean of type mx.com.uaem.htb.sspoc.portal.managed.DiagQueryBean: java.lang.NumberFormatException: null
         at com.sun.faces.el.ValueBindingImpl.isReadOnly(ValueBindingImpl.java:293)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:211)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:109)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.EditableValueRenderer.decode(EditableValueRenderer.java:48)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.InputLabelAndMessageRenderer.decode(InputLabelAndMessageRenderer.java:34)
    Caused by: javax.faces.el.EvaluationException: Error getting property 'result' from bean of type mx.com.uaem.htb.sspoc.portal.managed.DiagQueryBean: java.lang.NumberFormatException: null
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:109)
         at oracle.adfinternal.view.faces.model.FacesPropertyResolver.getValue(FacesPropertyResolver.java:92)
         at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
         at com.sun.faces.el.impl.ComplexValue.isReadOnly(ComplexValue.java:204)
         at com.sun.faces.el.ValueBindingImpl.isReadOnly(ValueBindingImpl.java:266)
    Caused by: java.lang.NumberFormatException: null
         at java.lang.Integer.parseInt(Integer.java:415)
         at java.lang.Integer.parseInt(Integer.java:497)
         at mx.com.uaem.htb.sspoc.portal.managed.DiagQueryBean.getResult(DiagQueryBean.java:56)
         at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:99)
    Thanks for all your help

  • ADF Faces - indenting text in table column.

    Is there a way to indent text in an ADF Faces coreColumn component? I'm trying to represent a recursive tree structure in a CoreTable. I've tried inserting object spacers depending on the depth of each node in the tree, but Faces then wraps the text after the spacers, even when I specify no wrap for the column.
    Better yet, is there a way I could do this with a tree component? I've tried separating the different levels into different collections with separate custom methods, but I don't know how to specify the master/detail relationships between them.
    Any suggestions gratefully received.
    Brian Spear.

    Thanks, Frank. I don't think a tree table is the answer; it has the same requirements as the tree (or so I understand) with regards to populating each level from a different collection, and foreign key relationships. Not suitable for recursive relationships. Furthermore it only shows a small part of the tree at a time. I've got as far as returning a list of nodes within a structure, and I can display the structure, with icons for expanding and collapsing the nodes. All I need now is a way to indent the levels so the structure is more visible. The best I've managed so far is by inserting ". . ." in the text itself on each lower level, to make the left-justified text look indented. Obviously, I'd like a better way, that can be implemented in the view layer.
    Is there maybe a way of nesting objects within an outputText component so that it doesn't wrap? Must look into that.
    Thanks again.
    Brian Spear.

  • ADF Faces OutputText text-align

    I´m working in an ADF Faces Application, a column in a table is showed using an outputText but the customer wants its value is showed right align.
    I've tried the propertie inlineStyle="text-align:right;" in the outputText but it's not working correctly.
    I think that inlineStyle="text-align:right;" doesn't work with outputText.
    Are there any solution to align text in a af:outputText?
    Thanks in advanced
    Toni - Oracle Principal Consultant - Spain

    Hi,
    select the column and and change the FormatType to Number.
    <af:column headerText="Description"
                           sortProperty="Description" sortable="false"
                           formatType="number">Brenden

  • ADF Faces af:table partialTriggers update column footer

    I have table based on SortableModel (stored in session) with one column as input & other column as formula based on input field both as numeric.
    I have ValueChangeEvent on input field,which calculate new value for formula column. It is updated on page immediately. I am also computing summary for both column & store it sessionbean. But ValueChangeEvent does not update these values, I have to refresh page manually to see new totals. I have linked both the outputText field to inputText by partialTriggers property.
    If I move these outputText out of tablefooter they get updated immediately.
    I tried to link af:table & columns to inputText by partialTriggers but do not work.
    How I can update coulmn footer immediately if one of the field in table changed?
    Thanks, Yogesh
    -- Column footer : Does not update immediately
    <f:facet name="footer">
    <af:outputText value="#{PartyTableBean.newTotalBalance}"
    binding="#{backing_FinancialClose.newTotalBalance}"
    id="newTotalBalance" partialTriggers="newInvoiced">
    <af:convertNumber currencySymbol="$" type="currency"/>
    </af:outputText>
    </f:facet>
    -- outputText outside of table : updates immediately
    <af:outputText value="#{PartyTableBean.newTotalBalance}" id="newTotalBalance22"
    partialTriggers="newInvoiced" binding="#{backing_FinancialClose.outputText7}">
    <af:convertNumber currencySymbol="$" type="currency"/>
    </af:outputText>

    I was mistakenly believing that you couldn't use a selectOneChoice in an af:table given some experimentation where they simply failed to render at all.
    It turns out that I had a hadn'e created the appropriate setter method for the property. However, instead of making the data readOnly (as most of the ADF FACES controls do) it just didn't render anything. Thus making me think it just didn't work inside of a table.
    FYI - in case this happens to anyone else.

  • How to save the structure of a formatted text in adf faces output component

    Hi all
    please help me.
    I need to display my formatted text (with line breaks) in the jsf page. How can i do this. If i use OutputText all my line break ("\n") are ignored, the same effect with OutputFormatted component. I have tried to substitute linebreaks with the respective html tags but it also didn't take an effect.
    Thanks in advance

    Hi Timin,
    Set the Escape property on the outputText or the outputFormatted to <b>false</b>
    I believe only HTML tags will work though
    -chris

  • ADF Faces tooltip text for datatable's columns impossible?

    Hi,
    How can I show tooltip text for column in datatable? ShortDesc property for column is ignored.
    thanks,
    Branislav

    Hi Brano,
    this is a small workaround:
      <af:table rows="5">
        <af:column>
          <f:facet name="header">
            <af:panelGroup layout="vertical">
              <af:outputText value="Ako ide ADF?"/>
              <af:outputText value="Small blue tooltip"
                                    inlineStyle="font-size: 70%; color: blue"/>
            </af:panelGroup>
          </f:facet>
          <af:outputText value="#{row.col2}"/>
        </af:column>
      </af:table>Rado

  • ADF Faces: Differring text sizes for AFFieldText and AFFieldTextDisabled

    I have found differing texts sizes in the generated css file for AFFieldText, AFFieldTextDisabled. Does anyone know the best way to fix this?

    I double checked and there was nothing in the WEB-INF/temp but the file was in the application-deployments/ directory. The contents of which are:
    more oracle-desktop-10_1_3_0_4-en-ie-6-windows-s.css
    /* CSS file generated on Tue Jan 31 14:24:27 EST 2006 */
    .AFInstructionText,.x0,.AFFieldText,.x6,.AFFieldTextLTR,.x42,.AFPhoneFieldText,.
    x44,.AFPostalCodeFieldText,.x46,.AFAddressFieldText,.x48,.PortletText1,.x6t,.Por
    tletText2,.x6u,.PortletText3,.x6v,.PortletText4,.x6w,.portlet-form-field,.x7l,.O
    raMessageBoxText,.x8p {font-family:Arial,Helvetica,Geneva,sans-serif;font-weight
    :normal;font-size:smaller;color:#000000}
    .AFInstructionTextDisabled,.x1,.AFFieldTextDisabled,.x7,.AFFieldTextLTRDisabled,
    .x43,.AFPhoneFieldTextDisabled,.x45,.AFPostalCodeFieldTextDisabled,.x47,.AFAddre
    ssFieldTextDisabled,.x49,.portlet-font-dim,.x6y {font-family:Arial,Helvetica,Gen
    eva,sans-serif;font-weight:normal;font-size:small;color:#999999}

  • URGENT: ADF Faces table updating issue.

    I have a project that uses JSF, ADF Faces, EJB 3.0, and the ADF binding framework.
    In this project, I have a page with a databound ADF Faces Table. The table has a number of read-only columns and two read-write columns. I also have an Edit button that allows the user to pop up a dialog box to edit the selected row of the table. When the user clicks OK in the dialog box, the data is passed back to the main page and the table is updated.
    Everything works correctly for the read-only columns. For the read-write columns, however, the table data does not get updated following an edit. This is what I have found:
    1. The table row data gets passed in to the Edit dialog correctly.
    2. The data gets passed back correctly.
    3. The model gets updated correctly (up to and including the database).
    4. Looking at the iterator in the debugger shows the correct, updated data.
    5. When the table row is getting redrawn, the getter calls for the read-write columns return the updated data.
    6. As mentioned above, the read-only columns get updated correctly.
    7. Updating the read-write columns directly from the table works correctly.
    So, the problem appears to be in the GUI layer. I suspect that, somehow, the submitted values of the read-write columns are not getting set properly, but I cannot figure out how to do this.
    Note that clicking on the Edit button results in a partial submit. In the return listener, I add a call to AdfFacesContext.getCurrentInstance().addPartialTarget(getRecipientTable()) in order to redraw the table (getRecipientTable() is the bound value of the ADF table).
    Please help! We are so close to production and we need to fix this.
    Thanks,
    Ara

    Hi,
    I don't have a testcase for this, so I just come up with ideas to try
    1. refresh the parent container of the table. It seems that the input text components are not triggered to refresh if the refresh is on the table.
    2. If using ADF, make sure the update is performed directly on theiterator (which automatically is the case if you use a ADF bound form for this)
    3. Check if executing the table iterator and then setting back the current row makes a difference
    Frank

  • Item text of PO print output is not generatiing but text is updated  in PO

    Hello ,
    I am changing the PO through IDOC. When ever there is change in the quantity ,net price and delivery date the print out put is generated autoamtically and changes are appearing the print output.
    when ever there is change in the item text of PO print output is not generatiing but item text is updated in the PO.
    If i change manually print out is generating for item text also but through IDOC print output is not generated . please help to slove this isuue.
    i am passing the value as :
    idoc_data-segnam = 'E1BPMEPOTEXT'.
    e1bpmepotext-po_item = Po line item number .
    e1bpmepotext-text_id = txtid.
    e1bpmepotext-text_form = textform.
    e1bpmepotext-text_line = line item text .
    idoc_data-sdata = e1bpmepotext.
    APPEND idoc_data.
    CLEAR idoc_data.
    CLEAR e1bpmepotext.
    please help me it is urgent
    Thanks
    Venkatesh

    Hi,
    For triggering the output for changes you have to make some changes.
    - Go to SM30
    - Enter view name "<b>VV_T161M_EF</b>".
    - Hit 'maintains' view.
    - Now let's say your outpu type is 'NEU'. For this there will be one entry like this.
    Operat.  Ctyp.  Name            Short text  Update
    1        NEU    Purchase order  New
    Now with this entry add one more entry like this.
    Operat.  Ctyp.  Name            Short text  Update
    2        NEU    Purchase order  Change      X
    You just need to enter Operat. = 2 and  Ctyp = NEU. The 'name' and 'short text' will come automatically.
    - Save your entry and create.
    After doing this, your PO will trigger output on change.
    Let me know if you have any other information.
    Regards,
    RS

  • Change default text in adf faces component in Webcenter Spaces

    Hi ,
    Here is the link that I found to change the default text in adf faces component. http://www.oracle.com/technetwork/developer-tools/adf/learnmore/49-skin-component-labels-169191.pdf
    Scenario is simple :
    Taskflow "ABC" is used in webcenter space through imported Library in spaces App. Taskflow "ABC"  have the pageFragment "view1" and fragment has a adf table on that page. I was trying to change the "Detach" text using below code in above provided instruction. 
    { "af_panelCollection.LABEL_DETACH_TABLE_DLG", "Any name for the Detachable Table" },
    { "af_panelCollection.LABEL_DETACH_TREE_TABLE_DLG", "Any name for the Detachable Tree Table" }
    Query/Problem : I did change in the trinidad-skins.xml of DesignWCSpaces app ... redeployed the war.. But the text didn't changed. The above steps worked fine for individual ADF application ... SO what's wrong with implementation on Webcenter Spaces ?

    Hi.
    Basically you have to do the following:
    Create an ADF JAR Library including your Skin (JS, Images, CSS Skin, Resources Bundles and trinidad-skins.xml)
    Deploy the ADF JAR Library as Shared-lib in WebLogic.
    Include in your weblogic.xml of the WebCenter Portal (Formerly Spaces) deployment via DesignWebCenterSpaces or the new extension the reference to the shared-lib.
    Restart WebCenter Portal (Spaces). When starting WebCenter Portal (Spaces) it looks inside of the Classpath for all trinidad-skins.xml files.
    Setup your custom skin for a Space and test.
    If the Skin is not selectable in the Administration Console then register your new skin downloading/updating/uploading from the MDS the generic-site-resources.xml file of the default scope GUID.
    If you still have issues then may I priorize a Blog entry explaining this .
    Regards.

  • Table Output text tool tip does not update on PPR

    We have a adf table with a Lov and a out put text .
    On changing the LOV, the out put text also change . but, on we mouse over on the tool tip does not changed . any suggestions ?
    below code :
    <af:outputText value="#{row.PlanTitle}" id="ot4" partialTriggers="soc3 si2"/>
    However , if we refresh the table or reload after save , the toop tip also get change . but we need to update the tool tip on change the lov . any suggestion ?
    Jdev : 11.1.1.3.0
    browser : all ,

    Hi,
    taking it from:
    +"However , if we refresh the table or reload after save , the toop tip also get change . but we need to update the tool tip on change the lov . any suggestion ? "+
    The autput text component is part of a table ? If so then the table needs to be refreshed as the values in there are stamped. If I am wrong with my table assumption and the output text is part of a form, try setting clientComponent="true" for the output text field
    Frank

  • Numbered lists in text boxes automatically updating

    I have seperate text boxes that are involved in numbered lists, and I want to be able to reorder the text boxes so that they automatically update the numbers within them. How do I do this?! As you can see when I move the text box containing 2.0 numbered list, the following numbers do not update. How do I create this updating numbered list in seperate text boxes?

    If you mean the text function in the drawing toolbar, it isn't possible.
    You should use frames.

  • Is there a way to edit text in one spot and have it automatically update in several other locations?

    I have a text box on 3 different pages I have created. One of the lines of text will periodically change from to time. Right now I have to manually go into all 3 text boxes and manually make the change. I would like to know if there was a way I could just edit one and all the others will automatically update.

    Hi brain bomb,
    I am afraid that the feature that you are requesting for is not there in Muse at the current stage.
    So, you will need to update the text frames manually.
    Regards
    Sonam

  • How to show exponent value in adf output Text

    Hi,
    How to show values in the table column output text with exponent values like 3 ^rd^ , 2 ^2^ , Hello ^R^,etc.. ?
    Do we have any RichFormatText for the ADF output Text?
    Thanks..

    yes...got it myself...thanks..

Maybe you are looking for

  • In alv report , how to reserve 20 lines from beginning of page

    hi experts in alv report , how to reserve 20 lines from beginning of page. regards subhasis.

  • Playbook DEAD! PLz help.

    My Playbook died yesterday and i have tried so many things but it just won't start up.  When i plug the charger into my playbook, all i get is a red light (stays on for about 1 min) then it turns off and then shows a red battery icon which stays on f

  • Won't display image

    Hi, I've been trying to get this code to show an image for quite some time and just don't understand why it isn't. I run the program and it just shows a black square on my marker. Is there something wrong with it? package {     import flash.display.B

  • Hello everybody out there, which way can I get the screensaver from Lion get back on Mountain Lion??

    Hello everybody out there. Which way can I get the screensaver from Lion get back on Mountain Lion?? Thanks malibu0978

  • Trig etc functions on fractions?

    Fraction.java with trig methods? I've been playing with geospatial stuff for a while now, and I've been striking a lot of problems with the inherent inaccuracies of floating point number representations, especially in complex-calculated values. Here'