
|
If you were logged in you would be able to see more operations.
|
|
|
|
| Component/s: |
None
|
| Affects Version/s: |
3.1
|
| Fix Version/s: |
None
|
|
|
File Attachments:
|
1.
abcModel.xmi (195 kb)
|
|
Environment:
|
Windows
|
|
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")
};
}
|
|
xmi-file (found way to upload files)
is the problem only with the generation of the dummy list in the controller implementation ?
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
|
|