Howto bind objects to eachother

Hi,
let's say I have two classes, Children and Toys and now I wonder how to bind a toy to a child. A child can have many toys but a toy can only have one owner.
class Children{
String name;
int age;
class Toys{
String name;
String desc;
What I can think of is that either creating an ArrayList or something in the childrens class that stores the toyobjects or maybe a reference to a toyobject with a unique identifier (database thinking) or should i have a attribute in the toys class like an owner or something that binds the toy to a child.
This is pretty simplified but just so I can get a hang of it.

Ok,
so if I understand you right I will add a list to the childclass, and it will be something like this:
class Children{
String name;
int age;
ArrayList <Toys> [] toys;
//store all childobjets
ArrayList <Children> [] childs = new ArrayList<Children>();
public Children(String Name, int Age){
name=Name;
age = Age;
toys = new ArrayList<Toys>();
public addChild(Children child){
childs.add(child);
class Toys{
String name;
String desc;
public Toys(String Name, String Desc){
name=Name;
desc=desc;
and then I create some more methods to set and get and a method to add a toy to the child object.

Similar Messages

  • Reading From Binding Object

    Dear Sir
    We are populateing the Binding object from the backing bean as the following code :
    public String writeToOutput() {
    DCIteratorBinding process = getIterator("processIterator");
    process.getCurrentRow().setAttribute("SimpleElemet", "Simple Element Value");
    executeMethod("ListIteratorCreateInsert");
    DCIteratorBinding itemIterator = null;
    for(int i=0; i<2; i++) {
    executeMethod("itemIteratorCreateInsert");
    itemIterator = getIterator("itemIterator");
    itemIterator.getCurrentRow().setAttribute("ID", String.valueOf(i+1));
    itemIterator.getCurrentRow().setAttribute("Name", "Name Value " + String.valueOf(i+1));
    return null;
    private BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    private void executeMethod(String name) {
    getBindings().getOperationBinding(name).execute();
    and after I wrote on the binding object I want to read the data from it, is there any code that able me to read the data from the bininding object as the above structure.
    processIterator contain :
    - simple field "SimpleElemet".
    - ListIteratorCreateInsert contains :
    - itemIterator conatins :
    - id
    - Name
    Note : i can read from the SimpleElemet but i do not how can i read from the list itemIterator , Please advice.
    Regards
    Mohd.Weshah

    Dear Thanks
    i already used the getAttribute("Name") and it working but my question there is a parent iterator and child iterator and the child iterator contain a complex object my quest is how i can access all the child list iterate attribute.
    Note I can read from the parent but I can get from the child.
    Regards
    Mohd.Weshah

  • ER: restricting auto binded objects types 11g.

    When we want to create an autobind between a backing bean and a JSF web page, bindings code is created for all object on the page. Even panel box, faced etc.
    There is many lines of code on backing bean. We d'ont even use one time for many object type.
    In general we use input text, list item etc. Others are unnecessery.
    In my opinion if there is a configuration which supplies to chose binded item types it will be very good.
    lines of code will be decreased in backing bean and complexy is decreased too.
    For example just input test item can be autobind.
    Thanks.

    Hi,
    When I first started out with this, I thought the autobind function was pretty neat as I thought it would save me time and effort from having to bind objects myself. Boy, was I wrong. Adding/removing anything from the Jspx page while debugging requires a restart. That was enough to stop me from using it further.
    When you create a new JSF Page, click on *"Page Implementation"* and make sure you have the *"Do Not Automatically Expose UI Components in a Managed Bean"* selected. That way, you won't get into the trouble you are in. I agree with Frank that you should only bind components when and if you need to only. If you have already created the page and would like it to stop automatically binding each UI component, follow the steps below:
    1) Open your JSPX page in source code view, remove the commented line below.
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backingBeanYours-->Optionally, you can replace it with the following code to point to your managed bean that handles the user actions.
    <!--oracle-jdev-comment:preferred-managed-bean-name:managedBeanYours-->2) Open faces-config.xml in source code view, and look for your backingBean that is auto Binding each UI component. Within its <managed-bean>...</managed-bean> tags, you will see another oracle-jdev comment like the one below. Remove that as well.
    <!--oracle-jdev-comment:managed-bean-jsp-link:1YourPage.jspx-->JDev should stop autobinding / removing UI components from the backing bean now.
    Regards,
    Chan Kelwin

  • BInd objects on non-local rmiregistry?

    As I understand, every remote object should be registred on his own(local) rmiregistry.
    I use JNDI like this:
    /////////// Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory" );
    env.put(Context.PROVIDER_URL, "rmi://localhost"); Context ctx = new InitialContext(env);
    String rmiurl = "rmi://192.168.0.48/1.IObj";
    Reference ref = new Reference("IObj", new StringRefAddr("URL", rmiurl)); ctx.rebind("JNDI_OBJ", ref); //////////
    and this works out. But only with my local rmiregistry.
    When I change PROVIDER_URL property I catch javax.naming.NoPermissionException. Is it possible to bind my objects on another rmiregistry.
    I will be very appreciated, if you help me. Thank you.

    The problem is the standard RMI initial context factory. With the standard RMI registry you are only allowed to bind to a local RMI registry. However you can use any Naming service to bind your object. This means you can use CAROL, JBossNS, or any other naming service of your liking. You just have to use the appropriate initial context factory in your initial context.
    Cliff

  • Howto determine Object size in memory?

    HI there!
    I know the JVM has a function which prints out a list of all obejcts currently instantiated with the object size and the number how many objects of this type are alive, but I dont know anymore howto enable this feature.
    My Profiler does not show this information :-(
    Any ideas?
    Thanks in advance, lgClemens

    Read in another thread that you coudl do like this:
      public static long calculateMemoryUsage(ObjectFactory factory) {
        System.gc(); System.gc(); System.gc(); System.gc();
        System.gc(); System.gc(); System.gc(); System.gc();
        System.gc(); System.gc(); System.gc(); System.gc();
        System.gc(); System.gc(); System.gc(); System.gc();
        long mem0 = Runtime.getRuntime().totalMemory() -
          Runtime.getRuntime().freeMemory();
        Object handle = factory.makeObject();
        System.gc(); System.gc(); System.gc(); System.gc();
        System.gc(); System.gc(); System.gc(); System.gc();
        System.gc(); System.gc(); System.gc(); System.gc();
        System.gc(); System.gc(); System.gc(); System.gc();
        long mem1 = Runtime.getRuntime().totalMemory() -
          Runtime.getRuntime().freeMemory();
        return mem1 - mem0;
    public interface ObjectFactory {
      public Object makeObject();
    }Gil

  • Problems with binding Object (JNDI/WebSphere)

    Hello.
    I'm trying to bind my objects on WebSphere Application Server 5.0 from stand-alone java application running on remote machine (IBM JRE).
    Java source code on remote JVM:
    Properties props = new Properties();
    props.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    props.put(Context.PROVIDER_URL, corbaloc:iiop:tisproject:2811);
    final InitialContext ctx = new InitialContext(props);
    Object obj = ctx.lookup("");
    ctx.bind("MailService", new MailService());class MailService, of course, implements Serializable
    I also use property file on client side to connect to remote WAS: sas.client.props with following properties:
    com.ibm.CORBA.authenticationTarget=BasicAuth
    com.ibm.CORBA.loginSource=properties
    com.ibm.CORBA.loginUserid=wpsadmin
    com.ibm.CORBA.loginPassword=wpspassword
    I consider, that the problem is a kind of security issue, but i can't find the solution. Please, tell me what should I do.
    I have the following stacktrace:
    12:03:54.967 com.ibm.CORBA.iiop.ClientDelegate@69143a7a invoke:777 P=34108:O=0:CT ORBRas[default] Received SystemException  org.omg.CORBA.NO_PERMISSION:
    Trace from server: 209891810 at host tisproject.tf.local >>
    org.omg.CORBA.NO_PERMISSION: not authorized to perform bind_java_object operation.  vmcid: 0x0  minor code: 0  completed: No
         at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.performAuthorizationCheck(WsnOptimizedNamingImplBase.java:2808)
         at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.bind_java_object(WsnOptimizedNamingImplBase.java:844)
         at com.ibm.WsnOptimizedNaming._NamingContextImplBase._invoke(Unknown Source)
         at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:608)
         at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:461)
         at com.ibm.rmi.iiop.ORB.process(ORB.java:432)
         at com.ibm.CORBA.iiop.ORB.process(ORB.java:1728)
         at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2227)
         at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:65)
         at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    <<  END server: 209891810 at host tisproject.tf.local
      vmcid: 0x0  minor code: 0  completed: No
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:44)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:315)
         at com.ibm.rmi.iiop.ReplyMessage._getSystemException(ReplyMessage.java:199)
         at com.ibm.rmi.iiop.ReplyMessage.getSystemException(ReplyMessage.java:148)
         at com.ibm.rmi.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:207)
         at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:526)
         at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1150)
         at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:748)
         at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1180)
         at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:486)
         at com.ibm.WsnOptimizedNaming._NamingContextStub.bind_java_object(Unknown Source)
         at com.ibm.ws.naming.jndicos.CNContextImpl.cosBindJavaObject(CNContextImpl.java:3229)
         at com.ibm.ws.naming.jndicos.CNContextImpl.doBind(CNContextImpl.java:1929)
         at com.ibm.ws.naming.jndicos.CNContextImpl.bind(CNContextImpl.java:577)
         at com.ibm.ws.naming.util.WsnInitCtx.bind(WsnInitCtx.java:164)
         at javax.naming.InitialContext.bind(InitialContext.java:369)
         at ru.teleform.mail.reporterclient.MailReporterClient2.main(MailReporterClient2.java:34)
    , p1=<null> Server logs:
    [15.08.06 12:03:54:762 MSD]  bcf7d89 RoleBasedAuth E SECJ0306E: No received or invocation credential exist on the thread. The Role based authorization check will not have an accessId of the caller to check. The parameters are: access check method bind_java_object on resource NameServer and module /com/ibm/ws/naming/bootstrap/xml/NameServer.xml. The stack trace is java.lang.Exception: dump thread stack for debugging
         at com.ibm.ws.security.role.RoleBasedAuthorizerImpl.checkAccess(RoleBasedAuthorizerImpl.java:291)
         at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.performAuthorizationCheck(WsnOptimizedNamingImplBase.java:2791)
         at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.bind_java_object(WsnOptimizedNamingImplBase.java:844)
         at com.ibm.WsnOptimizedNaming._NamingContextImplBase._invoke(Unknown Source)
         at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:608)
         at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:461)
         at com.ibm.rmi.iiop.ORB.process(ORB.java:432)
         at com.ibm.CORBA.iiop.ORB.process(ORB.java:1728)
         at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2227)
         at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:65)
         at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    [15.08.06 12:03:54:762 MSD]  bcf7d89 RoleBasedAuth A SECJ0305I: Role based authorization check failed for security name <null>, accessId no_cred_no_access_id while invoking method bind_java_object on resource NameServer and module /com/ibm/ws/naming/bootstrap/xml/NameServer.xml.
    [15.08.06 12:03:54:778 MSD]  bf43d89 RoleBasedAuth E SECJ0306E: No received or invocation credential exist on the thread. The Role based authorization check will not have an accessId of the caller to check. The parameters are: access check method bind_java_object on resource NameServer and module /com/ibm/ws/naming/bootstrap/xml/NameServer.xml. The stack trace is java.lang.Exception: dump thread stack for debugging
         at com.ibm.ws.security.role.RoleBasedAuthorizerImpl.checkAccess(RoleBasedAuthorizerImpl.java:291)
         at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.performAuthorizationCheck(WsnOptimizedNamingImplBase.java:2791)
         at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.bind_java_object(WsnOptimizedNamingImplBase.java:844)
         at com.ibm.WsnOptimizedNaming._NamingContextImplBase._invoke(Unknown Source)
         at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:608)
         at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:461)
         at com.ibm.rmi.iiop.ORB.process(ORB.java:432)
         at com.ibm.CORBA.iiop.ORB.process(ORB.java:1728)
         at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2227)
         at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:65)
         at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))I have no idea, why properties is not passing onto the server.

    Hi, I was wondering if you ever managed to resolve this issue. I am having a similar problem. I'm wanting to store an object in JDNI so that it can be referenced by all the servers in our distributed environmant. It works ok for me in mt developemt environment (RAD 6), but that is only because I have global security turned off, as soon as it's deployed to a server with global security turned on it doesn't work, I have read soo much over the past few days and have found that it is to do with the permissions that are set up in the admin console under Server>Environment>naming there are two roles here one is All_Users and the other is All_Authenticated, by default All_Users has read access only.
    This is as far as I have got at the moment, I am now looking at how to use these roles from my application without expecting the user of the app to log on, I have found some articles about using JAAS to do this, but I haven't found any good explanations about it or any good examples.
    Aside from that is you are just wanting to make your MailService globally available you should look at Dynamic caching, this is a Distributed Map API that will allow you to hold an object in the jndi Tree in a Map using a key, I have gone this route, but am still needing to know how to work with JNDI directly for storing objects.
    This is the code I am using:
    //lookup name given to the distributed map object
    private static final String JNDI_DIST_MAP_LOOKUP = "services/cache/distributedmap";
    private void cacheTree(Collection tree) {
              logger.debug("TreeNodeManager: cacheTree called");
              //TreeNodeManager.tree=tree;
              try {
                   DistributedMap distMap = (DistributedMap) getContext().lookup(
                             JNDI_DIST_MAP_LOOKUP);
                   if (logger.isDebugEnabled()) {
                        logger
                                  .debug("TreeNodeManager: cacheTree: Storing tree in distributedMap '"
                                            + JNDI_DIST_MAP_LOOKUP
                                            + "' using Key:'"
                                            + DIST_MAP_KEY + "'");
                   distMap.put(DIST_MAP_KEY, tree);
              } catch (NamingException e) {
                   logger.error(e);
         }

  • Unable to bind object in JNDI tree.

    While I try to bind a simple object in JNDI tree I get the following error.
    I have not used any cluster .
    Server : Web Logic 8.1 SP 6
    Jdk version 1.4.2 comes along with bea weblogic 8.1 sp 6
    Javax.naming.communicationException[
    Root exception is java.rmi.unmarshalException:
    Error unmarshalling arguments; nested exception is :
    Java.lang.ClassNotFoundException: com.examples.person : This error could indicate that a compound was deployed on a cluster member but not other members of that cluster. Make sure that any component deployed on a server that is part of a cluster is also deployed on a server that is part of a cluster is also deployed on all other member of that cluster.

    Is this somehow being called from the parameterless constructor?
    You sometimes have to wrap bits of code with in designer checks to stop em running.
    In c# that would be:
    if (!DesignerProperties.GetIsInDesignMode(this))
    // do your stuff only at runtime
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • Bind object X but it becomes object Y after!?!?

    Hello All,
    I bound a JMS Connection Factory and Destination into the Sun File System JNDI. When I performed a look up, the objects were there. However, when I retrieved them and casted them back into the original forms I receieved a CastException Error! I checked the object's class it is javax.naming.Reference. That was not what I was biniding into the JNDI. Anyone encountered something like this before?

    Hi,
    the documentation of the FS service provider (jndi-fs.html contained in the fscontext-1_2-beta3.zip you can download from the JNDI home page http://java.sun.com/products/jndi/index.html#DOWNLOAD12) states the following:
    Java objects can be stored in the file system under the following conditions:
    - The initial factory is RefFSContextFactory (not FSContextFactory)
    - The object is of type java.naming.Reference or implements java.naming.Referenceable
    Here is an example of how to store a Referenceable object:
    class MyObject implements Referenceable {
    MyObject obj = new MyObject();
    initCtx.bind("metamorphosis/myBoundObject", obj);To retrieve an object, the object factory listed in the Reference must be made available, for example, in the classpath of the application.
    MyObject obj = initCtx.lookup("metamorphosis/myBoundObject");So you must make your object implementing Referencable, or subclass from Reference.
    I have not worked with that, but IMO this means, that the fscontext will NOT serialize and store an object during binding, but just store a Reference. Later on, you can get back exactly this Reference. If you want to have the underlying object again, then you must use the factory approach, which can be used with a Reference (see the API documentation of Reference).

  • Howto manage object-livecycle in distributed systems?

    Hi there,
    I am currently working on a distributed clients-server system where a GUI resides on the clients whereas the programmer programs to server-side dummies like the GUI would be running local.
    Therefor I map between client-side-Implementation and server-side-dummy using object-IDs:
    client-side-widget-implementation ------ network (only ID is transferred) ------ server-side-dummy-object
    The problem I have is that I would like a system without forcing the programmer to explicitly dispose an object (since both sides don't know wether the object is still visible on the other side). How did RMI solve this issue and are there some clever designs to avoid this problem?
    Thank you in advance, lg Clemens

    There are only three possibilities: dispose/destroy, timeouts or wait for GC.
    And timeouts are probably required regardless.

  • Canvas.addChild() - objects overwritting eachother???

    In Actionscript - I'm trying to us a Canvas object to paste
    multiple objects such as textarea, ColumnChart, Legend, and Labels
    using Canvas.addChild(objectname). I started by adding 2 textarea
    objects and when I send the Canvas to the printer, the 2 textareas
    are overlaying/overwriting each other. How do I add these objects
    and have them appear sequential - one right after the other? What
    am I missing here?
    Here is the current code:
    private function doPrint():void {
    var pj:PrintJob = new PrintJob();
    var pagesToPrint:uint = 0;
    if (pj.start()) {
    var myCanvas:Canvas = new Canvas();
    myCanvas.setStyle('backgroundColor', '#FFFFFF');
    myCanvas.height = 2000;
    myCanvas.percentHeight = 100;
    myCanvas.addChild(myPrintText1);
    myCanvas.addChild(myPrintText2);
    pj.addPage(myCanvas);
    pj.send();
    }

    What are the x and y coords of the myPrintText1 and
    myPrintText2 objects?
    Adding children to a Canvas defaults to 0,0 unless the x / y
    coords are set.

  • Howto bind multicast listener to a specific network interface (NIC)?

    All of our cluster machines have 2 network interfaces. One of the requirements is that all cluster-related traffic has to use a specific interface, leaving the other open for all non-clustering network traffic.
    Thus, I've to bind the Coherence multicast listener to a specific interface.
    Unfortunately I did not find a setting for this in the Coherence configuration XML file.
    Is it possible to bind the multicast listener to a specific NIC, if yes, how can it be done?
    Thanks a lot!
    Best regards,
    Wolf

    Hi Wolf,
    it can be specified as part of the unicast-listener configuration within the operational configuration:
    http://coherence.oracle.com/display/COH34UG/unicast-listener
    You need to specify the address and the port elements.
    Alternatively, you can specify values for this as a Java property:
    -Dtangosol.coherence.localhost=nicaddress -Dtangosol.coherence.localport=unicastportwhere nicaddress is the ip address of the network card going to the network you would like to direct Coherence traffic to. Unicast port is the udp port on which Coherence will listen. By default it is 8088 (or automatically incremente in case the port is already bound).
    If your kernel is configured to use both ipv6 and ipv4 and you specified the ipv4 address of the network card then you might also need to specify:
    -Djava.net.preferIPv4Stack=trueThe multicast listener and publisher will send and receive on the interface used by the unicast listener.
    Best regards,
    Robert

  • Howto remove objects from atlas

    Hello: Still getting my feet wet with ZfS7. I have setup
    three ZfS management servers, one each in our three offices.
    Each server has netexplorer setup to search it's local
    subnet. However, when I first started out I had setup the
    first management server to search all three subnets. This
    has now been fixed.
    However, I now have artifacts from this first setup. This
    is a bit hard for me to describe so be patient. IN C1 there
    is an object called ZfS_Sites. Under it are my three
    service locators, one for each office subnet. Under these
    is Atlas and under that you find the router in each office.
    My problem is the first server I setup search all three
    subnets and now therefore lists all three routers. I really
    only want to show the local router and therefore need to
    remove the other two. I just cannot figure out how to
    remove these extraneous objects.
    Can you help me out?? Chris.

    Chris,
    right-click the object, database editor, delete
    Shaun Pond

  • HOWTO Bind using SASL DIGEST-MD5?

    I haven't been able to bind to an LDAP server using SASL DIGEST-MD5
    using the Novell CSharp library. Can anyone explain how this is done,
    or point me to a code example?
    I can connect, bind, and search this LDAP server using Apache Directory
    Studio, so I know that my credentials are correct.
    Also, I have already used the Novell CSharp library for searching other
    LDAP servers using simple authentication, and SSL, but never SASL
    DIGEST-MD5.
    Thanks in advance for any help.
    danielnapierski
    danielnapierski's Profile: http://forums.novell.com/member.php?userid=63370
    View this thread: http://forums.novell.com/showthread.php?t=414964

    More than fifty people have read this post, but there are no replies as
    of yet. I'm going to interpret that as "SASL DIGEST-MD5 is not
    supported by the Novell CSharp library."
    danielnapierski;1995522 Wrote:
    > I haven't been able to bind to an LDAP server using SASL DIGEST-MD5
    > using the Novell CSharp library. Can anyone explain how this is done,
    > or point me to a code example?
    >
    > I can connect, bind, and search this LDAP server using Apache Directory
    > Studio, so I know that my credentials are correct.
    >
    > Also, I have already used the Novell CSharp library for searching other
    > LDAP servers using simple authentication, and SSL, but never SASL
    > DIGEST-MD5.
    >
    > Thanks in advance for any help.
    danielnapierski
    danielnapierski's Profile: http://forums.novell.com/member.php?userid=63370
    View this thread: http://forums.novell.com/showthread.php?t=414964

  • Task bind object to method

    Hi,experts
       today i create a task for a bor backgroud method, but i forgot binding task container element to method parameter, and i use macro "swc_set_element"  to export value, But it succeeded, could anybody tell me why no bind the value still export to workflow container.
    tks:)

    Hi,
    If the method paramters name and task contianer elements name are same then there is no need to do binding from your task to method and vice versa. You just need to bind task and workflow containers always.
    I think you have binded your task container elements to workflow containers, thats why values are coming in your workflow contianers.
    Share the screenshot of your task to workflow bindings.
    Regards,
    Ibrahim

  • TopLink Article HowTo Manipulate objects using Unit of Work

    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/toplink/unitofwork/readme.html
    My questions are:
    What is the var aSession and where is it declared. Where is this code, on the class created by toplink or the class that is tied to the JSP? How can you click an add button on the jsp and get the data to add to the database?
    It seems all the code and example on this site are missing, is there any reference that should you how to build a JSF app with jdev from start the finish?
    Thanks

    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/toplink/unitofwork/readme.html
    My questions are:
    What is the var aSession and where is it declared. Where is this code, on the class created by toplink or the class that is tied to the JSP? How can you click an add button on the jsp and get the data to add to the database?
    It seems all the code and example on this site are missing, is there any reference that should you how to build a JSF app with jdev from start the finish?
    Thanks

Maybe you are looking for