struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4913) when using an custom array as a filed in struts 2 action form textfiled data from jsp page in not populating into custom array but populating in String array or array list
Date Thu, 01 Feb 2018 06:35:00 GMT

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

Lukasz Lenart updated WW-4913:
------------------------------
    Description: 
1> action form MembersPersonalDetailsForm.java

{code:java}
public class MembersPersonalDetailsForm extends QAValidatorForm {
    private ValueHolder[] forename = new ValueHolder[17];
}
{code}

2> ValueHolder.java

{code:java}
public class ValueHolder implements Serializable {

private static final long serialVersionUID = 7813961312803493438L;

private Object value = ""; //$NON-NLS-1$

public ValueHolder() {
 super();
 }
 
 public ValueHolder(Object val) {
 this();
 this.value = val;
 }

public Object getValue() {
 return value;
 }
 
 public void setValue(Object value) {
 this.value = value;
 }

}
{code}

 

 

  was:
1> action form MembersPersonalDetailsForm.java

public class MembersPersonalDetailsForm extends QAValidatorForm {
private ValueHolder[] forename = new ValueHolder[17];

}

2> ValueHolder.java

public class ValueHolder implements Serializable {

private static final long serialVersionUID = 7813961312803493438L;

private Object value = ""; //$NON-NLS-1$

public ValueHolder() {
 super();
 }
 
 public ValueHolder(Object val) {
 this();
 this.value = val;
 }

public Object getValue() {
 return value;
 }
 
 public void setValue(Object value) {
 this.value = value;
 }

}

 

 

 

 

 


> when using an custom array as a filed in struts 2 action form textfiled data from jsp
page in not populating into custom array but populating in String array or array list
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-4913
>                 URL: https://issues.apache.org/jira/browse/WW-4913
>             Project: Struts 2
>          Issue Type: Task
>            Reporter: amol
>            Priority: Major
>
> 1> action form MembersPersonalDetailsForm.java
> {code:java}
> public class MembersPersonalDetailsForm extends QAValidatorForm {
>     private ValueHolder[] forename = new ValueHolder[17];
> }
> {code}
> 2> ValueHolder.java
> {code:java}
> public class ValueHolder implements Serializable {
> private static final long serialVersionUID = 7813961312803493438L;
> private Object value = ""; //$NON-NLS-1$
> public ValueHolder() {
>  super();
>  }
>  
>  public ValueHolder(Object val) {
>  this();
>  this.value = val;
>  }
> public Object getValue() {
>  return value;
>  }
>  
>  public void setValue(Object value) {
>  this.value = value;
>  }
> }
> {code}
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message