struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rene Gielen (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (WW-1993) Unable to submit lists without a conversion.properties file
Date Wed, 04 Jul 2007 20:43:27 GMT

     [ https://issues.apache.org/struts/browse/WW-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rene Gielen reassigned WW-1993:
-------------------------------

    Assignee: Rene Gielen

> Unable to submit lists without a conversion.properties file
> -----------------------------------------------------------
>
>                 Key: WW-1993
>                 URL: https://issues.apache.org/struts/browse/WW-1993
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.8
>         Environment: Mac OSX 10.4.9, Java 1.5.0_07-87, Tomcat 5.5.20
>            Reporter: Adam Ruggles
>            Assignee: Rene Gielen
>            Priority: Minor
>
> My Form looks like this:
> <form ...>
> <input type="hidden" name="invoices[0].id" value="24907" />
> <input type="text" name="invoices[0].salesOrder" value="" />
> <input type="hidden" name="invoices[1].id" value="24908" />
> <input type="text" name="invoices[1].salesOrder" value="" />
> <input type="hidden" name="invoices[2].id" value="24909" />
> <input type="text" name="invoices[2].salesOrder" value="" />
> ...
> ...
> </form>
> My Action looks like this
>    /**
>     * A list of Invoices.
>     */
>    private List<Invoice> invoices;
>    /**
>     * Sets invoices.
>     * @param invoices The invoices to set.
>     */
>    public void setInvoices(final List<Invoice> invoices) {
>        this.invoices = invoices;
>    }
> In struts 2.0.6 the form submits and works like expected.  In struts 2.0.8 I get a null
pointer when trying to access invoices in my action (basically it's not coming over).  I've
changed nothing but the struts.
> Adding a conversion.properties file allowed me to submit the form successfully.  According
to the docs and previous versions of struts and webwork the Generics definition of Invoice
should have been sufficient.  Adding the new Element annotation did not solve the issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message