Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1362 connectés 

  FORUM HardWare.fr
  Programmation
  Java

  Displaytag ModeleAttribute

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Displaytag ModeleAttribute

n°1867841
g25453
Posté le 31-03-2009 à 12:31:38  profilanswer
 

Bonjour,  
 
J'afficher des tableau à l'aide de la taglib "displaytag"
J'aimerais savoir comment modifier mon Releve
 
la variable totPrestaHeure sert a faire des sous tableau
mais ca me mets des erreurs lorsque je complete la ligne
 
 
<code>
 <form:input path="prestations[${prestation_rowNum -1}].heure"
</code>
 
 
Erreur : Failed to convert property value of type [java.lang.String[]] to required type [double] for property prestations[0].heure; nested exception is java.lang.NumberFormatException: For input string: "10,0.0"
 
 
<code>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
 
 
 
<form:form action="modifierReleve.html" method="POST" modelAttribute="releve">
 
            <display:table uid="prestation" name="${totPrestaHeure}"
                           class="tableau"
                           decorator="org.displaytag.decorator.TotalTableDecorator">
 
                <display:column title="Groupe" headerClass="" property="typePrestation.groupe.parent.label"
                                media="html"
                                group="1"/>
 
 
                <display:column title="Heure" headerClass="" media="html" total="true" property="heure">
                    <form:hidden path="prestations[${prestation_rowNum -1}].id"/>
                    <form:hidden path="prestations[${prestation_rowNum -1}].jour"/>
                    <form:hidden path="prestations[${prestation_rowNum -1}].typePrestation"/>
                    <form:hidden path="prestations[${prestation_rowNum -1}].releve"/>
 
 
                    <form:input path="prestations[${prestation_rowNum -1}].heure"
                                        cssStyle="width: 3em;"/>
                </display:column>
            </display:table>
 
</code>
 
 
Est- ce quelqu'un pourrais m'aider?
 
Merci

mood
Publicité
Posté le 31-03-2009 à 12:31:38  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Java

  Displaytag ModeleAttribute

 

Sujets relatifs
Plus de sujets relatifs à : Displaytag ModeleAttribute


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR