[ http://jira.andromda.org/browse/BPM-280?page=all ]
Stefan Bachert updated BPM-280:
-------------------------------
Attachment: abcModel.xmi
> multiple lists on controller will fail
> --------------------------------------
>
> Key: BPM-280
> URL: http://jira.andromda.org/browse/BPM-280
> Project: Bpm4Struts Cartridge
> Type: Bug
> Versions: 3.1
> Environment: Windows
> Reporter: Stefan Bachert
> Assignee: Wouter Zoons
> Attachments: abcModel.xmi
>
> 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")
> };
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642