Updating JavaBean model to reflect changes in classes

I have a Model that was created from a bean using the JavaBean Model import utility. Everything works great...
My question is how do I update this model as I add beans to the jar file? Do I have to delete and recreate the model again each time?

Hi Tom,
if you mean reimporting of Java Bean Model,it's available with latest release of J2EE stack.if u are woring on 6.4,u have to delete the existing model and recreate it.
With Regards
Naidu

Similar Messages

  • Add new JavaBean Model

    Hello Everybody,
    In my Web Dynpro project I have imported a JavaBean model (including relations and
    the associated helper classes). Now, I want to create a new JavaBean model in the same project and also use some of the model classes from the previous model to define the
    relations belonging to the new model. I tried importing the new JavaBean model with the
    same helper classes, but that is some how not possible (Error :"Model class already exists") . On the other hand, if I do not include the helper classes, the previously imported
    model class are not available in the new model - so how do I define the relations?
    Thanks for the feedback.

    A.H.,
    This is a limitation of WebDynpro JavaBean model wizard -- you may not use same JavaBean more then in one model.
    The only possible but unsupported workaround is to create your *.wdmodel file manually using text/xml editor, then reload project and get new model. It's better to start with new model without same beans, then copy necessary lines from "old" model.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Update ComboBox model / change items

    Hi, ive hit a wall here can someone give me a leg up?
    I have two JComboBoxes
    I want selections in the first to change the items in the second.
    i.e
    I want to register the firsts ItemListener to change the seconds ComboBoxModel
    im trying to use
    myCombo2.setModel( X )
    is there anyway to convert an String[] to a ComboBoxModel so i can fit it in X?
    I origionally drew my ComboBoxes by passing String[] arrays to the constructors.
    If i make a new ComboBox when the items change i have to re add it to the panel and draw the whole frame again, is that right?
    thanks all
    :)

    Thanks for the guidance!
    It seems understanding the API docs is really usefull... DUH
    well im getting better
    in the end i solved this by
    class whatever(){
    private DefaultComboBoxModel model;
    private void createProdTypeCombo()
    model = new DefaultComboBoxModel();
    prodTypeCombo.setModel(model);
    private void createProductCombo()
    productCombo = new JComboBox((events.doQuery(
         "SELECT item FROM Products Group By item ", 1)).toArray(new String[0]));
    productCombo.addActionListener(
    new ActionListener()
    @Override
         public void actionPerformed(ActionEvent e) {
         //updates the model for the second combo box
         prodTypeCombo.removeAllItems();
         ArrayList<String> results = new ArrayList<String>();
         String selectedItem = (String)productCombo.getSelectedItem();
         results = events.doQuery("SELECT type FROM Products where " +
              "item= '" + selectedItem + "' group by type", 1);
         Object[] resultsOK = results.toArray();
         or (int i=0; i<results.size(); i++ )
              model.addElement(resultsOK);
    Thanks all!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Is there a way to update the itunes match to reflect changes that i have made on my computer

    Every time i update itunes match it looses my alterations to my playlists and undoes any alterations to any albums i have made. Is there a way to update the itunes match to reflect changes that i have made on my computer?(Only copies new playlists and reverts old playlists to the way they were the first time I uploaded them) Any star ratings for albums are lost too if I put a star rating on them AFTER I first upload them to ITunes match.
    Any help would be greatly appreciated and Merry Christmas you guys!
    Mark O'Flaherty

    HI
    You don't need to select update iTunes match. It does not do what you expect!! You only need to make the changes and they will filter through to match naturally.
    jim

  • Import JavaBean Model - Invalid class

    Hi,
    I wanted to import a JavaBean Model as described in the Tutorial "Using EJBs in Web Dynpro Applications" (see: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c).
    Problem: i always get an error "Invalid class - JavaBean not available for import", when i want to select a local jar file as JavaBean source, althrough the jar-file contains a valid bean.
    Note:I also dont have a radio button in my GUI for selecting "Deploy time" as mentioned in the Tutorial and as i have seen in a screenshot in the Blog /people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes . in this Blog there is already a question about this, but this question has never been aswered...

    Wolfgang,
    See my tips on troubleshooting JavaBean Model Import: /people/valery.silaev/blog/2005/08/30/javabean-model-import-when-it-really-works
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • JavaBean Model classes not seen in public part

    Hi everybody
    I have several plain java bean classes from which I created java bean model classes under the same model CnfMdl.
    I have added to public part both the model and the plain .java classes.
    Unfortunately from outside the DC, upon declaring model usage and when trying to edit model binding for a model node, I can only see my CnfMdl model but no model classes below.
    Can anyone please help?
    Thanks in advance, Vincenzo

    Hi
    Use these links
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/d7/3e07419a60ef6fe10000000a1550b0/frameset.htm
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/c5/a9592b4405c140b86f5a2e7aecc0ae/frameset.htm
    Regards
    Anup

  • How to add field length constraints when using an existing JavaBean model

    Within our current project we used a O/R mapping tool to generate our JavaBean model. For e.g.
    <b>public class Person{
      private String name; ...getName() ...setName(...)
    }</b>
    The whole model is used within our Web Dynpro project. Now it's a requirement to implement field length constraints. Normally this is no problem using ISimpleType like the following:
    <b>attributeInfo = wdContext.nodePerson().getNodeInfo().getAttribute
    (IPrivate...IPersonElement.NAME);
    ISimpleTypeModifiable type = attributeInfo.getModifiableSimpleType();
    type.setLength(60);</b>
    But we've got an runtime exception that it is not allowed to modify the models datatype:
    com.sap.tc.webdynpro.progmodel.context.ContextException: AttributeInfo
    <b>(Basics.Person.name): must not modify the datatype of a mapped attribute</b>
        at
    com.sap.tc.webdynpro.progmodel.context.AttributeInfo.getModifiableSimpleType
    (AttributeInfo.java:337)
    The question is how could a workaround look like. Or is there nothing like that and we have to build a dictionary type tier upon our JavaBean model. Any ideas ?
    thx,
    s.w.

    Sabine,
    You may:
    1. Import JavaBeans model
    2. Create DDIC type with necessary constarints (string-based, max. length 60)
    3. Open editor for target model class and change type of property.
    See my blog /people/valery.silaev/blog/2005/06/29/apojo--almostplain-old-java-objects-as-model (section "Tweaking model classes") for details.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • HT5621 I bought my iMac from someone. Everything was changed over to my name however when I try to update programs it only shows the old users apple ID and I can't update. How do I change this so I can update the applications and have everything fully und

    I bought my iMac from someone. Everything was changed over to my name however when I try to update programs it only shows the old users apple ID and I can't update. How do I change this so I can update the applications and have everything fully under me?

    The first thing to do with a second-hand computer is to erase the internal drive and install a clean copy of OS X. You — not the previous owner — must do that. How you do it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
    1. You don't own another Mac.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller — not from eBay or anything of the kind. If the machine has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
    If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for some MacBook Air models. For early MBA models, you may need a USB optical drive or Remote Disc. You should have received the media from the previous owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc or a flash drive, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    If the machine shipped with OS X 10.7 or later, you don't need media. It should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    2. You do own another Mac.
    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to create a bootable USB device and boot the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can boot from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
    Once booted in Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
    After partitioning, quit Disk Utility and run the OS X Installer. You will need the Apple ID and password that you used to upgrade. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    Then run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.
    3. Other issues
    If you see a lock screen when trying to boot from installation media or in Recovery mode, then a firmware password was set by the previous owner, or the machine was remotely locked via iCloud. You'll either have to contact the owner or take the machine to an Apple Store or another authorized service provider to be unlocked. You may be asked for proof of ownership.
    If the previous owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Mac App Store Customer Service has sometimes issued redemption codes for these apps to second owners who asked.
    If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.
    When trying to create a new iCloud account, you might get a failure message: "Account limit reached." Apple imposes a limit of three iCloud account setups per device. Erasing the device does not reset the limit. You can still use an account that was created on another device, but you won't be able to create a new one. Contact iCloud Support for more information.

  • Enterprise JavaBean Model context mapping problem with dates from CAF BO

    Hi Experts,
    using CAF BO inside WD Java is a little bit problematic!
    The CAF core Datatype "Date" is exposed as "javax.xml.datatype.XMLGregorianCalendar".
    This datatype is not bindable to context attributes, cause wd is only supporting native java types.
    in this case, a java.sql.date is needed.
    What is the best practise to use JavaBean Models (CAF BOs) with attributes of type "Date"?
    The normal Adaptive RFC Model imports ABAP Dates as java.sql.dates!
    Using CAF external services, all ABAP Dates are exposed also as XMLGregorianCalendar.
    How can i use/bind such models with less programming effort?
    Best wishes,
    Holger

    Hi Roelof,
    CAF automatically decides which datatypes are used. It is not possible to change the used datatype
    for imported external RFCs, so all ABAP Date Attributes will be typed as XMLGregorianCalendar.
    This is different from the Web Dynpro Adaptive RFC Model, where ABAP Date Attributes are
    converted as java.sql.date.
    Best wishes,
    Holger

  • Determining when a JTable's model event is changed

    Hello,
    I have a JTable and I want a class I programmed to register to TableModelEvent events of the table model. The problem is that if the table model is changed, my class will not be registered to the events anymore. Is there a way to get notified whenever the table model is changed so I can register my class to the new model?
    Thanks.

    Swing related questions should be posted in the Swing forum.
    Since you did post the question there, then you should be responding to that posting stating that you have an answer so people, like me, don't waste their time reading a question that has already been answered.

  • Struts2 - ScopedModelDriven - Unable to update the model in session

    Hi,
    I have a problem implementing ScopedModelDriven.
    I Have Model / User Java Bean object in action class.
    I am trying to implement concept of same model object being used for 3 JSP pages with PREVIOUS and NEXT button navigation.Data to be updated in Model object for every page navigation and to be saved in session.
    It is found the latest data is found from value stack when jsp page is navigated to next page, but not updated in Model object either in request or session scope I am sure I have configured necessary interceptors properly.
    This could be easily done in struts1 by setting the Actionform in session scope.Any advice or thought?.
    Struts.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">
    <struts>
    <constant name="struts.enable.DynamicMethodInvocation" value="false" />
    <constant name="struts.devMode" value="false" />
    <package name="myPackage" namespace="/" extends="struts-default">
    <interceptors>
    <interceptor name="myMultipleForm"
    class="com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor">
    <param name="scope">session</param>
    <param name="name">user</param>
    <param name="className">com.ut.p.s2.beans.User</param>
    </interceptor>
    </interceptors>
    <global-results>
    <result name="error">/jsp/Error.jsp</result>
    <result name="invalid.token">/jsp/Error.jsp</result>
    <result name="login">/jsp/login.jsp</result>
    </global-results>
    <global-exception-mappings>
    <exception-mapping
    result="error"
    exception="java.lang.Throwable"/>
    </global-exception-mappings>
    <action name="ShowScopedModel" class="com.ut.p.s2.actions.ServletTestAction" >
    <interceptor-ref name="servletConfig"/
    <interceptor-ref name="app_common"/>
    <result name="model_test_page">/jsp/smodelTest.jsp</result>
    <result>/jsp/smodelTest.jsp</result>
    </action>
    <action name="scopedModelAction_*" class="com.ut.p.s2.actions.ScopedModelDrivenAction" method="{1}">
    <interceptor-ref name="basicStack"/>
    <interceptor-ref name="defaultStack" />
    <interceptor-ref name="prepare"/>
    <interceptor-ref name="debugging"/>
    <interceptor-ref name="scopedModelDriven">
    <param name="scope">session</param>
    <param name="name">user</param>
    <param name="className">com.ut.p.s2.beans.User</param>
    </interceptor-ref>
    <interceptor-ref name="params"/>
    <interceptor-ref name="conversionError"/>
    <interceptor-ref name="workflow"/>
    <result name="input">/jsp/smodelTest.jsp</result>
    <result>/jsp/smodelResult.jsp</result>
    <result name="model_test_page">/jsp/smodelTest.jsp</result>
    <result name="model_test_page2">/jsp/smodelTest2.jsp</result>
    <result name="model_test_page3">/jsp/smodelTest3.jsp</result>
    <result name="model_result_page">/jsp/smodelResult.jsp</result>
    </action>
    </package>
    </struts>
    Action:
    package com.ut.p.s2.actions;
    import java.util.ArrayList;
    import com.ut.p.s2.beans.Books;
    import com.ut.p.s2.beans.Dept;
    import com.ut.p.s2.beans.User;
    import com.opensymphony.xwork2.ActionSupport;
    import com.opensymphony.xwork2.Preparable;
    import com.opensymphony.xwork2.interceptor.ScopedModelDriven;
    public class ScopedModelDrivenAction extends ActionSupport implements ScopedModelDriven,Preparable {
    private User user =null;
    private static final long serialVersionUID = 1271130427666936592L;
    private String scope = null;
    public void prepare() throws Exception {
    user = new User();
    ArrayList arlList=new ArrayList();
    Books b1 = new Books("Java",100);
    Books b2 = new Books("VB",200);
    arlList.add(b1);
    arlList.add(b2);
    Dept dept = new Dept();
    dept.setDeptNo("100");
    dept.setDeptName("Mechanical");
    user.setDept(dept);
    user.setArlList(arlList);
    public String getScopeKey() {
    return scope;
    public void setModel(Object arg0) {
    this.user = (User) arg0;
    public void setScopeKey(String arg0) {
    scope = arg0;
    public Object getModel() {
    return user;
    public User getUser() {
    return user;
    public void setUser(User user) {
    this.user = user;
    public String execute() {
    System.out.println("execute()........."+user);
    return INPUT;
    public String input() throws Exception {
    System.out.println("input()........."+user);
    return SUCCESS;
    public String save() {
    System.out.println("save()........."+user);
    return "model_result_page";
    public String page1() {
    System.out.println("page1()........."+user);
    System.out.println("page1()....scope....."+scope);
    return "model_test_page";
    public String page2() {
    System.out.println("page2()........."+user);
    System.out.println("page2()....scope....."+scope);
    return "model_test_page2";
    public String page3() {
    System.out.println("page3()........."+user);
    System.out.println("page3()....scope....."+scope);
    return "model_test_page3";
    }//end class
    JSP Page:
    <%@ page errorPage="/jsp/Error.jsp" %>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@taglib uri="/struts-tags" prefix="s" %>
    <html>
    <head>
    <s:head theme="simple"/>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>User Details</title>
    </head>
    <body>
    <h2>User Details</h2>
    <hr>
    User Name :<s:property value="name" /><br>
    Age :<s:property value="age" /><br>
    Hobbies :<s:property value="hobby" /><br>
    Country :<s:property value="country" /><br>
    <TABLE border="1">
    <s:iterator value="arlList" status="row">
    <TR>
    <TD><s:textfield name="arlList[%{#row.index}].name" value="%{name}" /></TD>
    <TD> <s:text name="arlList[%{#row.index}].price" /></TD>
    </TR>
    </s:iterator>
    </TABLE>
    <h2>
    User Department :<s:property value="dept" /><br>
    <s:property value="dept.id" />
    <s:property value="dept.name" />
    <jsp:include page="Footer.jsp"/>
    </body>
    </html>

    I am very surprised that you aren't aware of the CODE tags after being registered here for 5 years. Now your whole post with raw and unformatted code is hard to read. Make use of CODE tags to post code. You can use the CODE button in the toolbar of the message editor to get them.
    With regard to your actual problem: as this is a Struts specific issue and you're here at a JSP forum, all I can do is to suggest you to use a forum/mailinglist devoted to Struts if you don't get sufficient support here after a while.

  • How to update Record Model for old Records(Personnel Record) in DPF?

    Hi
    i was able to successfully implement Digital Personnel files and Record Management for my scenario, but now question is:
    i have created a record for personnel using "SE38--> Report (RPASRCREATEDPF)"  or "Tx RPASRCREATEDPF)  after a while i decided to add a node to my record model , how can i update my personnel records to new record model?
    i need to do it for several staff and this is not logical to change record for every individual staff. Also when i deleted a record and recreated it all of old Archived and Processed Document gone.
    Any Idea?
    Regards,
    Ali.

    Hi Pragya
    Thank you for your very helpful answer, i tried that report and it has changed my records but problem is, i am using SAP sample record model , i have changed some Nodes Name and it seem name change has not taken effect in my records, those nodes that i added to my record model is correctly transferred, but some changes has not affected my personnel records.
    Green: Change Affected
    Red: Not Changed
    Regards,

  • Change the class and type in javascript or select statement of region

    Application Express 3.2.0.00.27
    I have a manually created tabular form where I need pk to be updatable or not not updateable depending on whether its a new record or not.
    I am attempting this thru 2 different ways.
    1st:
    using decode in select statement of region:
    SELECT decode(c001,NULL,APEX_ITEM.POPUP_FROM_LOV(15,c001,'AUTH_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f15_' || '#ROWNUM#'),
    apex_item.display_and_save(15,c001,'f15_'|| '#ROWNUM#')) authid,
    apex_item.hidden(16, c002, NULL,'f16_'|| '#ROWNUM#') empid,
    -- apex_item.display_and_save(16,c002,'f16_'|| '#ROWNUM#') empid,
    apex_item.date_popup(17, rownum, c003, 'DD-MON-YYYY',20,2000,NULL,'f17_' || '#ROWNUM#')deldate,
    apex_item.textarea(18,c004,5,40,NULL,'f18_'|| '#ROWNUM#') "Delegation scope",
    apex_item.textarea(19,c005,5,40,NULL,'f19_'|| '#ROWNUM#')"Delegation limits",
    apex_item.select_list_from_lov(20,c006,'YESNO_LOV',NULL,'NO','N','%','f20_'|| '#ROWNUM#')"ORA Signed",
    apex_item.date_popup(21, rownum, c007, 'DD-MON-YYYY', 20,2000,NULL,'f21_' || '#ROWNUM#') "Del expiry",
    apex_item.date_popup(22, rownum, c008, 'DD-MON-YYYY', 20,2000,NULL,'f22_' || '#ROWNUM#') "Date removed",
    apex_item.textarea(23,c009,5,40,NULL,'f23_'|| '#ROWNUM#') "Delegation comments",
    apex_item.POPUP_FROM_LOV(24,c010,'DELEGATION_LOV',NULL,NULL,0,NULL,NULL,NULL,'YES','f24_' || '#ROWNUM#') "Delegator",
    apex_item.display_and_save(25,c011,'f25_'|| '#ROWNUM#') status,
    -- apex_item.display_and_save(26,seq_id,'f26_'|| '#ROWNUM#') seq_id,
    apex_item.hidden(26, seq_id,NULL,'f26_'|| '#ROWNUM#') ||
    apex_item.checkbox(27, seq_id,NULL,NULL,':','f27_'|| '#ROWNUM#') chkbx
    FROM apex_collections
    WHERE collection_name = 'DELEG_COLL'
    AND c011 IN ('O','N','U','D')
    --order by c001However this approach yields this error when I try to pick a value from the lov:
    Error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
    My other approach is to attempt to change the type and class in javascript. I am trying this but I get an error when I attempt to change the class and type like this:
    <script type="text/javascript">
    <!--
    /* Client side validation on the Salary column */
    function changeProp(pCol) {
       var elms = document.getElementsByName(pCol);
       for (i=0; i< elms.length; i++) {
    /*       elms.style.backgroundColor = 'yellow'; */
    if (elms[i].value == null || elms[i].value == '%null%'
    || elms[i].value == '') {
    elms[i].class = 't20data';
    elms[i].type = 'hidden';
    alert('The value is' + elms[i].value);
    //-->
    </script>

    not completely duplicate...here in this thread I am stressing what I am trying to accomplish and asking for help on the javascript side.

  • JavaBean Models, Command Bean and J2EE Design Pattern

    Hello,
    I have read the available "How To", “Using EJBs in Web Dynpro Applications” where the author mentions that one should use a Command Bean (according to J2EE Design Patterns) so that one can invoke business methods in a Session Bean from our Web Dynpro Application. Well, although, I have read some available articles in the internet about J2EE design patterns, I still have some questions about command beans and its usage in Web Dynpro applications.
    I have developed a WD App which uses EJBs to read data from the DB.
    Let's suppose I only have two tables: BOOKS and AUTHORS.
    Let’s also suppose I have to Entity Beans (one for each table) and a Session Bean with two methods: Book[] getAllBooks() and Author[] getAllAuthors();
    I also have a Command Bean which I imported in my WD App.
    My questions are:
    How should I design my Command Bean?
    Can I have only one Command Bean with two methods each calling one of the methods of the Session Bean?
    Or instead should I design two Command Beans, one for each call?
    In the last case do the methods must be named <b>execute</b> or can I name them whatever I want?
    Furthermore, how should I store the data in my command bean? In instance variables?
    If so, can I use array of a class representing a record in the database table (for instance, classes Book and Author) or do I have to store the data in a generic collection (such as ArrayList for instance)?
    I ask this last question because if I try to store the data in an array when I am importing the Command Bean as a JavaBean model I always get an error.
    One last question: Can the Command Bean execute method directly return the data or should I always store the data in an instance variable an then get it using getter methods?
    I know this questions are more about J2EE Design Patterns and JavaBeans specification than they are about Web Dynpro but I also have doubts about the rules that the command bean must obey in order to accomplish a successful JavaBean model import in WD.
    Some guidance or tips would be highly appreciated.
    King Regards

    I have the same problem.
    Does anyone know the solution?
    Thanks
    Davide

  • Using Complex Data Types in Import JavaBean Model

    Hi,
    I have searched and read forums and weblogs related to import javabean model.
    But I am not clear about how to use complex data types like ArrayList, Collection etc in my java bean.
    If I use these complex datatypes in my bean, when creating model in WDF it displays the Complex data elements in Model Relation. I dont know how to use this model relation in my WD project.
    Anyone please explain the<b> step by step solution</b> about using complex data type(used in Bean) in WD Project.
    Thanks,
    Krishna Kumar

    Hi Krishna,
    Valery`s blog contains sample code ( http://www.jroller.com/resources/s/silaev/Employees.zip )
    Another blogs from this area:
    /people/anilkumar.vippagunta2/blog/2005/09/02/java-bean-model-importer-in-web-dynpro
    /people/valery.silaev/blog/2005/08/30/javabean-model-import-when-it-really-works
    And forum topics:
    Import JavaBean Model
    Problem Importing JavaBean Model in NetWeaver Developer Studio
    Issue on "Import JavaBean Model"
    import  JavaBean Model: no executable Methods?
    JavaBeans Model Import
    POLL : JavaBean Model Importer
    JavaBean-Model
    Invalid Class - Javabean not available for import
    WebDynpro Using JavaBean Model ->Please Help
    Best regards, Maksim Rashchynski.

Maybe you are looking for