lapartdombre | Jai un form InvoiceDocumentsForm comportant comme un champ un objet
QueryCriteriaInvoice. cet objet QueryCriteriaInvoice contient un champ TypeDoc que je veux mettre dans un html:text.
Comment atteindre ce champ de mon formulaire? J'ai essayé :
Code :
- <html:text property="query.typeDoc" />
|
Mais il me fait comme erreur :
Code :
- Error 500: ServletException in '/jsp/factures/invoiceSearch.jsp': Invalid argument looking up property query.dateFacturation1 of bean org.apache.struts.taglib.html.BEAN
|
Comment faire?
Code :
- import java.util.ArrayList;
- import java.util.Date;
- import java.util.Iterator;
- import java.util.List;
- import com.total.rm.evie.autonomy.QueryCriteriaInvoice;
- import com.total.rm.evie.mapping.EviTaSubsidiary;
- import com.total.rm.evie.reference.action.Form;
- public class InvoiceDocumentsForm extends Form {
- private String dateFacturation1;
- private String dateFacturation2;
- private String codeClientTotalCard;
- private String codeFilialTotalClient;
- private String typeDoc;
- private String rattCommercial;
- private String idDoc;
- private String natureCarteRoutage;
- private String numPli;
- private String paysDest;
- private String numLot;
- private String reference;
- private String factureElectronique;
- private List listeFiliales;
- private QueryCriteriaInvoice query;
- //donnees pour la presentation
- private String tri;
- private String regroupement;
- private String presentation;
- /**
- * @return
- */
- public QueryCriteriaInvoice getQuery() {
- return query;
- }
- /**
- * @param invoice
- */
- public void setQuery(QueryCriteriaInvoice invoice) {
- query = new QueryCriteriaInvoice(this.dateFacturation1, this.dateFacturation2, this.codeClientTotalCard,
- this.codeFilialTotalClient, this.typeDoc, this.rattCommercial, this.idDoc, this.natureCarteRoutage,
- this.numPli, this.paysDest,this.numLot, this.reference, this.factureElectronique, this.tri);
- }
- }
|
Code :
- public class QueryCriteriaInvoice extends com.total.rm.evie.autonomy.QueryCriteria implements java.io.Serializable {
- (...)
- private String typeDoc;
- (...)
- public QueryCriteriaInvoice(){
- }
- public QueryCriteriaInvoice(String dateFacturation1,
- String dateFacturation2,
- String codeClientTotalCard,
- String codeFilialTotalClient,
- String typeDoc,
- String rattCommercial,
- String idDoc,
- String natureCarteRoutage,
- String numPli,
- String paysDest,
- String numLot,
- String reference,
- String factureElectronique,
- String tri){
- this.dateFacturation1 = dateFacturation1;
- this.dateFacturation2 = dateFacturation2;
- this.codeClientTotalCard = codeClientTotalCard;
- this.codeFilialTotalClient = codeFilialTotalClient;
- this.typeDoc = typeDoc;
- this.rattCommercial = rattCommercial;
- this.idDoc = idDoc;
- this.natureCarteRoutage = natureCarteRoutage;
- this.numPli = numPli;
- this.paysDest = paysDest;
- this.numLot = numLot;
- this.reference = reference;
- this.factureElectronique = factureElectronique;
- this.tri = tri;
- }
- (...)
- /**
- * @return
- */
- public String getTypeDoc() {
- return typeDoc;
- }
- /**
- * @param string
- */
- public void setTypeDoc(String string) {
- typeDoc = string;
- }
- }
|
Message édité par lapartdombre le 30-09-2005 à 16:14:17
|