Htmlb:inputField always uses encode="TRUE"

Hi,
I have a inputField using data binding. The model field contains "Česká republika", and this code
<htmlb:inputField id="InpSupl" value="//model/edit_wa.supplier" encode="FALSE"/>
Renders to
<input class="sapEdfTxtEnbl" size="60" maxlength="60" name="cont_INVEST_invest_edit_wa.supplier" id="cont_INVEST_InpSupl" value="&amp;#268;eská republika">
How can I prevent this HTML-encoding?
Version 6.40 SP 12.
Thanks,
Thilo

Hmm, I don't understand all this.
Look here, this is my complete output (sorry about that) of your example.
And you can see, the ampersand is encoded, but I want the letter È (a upper sized C with a ^ on top).
Why does it work at your place?
<html><head><title> </title><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" ><meta http-equiv="imagetoolbar" content="no"><script type="text/javascript" language="JavaScript" src="/sap/public/bsp/sap/htmlb/events.js"></script><script type="text/javascript" language="JavaScript" src="/sap/public/bsp/sap/htmlb/event_dictionary.js"></script><link id="urstyle" rel="stylesheet" type="text/css" href="/sap/public/bc/ur/Design2002/themes/sap_tradeshow/ur/ur_ie6.css"><link rel="stylesheet" type="text/css" href="/sap/public/bc/ur/Design2002/themes/sap_tradeshow/ur/ur_pop_ie6.css"><script type="text/javascript" language="JavaScript">var popup_emptydoc="/sap/public/bsp/sap/htmlb/domainRelaxOff.htm";var HTMLB_SECTION508 = false;</script><script type="text/javascript" language="JavaScript">var sapUrDomainRelaxing = {NONE:"NONE",MINIMAL:"MINIMAL",MAXIMAL:"MAXIMAL"};ur_system={doc:window.document ,mimepath:"/sap/public/bc/ur/Design2002/themes/sap_tradeshow/common/",stylepath:"/sap/public/bc/ur/Design2002/themes/sap_tradeshow/ur/",emptyhoverurl:"/sap/public/bc/ur/Design2002/themes/sap_tradeshow/common/emptyhover.html",is508:false,direction:"ltr",domainrelaxing:sapUrDomainRelaxing.NONE,browser_abbrev:"ie6",dateformat:1,firstdayofweek:0}</script><script type="text/javascript" language="JavaScript" src="/sap/public/bc/ur/Design2002/js/sapUrMapi_ie6.js"></script><script type="text/javascript" language="JavaScript" src="/sap/public/bc/ur/Design2002/js/popup_ie6.js"></script><script type="text/javascript" language="JavaScript" src="/sap/public/bc/ur/Design2002/js/languages/urMessageBundle_de.js"></script><script type="text/javascript" language="JavaScript" src="/sap/public/bsp/sap/htmlb/misc.js"></script></head><body class="urBdyStd" scroll="AUTO" style="margin-left:2;margin-right:2;margin-top:2;margin-bottom:2">
      <input disabled type="hidden" id="htmlb_first_form_id" name="htmlb_first_form_id" value="htmlb_form_1"><form id="htmlb_form_1" name="htmlb_form_1" method="POST" autocomplete="off"><input type="hidden" name="htmlbScrollX"><input type="hidden" name="htmlbScrollY"><input type="hidden" name="htmlbevt_ty"><input type="hidden" name="htmlbdoc_id" value=""><input type="hidden" name="htmlbevt_frm" id="htmlbevt_frm" value="htmlb_form_1"><input type="hidden" name="htmlbevt_oid"><input type="hidden" name="htmlbevt_id"><input type="hidden" name="htmlbevt_cnt"><input type="hidden" name="htmlbevt_par1"><input type="hidden" name="htmlbevt_par2"><input type="hidden" name="htmlbevt_par3"><input type="hidden" name="htmlbevt_par4"><input type="hidden" name="htmlbevt_par5"><input type="hidden" name="htmlbevt_par6"><input type="hidden" name="htmlbevt_par7"><input type="hidden" name="htmlbevt_par8"><input type="hidden" name="htmlbevt_par9"><input type="hidden" name="onInputProcessing" value="htmlb"><input type="hidden" name="htmlb_form_1_complete" id="htmlb_form_1_complete" code="OK"><input type="hidden" name="sap-htmlb-design" id="sap-htmlb-design" value="">
          <span id="InpSupl-r" class="urEdf2Whl"><input type="Text" class="urEdf2TxtEnbl" autocomplete="off" id="InpSupl" ct="InputField" name="InpSupl" st="" value="&amp;#268;eská republika" onblur="sapUrMapi_InputField_Blur('InpSupl',event)" onkeydown="sapUrMapi_InputField_keydown('InpSupl',event)" onkeyup="sapUrMapi_InputField_KeyUp('InpSupl',event)" onfocus="sapUrMapi_InputField_focus('InpSupl',event)"></span>
      </form>
<script language="JavaScript">
function sapArrErase(){if(typeof(sapUrMapi_PcTabSeq_Registry)=='undefined') return;sapUrMapi_PcTabSeq_Registry1=sapUrMapi_PcTabSeq_Registry;sapUrMapi_PcTabSeq_Registry=new Array();for(var p in sapUrMapi_PcTabSeq_Registry1){if(document.getElementById(p)!=null)sapUrMapi_PcTabSeq_Registry[p]=true;}}function sapOnResize(){sapArrErase();;}window.onresize=sapOnResize;window.attachEvent ('onload', sapOnResize);
</script><script language="JavaScript">sapUrMapi_initLinkStatus();</script><noscript><iframe style="position:absolute;top:0;left:0;width:100%;height:150%" src="?sap-bsp-exception=NO_JS"></iframe></noscript><script language="JavaScript">if(document.cookie==null||document.cookie.indexOf("sap-contextid")<0){location.assign("?sap-bsp-exception=NO_CK");}</script></body></html>
In my opinion the inputField always does a encode="TRUE" and I don't have a chance to set it to FALSE.

Similar Messages

  • Need help with htmlb:inputField and Currency format

    Hi all,
    i'm looking in vain for the possibility to prepare a field with currency.
    I have a local field in which an amount is available.
    Unfortunately, the amount is spent but not formatted for currency.
    current layout:  123456.78
    requestet layout: 123.456,78
    How do I get through it?
    Here is my code:
    DATA: ld_betrag         TYPE ZBETR.
    definition: the domain of "ZBETR"  = 'WRTV7'
    LOOP AT.....
      ADD wa-betrag TO ld_betrag.
    ENDLOOP.
    The amount will be added in a loop.
    <htmlb:inputField id = "betrag"
                disabled = "TRUE"
                value    = "<%= ld_betrag %>" />
    Output is via a htmlb:inputField
    I have the same definition for a amount field in a htmlb:tableView...
    in this tableView i get the correct layout for my amount. But I haven´t give a special formatting to the tableView...
    Why the BSP works differently at htmlb:inputField and htmlb:tableView
    Thanks 4 help.
    Regards
    Markus

    Hi,
    the Domain of ZBETR = WRTV7 (it´s SAP Standard)
    Data Type          CURR      'Currency field, stored as DEC'
    No. Characters       13
    Decimal Places        2
    Output Length        18
    Convers. Routine
    X Sign
    SBSPEXT_HTMLB Helps
    I forgot the attribute 'type'.
    Thank you...now it works!
    Regards
    Markus

  • HTMLB InputField Password

    Hi all!
    For the InputField element of HTMLB extension of BSP pages, there is any type to show a 'password' field? I mean, an InputField with 'squares' figures when you write something...
    I know type = "Date", but I don not know if type = "Password" exists...
    Thanks!

    <htmlb:inputField   id = "PWD"
                              password = "true" />

  • Media Encoder CS6 does not always "Use Previews"

    I've attempted several transcodes using pre-rendered timelines in Premiere Pro. Media encoder does not always use the preview files despite the appropriate box being checked. Any suggestions what I can look for? I don't see that I am doing anything different between the times it works and the times it doesn't.
    Bruce B.

    We are all just incompetent users here.  As pointed out before this is just a user to user forum, Adobe rarely checks in.
    I was hoping by now you would have gotten to the bottom of this problem and were offering a solution.

  • HTMLB InputField Control

    Hi,
    I am using HTMLB inputField Control,its type is DATE.
    I am using JSP tagLibs.
    If the date entered by user is wrong it autimatically validates and makes the text of the inputfield red.
    When user enters correct date the text does not become red.
    I am using InputField Control for date and I have set the property of InputField showHelp="TRUE" so it is automatically showing Calendar Control next to the InputField.I can't make InputField disabled because the Calendar control also gets disabled when I disable the InputField.
    Now my problem is
    When I am using isValid() method for InputField class during programming it always returns true inspite of entering correct input.
    Can sombody help me on this?
    Parag.

    Hi Parag,
    Just try creating a string before the inputField declaration and then using that (htmlb doesnt like the mix and match in the id like you're trying to do).
    <%
    String tempId;
    for(int x=0;x<5;x++)
    { tempId = "a"+x;
    %>
    <tr>
    <td><hbj:inputfield id ="<%=tempId%>"/></td>
    <%}%>
    Hope this helps,
    Marty

  • Style in HTMLB:INPUTFIELD

    Hello All,
    We are using HTMLB:INPUTFIELD to display dates in our BSP. In some cases it is required to display the date n display mode, for that we have set the attribute Disabled.
    However in this case we get a background couloyr as blue as well as a box (which is in change mode as well). We do not want the box as well as the color to be displayed in case th field is in display mode.
    We observed that there is an attribute called as style available, however even this didnt work.
    Request for your help.
    Thanks,
    Devendra

    Dear Davendra,
    You can achieve this requirement. You can set a flag or you can use the disabled flag itself.
    If the flag is set as disabled u can color the inputfield. Or else no need to call the coloring option.
    Have a look on the following code snippet,
      if val EQ '1'.
       lv_disable = 'TRUE'.
      else.
       lv_disable = 'FALSE'. 
      endif.
    <htmlb:label id   = "l1"
                       text = "Label Text"
                       for  = "inp1" />
          <htmlb:inputField id        = "inp1"
                            value     = "Test"
                            width     = "280"
                            maxlength = "50"
                            type      = "STRING"
                            disabled  = "<%= lv_disable%>"/>
    <%IF lv_disable EQ 'TRUE'. %>           
          <s cript language="JavaScript">
          set_textcolor("inp1","yellow");
          </s cript>     
      <%ENDIF.%>   
    Here for eg i check with val is 1. you check your criteria.
    Hope this will Helpful.
    Regards,
    AnitaVihi Arasi B

  • How to handle htmlb:inputField submitOnEnter

    Hi Friends,
    Iam using submitOnEnter = "true" in <htmlb:inputField> so that when I press enter in that input field some action should take place.
    But Iam not sure how to handle that event.
    When I use this it is giving page error.
    Can anyone help me out how to handle this...
    Regards,
    Raju...

    if you set submitOnEnter = "true" for an inputfield, pressing enter key when the cursor is in that inputfield would trigger server event.
    in the oninputprocessing you can capture the event.
    also please be aware that submitonenter doesnt work in some SPs as per this thread
    htmlb:submitOnEnter at inputField
    to capture the value of the inputfield in oninputprocessing you can write the following code
    ATA: data TYPE REF TO cl_htmlb_inputfield.
    data ?= cl_htmlb_manager=>get_data( request      = runtime->server->request
                                         name         = 'inputField'
                                         id           = 'IP1'
    IF data IS NOT INITIAL.
    <variable> = data->value .
    endif .
    Regards
    Raja

  • Htmlb InputField+showHelp

    Hi Friends,
    I am using htmlb InputField with type"DATE" in a JSP DynPage.The code is
    <hbj:inputField
        id="input_verificationDate"
        type="DATE"
        showHelp="TRUE" />
    With this code,I am getting the date picker button after the inputfield.But the problem is,when I click that button It is not opening the date pop up window.It is displaying a message saying that "Error on Page".
    Can plz tell me the problem,Urgent.
    Thanks
    Sampath .g

    Hi,
    u shud use the model also.
    here in my jsp file,i ve given model="myBean.model"
    in bean u get & set the datenavigator model ,using getter & setter methods
    for more help ,refer this help file.
    http://help.sap.com/saphelp_nw04/helpdata/en/aa/9b0e41a346ef6fe10000000a1550b0/frameset.htm
    Regards
    Bhargava
    try to award points if it is helpful

  • Javascript in the htmlb:inputField

    Here is the brief description of the problem:
      I have a table view in which i display the htmlb:inputField which are created in the iterator. I need to capture the ENTER Key event and set the focus to the next field in the next row.
    I have seen examples of the normal input field but couldnn't somehow  figure out a way to do it  in the htmlb:inputField. Here is the sample code which i tried to play around with (for normal input fields.)..
    <i>function enter(nextfield) {
    if(window.event && window.event.keyCode == 13) {
      nextfield.focus();
      return false; }
    else
      return true; }
    </script>
    Field 1: <input type="text" name="field1"
    onkeypress="return enter(document.demo.field2)"><br>
    Field 2: <input type="text" name="field2" onkeypress="return enter(document.demo.field1)"><br></i>
    <b>How do i use this code in the iterator for my htmlb:inputField ? i did try the following attributes
    1) submitOnEnter
    2) onValueHelp
    3) doValidate
    but none on them could help me..
    </b>..
    Any help would be appriciated.
    Amandeep.

    Hi Alwyn,
    <b>
    Works fine when i place it indivisually on the BSP.
    I have not been able to figure out a way to do it in the iterator..</b>
    <i><%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="bsp" prefix="bsp" %>
    <script language = "javascript">
    function func(nextfield)
    if(window.event && window.event.keyCode == 13) {
      nextfield.focus();
      return false; }
    else
      return true;
    </script>
    <htmlb:content design="design2003" >
      <htmlb:page title="detail " >
        <htmlb:form>
          <bsp:findAndReplace find    = "<input"
                              replace = "<input onKeyPress=func(authorfname2);" >
            <htmlb:inputField id      = "authorfname1"
                              tooltip = "tooltip1"
                              value   = "<%= authorfname %>" />
          </bsp:findAndReplace>
    <br>
          <bsp:findAndReplace find    = "<input"
                              replace = "<input onKeyPress=func(authorfname3);" >
            <htmlb:inputField id      = "authorfname2"
                              tooltip = "tooltip1"
                              value   = "<%= authorfname %>" />
          </bsp:findAndReplace>
    <br>
          <bsp:findAndReplace find    = "<input"
                              replace = "<input onKeyPress=func(authorfname1);" >
            <htmlb:inputField id      = "authorfname3"
                              tooltip = "tooltip1"
                              value   = "<%= authorfname %>" />
          </bsp:findAndReplace>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content></i>
    <b>in the iterator i am trying to do like this</b>
    <i>      MOVE: p_row_index TO l_rindx,
                p_column_index TO l_cindx.
          CONCATENATE 'INPUT_' l_cindx '_' l_rindx
                         INTO l_id.
          CONDENSE l_id NO-GAPS.
          IF gv_mode = 'P'.
            CREATE OBJECT l_input.
            l_input->width       = '100%'.
            l_input->style       = 'celldesign:GROUP_LEVEL3'.
            l_input->id          = l_id.
            l_input->cellvalue   = 'X'.
            l_input->maxlength   = 11.
            l_input->value       = l_string.
            p_isreadonly         = 'X'.
            p_style              = 'celldesign:GROUP_LEVEL3'.
    start test for the enter key
            DATA: l_script TYPE string.
            CONCATENATE ' "<input onKeyPress=func('  l_id ')"' INTO l_script.
            CREATE OBJECT l_find_repl.
            l_find_repl->find     = '<input'.
            l_find_repl->replace  = l_script.
            p_replacement_bee     = l_find_repl.
    end test for the enter key
            p_replacement_bee    = l_input.</i>
    <b>and on the main page i have my same function but doesn't do anything..</b>
    <i><script language = "javascript">
    function func(nextfield)
    if(window.event && window.event.keyCode == 13) {
      nextfield.focus();
    alert ('hello');
      return false; }
    else;
      return true;
    </script></i>
    Any suggestions will be appriciated.
    Thanks in advance
    Amandeep.

  • From & To  Selection for htmlb:inputField id         = "DATE"

    Hi Friends,
    Is there any feature like ,to select the dates in the htmlb calendar ? I need to select the from date , to date in the same calendar ,for results in that particular dates. I look for your suggestions in this regard.
    Regards
    CSM Reddy

    You can refer to this sample code:
    <htmlb:gridLayout columnSize = "2"
                      rowSize    = "2" >
            <htmlb:gridLayoutCell columnIndex = "1"
                                  rowIndex    = "1" >
              <htmlb:label for      = "date_frm"
                           required = "true"
                           text     = "Date From"
                           design   = "EMPHASIZED" />
            </htmlb:gridLayoutCell>
            <htmlb:gridLayoutCell columnIndex = "2"
                                  rowIndex    = "1" >
              <htmlb:inputField id             = "date_frm"
                                type           = "date"
                                required       = "true"
                                doValidate     = "TRUE"
                                firstDayOfWeek = "2"
                                showHelp       = "true"
                                value          = "<%= date_frm %>" />
            </htmlb:gridLayoutCell>
            <htmlb:gridLayoutCell columnIndex = "1"
                                  rowIndex    = "2" >
              <htmlb:label for      = "date_to"
                           required = "true"
                           text     = "Date To"
                           design   = "EMPHASIZED" />
            </htmlb:gridLayoutCell>
            <htmlb:gridLayoutCell columnIndex = "2"
                                  rowIndex    = "2" >
              <htmlb:inputField id             = "date_to"
                                type           = "date"
                                doValidate     = "TRUE"
                                required       = "true"
                                firstDayOfWeek = "2"
                                showHelp       = "true"
                                value          = "<%= date_to %>" />
            </htmlb:gridLayoutCell>
            </htmlb:gridLayout>
    Now in OnInput Processing we can have:
    date_frm = request->get_form_field( 'date_frm' ).
    date_to = request->get_form_field( 'date_to' ).
    If you need to fetch records, from a DB table within this interval you can use:
    SELECT <fields> FROM  INTO <itab> WHERE <date in DB table>
    BETWEEN date_frm AND date_to.
    Hope this helps,
    Regards,
    Ravikiran.

  • Using separate_frame=true and trying to close the applet window after...

    We are using separate_frame=true and trying to close the applet window (the one with the large gray box) after using the following post-form trigger:
    if :system.last_form = 0 then     
         message('Please wait while Forms closes - '||:system.last_form);     
         web.show_document('/forms/html/close.htm','_self');     
    end if;
    This works fine for the first form we open, but if that same form using Open_Form to open a child form we have a problem. When the child form is closed the user is returned to the parent calling form (which is expected), but then when the parent form is closed the separate applet window fails to close. Any suggestions?

    I guess you mis-interpreted the value of :SYSTEM.LAST_FORM. From the online-help:
    SYSTEM.LAST_FORM represents the form document ID of the previous form in a multi-form application, where multiple forms have been invoked using OPEN_FORM.So LAST_FORM shows always the ID of the last activated form, and this will never be 0 if you issued one OPEN_FORM in your application.

  • Always Use Primary Line / Auto Line Select CM 4.1(3)sr3c

    Is it correct that the "Always Use Primary Line" system parameter and the phone device page "Auto Line Select" setting work together to affect a phone's off-hook behavior for incoming calls? I changed the Always Use Primary Line from the default (False to True) to change the behavior and force primary line only when the phone goes off-hook. When I then enabled Auto Line Select on the 7960G, I expected to reverse this global setting for that device only. But, that did not happen. In fact, no matter how Always Use Primary Line is set (True or False), the device page setting Auto Line Select (enable or disable) does not appear to cause any change at all. Has anyone else encountered this? If changing the Service Parameter takes effect without restarting callmanagers, wouldn't resetting the phone device force the change on the device page to take effect? Or, do I not understand the relationship between these two settings?

    Auto Line Select comes into play when you are already on the phone and you have a new incoming call on another line, then should the focus change to that new ringing line so it can show you the caller-id or should the focus be on the active line. Depending on this, the softkeys and everything change on your screen and you don't have to press the line button to see all the keys.
    Always use Prime Line is primary used when the phone goes off-hook. This determines if you want to go off-hook on the primary line all the time or not. If you choose to always use primary line, then everytime you go
    off-hook, we use the first line on the phone and it does not matter if there is a call ringing on another line.
    If its set to false, then when you go off-hook, it will go off hook on a line which is ringing and not your primary line.

  • Always use URL Rewriting for session tracking?

    All you JSP guru:
    I am working on a JSP project that requires session tracking. I have successfully implements session tracking with both cookies or URL rewriting. I know that with the HttpSession object, it will always try to use cookie first, if that's disabled, then it'll automatically switch to URL rewriting. However, is there a way to force the HttpSession object to ALWAYS use URL rewriting instead of cookies? I have searched for an answer for a long time and haven't been able to found a solution. Is it possible at all? Thank you very much.

    i was going to say that WebSphere always uses URL rewriting if you enable it at all, but someone beat me to it (indirectly) :-)
    however, that seemed to me to be a violation of the spec, which seemed to imply the behaviour you're describing (only use URL rewriting if cookies are not supported on the current client)
    here's a response someone else made on a websphere newsgroup to a statement in that regard:
    I believe you are technically correct. However from my
    experience, I think the spec if flawed in this area since
    there is no reliable way of determining whether the
    client browser supports cookies. The authority on
    cookies (www.cookiecentral.com) says:
    "To properly detect if a cookie is being accepted via
    the server, the cookie needs to be set on one HTTP
    request and read back in another. This cannot be
    accomplished within 1 request."
    This is asking too much of a servlet engine
    implementation. Even if it did submit a request for this
    purpose, the user could refuse the cookie. So
    then technically the browser supports cookies, but the
    servlet engine infers it doesn't. So if the servlet engine
    infers the browser does not support cookies and so
    encodes the URL, it is again out of spec because the
    browser really does support cookies. By doing it
    however encoding is configured makes things simpler,
    robust, consistent and avoids the flaw.
    My opinion.so, mostly i'm just rambling, but if you're using websphere, you should get the behaviour your boss wants. if you're using something else, i suppose there's a chance it'll "violate" the spec in this same, potentially helpful way.
    btw, i remember somebody else complaining that URL rewriting is less secure than cookies, but i kinda think they're about equal. it seems like either could be intercepted by a sniffer and then used to spoof. but i'm no expert in that stuff...

  • No Serializer found to serialize a 'org.w3c.dom.Element' using encoding style ...

    I use oc4j903 and win2k. I write a document style web service following Demo for Stateless Java Document Web Services.
    I Create an EAR file using WebServicesAssembler and deploy it .and my config.xml:
    <web-service>
    <display-name>Stateful Java Document milkdemo Web Service</display-name>
    <description>Stateful Java Document milkdemo Web Service Example</description>
    <!-- Specifies the resulting web service archive will be stored in ./docws.ear -->
    <destination-path>./milkdemo.ear</destination-path>
    <!-- Specifies the temporary directory that web service assembly tool can create temporary files. -->
    <temporary-directory>./temp</temporary-directory>
    <!-- Specifies the web service will be accessed in the servlet context named "/docws". -->
    <context>/milkdemo</context>
    <!-- Specifies the web service will be stateful -->
    <stateful-java-service>
    <interface-name>com.brightdairy.client.sync.SyncServerDoc</interface-name>
    <class-name>com.brightdairy.client.sync.SyncServerDocImpl</class-name>
    <!-- Specifies the web service will be accessed in the uri named "/docService" within the servlet context. -->
    <uri>/milkdemo</uri>
    <!-- Specifies the location of Java class files ./classes -->
    <java-resource>./classes</java-resource>
    <!-- Specifies that it uses document style SOAP messaging -->
    <message-style>doc</message-style>
    </stateful-java-service>
    <!-- generate the wsdl -->
    <wsdl-gen>
         <wsdl-dir>wsdl</wsdl-dir>
    <!-- over-write a pregenerated wsdl , turn it 'false' to use the pregenerated wsdl-->
         <option name="force">true</option>
         <option name="httpServerURL">http://localhost:8888</option>
    </wsdl-gen>
    <!-- generate the proxy -->
    <proxy-gen>
         <proxy-dir>proxy</proxy-dir>
         <option name="include-source">true</option>
    </proxy-gen>
    </web-service>
    my webservice java file:
    * Title: BrightDairy SOAP demo
    * Description:
    * Copyright: Copyright (c) 2002
    * Company: ufoasia
    * @author
    * @version 1.0
    package com.brightdairy.client.sync;
    import java.sql.*;
    import java.util.Vector;
    import java.util.Iterator;
    import org.w3c.dom.Element;
    import org.w3c.dom.Document;
    import org.w3c.dom.NodeList;
    import oracle.xml.parser.v2.XMLDocument;
    import oracle.xml.parser.v2.XMLElement;
    //import com.brightdairy.client.object.Product;
    import com.brightdairy.client.sync.SyncServerDoc;
    public class SyncServerDocImpl implements SyncServerDoc {
    public SyncServerDocImpl() {
    public Element getProductIDList() {
    Connection connServer = null;
    PreparedStatement stmtServerProduct = null;
    ResultSet rsServerProduct = null;
    Document doc = new XMLDocument();
    Element elProduct = doc.createElement("product");
    doc.appendChild(elProduct);
    long m_msec;
    m_msec = System.currentTimeMillis();
    try {
    connServer = makeConnection();
    System.out.println("1");
    stmtServerProduct = connServer.prepareStatement(
    "SELECT ID FROM " + SERVER_TABLE_PRODUCT );
    System.out.println("");
    rsServerProduct = stmtServerProduct.executeQuery();
    System.out.println("2");
    while(rsServerProduct.next()) {
    Element elID = doc.createElement("id");
    elID.appendChild(doc.createTextNode(rsServerProduct.getString("ID")));
    elProduct.appendChild(elID);
    System.out.println("3");;
    System.out.println("4");
    return doc.getDocumentElement();
    } catch(SQLException e) {
    e.printStackTrace();
    System.out.println("SQL exception has occured");
    System.out.println(e.getMessage());
    return doc.getDocumentElement();
    }finally {
    try {
    rsServerProduct.close();
    stmtServerProduct.close();
    connServer.close();
    m_msec = System.currentTimeMillis() - m_msec;
    System.out.println("6");
    System.out.println("getProductIDList:It take time:" m_msec/1000 "s");
    } catch(Exception e1) {}
    Now my firts question: when i generate the proxy WebServicesAssembler will failure (couldn't import jar.....) and i had imported all jar files,But if i commented proxy-gen , no error.
    and my second question: I commented proxy-gen and deployed ite and success. when i invoked it through web page , then error:
    java.lang.IllegalArgumentException: No Serializer found to serialize a 'org.w3c.
    dom.Element' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
    at org.apache.soap.util.xml.XMLJavaMappingRegistry.querySerializer(XMLJa
    vaMappingRegistry.java:157)
    at org.apache.soap.encoding.soapenc.ParameterSerializer.marshall(Paramet
    erSerializer.java:106)
    at org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:265)
    at org.apache.soap.Body.marshall(Body.java:148)
    at org.apache.soap.Envelope.marshall(Envelope.java:203)
    at org.apache.soap.Envelope.marshall(Envelope.java:161)
    at oracle.j2ee.ws.InvocationWrapper.invoke(InvocationWrapper.java:309)
    at oracle.j2ee.ws.RpcWebService.doGetRequest(RpcWebService.java:540)
    at oracle.j2ee.ws.BaseWebService.doGet(BaseWebService.java:1106)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:721)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:803)
    at java.lang.Thread.run(Thread.java:484)
    I took much time and couln't get answer ,please help me!!!!!!!!!!!!

    Yeah!
    I have resolved it .
    It take me one day time!
    my error is 1: Element which I used is no namespace.
    2: no import enough jar files
    just so so .
    sorry! I am poor in English

  • HTMLb InputField ValueHelpContext

    Hi,
    Does anybody know how to use the ValueHelpContext (com.sapportals.htmlb.valuehelp.ValueHelpContext) related to an HTMLb InputField? I cannot find any documentation.
    I like to develop an InputField for a material number with some kind of popup value help where a user can search a material by name.
    Thanks in advance!
    Best regards,
    Eric

    Hi, have you done it?

Maybe you are looking for