Bug #1004

Datagrid can´t support asigned values from FORM side, when the object is composite with other object. [guillermo]

Added by Old User about 12 years ago. Updated about 1 month ago.

Status:Nouveau Start date:
Priority:Medium Due date:
Assignee:Old User % Done:

0%

Category:-
Target version:-

Description

[guillermo]
example:

BEAN User: name, lastname, 'street'.
BEAN Street: name, number

--------------------------------------
Form:
private Datagrid users;

--------------------------------------
JSP:
.
.
<layout:datagridColumn title="fichaAbmacodigo.userGrid.number" property="street.number" mode="E,E,E" />
.
.

--------------------------------------
generate the exception:
java.lang.IllegalArgumentException: No bean specified
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:751)
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:937)

--------------------------------------
the log:
setProperty(ar.com..forms.FichaForm@f36e59, users.street.number0, [WALL])
15:58:34,542 [resin-tcp-connection-*:8000-7] DEBUG beanutils.BeanUtils - Target bean = null
15:58:34,542 [resin-tcp-connection-*:8000-7] DEBUG beanutils.BeanUtils - Target name = number0

---------------------------------------
The problem, is the null value in the TARGET BEAN.

Please,
HELP!!!

History

Updated by Old User about 12 years ago

[Jean-Noël Ribette]
Hi,

The datagrid don't automatically create "nested" objects.
To make yout code work, please add the following constructor to the User class :

public User {
street = new Street();
}

Best regards,

Jean-Noel

Updated by Old User almost 12 years ago

[Bourogaa Mohamed]
Me too i have the same problem.
and in my user Class i put the constuctor but the problem persist..
it's an handicaped problem
Please Help me..

Updated by Adelia Prohaska about 1 month ago

I was facing the problem of form side submission which was later rectified by an expert when I posted my problem here. My website is https://customessaysreviews.com/essaychief-com-review/ where I was unable to add forms but now everything is fine.

Also available in: Atom PDF