Refreshing Form contents

I have got three elements in my JFrame form. I removes one and want to refresh the contents of the window. Id I try to use repaint method, javac says its deprecated. Can somebody help me?
Regards
fahda

Hi,
Try calling the validate method. It's used to cause a container to lay out its subcomponents again after the components it contains have been added to or modified.
Hope this helps.
Bye!
Pablo

Similar Messages

  • Deleting the Row from the table is not refreshing the contents in the form

    Hi,
    We developed a table and form in the same UI based on the following suggestion.
    Display and edit currently selected row of ADF Table in ADF Form
    1. Created one view object based on the employees table.
    2. dragged the view object to the UI as table.
    3. dragged the view object as form.
    4. set partial triggers on the form's container (panelformlayout) as tableId.
    Tested the application with the edit options and everything is working fine. But the problem comes when we delete the record from table. it is not refreshing the form based on the newly selected row after deleting the record. If we commit the data the form contents are updated to the selected row (which is not desired).
    Can you please suggest how to fix the issue, refreshing the form with the selected row after deleting the records.
    Thanks and Regards,
    S R Prasad

    The Code snippet looks fine. I think, the issue is in the partial trigger setting
    4. set partial triggers on the form's container (panelformlayout) as tableId.In order to the table to get refreshed, the table's partialTriggers property should be set to id of the delete Button.
    Go to table, select partialTriggers in the Property Inspector, Click on Expression Builder at the right and select the delete Button.
    Can you set this and check?
    Sample Code:
    <af:panelHeader text="panelHeader 1" id="ph1">
    <f:facet name="context"/>
    <f:facet name="menuBar"/>
    <f:facet name="toolbar">
    <af:commandButton text="Delete" id="cb1"/>
    </f:facet>
    <f:facet name="legend"/>
    <f:facet name="info">
    <af:table var="row" rowBandingInterval="0" id="t1"
    partialTriggers="::cb1">
    <af:column sortable="false" headerText="col1" id="c1">
    <af:outputText value="#{row.col1}" id="ot1"/>
    </af:column>
    <af:column sortable="false" headerText="col2" id="c4">
    <af:outputText value="#{row.col2}" id="ot3"/>
    </af:column>
    <af:column sortable="false" headerText="col3" id="c3">
    <af:outputText value="#{row.col3}" id="ot4"/>
    </af:column>
    <af:column sortable="false" headerText="col4" id="c5">
    <af:outputText value="#{row.col4}" id="ot2"/>
    </af:column>
    <af:column sortable="false" headerText="col5" id="c2">
    <af:outputText value="#{row.col5}" id="ot5"/>
    </af:column>
    </af:table>
    </f:facet>
    </af:panelHeader>
    Thanks,
    Navaneeth

  • How can i send an auto reply with form content to sender?

    Hai!
    I'm new to website building, but i already came a long way
    i made a form and i like to send a auto reply with the form content (if that isnt too difficult) to the person who filled it in.
    The form i made is in PHP (coding i copied partly from someone from the internet .)
    You can see the from at: http://vinddit.nl/vindditnu%20php%20version.php
    My PHP coding so far
    <?php
    // Set email variables
    $email_to = '[email protected]';
    $email_subject = 'Aanvraag - VINDDIT NU!';
    // Set required fields
    $required_fields = array('Voornaam','email','Achternaam','Plaats');
    // set error messages
    $error_messages = array(
              'Voornaam' => 'Vul hier uw voornaam in a.u.b.',
              'email' => 'Vul hier een geldig email adres in a.u.b.',
              'Achternaam' => 'Vul hier uw achternaam in a.u.b.',
              'Plaats' => 'Vul hier uw woonplaats in a.u.b.'
    // Set form status
    $form_complete = FALSE;
    // configure validation array
    $validation = array();
    // check form submittal
    if(!empty($_POST)) {
              // Sanitise POST array
              foreach($_POST as $key => $value) $_POST[$key] = remove_email_injection(trim($value));
              // Loop into required fields and make sure they match our needs
              foreach($required_fields as $field) {
                        // the field has been submitted?
                        if(!array_key_exists($field, $_POST)) array_push($validation, $field);
                        // check there is information in the field?
                        if($_POST[$field] == '') array_push($validation, $field);
                        // validate the email address supplied
                        if($field == 'email') if(!validate_email_address($_POST[$field])) array_push($validation, $field);
              // basic validation result
              if(count($validation) == 0) {
                        // Prepare our content string
                        $email_content = 'New Website Comment: ' . "\n\n";
                        // simple email content
                        foreach($_POST as $key => $value) {
                                  if($key != 'submit') $email_content .= $key . ': ' . $value . "\n";
                        // if validation passed ok then send the email
                        mail($email_to, $email_subject, $email_content);
                        // Update form switch
                        $form_complete = TRUE;
    function validate_email_address($email = FALSE) {
              return (preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $email))? TRUE : FALSE;
    function remove_email_injection($field = FALSE) {
       return (str_ireplace(array("\r", "\n", "%0a", "%0d", "Content-Type:", "bcc:","to:","cc:"), '', $field));
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
              <title>Aanvraag formulier</title>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <link href="style.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script>
        <script type="text/javascript" src="validation/validation.js"></script>
              <script type="text/javascript">
    var nameError = '<?php echo $error_messages['fullname']; ?>';
                        var emailError = '<?php echo $error_messages['email']; ?>';
                        var commentError = '<?php echo $error_messages['comment']; ?>';
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
        </script>
    <style type="text/css">
    </style>
    </head>
    <body onload="MM_preloadImages('icons/x.png')">
    <p> </p>
    <p>
      <?php if($form_complete === FALSE): ?>
    </p>
        <form action="vindditnu php version.php" method="post" enctype="application/x-www-form-urlencoded" name="Form"  id="commentsform">
        <h1><img src="icons/vinddit3.gif" width="220" height="80" alt="logo" /></h1>
        <h1>Wat zoekt u?:</h1>
                     <table width="690" border="0">
            <tr>
              <td>In welke categorie zoekt u?*</td>
              <td colspan="3"><select name="Ophalen_verzenden" id="Ophalen_verzenden">
                <option selected="selected">Meubels </option>
                <option>Witgoed </option>
                <option>Woon accesoires </option>
                <option>Kleding </option>
                <option>Schoenen </option>
                <option>Mode accesoires </option>
                <option>Speelgoed </option>
                <option>Boeken, tijdschriften, papierwaren </option>
                <option>Overig </option>
              </select></td>
            </tr>
            <tr>
              <td>Kleur:* </td>
              <td colspan="3"><select name="kleuren" id="kleuren">
                <option>Blauw</option>
                <option>Rood</option>
                <option>WIt</option>
                <option>Zwart</option>
                <option>Beige</option>
                <option>Bruin</option>
                <option>Geel</option>
                <option>Oranje</option>
                <option>Rood</option>
                <option>Metallic (Bijv. Zilver/Goud/Brons/Koper</option>
                <option>Meerkleurig</option>
                <option selected="selected">Overig/ N.v.t</option>
              </select></td>
            </tr>
            <tr>
              <td>Merk: </td>
              <td colspan="3"><input name="Merk" type="text" id="Merk5" value="<?php echo isset($_POST['Merk'])? $_POST['Merk'] : ''; ?>" />
                <?php if(in_array('Merk', $validation)): ?>
                <span class="error"><?php echo $error_messages['Merk']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Type/Model:</td>
              <td colspan="3"><input type="text" name="type" id="type" value="<?php echo isset($_POST['type'])? $_POST['type'] : ''; ?>" />
                <?php if(in_array('type', $validation)): ?>
                <span class="error"><?php echo $error_messages['type']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Materiaal: </td>
              <td colspan="3"><input name="Materiaal" type="text" id="Materiaal" value="<?php echo isset($_POST['Materiaal'])? $_POST['Materiaal'] : ''; ?>" />
                <?php if(in_array('Materiaal', $validation)): ?>
                <span class="error"><?php echo $error_messages['Materiaal']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Maat: </td>
              <td colspan="3"><input type="text" name="Maat" id="Maat" value="<?php echo isset($_POST['Maat'])? $_POST['Maat'] : ''; ?>" />
                <?php if(in_array('Maat', $validation)): ?>
                <span class="error"><?php echo $error_messages['Maat']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Conditie*:</td>
              <td colspan="3"><select name="conditie" id="conditie" >
                <option>Zo goed als nieuw</option>
                <option>Nieuw</option>
                <option>Bebruikt</option>
                <option selected="selected">Geen voorkeur </option>
              </select></td>
            </tr>
            <tr>
              <td>Ophalen/Verzenden:*</td>
              <td colspan="3"><select name="ophalen" id="ophalen">
                <option>Ophalen</option>
                <option>Verzenden</option>
                <option>N.v.t</option>
                <option>Geen voorkeur </option>
              </select></td>
            </tr>
            <tr>
              <td>Prijs Min:</td>
              <td><input name="prijsmin" type="text" id="prijsmin" size="10" value="<?php echo isset($_POST['prijsmin'])? $_POST['prijsmin'] : ''; ?>" />
                <?php if(in_array('prijsmin', $validation)): ?>
                <span class="error"><?php echo $error_messages['prijsmin']; ?></span>
                <?php endif; ?></td>
              <td>Prijs Max:</td>
              <td><input name="Prijs" type="text" id="Prijs" size="10" value="<?php echo isset($_POST['Prijs'])? $_POST['Prijs'] : ''; ?>" />
                <?php if(in_array('Prijs', $validation)): ?>
                <span class="error"><?php echo $error_messages['Prijs']; ?></span>
                <?php endif; ?></td>
            </tr>
          </table>
          <h1>Opmerkingen:</h1>
          <table width="690" border="0">
            <tr>
              <td height="25">Opmerkingen:</td>
              <td rowspan="2"><textarea name="Opmerkingen" cols="67" rows="10" id="Opmerkingen"><?php echo isset($_POST['Opmerkingen'])? $_POST['Opmerkingen'] : ''; ?></textarea>
                <?php if(in_array('Opmerkingen', $validation)): ?>
                <span class="error"><?php echo $error_messages['Opmerkingen']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td height="78"> </td>
            </tr>
          </table>
          <h1>Uw Gegevens:</h1>
          <table width="690" border="0">
            <tr>
              <td>Voornaam/Voorletters*:</td>
              <td><input type="text" name="Voornaam" id="Voornaam" class='invul' value="<?php echo isset($_POST['Voornaam'])? $_POST['Voornaam'] : ''; ?>" />
                <?php if(in_array('Voornaam', $validation)): ?>
                <span class="error"><?php echo $error_messages['Voornaam']; ?></span>
                <?php endif; ?></td>
              <td>Achternaam:* </td>
              <td><input type="text" name="Achternaam" id="Achternaam" class='invul' value="<?php echo isset($_POST['Achternaam'])? $_POST['Achternaam'] : ''; ?>" />
                <?php if(in_array('Achternaam', $validation)): ?>
                <span class="error"><?php echo $error_messages['Achternaam']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Straatnaam:</td>
              <td><input type="text" name="Straat" id="Straat" class='invul' value="<?php echo isset($_POST['Straat'])? $_POST['Straat'] : ''; ?>" />
                <?php if(in_array('Straat', $validation)): ?>
                <span class="error"><?php echo $error_messages['Straat']; ?></span>
                <?php endif; ?></td>
              <td>Huisnummer:</td>
              <td><input name="Huisnummer" type="text" id="Huisnummer" class='invul' size="10" value="<?php echo isset($_POST['Huisnummer'])? $_POST['Huisnummer'] : ''; ?>" />
                <?php if(in_array('Huisnummer', $validation)): ?>
                <span class="error"><?php echo $error_messages['Huisnummer']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Postcode:</td>
              <td><input type="text" name="Postcode" id="Postcode" class='invul' value="<?php echo isset($_POST['Postcode'])? $_POST['Postcode'] : ''; ?>" />
                <?php if(in_array('Postcode', $validation)): ?>
                <span class="error"><?php echo $error_messages['Postcode']; ?></span>
                <?php endif; ?></td>
              <td>Plaats:* </td>
              <td><input type="text" name="Plaats" id="Plaats" class='invul' value="<?php echo isset($_POST['Plaats'])? $_POST['Plaats'] : ''; ?>" />
                <?php if(in_array('Plaats', $validation)): ?>
                <span class="error"><?php echo $error_messages['Plaats']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Email Adres:*</td>
              <td colspan="3"><input type="text" name="email" id="email" class='invul' value="<?php echo isset($_POST['email'])? $_POST['email'] : ''; ?>" />
                <?php if(in_array('email', $validation)): ?>
                <span class="error"><?php echo $error_messages['email']; ?></span>
                <?php endif; ?></td>
            </tr>
            <tr>
              <td>Telefoonnummer:</td>
              <td colspan="3"><input name="Telefoon" type="text" id="Telefoon" class='invul' value="<?php echo isset($_POST['Telefoon'])? $_POST['Telefoon'] : ''; ?>" />
                <?php if(in_array('Telefoon', $validation)): ?>
                <span class="error"><?php echo $error_messages['Telefoon']; ?></span>
                <?php endif; ?></td>
            </tr>
          </table>
          <p>
            <label for="Straat"></label>
            <label for="Huisnummer"><br />
            </label>
            <input type="submit" name="Submit" id="Submit" value="Verstuur" />
                   <input type="reset" name="Reset" id="Reset" value="Wissen" />
          </p>
        </form>
        <?php else: ?>
        <div class="bedankt">
          <p>Bedankt voor uw aanvraag!</p>
          <p>Wij zullen uw aanvraag zo spoedig mogelijk behandelen. Meestal duurt dit 2 a 3 werkdagen.</p>
          <p><img src="icons/vinddit3.gif" width="220" height="80" alt="logo" /></p>
    </div>
        <p>
          <script type='text/javascript'>
    setTimeout("ourRedirect()", 5000)
    function ourRedirect() {
          </script>
          <?php endif; ?>
    </body>
    </html>
    and .JS
    window.addEvent('domready', function() {
              // Get the form
              var form = $('comments_form');
              //  if the form is found...
              if (form) {
                        // obtain error fields
                        var name = $('fullname');
                        var email = $('email');
                        var comment = $('comment');
                        // Set the default status
                        var isValid = true;
                        // input error function for the error messages
                        var addError = function (field, msg) {
                                  field.addClass('error'); // Add error class to field
                                  var error = field.getParent().getElement('span') || new Element('span', {'class': 'error'}); // add error message if not already placed
                                  error.set('text', msg); // error text msg
                                  error.inject(field, 'after'); // Insert error message after field
      // detach error function used to delete any error messages and remove the error class
                        var removeError = function (field) {
                                  field.removeClass('error'); // Remove error class from form fields
                                  var error = field.getParent().getElement('span'); // find any existing error messages
      // destroy if error message
                                  if (error) {
                                            error.destroy();
    //  insert submit form event
                        form.addEvent('submit', function (e) {
                                  // Test name length
                                  if (name.get('value').length === 0) {
                                            isValid = false;
                                            addError(name, nameError);
                                  } else {
                                            isValid = true;
                                            removeError(name);
    // check email length
                                  if (email.get('value').length === 0) {
                                            isValid = false;
                                            addError(email, emailError);
                                  // check email validity
                                  } else if (!email.get('value').test(/^([a-zA-Z0-9\+_\-]+)(\.[a-zA-Z0-9\+_\-]+)*@([a-zA-Z0-9\-]+\.)+ [a-zA-Z]{2,6}$/)) {
                                            isValid = false;
                                            addError(email, emailError);
                                  } else {
                                            isValid = true;
                                            removeError(email);
                    // check comment length
                                  if (comment.get('value').length === 0) {
                                            isValid = false;
                                            addError(comment, commentError);
                                  } else {
                                            isValid = true;
                                            removeError(comment);
                                  // If form invalid then stop event happening
                                  if (!isValid) {
                                            e.stop();

    lisavs12686 wrote:
    Whould it also be possible to send the sender the submited data (looking like the filled in form or so)?
    not really nessecary but whould be a nice  jextra
    You can but you would need to send it as an html email which is much more complicated.
    What you would do is build a page/table construction like below. You would need to use the php variables to echo out the information in the <td></td> cells (example below).
    $reply = $_POST['email'];
    $from = '[email protected]';
    $replysubject = "Auto-Reply: Website Name";
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    $headers .= "From: $from\r\nReply-to: $reply";
    $replymessage = '
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Comments from Website</title>
    </head>
    <body>
    <table>
    <tr>
    <td bgcolor="#ffffff" style="font-family: verdana, arial, helvetica, sans-serif; font-size: 13px; padding: 10px 15px;">Name: </strong>'.$name.'
    </td>
    </tr>
    </table>
    </body>
    </html>';
    mail($reply, $replysubject, $replymessage, $headers);

  • How to print a PDF form content when i have the content

    Hi SAPGURUS,
    I have an urgent requirement.
    I have the content of a PDF form in raw format and it is saved in some repositry .Now How can i create a spool request and print the form.
    I can use the function module FP_JOB_OPEN and then gat the dynamic function module name and then close it by FP_JOB_CLOSE .
    But as i already have the PDF form content i need not create it again by calling the dynamic function module.And i can't do so because both applications are altogether separate from each other that is creation of the PDF form and printing it.
    Could you help me in guiding the way to solve this problem.
    Thanks in advance
    Sanjeev

    Hi Sanjeev,
    I have currently the same issue, please have you solved it?
    Thank you
    Tomas

  • Podcasts app not refreshing new content?

    Hi, my podcasts app is not refreshing new content for last 4 days, is anyone else facing the same issue?

    Hello there, ikgandhi.
    The following Knowledge Base article offers up some great steps to review for issues with the Podcasts app for iOS:
    Podcasts app for iOS: Managing subscriptions
    http://support.apple.com/kb/HT6190
    Default settings: From your Home screen, tap Settings and then Podcasts. These settings are shared by all of your podcast subscriptions. These are known as default podcast settings.
    Refresh Every: You can choose how often your iOS device checks for new episodes to your subscriptions. It's set to check every six hours by default.
    Limit Episodes: You can pick how many episodes you see for subscriptions.
    Download Episodes: The latest episodes of your podcasts will download automatically if your iOS device is connected to Wi-Fi.
    Delete Played Episodes: If this is turned on, episodes will delete 24 hours after you finish playing them.
    Use Cellular Data: If your iOS device has a cellular connection, you can allow downloads to use cellular data when Wi-Fi isn't available. This is off by default. Downloads using cellular data are limited to 100MB per episode. If an episode is larger than that, it won't start downloading until you're connected to Wi-Fi.
    Podcast-specific settings: The second place you'll find subscription settings is within the Podcasts app. Tap a podcast subscription under My Podcasts and pull down with one finger to reveal the settings buttons. These settings are unique to each subscription. If you don't change anything here, the podcast subscription will just use the default settings. If you do make changes to a specific subscription’s settings, they'll only apply to that podcast.
    Play: This setting lets you change the order in which a subscription plays. If you're listening to a news style podcast, you may want to set this to play the new episodes first. If the series is more episodic, you may prefer to play oldest to newest.
    Sort Order: This changes the sort order of episodes that appear for a podcast (not its playback order).
    Subscribed: When this is on, new episodes of this podcast will be marked as unplayed as they become available.
    Refresh Every: You can choose how often your iOS device checks for new episodes to your subscriptions. It's set to check every six hours by default.
    Limit Episodes: You can pick how many episodes you see for subscriptions.
    Download Episodes: The latest episodes of your podcasts will download automatically.
    Delete Played Episodes: If this is on, episodes will be deleted 24 hours after you finish playing them unless you've marked them as Saved.
    Inactive subscriptions
    If you do not play or access a subscription within 15 days, your subscription to that podcast will go inactive and you will no longer receive updates to it. As soon as you access the subscription again it will refresh. 
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Destination for Forms contents

    I am making a form for a website that will allow the user to send his/her email and comments to a nightclub managment so they can in turn send out information on parties to all who submit theyre emails. I was practicing the technique in a practice file. I was able to create the text fields as well as the submit button. My only issue and question is how do i set up the submit button properly so when the button is pressed the information is sent to a specific email address.
    Ill include the code and css.
    html:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <link href="practicemaster.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="container">
      <form action="[email protected]" enctype="text/plain" name="mailingList" id="mailingList">
        Enter your email to join our mailing list:
        <label>
        <input type="text" name="textfield" id="textfield" />
        </label>
        <p> </p>
        <p>Let us know what you think about our club:</p>
        <p>
          <label>
          <textarea name="textarea" id="textarea" cols="45" rows="5"></textarea>
          </label>
        </p>
        <p>
          <input name="button" type="submit" id="button" value="Submit" />
        </p>
      </form>
    </div>
    </body>
    </html>
    CSS:
    @charset "UTF-8";
    body/* CSS Document */
        font-family: Arial, Helvetica, sans-serif;
        color: #000000;
        font-size: 10pt;
        background-color: #000000;
    #container {
        height: 600px;
        width: 800px;
        margin-right: auto;
        margin-left: auto;
        background-color: #FFFFFF;
        position: relative;

    The form's action needs to point to a server side script that processes the form contents. For starters check with your host to see if they have a script that will work with your hosting plan. And please search this forum for 'form mail' for more details.

  • Error in Cache Refresh(Unable to refresh cache contents)

    Hi All,
    When i am refreshing Cache from the browser using link CPACache/refresh?mode=full it says success.
    When i do from SXI_CACHE it gives an error.
       Error during last attempt to refresh cache
       Unable to refresh cache contents
    So when i run any schenario in message monitoring i get the following error-
    <i>SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="XICACHE">UPDATE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>http response does not contain a valid XML root tag</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>An error occurred when refreshing the XI runtime cache</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error></i>
    I checked the INTEGRATION_DIRECTORY_HMI connection...
    here the response which im getting is..
    <i> HEADER NAME                HEADER VALUE
    response_line               HTTP/1.0 200
    server_protocol             HTTP/1.0
    status_code                 200
    status_reason
    ragma                       no-cache
    ache-control                no-cache
    ontent-type                 text/html
    ontent-length               87
    HTTP BODY
    TITLE>Error</TITLE>#<BODY>#<H1>Error</H1>#FW-1 at nebula: Unknown WWW s
    rver.</BODY>##
    Time (ms)                                 17</i>
    I believe that is not the right response.
    Everything was working fine yesterday when all of a sudden this error cropped up from no where.
    Regards,
    Rahul

    Hi,
    This is the error it shows there..
    <b>ERROR ID</b>      <i>UPDATE</i>
    <i>http response does not contain a valid XML root tag</i>
    Regards,
    Rahul

  • How to display mutiple form contents on the same page

    I have multiple forms for a same page,when i press submit in one form it has to go to next form,where both form contents should display on the same page.Can anyone post example code for this?
    Thnx in advance.

    I have multiple forms for a same page,when i press
    submit in one form it has to go to next form,where
    both form contents should display on the same
    page.Can anyone post example code for this?that's not how it works. when you press submit, the form data is submitted to the server. you can then forward the user to a page with another form, but what you're talking about doesn't make sense

  • Form content not saved

    I have filled in a form in a PDF with acrobat X on a mac. Then I saved the PDF and mailed it. The reciever cant view the content. Neither can I on Acrobat X. Its is viewable on the application Preview on the Mac.
    Is there a "save with formcontent" or something on Acrobat. I also saved it the form with Preview. same result. Form content not there in acrobat reader or pro x, but viewable and OK in Preview.
    This is the link to the form:
    http://gjovikkunstforening.no/wp-content/uploads/2012/06/Soknadsskjema-juryert-hostutstill ing-2012.pdf

    Hello GKaiseril and thanks for helping with this
    Is this something that the form user (me) are to do,  or the form author?

  • Posted Form contents Problem

    I had this problem with 4.5.1 SP 5 and WebLogic told me it would be
    fixed in 5.1 SP 1 (I believe the issue number was 10214). I've just
    tried my simple test case again with 5.1 SP 3 on NT and it still fails.
    The problem is when text is posted from an HTML form to a servlet in
    WebLogic, WebLogic assumes the posted data is ALWAYS encoded in
    ISO-8859_1. So if your form posts Shift-JIS, WLS still incorrectly
    converts the text to unicode using the ISO8859 code page. The only
    work arround I can find is to take the bad JAVA unicode strings, get the
    bytes with the ISO8859 code page, and then create a new string using
    those bytes and the Shift-JIS code page. This is what the
    fixStringEncoding() method is doing below. This is unacceptable.
    How does the WebLogic server understand how to convert between IANA
    encodings and JAVA encodings when receiving a response? A browser will
    encode the form contents with the same encoding as the HTML page with
    the form is in. How does WLS know when it recieves the response to use
    SJIS (Java encoding) to convert Shift-JIS (IANA) encoded text to
    unicode? My test JSP page is included below. It's form that accepts
    Japanese text and posts it back to itself for display. If I don't "fix"
    the JAVA strings, the Japanese text comes out as garbage. BTW, I have
    verified that I'm using SP 3 correctly. Thanks.
    Kirk Everett
    <%@ page contentType="text/html; charset=Shift-JIS"%>
    <html>
    <head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=Shift-JIS">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    </head>
    <body>
    <form name="Dummy" action="dummySJIS.jsp" method="post">
    <table>
    <tr>
    <td align="right">DummyString:</td>
    <td><input type="text" name="dummy" size="30"
    maxlength="50"></td>
    </tr>
    </table>
    <input type="submit" value="submit">
    </form>
    <BR>
    DummyString with fixing= <%=
    fixStringEncoding(request.getParameter("dummy")) %>
    <BR>
    DummyString without fixing = <%= request.getParameter("dummy") %>
    <BR>
    Embedded (Shitf-JIS) Japanese --> ?X?V‚É?¬Œ÷‚µ‚Ü‚µ‚½?B
    </body>
    </html>
    <%!
    public String fixStringEncoding(String sourceString)
    String targetEncoding = "SJIS";
    String convertedString = null;
    if(sourceString != null)
    // get the array of bytes for the unicode string using the
    // 8859_1 code page
    try
    byte[] stringBytes = sourceString.getBytes("ISO8859_1");
    // now create a new string based of the array but do it
    // with the correct code page UTF8
    convertedString = new String(stringBytes, targetEncoding);
    catch(UnsupportedEncodingException uee)
    convertedString = "";
    return convertedString;
    %>

    The jsp directive does nothing to help the INPUT data handling. On the other hand, this is a html spec problem, not a weblogic one. RFC2070 has some recommendation on how to do i18n with HTML/HTTP, but neither Netscape nor IE supports it.
    --Ye
    Joseph Weinstein <[email protected]> wrote:
    Hi,
    The ideal approach is to employ the JSP directive for encoding.
    This is documented in the JSP spec. Also, if all your JSPs
    require the same encoding, there is an argument to our JSP
    servlet, to tell it what default charset encoding to use.
    Joe
    Kirk Everett wrote:
    I had this problem with 4.5.1 SP 5 and WebLogic told me it would be
    fixed in 5.1 SP 1 (I believe the issue number was 10214). I've just
    tried my simple test case again with 5.1 SP 3 on NT and it still fails.
    The problem is when text is posted from an HTML form to a servlet in
    WebLogic, WebLogic assumes the posted data is ALWAYS encoded in
    ISO-8859_1. So if your form posts Shift-JIS, WLS still incorrectly
    converts the text to unicode using the ISO8859 code page. The only
    work arround I can find is to take the bad JAVA unicode strings, get the
    bytes with the ISO8859 code page, and then create a new string using
    those bytes and the Shift-JIS code page. This is what the
    fixStringEncoding() method is doing below. This is unacceptable.
    How does the WebLogic server understand how to convert between IANA
    encodings and JAVA encodings when receiving a response? A browser will
    encode the form contents with the same encoding as the HTML page with
    the form is in. How does WLS know when it recieves the response to use
    SJIS (Java encoding) to convert Shift-JIS (IANA) encoded text to
    unicode? My test JSP page is included below. It's form that accepts
    Japanese text and posts it back to itself for display. If I don't "fix"
    the JAVA strings, the Japanese text comes out as garbage. BTW, I have
    verified that I'm using SP 3 correctly. Thanks.
    Kirk Everett
    <%@ page contentType="text/html; charset=Shift-JIS"%>
    <html>
    <head>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=Shift-JIS">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
    </head>
    <body>
    <form name="Dummy" action="dummySJIS.jsp" method="post">
    <table>
    <tr>
    <td align="right">DummyString:</td>
    <td><input type="text" name="dummy" size="30"
    maxlength="50"></td>
    </tr>
    </table>
    <input type="submit" value="submit">
    </form>
    <BR>
    DummyString with fixing= <%=
    fixStringEncoding(request.getParameter("dummy")) %>
    <BR>
    DummyString without fixing = <%= request.getParameter("dummy") %>
    <BR>
    Embedded (Shitf-JIS) Japanese --> ?X?V&#8218;É?¬&#338;÷&#8218;µ&#8218;Ü&#8218;µ&#8218;½?B
    </body>
    </html>
    <%!
    public String fixStringEncoding(String sourceString)
    String targetEncoding = "SJIS";
    String convertedString = null;
    if(sourceString != null)
    // get the array of bytes for the unicode string using the
    // 8859_1 code page
    try
    byte[] stringBytes = sourceString.getBytes("ISO8859_1");
    // now create a new string based of the array but do it
    // with the correct code page UTF8
    convertedString = new String(stringBytes, targetEncoding);
    catch(UnsupportedEncodingException uee)
    convertedString = "";
    return convertedString;
    %>--
    PS: Folks: BEA WebLogic is in S.F. with both entry and advanced positions for
    people who want to work with Java and E-Commerce infrastructure products. Send
    resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web Application Server
    Crossroads A-List Award: Rapid Application Development Tools for Java
    Intelligent Enterprise RealWare: Best Application Using a Component Architecture
    http://www.bea.com/press/awards_weblogic.html

  • Generate or import xml form content into portal

    Hi, we have a content repository type "fsdb" in wich we have created a xml form to publish content.
    Now we need to develope a program or process that read information from a database and generate the xml content in the repository,
    How can we generate the xml form content?
    I have tried coping and existing element of the repository from the file system and changing the data but something more is needed, I think that is necesary to update the database.
    Any suggestion is welcomed.
    Thanks in advanced.
    Regards.

    Hi,
    I differred my theme, cause I also had to use and transport the xml-forms into another portal. For this reason I have to use xml-forms. I've found out how to modify the the content/text of an subscription-mail.
    Is there any way to define different layouts for subscription-mails? (Maybe depending on the folder.)
    Is there any way to send an e-Mail to a specified address (including the content) when saving the xml-form?
    Greets
    Janko

  • Best Simple Dynamic Form Content Practice

    I have an idea for a form which has simple content subforms that I'm trying to put togther and I'm hoping I can do this in ColdFusion but I'm not that good at it yet to know what the best practices are to getting this done.
    I have a form with a general question followed by choices with radio buttons.  I'm looking for added form content to be displayed when one or more radio buttons are selected.  For example:
    What service are you looking for?
      ()  Hair
      ()  Nails
      ()  Shave
      ()  Wax
    Then if somone selected "Hair", under Hair more form content would be displayed.  For example:
    What service are you looking for?
      ()  Hair
              What are you doing
                   ()  getting ready for a wedding
                   ()  going on a date
                   Do you need a
                   ()  cut
                   ()  trim
                   ()  Style
                        ()  Mohawk
                        ()  Mullet
      ()  Nails
      ()  Shave
      ()  Wax
    Sort of like that with the added content adding to the form.  I'm collecting the data in a simple MS Access DB and working with CS4.  My server runs the latest version of CF.
    Sounds simple enough but I'm not sure how to go about it and/or what the best practices are.  Any guideance?
    Thank you for any help in advance!!!
    -- Dax

    Hmmm.  Actually, maybe using radio buttons is not such a good idea since I want subforms to populate for each selection and there can be more than one, even all, selected so maybe checkboxes.  But here's the catch.  What you're suggesting is that the user hit the submit button to return the sub form and that's not what I'm looking for.  I'm actually looking for the functionality that the form itself expands with a selection automatically.  In other words, user checks box, then the form expands with additional questions for their selection.  Then when the entire form is filled out as best it can, the user submits the data.  THAT's more like what I'm looking for.

  • SXI_CACHE Error:  Unable to refresh cache contents

    Hello everybody,
    in SXI_CACHE we get the error:
    "Unable to refresh cache contents"
    "Error during last attempt to refresh cache"
    and on double clicking we get the message:
    Error Id: Communication
    if_http_client receive http_communication_failure.
    Any suggestions.
    We can't afford to restart the machines every time.
    Regards Mario

    Mario,
    Please refer to the Trouble SHooting section of this guide,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1a69ea11-0d01-0010-fa80-b47a79301290
    Also, check the HTTP Connection INTEGRATION_DIRECTORY_HMI and try a test connection of this. It should return  HTTP Code : 500
    Regards
    Bhavesh

  • Form content saved but no longer visible

    I am having an issue similar to a previously reported issue with form content, but not the same.
    I have created a form in Acrobat 10.  I filled it out in Acrobat 10.   I saved from Acrobat 10
    I have viewed it several times in Acrobat 10.   I printed it from Acrobat 10. 
    Today, the content is gone, but not really.
    In the privew of Windows File Manager, I can clearly see all the fields are filled.  But if I try to print, the content doesn't print.  If I open in Acrobat, it acts like any other BLANK form in Acrobat. 
    Doesn't matter if I'm in Preview or Edit or even in Acrobat Reader.
    I have tried exporting the content and re-importing... no luck
    I have tried selecting all, and changing font settings or visibility... no luck
    As I stated above, I can see the content is saved as it's visible with file explorer, but not in Acrobat or Reader.

    Ok this is strange..  I couldn't find Page Properties - Actions - Page Open under Pages Panel but under Javascript... is "Set Document Actions" and has
    Document Will Close, Will Save, Did Save, Will Print, Did Print which I assume are  default possible actions that are all blank... HOWEVER... when I click  EDIT ALL...
    I get a lot of XML all having to do with clearing and not saving and such in different scenarios..   I highlighted some lines of interest...
    //-----------------Do not edit the XML tags--------------------
    //<Document-Level>
    //<ACRO_source>reset total</ACRO_source>
    //<ACRO_script>
    /*********** belongs to: Document-Level:reset total ***********/
    /* define Form Reset function */
    function FormReset(bPrompt)
    bResponse = false;
    /* check to see if request from a reset button */
    if (bPrompt) bResponse = app.alert("Do you want to clear all form fields?", 2, 2) == 4;
    /* clear field if forced or from prompt */
    if (bReset | bResponse){
    this.resetForm();
    bReset = false;
    /* use following code to clear form if opened by a browser
    var bReset = false;
    if (this.external) {
    bReset = true;
    end of optional code */
    /* force clear for all opens */
    bReset = true;
    /* reset form but do not trip save action */
    bDirty = this.dirty;
    FormReset();
    this.dirty = bDirty;
    //</ACRO_script>
    //</Document-Level>
    //<AcroForm>
    //<ACRO_source>Button1:Annot1:MouseUp:Action1</ACRO_source>
    //<ACRO_script>
    /*********** belongs to: AcroForm:Button1:Annot1:MouseUp:Action1 ***********/
    /* define Form Reset function */
    function FormReset(bPrompt)
    bResponse = false;
    /* check to see if request from a reset button */
    if (bPrompt) bResponse = app.alert("Do you want to clear all form fields?", 2, 2) == 4;
    /* clear field if forced or from prompt */
    if (bReset | bResponse){
    this.resetForm();
    bReset = false;
    /* use following code to clear form if opened by a browser
    var bReset = false;
    if (this.external) {
    bReset = true;
    end of optional code */
    /* force clear for all opens */
    bReset = true;
    /* reset form but do not trip save action */
    bDirty = this.dirty;
    FormReset();
    this.dirty = bDirty;
    //</ACRO_script>
    //</AcroForm>

  • Refresh the content of a page

    I' am developing a web monitoring console. Therefore I must be able to refresh the content of a page(table) and requery the underlying sql. Must I use a timer or are the other methods and alternatives.

    I am creating a project in Java Studio Creator 2. It starts out with a login screen and depending on the user rights, it lists(in a listbox) the possible pages the user has access to. From here the user selects the page they want to go to and takes them there. Now the problem that I am having is that this final page they are taken too needs to be refreshed every 5 seconds.
    I tried to add <meta http-equiv="refresh" content="5"/> in my <ui:head, but it just returned an error. After a little tweaking, I came up with <ui:meta httpEquiv="refresh" content="5"/>.
    The problem that I'm now having is that the page will wait 5 sec, and then reloads the previous page with the listbox. What am I doing wrong?
    The JSP head code that I have is as follows:
    <ui:head binding="#{Page3.head1}" id="head1">
    <ui:link binding="#{Page3.link1}" id="link1" url="/resources/stylesheet.css"/>
    <ui:meta httpEquiv="refresh" content="5"/>
    </ui:head>
    Now another question that I have, is how can I get a different page to start refreshing every 5 seconds after pressing a button and have it stop after pressing a second button.
    Thanks in advance,
    Raimie

Maybe you are looking for