Creation of an instance of RSA Private Crt Impl object

Hi All ,
I am working on an application which is very much like any encrypt/decrypt application with a catch. I want the keys to be created by entering the values myself, rather being generated from some KeyGenerator. I have the following data for a RSAPrivateCrtKeyImpl which I want to instantiate :
Private Key : Sun RSA private CRT key, 512 bits
modulus: 8488165656612473152159684465328762428920297535802068975432028793923909863131855105453956484493737442330084255246711361212080279973778420816724767808069361
public exponent: 65537
private exponent: 2726206553642002950696693445087585949407866439280066982984707479489515521141621761005153613083962699481921498761200071300786289908609599907213988624046021
prime p: 112004565237272645835484277373120275368029964898287409686082381221825252449679
prime q: 75784104323167347751668920368065737043883632585998372418275576503314428197759
prime exponent p: 50325746258479448279864893354994472569119403945250306743153758637702186686691
prime exponent q: 32029905330537137271670620035629535230152932526657749326545542114611690291739
crt coefficient: 12533573980352143467405607880922576123531609303505957446435948153235620920292
The problem is that there is no public constructor of RSAPrivateCrtImpl class. So the following code dosen't work :
RSAPrivateCrtKeyImpl priKey = null;
          String modulus = "8488165656612473152159684465328762428920297535802068975432028793923909863131855105453956484493737442330084255246711361212080279973778420816724767808069361",
          publicExponent = "65537",
          privateExponent = "2726206553642002950696693445087585949407866439280066982984707479489515521141621761005153613083962699481921498761200071300786289908609599907213988624046021",
          primeP = "112004565237272645835484277373120275368029964898287409686082381221825252449679",
          primeQ = "75784104323167347751668920368065737043883632585998372418275576503314428197759",
          primeExponentP = "50325746258479448279864893354994472569119403945250306743153758637702186686691",
          primeExponentQ = "32029905330537137271670620035629535230152932526657749326545542114611690291739",
          crtCoefficient = "12533573980352143467405607880922576123531609303505957446435948153235620920292";
          try {
               priKey = new RSAPrivateCrtKeyImpl(new BigInteger(modulus), new BigInteger(publicExponent), new BigInteger(privateExponent), new BigInteger(primeP), new BigInteger(primeQ), new BigInteger(primeExponentP), new BigInteger(primeExponentQ), new BigInteger(crtCoefficient));
          } catch (Exception e) {
               e.printStackTrace();
Could some one please let me know of a way in which I could create the RSAPrivateCrtKeyImpl instance as I intended to in above code ? I am banging my head for two days with no avail.
Thanks

Why don't you just implement the RSAPrivateKey and RSAPublicKey interfaces?

Similar Messages

  • Is the instance fields have private accessibility in String class?

    Is the instance fields have private accessibility in an immutable class, such as the String class?
    also Could any one answer the following question,
    (This is the question I got in written exam for job recruitment)
    "Invoking a method can represent a significant amount of overhead in a program; as such, some compilers will perform an optimization called "method inlining." This optimization will remove a method call by copying the code inside the method into the calling method."
    Referring to the text above, which one of these statements is true?
    Choice 1 The performance benefits should be balanced against the increased chance of a RuntimeException.
    Choice 2 It allows the use of getter and setter methods to execute nearly as fast as direct access to member variables.
    Choice 3 This optimization will only occur if the relevant methods are declared volatile.
    Choice 4 The developer of inlined methods must copy and paste the code that is to be inlined into another method.
    Choice 5 It prevents code from executing in a way that follows object-oriented encapsulation.

    Sarwan_Gres wrote:
    Is the instance fields have private accessibility in an immutable class, such as the String class?Usually, but not always.
    "Invoking a method can represent a significant amount of overhead in a program; as such, some compilers will perform an optimization called "method inlining." This optimization will remove a method call by copying the code inside the method into the calling method."The java compiler does not inline methods so this is not relevant to Java. (The JVM does inline methods) The java compiler does inline constants known at compile time but it is a feature causes more trouble than good IMHO.

  • [svn:bz-trunk] 21285: Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

    Revision: 21285
    Revision: 21285
    Author:   [email protected]
    Date:     2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
    Log Message:
    Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
    Modified Paths:
        blazeds/trunk/apps/ds-console/console/ConsoleManager.as

  • Bulk Creation of target instances & sync

    In looking through the Extensibility doc it looks like emctl (config agent addtarget) would be used to
    do a bulk create of target instances. Is that correct?
    Using an example of a plug-in to monitor an application server domain and creating target instances
    for each server and cluster (in an automated fashion). The plug-in would be installed on one agent.
    Run and OS job/ program which would make a jmx call to find the clusters and servers then run the
    emctl commands to create the target instances.
    Is that how something like this would be done, or am I missing a more straightforward way?
    Now to keep the OEM target instances in sync with the application server domain, I'm thinking I need
    to periodically compare the emctl listtargets info to what is currently in the application domain.
    This question is just related to trying to "import" the tree of managed items (meaning the target
    instances).

    There are 2 utilities you can use to create target instances: emctl and emcli.
    emctl is local to a specific agent and you must be on a particular agent's host to run its emctl
    With emcli you can install the emcli client wherever you want and it will talk to the OMS to do the instance creation. You'll have to specify which agents you want to put the target instances on, but through a single emcli client you could create target instances on every agent in your enterprise.

  • SSDT: Creation of localDB instances from project file - Sql Server Unit testing purposes

    I have a SqlServer Database Project in my solution (VS2013 Professional) which has a corresponding test project with some stored procedure unit tests. Currently I am using a LocalDB and as far as I understand a local database instance is created in C:\Users\[User]\AppData\Local\Microsoft\Microsoft
    SQL Server Local DB\Instances\Projects and the specific .mdf file referenced in the SQL Server Object Explorer is in C:\Users\[User]\AppData\Local\Microsoft\VisualStudio\SSDT\[ProjectName]. The unit tests run fine on my local machine which I have developed
    the project on.
    My issue is we have a box which is configured to check out the project file from our version control, build the project using ms build commands and then run the unit tests using VSTest.Console. Usually with C# Test projects we reference the test project
    dll and the unit tests run fine. I have referenced the dll for the test project with the stored procedure unit tests in. 
    With the Stored Procedure unit tests however we get this exception: 
    Initialization method [project].[spTest].TestInitialize threw exception. System.Data.SqlClient.SqlException: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. The specified LocalDB instance does not exist.
    After some digging I have realised that the localdb instance seems to be created when the project itself is created in VS not when it is built. Specifically when the localdb is first used and if you look into the appData folder of the test machine there
    is no corresponding mdf file for the project.  
    The question is is there a way to set up a localDB instance on the new machine if all you have the project file? The only purpose of the project on the test machine is to run the unit tests, no other development purposes. VS2013 Professional is installed
    on the test machine but a solution only using config file changes or MSBuild/VSTest commands would be preferable.
    I realise you could change the connection string to an actual test database and run the unit tests of that but we quite like the localdb approach for the testing. I also realise that you could potentially transfer the mdf file (haven't tested this solution)
    as well, though I would prefer if there is a solution to my initial question. 
    http://technet.microsoft.com/en-us/library/hh234692.aspx
    http://msdn.microsoft.com/en-us/library/hh309441(v=vs.110).aspx
    I have been reading up on LocalDB and I assume a automatic LocalDB is created when you create a sql server database project (ie on localdb first use). I have tried adding the database creation to the test project config file but do not really know where
    to go from there. The second link does not really specify when the named localdb will be created if you add the config items and I am not even sure if that is an actual solution.  Here's my test project config file for reference
    <configSections>
    <section name="system.data.localdb" type="System.Data.LocalDBConfigurationSection,System.Data,Version=4.0.0.0,Culture=neutral,PublicKeyToken=[PublicKeyToken]"/>
    <section name="SqlUnitTesting_VS2013" type="Microsoft.Data.Tools.Schema.Sql.UnitTesting.Configuration.SqlUnitTestingSection, Microsoft.Data.Tools.Schema.Sql.UnitTesting, Version=12.0.0.0, Culture=neutral, PublicKeyToken=[PublicKeyToken]" />
    </configSections>
    <system.data.localdb>
    <localdbinstances>
    <add name="SimpleUnitTestingDB" version="11.0" />
    </localdbinstances>
    </system.data.localdb>
    <SqlUnitTesting_VS2013>
    <DatabaseDeployment DatabaseProjectFileName="..\..\..\SimpleUnitTestDB\SimpleUnitTestDB.sqlproj"
    Configuration="Release" />
    <DataGeneration ClearDatabase="true" />
    <ExecutionContext Provider="System.Data.SqlClient" ConnectionString="Data Source=(localdb)\Projects;Initial Catalog=SimpleUnitTestDB;Integrated Security=True;Pooling=False;Connect Timeout=30"
    CommandTimeout="30" />
    <PrivilegedContext Provider="System.Data.SqlClient" ConnectionString="Data Source=(localdb)\Projects;Initial Catalog=SimpleUnitTestDB;Integrated Security=True;Pooling=False;Connect Timeout=30"
    CommandTimeout="30" />
    </SqlUnitTesting_VS2013>
    Thanks in advance for any response. Sorry if there is any misunderstanding, while I have been using VS to develop from the start, this is the first time I have used a Sql Server Database Project. 
    Regards,
    Christopher. 

    Yes, you can create a LocalDB instance manually. You use the SqlLocalDb utility, see here:
    http://technet.microsoft.com/en-us/library/hh212961.aspx
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Creation of ASM instance.

    hi all,
    can any one help me out in this regard??
    i have a DB in 10gR1 in normal file system. i want to convert this to ASM instance.
    Is that first i need to create disk groups followed by adding the asm parameters in init.ora file and then bringing it up or what else the sequence????
    can any one give the clear link for creating the disk groups and creation of an asm instance along the asm related init.ora parameters????
    I am glad to have your help in this regard...

    Please look into Oracle Metalink Document I.D. Note:270065.1 (Use Automatic SGA Management).
    Adith

  • Demand Planning:  creation of several Instances or Organizations

    Hello,
    I have to setup and ODP environment for several entities. The data will come from legacy systems (not Oracle Applications) from each entity.
    We will have as many plans as entities. I would like to know if it is better to create only One Instance, and each entity is defined as organization, or if it is better to create one Instance for each entity.
    What are the pros and cons of each method ?
    Thanks in advance.

    ct,
    It is usually about common data and workload.
    If going the Instance per Entity route: each Instance will require a full collection of data (Products, Bill of Materials, Customers, Organisation etc.) to set up the structures that Demand Planning needs. There can be tremendous data management issues with having multiple instances.
    If your multiple entities share common data then it would be easier to manage them as Organisations of one Instance. The maintenance and loading of data would be much easier. The new Demand Plan Scoping functionality will also enable easy Demand Plan creation per Org.
    Making the assumption that your entities don't share common data I would advise doing some analysis to determine how easily they could be merged and what the maintenance effort would be. If the source data is merged then you may get benefit in reduced customisation of hierrachies and data streams.
    Regards
    Simon.

  • Creation of a static class with private methods

    I'm new to java programming and am working on a project where I need to have a static class that does a postage calculation that must contain 2 private methods, one for first class and one for priority mail. I can't seem to figure out how to get the weight into the class to do the calculations or how to call the two private methods so that when one of my other classes calls on this class, it retrieves the correct postage. I've got all my other classes working correct and retrieving the information required. I need to use the weight from another class and return a "double". Help!!!
    Here's my code:
    * <p>Title: Order Control </p>
    * <p>Description: Order Control Calculator using methods and classes</p>
    * <p>Copyright: Copyright (c) 2002</p>
    * <p>Company: Info 250, sec 001, T/TH 0930</p>
    * @author Peggy Blake
    * @version 1.0, 10/29/02
    import javax.swing.*;
    public class ShippingCalculator
    static double firstClass, priorityMail;
    //how do I get my weight from another class into this method to use??? not sure I understand how it works.
    public static double ShippingCalculator(double weight)
    String responseFirstClass;
    double quantity, shippingCost;
    double totalFirstClass, firstClass, priorityMail, totalShipping;
    double priorityMail1 = 3.50d;//prioritymail fee up to 1 pound
    double priorityMail2 = 3.95d;//prioritymail fee up to 2 pounds
    double priorityMail3 = 5.20d;//prioritymail fee up to 3 pounds
    double priorityMail4 = 6.45d;//prioritymail fee up to 4 pounds
    double priorityMail5 = 7.70d;//prioritymail fee up to 5 pounds
    quantity = 0d;//ititialization of quantity
    // weight = 0d;//initialization of weight
    // shippingCost = 0d;
    //calculation of the number of items ordered..each item weights .75 ounces
    quantity = (weight/.75);
    if (quantity <= 30d)
    //add 1 ounce to quantities that weigh less than 30 ounces
    weight = (weight + 1);
    else
    //add 2 ounces to quantities that weigh more than 30 ounces
    weight = (weight + 2);
    if (weight > 80d)
    //message to orderclerk ..order over 5 lbs, cannot process
    JOptionPane.showMessageDialog(null, "Order exceeded 5 lbs, cannot process");
    //exit system, do not process anything else
    System.exit (0);
    else
    if (weight < 14d)
    //send message to customer: ship firstclass or priority, y or n
    responseFirstClass = JOptionPane.showInputDialog(null, "Ship first class? y or n?");
    if (responseFirstClass.equals("y"))
    //compute FirstClass shipping cost
    totalFirstClass = ((weight - 1) * .23d) + .34d;
    firstClass = totalFirstClass;
    else
    //compute PriorityMail cost for orders less than 14 ounces
    priorityMail = (priorityMail1);
    else
    if (weight <=16d)
    //compute totalshipping for orders up to 16 ounces
    priorityMail = (priorityMail1);
    else
    if (weight <=32d)
    //compute totalshipping for orders up to 32 ounces
    priorityMail = (priorityMail2);
    else
    if (weight <=48d)
    //compute totalshipping for orders up to 48 ounces
    priorityMail = (priorityMail3);
    else
    if (weight <= 64d)
    //compute totalshipping for orders up to 64 ounces
    priorityMail = (priorityMail4);
    else
    //compute totalshipping for orders up to 80 ounces
    priorityMail = (priorityMail5);
    priorityMail = 0d;
    firstClass = 0d;
    firstClassMail ();
    priorityMailCost ();
    //I think this is where I should be pulling the two methods below into my code, but can't figure out how to do it.
    shippingCost = priorityMail + firstClass;
    return (shippingCost);
    }//end method calculate shipping
    private static double firstClassMail()//method to get first class ship cost
    return (firstClass);
    }//end method firstclass shipping
    private static double priorityMailCost()//method to get priority mail cost
    return (priorityMail);
    }//end method priorityMail
    }//end class shipping calculator

    public class A {
    public String getXXX () {
    public class B {
    A a = new A();
    public void init () {
    a.getXXX();
    }

  • Creation of relationship instances using Java

    Hi,
    I have the same problem as described in this thread: Creating a Relationship between 2 PublicObjects needs admin privilages
    Because nobody answered the original question, I post mine now:
    I am trying to create a custom relationship between two iFS documents. I follow exactly the procedure described in the developpers guide of Oracle 9iFS (9.0.1). It is nowhere mentioned that administrative rights are needed to instanciate relationships. However this is exacly the compaint iFS is sending back to me: I must switch to administrative mode before creating the relationship between two objects.
    I guess I am not the second people trying to instantiate relationships in iFS. Is it a policy, property or ACL problem ?
    Is there a workaround for this ? Unfortunately, I have no admin session available at the time of the relationships creation.
    Thanks,
    Tristan

    I finally managed to create relationships without switching to administrative mode.
    The clue is in the "<oracle.ifs.beans.PublicObject>.addRelationship" method.
    The code on page 6-52 of the Developer Reference of iFS 9.0.1.1.0 describes how to relate two objects po1 and po2 with a relationship.
    po1 is set as the left object and po2 is set as the right object.
    rdef is an object describing the to be created relationship.
    The last statement is:
    Relationship r =(Relationship) session.createSystemObject(rdef);
    This is what I used in my code and was not working. Now, I am using the method "addRelationship(rdef)" to create relationships (described in the JavaDoc), and that one is working as expected:
    po1.addRelationship(rdef);

  • Creation of test instance

    Hi All,
    I am new to applications so i don't know if i want to create a test instance on windows 2000 for apps 11.5.9 then what should be the steps. I don't have oracle applications installed on my server. Pls tell me what should be the right sequence of actions i should perform.
    Thanks and Regards
    Amit Raghuvanshi

    The following notes/links should be helpful:
    Note: 234782.1 - Oracle Applications 11.5.9 Installation Update Notes for MS Windows
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=234782.1
    Note: 197028.1 - Software Requirements and Tools for Oracle Applications Release 11i on NT/2000
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=197028.1
    Applications 11.5.9 Documentation CD
    http://download.oracle.com/docs/cd/B11454_01/11.5.9/html/homeset.html
    Installing Oracle Applications
    http://download.oracle.com/docs/cd/B11454_01/11.5.9/acrobat/r1159ins.pdf

  • Creation of DR instance problem

    Hi,
    We created our failover (DR) instance by copying the DB and Kernel from production instance. Distaster recovery instance is up, but almost each and every screen is throwing some or other error like LOAD_PROGRAM_CLASS_MISMATCH, LOAD_TYPE_VERSION_MISMATCH, call_function_conflict_leng and so on.. Please help.
    ECC 6.0 / Oralce 10.2.0.4 / NT
    Edited by: Dhimbak on May 14, 2010 9:12 PM

    Raj,
    SICK is clean nad ST11 i can access too. Here is log
    ABAP Program SAPLWB_CUSTOMIZING                      .
    A  Source LWB_CUSTOMIZINGU01                       Line 21.
    A  Error Code TYPELOAD_NEW_VERSION.
    A  Module  $Id: //bas/700_REL/src/krn/runt/abtypload.c#9 $ SAP.
    A  Function ab_CheckTypeloadTimestamp Line 2231.
    A  ** RABAX: level LEV_RX_STDERR completed.
    A  ** RABAX: level LEV_RX_RFC_ERROR entered.
    A  ** RABAX: level LEV_RX_RFC_ERROR completed.
    A  ** RABAX: level LEV_RX_RFC_CLOSE entered.
    A  ** RABAX: level LEV_RX_RFC_CLOSE completed.
    A  ** RABAX: level LEV_RX_IMC_ERROR entered.
    A  ** RABAX: level LEV_RX_IMC_ERROR completed.
    A  ** RABAX: level LEV_RX_DATASET_CLOSE entered.
    A  ** RABAX: level LEV_RX_DATASET_CLOSE completed.
    A  ** RABAX: level LEV_RX_ERROR_SAVE entered.
    A  ** RABAX: level LEV_RX_ERROR_SAVE completed.
    A  ** RABAX: level LEV_RX_ERROR_TPDA entered.
    A  ** RABAX: level LEV_RX_ERROR_TPDA completed.
    A  ** RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
    A  ** RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
    A  ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    A  ** RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    A  ** RABAX: level LEV_RX_END entered.
    A  ** RABAX: level LEV_RX_END completed.
    A  ** RABAX: end no http/smtp
    A  ** RABAX: end RX_GOTO_RABAX
    A  A newer version of data type RSEUMOD was found than one required.
    Thanks

  • Batch file creation for Sap Instance

    Hi Experts,
    We have migrated  some of our Sap Instances from Hyper-v to new Servers... Our Hyper-v System  contains six Instances with 00 Instance numbers. At the time we moved it to the newly installed server the Instance numbers got changed. As we have lot of users present in our system we dont want them to intimate about the changing of instance numbers.
    So could anyone help me how to process further inorder that the newly installed server should work as a hyper v system with that instance numbers. We are thinking to create a batch file, so help me what commands we have to add in that batch file. And also tell me how that batch file runs.
    Note : Db - Ms Sql
    Thanks in Advance,
    Krishna.M

    You cannot have multiple systems on a server with the same system number.
    System number is present in the profile, instance directory and also entries in the services file.
    If you want to change the system number then you need to modify all these with the new system number.
    If the users are connecting to the SAP system with the IP and system number then you need to inform them about the change in the system number and IP
    Regards
    RB

  • Not sure how to add my private .crt to Arch

    To use my network at home to its full extent, I need to install a certificate (.crt) onto my computer. Without it, things like google and facebook won't work. I'm really unsure on how to add the .crt to the system. I've added them to my browser already so that works, but a lot of applications doesn't work either (chat for example). So I need to add it so it applies systemwide, but how do I do that?
    What I've been doing (which isn't working) is:
    Open up the .p12 file
    Import the certificate (.crt)
    Open Nemo in root
    Drag the certificate to /usr/share/ca-certificates
    It should work, right? It isn't though. I've tried rebooting my computer as well, no dice. Using cinnamon by the way.

    What I would like to do is have the user click on an icon on the page to jump to a short demo and return to the main page. I'd like the user to know that they already clicked on that icon and need to click   on the remaining ones. If yo usee the image below there are 5 icons. I have a click box over each one. I want the user to click on them one at a time and then return to this landing page. I need for them to know that they arlready clicked on the item once so they don't have to click twice and view the content over again (unless they want to do that). How can I set that up?

  • Dynamic creation of entity instances

    Hi,
    I create a custom function which dynamic create some entity instances and relationships.
    The base attributes of the entity intstances are filled with values. Running in debug mode
    with screens everything looks ok.
    Unfortunately the rules which operate on the entity instances are not triggered.
    Please help,
    Johan van der Graaf

    Hi Johan,
    as Davin mentioned it is really not advised to use custom functions to try to do this. What is the technical/business driver for doing this via a custom function rather than any of the other options that Davin suggests?
    The rules will be evaluated if there is enough information for it to be evaluated - the problem when you try to mess with the data set outside the inference cycle (which is what you're doing with a custom function to creeate entity instances) is that it doesn't know it knows the infromation - all it knows is the result returned from the custom function.
    At a high level: it's particularly awkward because you are asking it to set values behind the scenes - creating entity instances, properly setting up the relationships between those entity instances and then (I'd imagine) also populating the entity instances with their relevant values. You need to check that you are actually setting up all of those things properly.
    As I suggested before, you can see if it's a problem with the custom function not setting the values correctly or if it's a question of that need to make the engine know that you've added these values by going to the conclusion that you think should be evaulating in the debugger and specifically investigating it (right-click "Investigate") - you'll then be taken to the "decision" tab from where you can see what extra information the conclusion thinks it needs.
    If all of the data needed is actually already known then you'll get a result when you do this. If not then it will tell you what the extra information you need is and you can judge whether that's reasonable or because the custom function isn't actually setting up everything properly.
    If your custom function is setting everything outside the inference cycle then there are techniques you can use (basically relying on the result value for the custom function) to try to get the rule to evaluate, however these makes for some quite complex, non-intuitive rules which are awkard to maintain and the implementation of which often leads to people creating logical loops in their rules. It really would be best to look and see if there are other options availabel to achieve the same functional end.
    Have you investigated using the other options Davin has suggested? If so, we'd really appreciate knowing why you decided they weren't suitable as this will help us move the product forward in the future.
    Cheers,
    Sean.

  • Avoid creation of bean instance multiple times.

    Hi,
    The Managed Bean/ Backing Bean is getting instantiated for each action. How do I avoid this?
    I tried setting the scope of the bean to 'session' or 'application', in the faces_config.xml, but the result is the same.
    Am I missing something here. Each time an action is performed the bean is getting instantiated.
    For Ex:
    I have two ListBoxes: selectManyListbox1 , selectManyListbox2.
    and an OK button.
    The functionality is to move the selectedItems of selectManyListbox1 to selectManyListbox2, when OK btn is clicked.
    I have added valueChangeListener to selectManyListbox1, so that each time the checkbox inside selectManyListbox1 is selected I am capturing the value(selected Item) and assigning it to the global variable of the bean (say: String strSelectedValues - by default it's null). So in valueChangeListener method of the bean this string strSelectedValue is getting initialized with selected values from selectManyListbox1.
    It's all fine till here.
    Now when I click on Ok button, the correponding action method is called, here strSelectedValues is back to null. It means the bean is getting instantiated again.
    How do I retain the value in strSelectedValues , so that I can move it to selectManyListbox2 on 'Ok' btn click.
    Any help on this would be greatly appreciated.
    Regards,

    Hi,
    I have cross checked the same. All declaration looks fine but it's not working.
    This is the declaration in faces-config.xml:
    <managed-bean>
    <managed-bean-name>backingBeanScope.backing_TestList</managed-bean-name>
    <managed-bean-class>com.hfm.view.backing.TestList</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    </faces-config>
    In jspx this is the code for ListBox1 and btn:
    <af:selectManyListbox label="Label 1" autoSubmit="true" valuePassThru="true" valueChangeListener="#{backingBeanScope.backing_TestList.valueChangeListener}"
    binding="#{backingBeanScope.backing_TestList.selectManyListbox1}"
    id="selectManyListbox1">
    <af:selectItem label="test1" value="test1"
    binding="#{backingBeanScope.backing_TestList.selectItem1}"
    id="selectItem1"/>
    <af:selectItem label="test2" value="test2"
    binding="#{backingBeanScope.backing_TestList.selectItem2}"
    id="selectItem2"/>
    <af:selectItem label="test3" value="test3"
    binding="#{backingBeanScope.backing_TestList.selectItem3}"
    id="selectItem3"/>
    </af:selectManyListbox>
    <af:commandButton text="Ok"
    binding="#{backingBeanScope.backing_TestList.commandButton1}"
    id="commandButton1"
    action="#{backingBeanScope.backing_TestList.commandButton1_action}" />
    In the backing bean:
    private String strValue ; -Class level variable
    public void valueChangeListener(ValueChangeEvent event) {
    String colDefs = event.getNewValue().toString();
    System.out.println("colDefs>>"+colDefs);
    strValue = colDefs;
    public String commandButton1_action() {
    System.out.println("***********strValue*************"+strValue);
    return null;
    Here strValue is null.
    Please let me know if I am missing something.
    Regards,

Maybe you are looking for

  • Urgent: Performance problem with where clause using IN and an OR condition

    Select statement is: select fl.feed_line_id from ap_expense_feed_lines_all fl where ((:1 is not null and fl.feed_line_id in (select distinct r2.object_id from xxdl_pcard_wf_routing_lists r2,      per_people_f hr2 where upper(hr2.full_name) like upper

  • What can be done to enable multiple usb  "mouse" buttons  in Solaris 10 ?

    My usb multimedia keyboard is recognized as a "combined" usb device. Two /dev/usb/hidx are created , one with usb keyboard driver attached, the other with the usb mouse driver attached. Events are generated for the scroll wheel on the keyboard, but n

  • Group membership alterations timeout

    Hello, I've imported about 100 security groups with their members from AD to FIM and have altered precedence so that FIM now manages these groups. I want to change the groups to criteria based membership and have successfully done so in a number of c

  • Web service, best practice

    Hi, I would need some oppionions on best practices for a WS interface. Lets say I have a system with 5 different states on an entity, lets say states are A, B, C, D and E. It is not possible to shange from any state to any other state, there are cert

  • Using Capture Now HELP

    I am new to FCE and wish to use capture now to get a whole tape onto the system. I have set the time limit to 60 minutes. Then when I start Capture Now everything runs okay until I get a message stating. "Capture ended due to lack of disk space" on v