Problem of diappeared output text as soon as page refreshes

Hi all,
I have jspx page with following 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:trh="http://myfaces.apache.org/trinidad/html"
          xmlns:tr="http://myfaces.apache.org/trinidad"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=windows-1252"/>
  <f:view>
    <af:document>
      <af:form>
      <af:inputText label="Input some text" id="input" clientComponent="true"/>
      <af:commandButton text="Say Hello">
<af:clientListener method="sayHello" type="action" />
</af:commandButton>
<af:outputText id="greeting" value="" clientComponent="true"/>
<trh:script>
function sayHello(actionEvent)
var component=actionEvent.getSource();
//Find the client component for the "greeting" af:outputText
var greetingComponent=component.findComponent("greeting");
//Set the value for the outputText component
greetingComponent.setValue("Hello World !");
</trh:script>
</af:form>
    </af:document>
  </f:view>
  <!--oracle-jdev-comment:deviceCategory:pda-->
</jsp:root>When I run this page in output I get an InputText box and a command button "Say Hello" . When I click on the button it shows message "Hello World" for a while and then page gets refreshes and "Hello World" message disappears.
Is it possible to retain that message? Is it possible to display that message without clicking command button ? How it can be done - Please tell ?
Thanks !

Hey branislav,
Thanks a lot. I figured out problem in my code after looking at your code.
Now my following modified code is working fine. Problem was I need not to include input text and command button components in <af:form> tag. Only output text need to included in <af:form> tag.
<?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:trh="http://myfaces.apache.org/trinidad/html"
          xmlns:tr="http://myfaces.apache.org/trinidad"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=windows-1252"/>
  <f:view>
    <af:document>
      <af:inputText label="Input some text" id="input" clientComponent="true"/>
      <af:commandButton text="Say Hello">
        <af:clientListener method="sayHello" type="action"/>
      </af:commandButton>
      <af:form>
        <af:outputText id="greeting" value="" clientComponent="true"/>
      </af:form>
<trh:script>
function sayHello(actionEvent) {
     var  component=actionEvent.getSource(); //Find the client component for the "greeting" af:outputText var
      greetingComponent=component.findComponent("greeting"); //Set the value for the outputText component
      greetingComponent.setValue("Hello World !");
</trh:script>
    </af:document>
  </f:view>
  <!--oracle-jdev-comment:deviceCategory:pda-->
</jsp:root>Thanks !

Similar Messages

  • Adobe Captivate 6 problem with Review area text on Quiz results page

    Hi,
    I am using Adobe Captivate 6 and I have a test at the end of my project with the built in 'Quiz results page' at the end.
    However, the standard 'review area' provided always seems to play up for me. I have changed the 'quiz results messages' through the preferences and changed the font of the review area, but everytime I play my project the message displayed is in a different font that I did not set and the size is so large that the sentence goes off the screen. It has done this on numerous projects.
    I have changed the font of the review area and it shows up on my normal view, but everytime I preview the project or publish it, the font changes back to a strange default.
    Does anyone know how I can fix this?
    Thank you.

    Hannah,
    That is a very well-known bug in the last Captivate versions... if you screen these forums you'll find multiple threads complaining about it. Some fonts will work, I think Calibri works (not all styles however) and all the other fonts revert to Times New Roman. I'm a bit puzzled that you call it a 'strange default'.
    Lilybiri

  • Problem with Excel output format

    Hi Guys,
    I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
    Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
    Example Numeric fields --> Right Aligned, text fields --> Left Aligned
    One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
    Our client want excel output on priority.
    Is there any limitation for excel output format of reports?
    It is very urgent for us please help.
    Any help would be highly appreciated.
    Thanks,
    Pragati
    Edited by: user11237443 on Aug 27, 2009 1:22 AM

    Hi Mahi,
    Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
    I have read that blog for excel limitations but i have more question?
    1) What about the negative values?
    if any field is displaying negative amount then excel not displaying right value for that:(
    2)How can we align header or data?
    Do XMLP with EBS provide any solution for formatting in excel?
    3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
    Here are so many formatting issues do we need to write any code in xml for that?
    Please help.
    Many Thanks,
    Pragati

  • Problem in displaying total text in total line

    Hi...I am facing problem in displaying total text in first column of total line. Width of first column is sufficient to display text "TOTAL". But somehow its not getting displayed....Please Help...?
    code is as follows:
    ls_layout TYPE  slis_layout_alv .
    ls_layout-totals_text       = 'TOTAL'.
      ls_layout-colwidth_optimize = 'X'.
      ls_layout-no_vline          = 'X'.
      ls_layout-no_hline          = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program     = gv_repid            " Report ID
          i_callback_top_of_page = 'TOP_OF_PAGE'
          is_layout              = ls_layout
          it_fieldcat            = gt_fieldcat         " Field Catlog
        TABLES
          t_outtab               = gt_cost_output      " Output Table

    hi me to i have the same problem
       FORM create_layout .
      data: text(20) TYPE c.
      it_layout-window_titlebar   = text.
      it_layout-colwidth_optimize = 'X'.
      it_layout-totals_text       = text-013."'Totals'(013).
      it_layout-cell_merge        = 'X'.
      it_layout-zebra             = 'X'.
    ENDFORM.         
    but no output total in alv
    also i had another broplem i had unit i wanna show it in total line and calc value in header

  • Output text show Null when access value through property inspector in ADF

    Hi,
    we declare two UIComponents one is Deptno which is InputComboBoxListofValues and othre is Dname as output text.
    we create ManagedBean called "deptBean"(which is in BackingBeanScope) and create a method inside bean "deptnoChanged".
    ValueChangeListener of Deptno pointing to deptnoChanged method of deptBean.
    Inside deptBean we declare a variable private String departmentName which are having setter and getters.
    we can Initialize departmentName based on valueChangeEvent in bean level
    for example:
    if (deptno=10)
    setdepartmentName("Accounts");
    else
    setdepartmentName("Sales");
    Now we Can Access the Value of departmentName.
    The UIComponent(output text field) such as Dname in JSP Page we set value (in property Inspector)
    _#{backingBeanScope.deptBean.departmentName}_
    when we execte the JSP Page Dname show Null as output. but output we expect as Accounts or Sales only.
    Please help us, how to resolve the problem
    Thanks,
    kumar.

    when we execte the JSP Page Dname show Null as output. but output we expect as Accounts or Sales only.The value to be got while debugging should be via EL expressions and stored somewhere.
    If the value Dname is bound to the backing bean then you can view its value in the property inspector using
    #{<BeanScope>.<BeanName>.value} or the like

  • Debugger output text is centered

    In Coldfusion 9, when I enable "Enable Request Debugging Output" in the administrator settings, the debugging text on my site pages is centered from  "Scope Variables" to the end of the output. One of the fields is so wide that I have to scroll right just to see the centered text.
    I can't find a setting to control the output text to make it a more readable left-aligned. I've been working on a CSS hack to control the styles. But I've only figured out how to do it within the code of each cf template. Has anyone figured how to fix this poorly designed text?
    Thanks!

    Usually this is more a reflection of a problem in the HTML that your own code is generating. Consider that the debugging output is merely HTML at the bottom of the HTML your own page generated. CF sticks a bunch of closing tags into the stream between the two, hoping to “close” any tags you may have left open, but it’s just guessing. You may (indeed, it seems you must) have one open (either a
    tag, or one that sets centering, like
    , or perhaps it’s even some CSS controlling things. 
    But to answer your question, no, there is no feature to control this.
    I would recommend you run your code against an html validator, like http://validator.w3.org/, to find out what is perhaps “broken” about your HTML.
    Hope that helps.
    /charlie

  • MM02: Problem in updating Long Text

    Hi All,
    My requirement is to do MM02 Conversion. I have to Update 14 fields in the transaction.I got a Problem with my LONG TEXT Field.
    Requirement for updating is whenever a double quotes comes in the place of LONG TEXT in the input file, i have to empty the LONG TEXT in the transaction.
    For modifying the already existing Long Text, its working perfectly. But problem is arising only when i want to empty the LONG TEXT field.
    What i did was,    IF zbasic-matnr_long_text = ' "" '.
                               bmmh7-tdline = ' '.
    Also i have passed Text ID, Text Langauge.
    So please Help me with this Problem
    Message was edited by:
            karthikeyan Thangavel

    Hi Sathish,
    If i use Fm Delete_Text, as soon as it encounters the FM it will delete the LONG Text.
    Since Im using LSMW, everything should happen after i run the step 'Start Direct Input Program'.
    Please just consider, suppose there is a Transaction Error in my LSMW. So according to this situation no transaction should happen i mean LONG TEXT should not get deleted.
    But Since it has enountered the FM, Long text must get deleted.
    Please correct me if anything is wrong in my Logic.
    Also tell me what i should do if my Logic is correct.

  • How can I output text in a browser window in JAVA?

    How can I output text in a browser window in JAVA?

    "response.getWriter().print()" is the most common method when using servlets

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • Iterate over some output text in a panel Grid

    Hello folks
    Are any of you doing something like this in JSC
    <code>
    <%
    for (int i = 0; i<4; i++)
    %>
    <h:panelGrid bgcolor="gray" binding="#{Page1.gridPanel1}" id="gridPanel1" style="height: 73px; left: 0px; top: 120px; position: absolute" width="216">
    <h:outputText binding="#{Page1.outputText1}" id="outputText1" value="Author"/>
    <h:outputText binding="#{Page1.outputText2}" id="outputText2" value="Summary"/>
    <h:outputText binding="#{Page1.outputText3}" id="outputText3" value="Article link"/>
    </h:panelGrid>
    <%
    %>
    </code>
    What I'm trying to do is something like data table, except that I want to have control over where the output text goes, and how it is presented.
    In data table all I get is a predefined table (I�m unable to format it the way I would like) so lets do it the old way - link some output text to a database or maybe an array which holds the "data" then loop over it x number of times to display the content kind of like this
    For (less than x times) do
    Author name
    Date article written
    Summary article
    Link to more of the article
    This would be the way I used to this, now I�m curios how this is done using JSF
    <% loop here %> does not mix well in Creator, error not well formed
    I�m unable to format a data table in any respect except number of rows and stuff
    So Any suggestion on how to really do this effectively in JSC/JSF
    Thanks Bjorn

    Hi,
    Actually, you have quite a bit of flexibility with the Data Table component.
    You can add more than one component to a column,
    and you can use an outputText component to hold
    HTML formatting tags, such as <br>.
    Note: you must uncheck the escape attribute.
    And since the data table component produces an HTML <table> tag,
    you can also control style with additional style sheet classes (see Tor's blog).
    For an example of using the Data Table component
    to display the resuts of the Google search web services,
    See Beyond the Book at this URL:
    http://www.asgteach.com/download/beyond.pdf
    The relevant description is section A.5 beginning on page 24.
    Hope this helps.
    --Gail A.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem in displaying Arabic text in flash cs3/cs4

    Hi All, I'm creating one website. I have to display dynamic xmlize arabic text in flash. I have done it using flash cs3/AS3. But problem is that when text displays in flash it is not rendering as expected. Some gaps comes in the characters. But when I open my xml in browser, arabic text displays correct.
    Is there any way to do it in flash cs3 or Flash cs4 using player 9? It would be really great if anyone can give me solution on this. Thanks
    Chandrakant

    You have to do it yourself -  I don't have a ready solution. Just look into documentation how StyleSheets are used and see what properties work best for you:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/StyleSheet.html
    Also, with embedded fonts you need to play with TextFormat settings and AntiAliasType
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/AntiAliasType.html
    In addition, on my machine even if I don't emebed fonts - Arabic works in Arial, TImes and others.

  • Replacing pages text but preserving «form» pages... A real problem of (wasting) energy and time?

    Section A: a bunch of pages with text that are having a lot of changes.
    Section B: a bunch of pages with forms already approved.
    (Of section B have a already a PDF file with fields, buttons, links, etc, absolutely perfect)
    Problem: change in section A a lot of pages.
    Two ways: one, is replacig in the new PDF —now with many changes in section A — just the PDF section B pages already right.
    In this procedure pages are indeed changed but field are lost...; the second way (I am using against any logic as time and energy are related) is copy-paste all the fields and buttons from the «good» PDF of section B to the new PDF with changes already made in section A.
    What's wrong?
    Why the file gets sick and does not allow to do this?
    Going back to export as IDML is not enough.
    Inserting the perfect pages of section B in the new PDF (either removing before or later the inadequate pages) damages the TOC in the new PDF and the hyperlinks related no page numbering get dead.
    And inserting/replacing new section A in the old section B claims again for a loss of links as the PDF file has been made up of two parts. (?)

    No, is not at all a problem related to maintaining forms.
    All the contrary.
    Please be kind and read again the post, is a problem with links, with the integrity of the file, with anomalies in behavior, just with many things far beyond the user that can not be reduced to that known resource:
    http://indesignsecrets.com/designing-forms-with-indesign-acrobats-replace-pages-feature-is -at-your-service.php

  • Problem with RTPExport output video files

    Hi, I have a problem with RTPExport output video files. One side streams H263/RTP(AVTransmit2.java) and other write this steam to a file by RTPExport.java. When network conditions are ideal, output video file has same fps and same number of frames like original file. Problem occures, when theres packet lost in network, then output file has different fps,and also has less frames like original video(because it didnt write missing frames to file, and thats why it get shorter). Pls how can I achieve output file that will have the same fps like original one? How to write to file an identical copy of what I can see while receiveing video with AVReceive2.java? Its there a way to modifi rtpexport or avreceiver to do this? Thanks a lot!

    Trubka wrote:
    When network conditions are ideal, output video file has same fps and same number of frames like original file. Problem occures, when theres packet lost in network, then output file has different fps,and also has less frames like original video(because it didnt write missing frames to file, and thats why it get shorter). Okay, first off, the second file is smaller on purpose. RTP intentionally drops packets that are old/out of order in order to make sure real-time video stays as close to real time as it can. This is by design, so there's really nothing that can be done about it.
    How to write to file an identical copy of what I can see while receiveing video with AVReceive2.java? Technically speaking, what you're getting in the RTPExport is exactly what you got on the receiving end. Any frames that are dropped during transmission will not be seen by the receiver, nor saved by the receiver.
    Pls how can I achieve output file that will have the same fps like original one? I'm not 100% sure that you can, but, you can give the following idea a try. I make no guarentees that it'll work, but it should work for you...
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/RTPConnector.html]
    That example is an example of a "custom transport layer" for RTP connections. Essentially, it's some code that's handed the RTP packets on the transmission end, and it's expected to deliver those RTP packets on the other end. And it doesn't care about how they get from A to B, only that they do.
    If you were to replace the UDP socket in that example with a TCP socket, you would be guarenteed not to drop packets due to network reasons. Every RTP packet you were handed by the transmitter, you would then hand to the receiver. There is no guarentee that none of the packets would be cast away as "old" by the RTP protocol itself, but there's also no guarentee any of them would be. It's a crap-shoot at best, but it's certainly worth a try.

  • Problem in Saving long texts from IC Webclient

    Hi,
    I have a little problem with BP long text transfert.
    In IC Webclient, I identify a account and I create a long text (for exemple a Accounting Note).
    I can find this text in CRM (t-code BP->long text) but, it is not transfert to ECC (XD03->Extra->text).
    If I create a accounting note directly in CRM, it is transfert to ECC !!
    The transaction PITX is customized in ECC.
    I work with CRM5.0 and ECC6.
    What I missed ?
    Gaétan

    Hi Gaétan,
    Maybe the BDOC BUPA_MAIN responsible to export the change to ECC is not being created when you make the change in IC Webclient.
    Can you confirm it in SMW01? Try to make a change in a partner long text in IC webclient, and check if the bdoc was sent to R3.
    Then try it in BP t-code, and check it again.
    If this is the problem, maybe you should contact OSS suport.
    Kind regards,
    Garcia

  • Convert created idoc to an output text file

    Hi,
    How can i convert an idoc to an output text file? is there a standard program in SAP that does this?
    Thanks,
    Tots

    Hi,
    We can do it.
    The steps are
    1. Create a xml file port (we21)
      2. Create a partner profile point to the file port.
      3. Make sure the idocs are genereated.
    4  . Run the staandard program (RSEOUT001) with the port and required details in teh selection screen.
    The idocs will be generated to a xml file .
    Regards

Maybe you are looking for

  • What's Wrong? My iPad Lost it's Yellow Tint!

    My new iPad never really had a yellow tint. The display, though, was obviously warmer in tone than my iPad 2, and the warmth was across the entire display, not just part of it. Space around text was, in particular, whiter on the iPad 2, and the text

  • Vertical dividing of a page to two pages when exporting to .pdf

    This is the issue : we are having several columns in the report, let's say they are 8, and several pages, let them be 4 and all this on landskape page. The thing we want is when exporting the report to .pdf file to have firstly the 1st page with the

  • Process Order number as batch number for produced materiai

    Hi gurus Is it possible in SAP to automatically set the process order number as the batch number for an semi finished good or finished good? Is there a config like that in SAP? Thanks

  • Error handling in CRM One Order Object

    We have done some enhancements in the CRM One Order Object standard process. We need to raise some custom error messages under certain error conditions from our code. For that, we are using the standard function module CRM_MESSAGE_COLLECT. The caller

  • Java will not update in the check for addon updates in Firefox 17.0.1

    Firefox 17.0.1, xp, sp3 I got to tools>add-ons, check for updates. It shows both "Java(TM) Platform SE 7 U9" and "Java Deployment Toolkit 7.0.90.5" as out of date. I do the update part and download updates. But, when I recheck, Firefox tells me that