Using NetBeans Java ME Designer for List

I'm using the Java ME screen Designer in NetBeans. I'd like to create a simple list from which users can select one option. I know how to write code to do it, but how do I do it through the screen designer?

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.xml.ws.BindingProvider;
import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
import weblogic.xml.crypto.wss.WSSecurityContext;
import weblogic.xml.crypto.wss.provider.CredentialProvider;
you can add username for weblogic client using
// Create list of credential providers
List credProviders = new ArrayList();
// Create user name token provider
ClientUNTCredentialProvider unt = new ClientUNTCredentialProvider("weblogic", "weblogic");
credProviders.add(unt);
credProviders.add(cp);
// Finally add the credential providers to the request context
Map<string, object=""> requestContext = ((BindingProvider)brokerService).getRequestContext();
requestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);

Similar Messages

  • Set username/password using in Java client proxy for a JAX-WS webservice

    Hi, i am invoking one deployed EBS webservice , while trying to run that client program me
    i am getting error WSSE security, where can i set Uname pwd , through java program me
    ++Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Missing <wsse:Security> in SOAP Header
    Thanks Regards
    Raj
    Edited by: 952094 on Jan 23, 2013 1:42 PM

    import java.util.ArrayList;
    import java.util.List;
    import java.util.Map;
    import javax.xml.ws.BindingProvider;
    import weblogic.wsee.security.unt.ClientUNTCredentialProvider;
    import weblogic.xml.crypto.wss.WSSecurityContext;
    import weblogic.xml.crypto.wss.provider.CredentialProvider;
    you can add username for weblogic client using
    // Create list of credential providers
    List credProviders = new ArrayList();
    // Create user name token provider
    ClientUNTCredentialProvider unt = new ClientUNTCredentialProvider("weblogic", "weblogic");
    credProviders.add(unt);
    credProviders.add(cp);
    // Finally add the credential providers to the request context
    Map<string, object=""> requestContext = ((BindingProvider)brokerService).getRequestContext();
    requestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credProviders);

  • Due to the rumored heat problems with the iPad 3, is there a danger in using a leather case design for it.

    I recently purchased a 64 GB Verizon LTE iPad,  along with a Bear Motion leather case designed specifically for that model. I've been reading a lot about the heat problems with the new iPad and although I haven't noticed them on mine, I'm worried that putting it in the case may cause worse problems. Is this something I should be concerned about?

    Unless you have a defective iPad you should be fine.  The only time it should be heating up is when you're running an intensive app like a game that's working the quad-core processor and the screen.  I bought a Targus leather case for mine and play InfinityBlade2 on it and haven't noticed any heating issues with mine, but the part holding the iPad is plastic, so it can disipate heat better.
    If your iPad gets too hot it'll warn you, so I'd use it for now and see what happens.  It'll shut down before it causes any permanent damage.

  • Is it possible to use  XDK java + plsql 9i  for an 8i DB ?

    Hello,
    I would like to know whether there are some problems to use
    the XDK for java + pl/sql 9.2.0.1 with an oracle DB 8.1.7.3 ?
    If there are some problems, please let me know what kind of problems I will meet.
    Regards
    FA

    There is no problem. I use it on 8.1.6

  • Using Illustrator CS5 to design for printing on DVDs

    When using a DVD/CD template to do a design to print onto a DVD/CD even though the template shows the circular shapes of both the outer circumfrance and the central hole etc if I paste a square design onto the circular template the design is not restricted to the printable area of the DVD. How do I achive a design that is just printed onto the printable are of the disk?

    You would have to assign the circles as a clipping mask... It's irrelevant, though, beyond providing a visula guide for placment of elements. For commercial replication they will use their own masks or require you to use their templates/ specifications; for homeprinting you will have to use your printers dedicated DVD/ CD label printing software and/or whatever sticky labels paper you use and they have all the circles you need built-in...
    Mylenium

  • Hello, Mac doesn't have or know what program to use to open cd designed for windows

    Hello, How do I upload photos from an older Samsung cell phone?  My Mac doesn't know what program or app to use.  The product cd is for use with windows.  What software must I have to open these files?  Went to App store, & there are too many apps.  Which one do I need?  Can't install the photos into Iphoto. I'm still new at this.

    Install Windows on your Mac or ask a friend who owns a PC to help you.

  • Use of java.uti.Date for comparison

    Hi Friends
    I am stuck in a problem for which i need help from you.
    I have written code to convert a date object into a calander object for a functionality in my application.
    I am getting the output in the following format after conversion
    Thu May 31 00:00:00 IST 2007
    Wed Jun 13 00:00:00 IST 2007
    Now inside other method i reconvert the calendar object back to Date objects.the code is as below.
    Date start=filterStartDate.getTime();
    Date end=filterEndDate.getTime();
    Now i need to compare the 2 Date objects here and check whether the startdate is less than enddate.
    the date objects are again in the same format after conversion
    Thu May 31 00:00:00 IST 2007
    Wed Jun 13 00:00:00 IST 2007
    Can anybody let me know how to do this conversion.If possible provide me piece of code to do it.
    waiting for a positive reply from you side.
    Regards
    Vikeng

    Resolved

  • Regarding using  Oracle Business Process Designer with eclipse on linux

    Hi,
    I am using eclipse on Red hat linux.I am new to BPEL so I am just wondering is it possible to use oracle buisiness process designer for creating business processes as eclipse plugin on linux.
    Any response would be appreciated.
    Kashif

    yes we do native in Oracle BPEL PM (username token) - as explained here
    http://www.oracle.com/technology/products/ias/bpel/documents/bpel_admin_10.1.3.1.0.pdf page 30
    for more sophisticated ws sec stuff, pls use Oracle Webservice Manager

  • Designed for IPad also means for IPad mini?

    Hi,
    Looking to get a tablet, and considering the IPad mini. But I notice that it has different screen dimensions than regular IPad/Retina. When I browse some of the apps I want to use, they all say "Designed for IPad". Does that include the IPad mini?
    Thanks.

    Thanks, but just to be 100% sure here, does "they will work" equal "designed for"? What I mean is, I don't want to find black screen edges etc on 50% of the apps just because I got the mini and not the regular IPad. I imagine that would be one of the differences between "they will work" and "designed for"...or am I completely off here?
    I know this might be obvious to most ppl, but this is going to be a gift and I want to get the best...:)

  • Java EE design advice for a re-designed DB app

    I'm currently tasked with rewriting a legacy DB app in Java. The original was written in Delphi. It worked great for a number of years, but the powers that be have recently decided to redesign and rewrite it in Java. Basically I just have the same set of business requirements as the original did.
    Overall, the app is a desktop GUI application that helps track contents of a natural history museum collection. The collection contains a bunch of specimens (dead animals) collected all over the globe at various times over the last 200 years. Multiple users (1 - 10 uesrs) will have to have access to the data at the same time. I also have to provide a nice Swing GUI for it.
    Here's my question: Is this the type of app that lends itself to a Java EE design? I'm imagining using a Java EE app server that connects to the DB. The app server would provide DB access, producing entity beans, as well as managing a number of session beans (EJBs) that implement the business logic (security, user management/session management). I would also have a Swing GUI that would connect to the beans remotely. This sounds like it would help me keep a good disconnect between the UI layer (Swing), the business logic (EJBs), and the data layer (entity beans accessed using the Java Persistance API). Does this sound reasonable? I'm a veteran Swing developer, but not a seasoned Java EE developer/designer.
    Also, if I use this architecture, I can imagine one issue that I might run into (I'm sure there are many others). I can imagine that I would want to retrieve the entity beans (lets say mypackage.MyPersonBean) through some call to an EJB, and then use the bean in some rendered Swing component. What happens when the Swing component needs to access the results of MyPersonBean.getAddresses() if the addresses are lazy loaded?
    As you can probably tell, I really have more than one design question here. Help/comments about any of this is greatly appreciated.

    I was thinking the same thing, but don't have a
    successful experience to validate my gut feelings.
    Here's my only suggestion (which dubwai could
    hopefully confirm or correct): write your entity
    classes/data model classes with no knowledge of
    lazy-loading etc. Then subclass them, overriding
    just the getChildren() type of methods and build the
    lazy-loading knowledge into the subclass.More or less, yes. Don't over-think it, though. If you define your basic data 'types' as interfaces, you don't need to get into complex type hierarchies or multiple versions of the types unless that becomes necessary and if it does, the changes should not affect the presentation layer.
    Since you are on-board with this and I think you are completely following, there is a technique for the lazy loading that you can use here.
    In the case where it's a one-to-one relationship, you can do the lazy-loading by creating a simple wrapper class for the child object. This class will have a reference to either null or a filled in Object. This is a little more OO because the Object is taking care of itself. Whether this abstraction is useful to you, you will have to decide.
    In the case of a one-to-many relationship, you can create a custom Collection (List or Set) that manages the stub loading. If you make a generic abstract version and subclass it for the different child types, you might be able to reuse a lot of the data retrieval code. You can do the same thing with the wrapper too.
    I will caution you to try to keep it as simple as you can without painting yourself into a corner. Only do things that you are going to use now and write things so they can be expanded upon later. Reducing coupling is a core technique for that.
    When the
    GUI asks for an object in the getData() call, hand
    them a subclass object, but don't let them know it.
    In other words, have the method "public DataClass
    getData()" return a SubDataClass object. The caller
    will only know that they received a DataClass
    object, but lazy-loading awareness will be built
    into it. This way, the lazy-loading stuff is
    completely transparent to the caller but you still
    have simple data classes that can be used outside of
    a lazy-loading context.Yes this is the idea, but don't write the other versions until you need them.
    It's also possible to use
    this method if you need to add transparent
    lazy-loading to classes that you aren't the author
    of. (Only classes that have been tagged 'final' or
    have 'final' public methods would be beyond this
    method's reach.)Yes, you can use the wrapper approach above but if the author of that class made a lot of unecessary assumptions you might have trouble.
    This approach allows for some enhancements, too.You
    can create a thread that retrieves the children of
    Foo (e.g. bars) incrementally after the Foo is
    returned to the caller. Often you can load the
    bars
    in the time it takes the user to click around to
    the
    point where they are needed or at least be partly
    done. This will make the app seem very fast to the
    user because they get the Foo very quickly (because
    you didn't load the chidren) and then the bars
    really
    quickly (because you loaded them during user
    'think-time').
    I love this idea. I'm hoping to code this into my
    GUI app soon.I would advise that you get the main lazy-loading working without this (keep in mind when writing the code) and do it once you are sure you will finish on time.

  • Error while using LiveCycle java APIs with Http servlets:"Remote EJBObject lookup failed for ejb/Inv

    Hi all,
    When i try to run more than one servelt of the Quick Start samples that using Livecycle Java APIs and i get an error of "Remote EJBObject lookup failed for ejb/Invocation provider" from any servelt i run.
    I try some Quick samples which is not servelts (java class) and it works fine, which makes me sure that my connection properties is true.
    Environment:
    The LiveCycle is based on "Websphere v6.1", and i use "Eclipse Platform
    Version: 3.4.1".
    i install "tomcat 5.5.17" to test the servelts in developing time through Eclipse.(only for test in developing time not for deploy on )
    The Jars i added in the classpath:
    adobe-forms-client.jar
    adobe-livecycle-client.jar
    adobe-usermanager-client.jar
    adobe-utilities.jar
    ejb.jar
    j2ee.jar
    ecutlis.jar
    com.ibm.ws.admin.client_6.1.0.jar
    com.ibm.ws.webservices.thinclient_6.1.0.jar
    server.jar
    utlis.jar
    wsexception.jar
    My code is :
    Properties ConnectionProps = new Properties();
    ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "iiop://localhost:2809");
    ConnectionProps.setProperty ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_ EJB_PROTOCOL);
    ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE,ServiceClientFa ctoryProperties.DSC_WEBSPHERE_SERVER_TYPE);
    ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "Administrator");
    ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
    ConnectionProps.setProperty("java.naming.factory.initial", "com.ibm.ws.naming.util.WsnInitCtxFactory");
    //Create a ServiceClientFactory object
    ServiceClientFactory myFactory = ServiceClientFactory.createInstance(ConnectionProps);
    //Create a FormsServiceClient object
    FormsServiceClient formsClient = new FormsServiceClient(myFactory);
    //Get Form data to pass to the processFormSubmission method
    Document formData = new Document(req.getInputStream());
    //Set run-time options
    RenderOptionsSpec processSpec = new RenderOptionsSpec();
    processSpec.setLocale("en_US");
    //Invoke the processFormSubmission method
    FormsResult formOut = formsClient.processFormSubmission(formData,"CONTENT_TYPE=application/pdf&CONTENT_TYPE=app lication/vnd.adobe.xdp+xml&CONTENT_TYPE=text/xml", "",processSpec);
    List fileAttachments = formOut.getAttachments();
    Iterator iter = fileAttachments.iterator();
    int i = 0 ;
    while (iter.hasNext()) {
    Document file = (Document)iter.next();
    file.copyToFile(new File("C:\\Adobe\\tempFile"+i+".jp i++;
    short processState = formOut.getAction();
    ...... (To the end of the sample)
    My Error was:
    com.adobe.livecycle.formsservice.exception.ProcessFormSubmissionException: ALC-DSC-031-000: com.adobe.idp.dsc.net.DSCNamingException: Remote EJBObject lookup failed for ejb/Invocation provider
    at com.adobe.livecycle.formsservice.client.FormsServiceClient.processFormSubmission(FormsSer viceClient.java:416)
    at HandleData.doPost(HandleData.java:62)
    at HandleData.doGet(HandleData.java:31)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    a

    I assume here that your application is deployed on a different physical machine of where LCES is deployed and running.
    Do the following test:
    - Say that LCES is deployed on machine1 and your application is deployed on machine2. Ping machine1 from machine2 and note the ip address.
    - Ping machine1 from machine1 and note the ip address.
    The two pings should match.
    - Ping machine2 from machine1 and note the ip address.
    - Ping machine2 from machine2 and note the ip address.
    The two pings should match.
    Usually this kind of error would happen if your servers have internal and external ip addresses.

  • How to create two level dynamic list using JSP , Java Script and Oracle

    I am new in JSP. And i am facing problem in creating two level dynamic list using JSP ,Java Script where the listdata will come from Oracle 10g express edition database. Is there any easy way in JSP that is available on in ASP.NET.
    Plz response with details.

    1) Learn JDBC API [http://java.sun.com/docs/books/tutorial/jdbc/index.html].
    2) Create DAO class which contains JDBC code and do all SQL queries and returns or takes ID's or DTO objects.
    3) Learn Servlet API [http://java.sun.com/javaee/5/docs/tutorial/doc/].
    4) Create Servlet class which calls the DAO class, gets the list of DTO's as result, puts it as a request attribute and forwards the request to a JSP page.
    5) Learn JSP and JSTL [http://java.sun.com/javaee/5/docs/tutorial/doc/]. Also learn HTML if you even don't know it.
    6) Create JSP page which uses the JSTL c:forEach tag to access the list of DTO's and iterate over it and prints a HTML list out.
    You don't need Javascript for this.

  • How to Create our own Custom Design for UI Elements in WebDynpro Java

    Hi Experts,
    As of now i am using the Standard design for the  UI Elements in the WebDynpro Java Applications.
    For example:
    header1,header2,monospace etc are available in design for UI Elements.
    Now i want to give my custom design to the UI Elements.
    So how can i create this. and Is it possible to create in NWDS.
    Thank You.
    DS

    Hi DS
    Eclipse Theme Editor for NetWeaver 2004
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a026b4ce-de48-2a10-7285-fb457ee6c7ed
    Eclipse Theme Editor for NetWeaver 7.0
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/136dd890-0201-0010-1b9d-bd09a0d3b1d8
    Hope this will be use ful for u
    Regards
    sriram

  • How does the Java Card simulator work? (Using NetBeans)

    Hi,
    I'm using NetBeans and am trying to simulate:
    Someone powering up the card, saving a value, and powering down... And then they power it up again, get the value, and power down.
    When I edit my APDU script to do the second part, the value I entered the first time is never stored, which probably means that when I 'run' my code, my application is loaded and everything is initialized again.
    How do I edit NetBeans to not install the application every time I hit 'run'? And not to initialize the values, so that when i power it up again, I can get a value stored in a previous running of a script?
    When I use powerup, powerdown and then powerup again, NetBeans doesn't powerup the simulator the second time. So understanding the Java Card Simulator would also help... where it is, how it runs, what options it runs with, etc.

    Hi Shane,
    I have not read anywhere else that the JC3 cards are not available, thank you so much for that tip! I am not doing it for research, but I am working on this alone and will have to deploy a card later on. I will be getting all the right versions now.
    I'll ask the question then, using just the JCDK:
    If I want to save a value on the card, and then need it at a later time, how do I go about it. Do I do the following?
    (1) Install the application on the card. (I know how to do this)
    (2) Run the simulator using -o "eeprom data filename"
    (3) Save the value using the APDU calls and Java code on the card + close connection.
    Code:
    public class MyApp extends Applet {
        private static byte[] data = {0x00, 0x00, 0x00};
        // Install method, method to register, process method that can call saveData or recallData, etc
        public static void saveData()
           // code to change data
           data = {0x01, 0x01, 0x01};
        public static byte[] recallData()
           // code to return data
           return data;
    }(4) Run the simulator using -i "eeprom data filename". get the value using recallData().
    Will selecting the app not make data initialize to {0x00, 0x00, 0x00} again?
    If I know this is the correct way of going about it, then I can work towards it getting done.
    From other examples I can see that this is probably the way it should work, but my data array always returns as {0x00, 0x00, 0x00}.

  • Generate ws client for horde rpc using netbeans

    Hallo developers,
    I'd like to access my horde using webservices rcp (http://netvor.sk/horde/rpc.php?wsdl). I am new to ws so i rely on netbeans to generate client for me. Unfortunately it failed :-(
    Among other, wsdl describes messages of type xsd:resource and xsd:object (xsd is http://www.w3.org/2001/XMLSchema) like:<message name="mail.getStreamResponse">
    <part name="output" type="xsd:resource" />
    </message>as a result wscompile dies because resource is not defined in XMLSchema dtd. like: invalid entity name: "resource" (in namespace: "http://www.w3.org/2001/XMLSchema")
    I have jdk6 with bundled ws support and nb5.5. with JAX_RCP 1.6 library.
    How do I use these message of (custom?) type? Best using some wsimport/wscompe 'options' or maybe fallback to older java version -- I don't have time to 'play' with this (it's not my primary goal) so writing any code is ... aldo i fear that this is some sort of advanced topic and i'll have to study ws more that i'd like to :-)
    ~~
    Adam

    If this is not an rpc/encoded WSDL, you should try to use JAX-WS as it supports 100% of schema and is much better than JAX-WS. Check out http://jax-ws.dev.java.net for more information on JAX-WS. Best of all, JAX-WS is part of JDK 6.

Maybe you are looking for

  • Huge long time direct path read temp, but pga size is enough, one block p3

    Hi Gurus, Can you please kindly provide some points on my below questions. thanks my env select * from v$version; BANNER Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1

  • Is it possible to burn a playlist to a CD with fade-outs & fade-ins?

    I can burn a playlist to a CD with start time and end time edits and I can regulate the number of seonds between tracks. But when I try to burn a CD that has been set to cross fade, the burn process ignores the fade out and fade in and just burns the

  • Strange album names in Library

    Hi- I was having some issues with my iPhoto Library working with iPhoto Buddy (gave up on that for now anyway) and looked at my Pictures--->iPhoto Library--->Albums and noticed 3 odd names (they show as just Documents- is that correct?): Pending Rota

  • Mouse Zoom

    Not crazy about the mouse wheel now zooming the sequence view if I put the pointer over the horizontal scroll bar.  The sequence scrolls pretty slow with the mouse anywhere else.  In previous versions, putting the pointer over the horizontal scroll b

  • Adobe Reader update stuck on my iPad

    Could you tell me how to fix a problem with the adobe reader app on my iPad? It seems to have got stuck in update mode and is constantly showing the waiting text under the app and won't open. I can open the reader if I go to my purchased apps and use