Bug #1010

Struts-layout - datagrid error [glo marin]

Added by Old User almost 12 years ago. Updated 2 months ago.

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

0%

Category:-
Target version:-

Description

[glo marin]
The action has:

Datagrid datagrid = Datagrid.getInstance();
datagrid.setDataClass(DescriptorBean.class);
datagrid.setData(aList);
datagrid.setDataClass(DescriptorBean.class);
datagrid.setData(aList);

The form is:

private Datagrid datagrid;
public void setDatagrid(Datagrid inDatagrid) {
datagrid = inDatagrid;
}
public Datagrid getDatagrid() {
return datagrid;
}
}

in jsp:
<layout:form action="/SeriesDocumentPrm.do" >
<layout:row>
<layout:datagrid property="datagrid" selectionAllowed="true"
multipleSelectionAllowed="false" model="datagrid" styleClass="list">

&lt;layout:datagridColumn mode="E,I,N"   
title="py.com.sif.sga.reference.descinfo.findId.label"
property="descriptorCode"/>
&lt;layout:datagridColumn mode="E,I,N"  
title="py.com.sif.sga.reference.descname.label" property="descriptorName"/>
&lt;layout:datagridColumn 
title="py.com.sif.sga.document.descriptor.value.label"
property="descriptorValue"/>
&lt;/layout:datagrid&gt;
&lt;/layout:row&gt;
&lt;/layout:form&gt;

My bean class is:
DescriptorBean.class

public class DescriptorBean implements Comparable,Serializable {
private String descriptorCode = null; /*Código del descriptor*/
private String descriptorName = null; /*Nombre del descriptor*/
private String descriptorValue = null; //el valor del descriptor

DescriptorBean(){}
}

THE ERROR IS:

javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:804)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause

java.lang.IllegalArgumentException: No bean specified
org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:751)
org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:937)
org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)

History

Updated by Pierce Warren 3 months ago

There are more issues that you guys need to solve and you can solve them only by using things from essay service. If you can do that, then you will see that nothing in this world will prevent you from doing it.

Updated by Tripp Lennon 3 months ago

This is simply the info I'm discovering almost everywhere. Many thanks for the weblog, I simply sign up your site. This can be a good weblog. inch.
Capital Gains Tax Advice Crawley Accountants

Updated by Emma Watson 2 months ago

The description gives us more details about it and even new people know about it if read it. The https://hiscopes.com/ more explore it with reviews.

Also available in: Atom PDF