History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: BPM-280
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Wouter Zoons
Reporter: Stefan Bachert
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
Bpm4Struts Cartridge

multiple lists on controller will fail

Created: 08/Mar/06 03:32 PM   Updated: 12/Mar/06 07:36 PM
Component/s: None
Affects Version/s: 3.1
Fix Version/s: None

File Attachments: 1. Text File abcModel.xmi (195 kb)

Environment: Windows


 Description   
using multiple lists on a controller will fail.
androMDA "forget" to output the second dummy list
Send me a email when you want my .xmi file

----------------------------------------------------


// license-header java merge-point
package abc.web;

import org.apache.struts.action.ActionMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @see abc.web.Controller
 */
public class ControllerImpl extends Controller
{
    /**
     * @see abc.web.Controller#loadA(org.apache.struts.action.ActionMapping, abc.web.LoadAForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    public final void loadA(ActionMapping mapping, abc.web.LoadAForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        // populating the table with a dummy list
        form.setListA(listADummyList);
    }

    /**
     * @see abc.web.Controller#loadB(org.apache.struts.action.ActionMapping, abc.web.LoadBForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    public final void loadB(ActionMapping mapping, abc.web.LoadBForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        // populating the table with a dummy list
        form.setListB(listBDummyList);
    }

    /**
     * This dummy variable is used to populate the "listB" table.
     * You may delete it when you add you own code in this controller.
     */
    private static final abc.vb[] listBDummyList =
        new abc.vb[]
        {
            new abc.vb(null, "bubu-1"),
            new abc.vb(null, "bubu-2"),
            new abc.vb(null, "bubu-3"),
            new abc.vb(null, "bubu-4"),
            new abc.vb(null, "bubu-5")
        };
}

 All   Comments   Change History      Sort Order:
Comment by Stefan Bachert [08/Mar/06 03:33 PM]
xmi-file (found way to upload files)

Comment by Wouter Zoons [11/Mar/06 11:53 PM]
is the problem only with the generation of the dummy list in the controller implementation ?

Comment by Stefan Bachert [12/Mar/06 07:36 PM]
Yes. It just do not compile after a "nuke"

You may argue that controller implementation will be overridden by the user anyway. That is right on the long term. But during an initial phase of modelling it is very likely to throw any "impl" (using nuke). It is extremely annoying to apply hands on that "impl" in order to compile