Client-side Conversion using  NumberConverter and DateConverter

Hi,
In our application we have a custom input text component and we are using the same component to capture date, number, currency and string values .As we are using the same component to capture date/number/string values I can't add number/date converter to it.
At run time I have to read the user entered values and need to convert them into date/ number /currency values. I am planning to use Client-side Converters to format the values.
Please let me know how make use of NumberConverter and DateConverter in java script to convert the values at client side.
Regards,
Kiran

Hi Gabrie,
Thanks for your response.
ADF is providing NumberConverter / DateConverter to convert date/number/currency values. Instead of writing my own custom converters can I use the framework provided converters to convert the values at client side?

Similar Messages

  • DI-Proxy Client side(4.2.0) and Proxy Side (4.1.2)

    Hi all,
    I am getting following error when i was try test connection In B1if SAP B1 Database "DI-Proxy Client side(4.2.0) and Proxy Side (4.1.2)" . Here Sap B1 One server database diffrerent server. DI proxy Installed on Database server.  Please advice me how to solver
    Thanks & regards
    B.Lakshmi narayanan

    Integration framework upgrade again. it's solved

  • I allocated too much space on the Windows side when using bootcamp and want to take some space back for the Mac side is there any easy way to do this?

    I allocated too much space on the Windows side when using bootcamp and want to take some space back for the Mac side is there any easy way to do this?

    Purchase and use Paragon Camp Tune

  • Client remote Authentication using JAAS and EJB Access

    Hi,
    I have a problem using JAAS in combination with Sun One Appserver 8.1 and a java remote client trying to access an EJB. Here is the scenario:
    I have implemented an EJB who's methods are protected through the deployment descriptor:
            <assembly-descriptor>
                 <security-role>
                    <description>role for clients outside of the server </description>
                    <role-name>sedna</role-name>
                  </security-role>
                <method-permission>
                  <role-name>sedna</role-name>
                  <method>
                    <ejb-name>ServerInfoBean</ejb-name>
                    <method-intf>Remote</method-intf>
                    <method-name>*</method-name>
                  </method>
                </method-permission>
                <method-permission>
                  <unchecked/>
                  <method>
                    <ejb-name>ServerInfoBean</ejb-name>
                    <method-name>getVersion</method-name>
                  </method>
                  <method>
                    <ejb-name>ServerInfoBean</ejb-name>
                    <method-name>create</method-name>
                  </method>
                </method-permission>
            </assembly-descriptor>I've deployed the EJB in a jar file which was packed into an ear file of a bigger application. The role has been mapped to the admin Principal in the sun-ejb-jar.xml descriptor.
    I can find the EJB, create it, and call the unchecked method getVersion and that works fine, so far so good.
    But then I try to access another method which is protected and then I get this exception
    org.omg.CORBA.NO_PERMISSION:   vmcid: 0x2000  minor code: 1806 completed: Maybe
            at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:179)
            at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:853)
            at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:137)
    ...I have to mention that I do make a login via the LoginContext. My jaas.config File has a reference to the com.sun.enterprise.security.auth.login.ClientPasswordLoginModule module.
    After login (which works perfectly) I lookup the context with a corbaname url which - if I understood it right - ignores the Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS settings.
    After that I make the calls to the EJB. And I am allways ANONYMOUS on the server side, which is definitely the problem. Because ANONYMOUS is not allowed to call the protected EJB Methods. But I made a jaas login in advance. So where am I making a mistake???
    Am I doing something wrong?
    Need help! Thx,
    Stephan

    Hi.
    I understand correctly that you call Subject.doAs on
    the client to call the remote EJB. I guess It isn't
    right way.I had also a bad feeling about this, so I forget it. But anyway it wasn't working with or without using that doAs().
    >
    >
    Subject contextSubject =
    Subject.getSubject(AccessController.getContext());
    contextSubject.getPrincipals();This code throws exceptions in the Appserver. Unfortunately they are catched somewhere so I'm unable to find out what was going wrong. But I guess, that these exceptions where security exceptions. Never the less thanks for the hint!
    But I don't think that doing the check on the server side is the way I want to go because that is programmatically security and I want to use the declarative security which can be used through the deployment descriptor. If used correctly - and supposed I do not completely misunderstand the specification - then it should be possible to create an EJB that is protected via it's deployment descriptor and access it through the client only if the client has been authenticated through JAAS mechanisms. After successful authentication the principal should be accessible through the EJB context but not for security check, that should allready been done at this time.
    Unfortunately I don't find any resource on the internet describing the scenario in such a detail that I can reproduce it. There are only very high level documentations and hints in forums.
    Again, thanks for your effort,
    Stephan

  • Client side proxy class properties and APIs

    I used clientgen to generate client side proxy from WSDL.
    Generated class has name <ServiceName>Soap_Stub and extends
    weblogic.webservice.core.rpc.StubImpl class.
    I am looking for answers to the following questions:
    1. Does this proxy have default value of client side timeout?
    2. If it has one then what its value?
    3. What API will retrieve this value from the instance of my proxy object?
    4. What API will set this value?
    5. What API can be used to set the characteristics of connection between client
    and
    server? Something like "keepAlive".
    Is there some documentation available which gives the answers to these questions?
    Thank you,
    Igor Malkiman

    Hello,
    From the release notes [1] for WLS 8.1 SP2 (CR111881) concerning a
    timeout on webserivce invocation on the client-side, see if this answers
    most of your questions.
    For more information about the weblogic.webservice.binding package, see
    the Javadocs [2].
    Regards,
    Bruce
    RESOLUTION:
    1. Requires weblogic.jar on the client side
    2. Set system property "weblogic.webservice.UseWebLogicURLStreamHandler"
    to
    be true, i.e: -D"weblogic.webservice.UseWebLogicURLStreamHandler=true"
    3. set timeout on the stub:
    with API for BindingInfo:
    BindingInfo bInfo = (BindingInfo)
    stub._getProperty("weblogic.webservice.bindinginfo");
    bInfo.setTimeout(5 /* secs */);
    with stub property:
    stub._setProperty("weblogic.webservice.rpc.timeoutsecs", "5" /* secs
    CHANGED BEHAVIOR:
    Yes. Prior to 8.1sp1, BindingInfo.setTimeout(5000/*millisecs*/) takes
    milliseconds as paramter. But it has no effect on the client side. With
    8.1sp2, the parameter will be seconds insteadof milliseconds, i.e:
    BindingInfo.setTimeout(5/*secs*/).
    [1]
    http://e-docs.bea.com/wls/docs81/notes/resolved.html
    [2]
    http://edocs.bea.com/wls/docs81/javadocs/index.html
    Igor Malkiman wrote:
    >
    I used clientgen to generate client side proxy from WSDL.
    Generated class has name <ServiceName>Soap_Stub and extends
    weblogic.webservice.core.rpc.StubImpl class.
    I am looking for answers to the following questions:
    1. Does this proxy have default value of client side timeout?
    2. If it has one then what its value?
    3. What API will retrieve this value from the instance of my proxy object?
    4. What API will set this value?
    5. What API can be used to set the characteristics of connection between client
    and
    server? Something like "keepAlive".
    Is there some documentation available which gives the answers to these questions?
    Thank you,
    Igor Malkiman

  • How to make client side validations using NWDS

    Hi Frndz..
                   Am creating UIs using NWDS ,i made tthe validations @ servr side n i have 2 made this validations @ clinet side ,but am not aware how it is????
    can anyone help me in this regard.
    THANKS & REGARDS
    Rajesh Kumar

    chk it
    /people/martin.kellermann2/blog/2006/12/17/client-side-input-validation-with-htmlb--the-basics
    http://help.sap.com/saphelp_nw04/helpdata/en/43/067941a51a1a09e10000000a155106/frameset.htm
    /people/kirupanand.venkatapathi2/blog/2005/12/18/client-side-validation-in-dynpage
    http://help.sap.com/saphelp_nw04s/helpdata/en/8e/e3a942ad920c31e10000000a1550b0/frameset.htm
    /thread/86123 [original link is broken]
    https://media.sdn.sap.com/html/submitted_docs/dotnet/Programming%20with%20PDK%20for%20.NET/SAP%20NetWeaver%20.NET%20Controls/Event%20Handling/Client%20Side%20Event%20Handling.htm

  • Retrieve client side changes using componet binding

    I have a selectBooleanCheckbox in my jsp bound to a HtmlSelectBooleanCheckbox.
    On client side I have a js function that enable/disable the checkbox, I would like to know if is possible to get the client (changed) value by the component reference in my backbean.
    How can I set the client "disable" attribute value in the server component on submit?

    Not possible. That isn't been sent to the server as a request parameter. Best what you can do is to pass it along as a hidden input parameter, or to live with a cycle to the server on click.

  • How to open pdfs directly in acrobat reader client side without using browser

    When I sent a request to the pdf through servlet
    the requested pdf is coming in a browser , but I want it to open in acrobat reader only . Is it possible ?

    Hi,
    Yes you can open in acroread. I am not sure about syntax. Cheak it in API's of java.lang.
    It is somehow like this.
    System.exec("<location of acroread>",<pdf file name>);
    Check if it helps.
    Thanks
    Parsu
    iAS dev support team

  • Javaws, classpath, and OpenOffice client-side resources

    I've developed an application on top of OpenOffice which uses the installed openoffice jars and .dll's. I can't get the dll's to load using javaws. My root problem seems to be a non-standard way that openoffice is trying to load system libraries - from the OpenOffice forums, they use the location of a jar and then "go up one directory". My app works fine when I can provide control over the classpath (for example, from a batch file, ant, or eclipse) but I am stuck trying to webstart. The OpenOffice community has no answers.
    I've tried a huge number of permutations of things, based on advice from this forum:
    -- jar'ing up the installation jars and deploying them (works for the OpenOffice java classes, but not for the DLL loads)
    -- creating a custom class loader (again, works to load the java classes but not the DLL's)
    -- jar'ing up the installation DLL's and deploying them (doesn't have any effect)
    -- setting the system classpath in my code to the known client-side location of the installation (doesn't work - get NoClassDefFoundError)
    String cp = System.getProperty("java.class.path");
    String newcp = cp + System.getProperty("path.separator") +
                  "C:\Program Files\OpenOffice.org1.1.4\program\classes";
    System.setProperty("java.class.path", newcp);I would have thought the last attempt would have worked - I don't understand why the classes cannot be found. Does anyone have any positive experiences with manipulating classpath via javaws?
    Thanks,
    Dave Santo

    I've solved this issue.
    I had to create a shell application, launched via jnlp. The shell app grabs the webstart cached jar files, builds a classpath string with all these jars and the client-side OpenOffice installation location, and launches the real application, i.e.
    public static void main(String[] args)
        File tmpdir = new File(System.getProperty("java.io.tmpdir"));
        // build the constructedClasspathString, based on this class (see thread referenced below)
        String[] launchArgs = new String[4];  // or more if you want to copy in other arguments
        launchArg[0] = "java";
        launchArg[1] = "-cp";
        launchArg[2] = constructedClasspathString;
        launchArg[3] = targetClassNameString;
        // copy in other arguments as desired...
        Process p = Runtime.getRuntime().exec(launchArg, null, tmpdir);
        StreamGobbler out = new StreamGobbler(p.getInputStream(), "OUT");
        out.start();
        StreamGobbler err = new StreamGobbler(p.getErrorStream(), "ERR");
        err.start;
        int result = p.waitFor();
    }You definitely want to inherit this instance's environment, so don't override the 2nd argument to exec().
    The StreamGobbler stuff can be found here:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    The 'grabbing the webstart cached jar files' stuff can be found here (you'll want to modify it a little ...)
    http://forum.java.sun.com/thread.jspa?forumID=38&threadID=71208
    - Dave

  • Client side event for h:outputText... and other JSF component

    Hello friends...
    I need client side (to use Java script ) event for change in <h:outputText /> or <h:inputText...>.
    I want to open a popup window when there is a change in there. I donot want to use onblur() for this. Is there any thing for achiev it.
    Thanks.
    Regard
    Roshan Lal ( I don't know why there is "DOG" display in LIST )
    :-)

    Hi Jacek,
    Unfortunately I think you may be stuck extending Renderer. Another possibility is creating your component via a template, which will be available in JSF 2.0. However, as JSF 2.0 won't be out for a while... you can use JSFTemplating in the meantime:
    http://java.sun.com/developer/technicalArticles/J2EE/jsf_templating/
    http://www.theserverside.com/tt/articles/article.tss?l=JSFTemplateComponent
    Good luck!
    Ken Paulsen
    https://jsftemplating.dev.java.net

  • RMI client-side - how to encrypt,decrypt  in client-side

    I write javacard RMI style. My problem is...
    Source code below is work when it write in applet (card - side)
    but in client-side (reader -side) I copy it to client - side code and test to run, if fail --> throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    It seem to be "javacardx.crypto" and "javacard.security" is make for use in applet in card only. Did I misunderstand?
    if it make for use in applet only, how is possible to do like this " card use privatekey to sign message and send to reader , reader use card's publickey to verify that card sign this signature or not."
    or
    "card use reader's publickey to encrypt message and send to reader, then reader use privatekey to decrypt message (reader authencate itself) "
    because I can't do any of cipher , keybuilder in RMI-client side(reader)
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,false);
    it will throw nullPointerException
    and if (change false to true)
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,true);
    throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    after that I swap this line with
    pri_key = (RSAPrivateKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PRIVATE,KeyBuilder.LENGTH_RSA_512, false);
    since it will do this first (i swap the line already) it also throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    also be the same result with swap
    kp = new KeyPair(KeyPair.ALG_RSA,(short)KeyBuilder.LENGTH_RSA_512 );
    to a first line
    it throw exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHM
    Please help me
    RSAPrivateKey pri_key;
    RSAPublicKey pub_key;
    KeyPair kp;
    Cipher RSAcipher;
    RSAcipher = Cipher.getInstance(Cipher.ALG_RSA_PKCS1,false);
    pri_key = (RSAPrivateKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PRIVATE,KeyBuilder.LENGTH_RSA_512, false);
    pub_key =(RSAPublicKey) KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_PUBLIC,KeyBuilder.LENGTH_RSA_512, false);
    kp = new KeyPair(KeyPair.ALG_RSA,(short)KeyBuilder.LENGTH_RSA_512 );
    kp.genKeyPair();
              pri_key = (RSAPrivateKey) kp.getPrivate();
              pub_key = (RSAPublicKey) kp.getPublic();
    //ENCRYPT
    RSAcipher.init(pri_key, Cipher.MODE_ENCRYPT);
    t_cipherLengthRSA = RSAcipher.doFinal(plaintxt,(short)0, (short)plaintxt.length, t_cipherText, (short)0);
    //DECRYPT
    RSAcipher.init(pub_key, Cipher.MODE_DECRYPT);
    RSAcipher.doFinal(ciphertxt,(short)0,(short) t_cipherLengthRSA, temp1, (short)0);

    I write javacard RMI style. My problem is...
    Source code below is work when it write in applet (card - side)
    but in client-side (reader -side) I copy it to client - side code and test to run, if fail --> throw
    exception 0x3 - javacard.security.CryptoException.NO_SUCH_ALGORITHMYou can not share code between card and client. On the card use the classes of javacardx.crypto and on the client side those of javax.crypto and java.security.
    It seem to be "javacardx.crypto" and "javacard.security" is make for use in applet in card only. That is right.
    if it make for use in applet only, how is possible to
    do like this " card use privatekey to sign message
    and send to reader , reader use card's publickey to
    verify that card sign this signature or not." or
    "card use reader's publickey to encrypt message and
    send to reader, then reader use privatekey to decrypt
    message (reader authencate itself) "On each platform you have classes that provide the same cryptographic operations but the interface of these classes is different (because of the limitations of the java card platform).
    because I can't do any of cipher , keybuilder in
    RMI-client side(reader)Use the java.security.KeyFactory instead.
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,false);
    it will throw nullPointerException
    and if (change false to true)
    Cipher.getInstance(Cipher.ALG_RSA_PKCS1,true);
    throw exception 0x3 -
    javacard.security.CryptoException.NO_SUCH_ALGORITHMCryptographic support on java cards is optional. Not every card supports every algorithm. Try to use another algo.
    Jan

  • Manipulate client side files?

    Hi,
    I would like to manipulate client side files using APEX.
    Is there any functionality available for APEX similar to the functions provided in Oracle Forms 10g WebUtil?
    such as:
    CLIENT_HOST and CLIENT_TEXT_IO
    is there a way of using these functions in APEX?
    more specifically: I want to use CLIENT_TEXT_IO to create a batch file on the client, and CLIENT_HOST to execute the batch file in the cmd line on the client(windows)...
    could anyone suggest a way of doing this in APEX?
    thanks in advance
    Leon
    Message was edited by:
    user572239

    No, Forms over the web uses a Java applet in the browser, thus allowing them to manipulate client-side files. APEX does NOT use an applet (this is a good thing, btw) and thus has no native capability to manipulate client-side files. However, you could write your own Java Applet or ActiveX control (go with Java if you can, it works in all browsers) and embed this in an APEX page.
    Tyler

  • Clone Rows - Tabular form - Client side add rows

    Hello all,
    I feel in love with this particular Tabular form, http://htmldb.oracle.com/pls/otn/f?p=24317:49 because of the Capabilities it has to create a "clone row".
    a very advance feature I like a lot.
    The trouble is when I go under >Report> and select which columns I would like to view, some will be hidden with default values.
    the default values I would like to keep hidden are: a Time Stamp, and :APP_USER.
    So when the user decides to clone a row the first original row will stay intact with all the information including the hidden values, but as for the cloned rows the hidden values are missing.
    Is there something missing in the javascript that permits this from happening?
    Please Help.
    <script type="text/javascript">
    var g_this;
    function fn_delete(pThis)
    var l_tr=$x_UpTill(pThis,'TR');
    l_tr.parentNode.removeChild(l_tr);
    function fn_CloneRow(pThis){
    g_this=pThis;
    l_tr=$x_UpTill(pThis,'TR');
    l_table=$x_UpTill(l_tr,'TABLE');
    l_tbody=$x_UpTill(l_tr,'TBODY');
    l_clone=l_tr.cloneNode(true);
    html_RowHighlight(l_clone,"D0D0E0");
    l_inputs=l_clone.getElementsByTagName('input');
    for (var j=0;j<l_inputs.length;j++) {
    l_this=l_inputs[j];
    if (l_this.type=="hidden") l_this.value="";
    if (l_this.name=="fcs") l_this.value="zzzz";
    if (l_this.type=="checkbox") l_this.parentNode.removeChild(l_this);
    // Change Clone functionality to Delete
    var l_img=l_clone.getElementsByTagName('img')[0];
    l_img.src="/i/delete.gif";
    if (document.all) l_img.onclick=function(){fn_delete(this)};
    else l_img.setAttribute("onclick","fn_delete(this)");
    l_tbody.insertBefore(l_clone,l_tr.nextSibling?l_tr.nextSibling:l_tr);
    </script>

    I have't looked at the specific clone-row sample code you mentioned in your post, but just wanted to point out that we've introduced client-side add-row functionality in APEX 4.0, so if you're using this code to add new rows on the client-side, then using the built-in functionality might be easier. Of course if you actually want to get a copy of an existing row, that might not be sufficient. As for the MRU process, the way APEX identifies new rows is by looking at the primary key or ROWID column value, which needs to be NULL. APEX also looks at the apex_application.g_fcud array, which holds information for each row on whether to do an create, update or delete. This array was introduced in APEX 4.0, and that's what could potentially be causing your example to fail after the upgrade.
    Regards,
    Marc

  • Tabular form - Client side Clone Row on apex 4.1 not work

    Hi all,
    j have a tabular form page where i have implemented Vika's clone row solution.
    (See http://htmldb.oracle.com/pls/otn/f?p=24317:49)
    Now, after migrating my application from Apex 3.2 to Apex 4.1 this feature not work.
    Clicking the Copy icon copies the row and puts it right below.
    Now, if I change some values in the new row and click Save, the MRU process updates does not insert the row in the database
    Apex 4.1
    rdbms 11.2.0.4
    win xp
    chrome browser
    Any help?
    Thanks in advance.
    lukx
    The "clone row" function is
    </script>
         <style type="text/css">
         img.clone {
         cursor:pointer;
         </style>
         <script type="text/javascript">
         var g_this;
         function fn_delete(pThis)
         var l_tr=$x_UpTill(pThis,'TR');
         l_tr.parentNode.removeChild(l_tr);
         function fn_CloneRow(pThis){
              g_this=pThis;
              l_tr=$x_UpTill(pThis,'TR');
              l_table=$x_UpTill(l_tr,'TABLE');
              l_tbody=$x_UpTill(l_tr,'TBODY');
              l_clone=l_tr.cloneNode(true);
              html_RowHighlight(l_clone,"pink");
              l_inputs=l_clone.getElementsByTagName('input');
              for (var j=0;j<l_inputs.length;j++) {
              l_this=l_inputs[j];
              if (l_this.type=="hidden") l_this.value="";
              if (l_this.name=="fcs") l_this.value="zzzz";
              if (l_this.type=="checkbox") l_this.parentNode.removeChild(l_this);
              // Change Clone functionality to Delete
              var l_img=l_clone.getElementsByTagName('img')[0];
              l_img.src="/i/delete.gif";
              if (document.all) l_img.onclick=function(){fn_delete(this)};
              else l_img.setAttribute("onclick","fn_delete(this)");
              l_tbody.insertBefore(l_clone,l_tr.nextSibling?l_tr.nextSibling:l_tr);
         </script>

    I have't looked at the specific clone-row sample code you mentioned in your post, but just wanted to point out that we've introduced client-side add-row functionality in APEX 4.0, so if you're using this code to add new rows on the client-side, then using the built-in functionality might be easier. Of course if you actually want to get a copy of an existing row, that might not be sufficient. As for the MRU process, the way APEX identifies new rows is by looking at the primary key or ROWID column value, which needs to be NULL. APEX also looks at the apex_application.g_fcud array, which holds information for each row on whether to do an create, update or delete. This array was introduced in APEX 4.0, and that's what could potentially be causing your example to fail after the upgrade.
    Regards,
    Marc

  • What are the client requirements to use BI OnDemand?

    What are the requirements on the client side for using the bi.ondemand.com site.  I would like to know what RAM amount is neccessary as well as the Operating System version.

    The bi.ondemand.com product is a off premise cloud based computing platform.  Being browser based, the only requirements is that you are using  a browser at a version level higher than IE6.  IE7, IE8, and Firefox are the supported browsers.
    When opening bi.ondemand.com with an unsupported browser  such as Opera, you may see a dialog box explaining that it is not supported, but you will find that there will not be any problems.  Some browsers just have not been fully tested yet.
    There is no real requirements concerning the amount of ram as long as there is enough to support the running of the browser.

Maybe you are looking for