IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Symfony PHP Discussion :

Item non trouvé et problème d'argument


Sujet :

Symfony PHP

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Février 2006
    Messages
    321
    Détails du profil
    Informations personnelles :
    Localisation : France, Nord (Nord Pas de Calais)

    Informations forums :
    Inscription : Février 2006
    Messages : 321
    Par défaut Item non trouvé et problème d'argument
    1) Sur mon site, j'ai des annonces qui sont liées à une catégorie (cas classique).

    J'essaie d'afficher l'activité pour chaque annonce, dans ma vue (fiche détail de l'annonce), j'ai ma boucle qui fonctionne bien, et lorsque je fais {{evenement.activite.titre}}, j'ai l'erreur suivante :"Item "titre" for "" does not exist in JimmyFrontBundle:Evenement:liste.html.twig at line 74"

    Voici ma boucle :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    {% for evenement in evenements %}
     
    <h3>{{evenement.titre}} à {{evenement.ville}}</h3>
    <p>{{evenement.activite.titre}} à {{evenement.ville}}</p>
     .
    .
    .
     
    {% endfor %}
    Je ne vois pas d'où peut venir le problème d'autant que j'ai déjà fait ça sans soucis ?

    2) Création d'une annonce
    - Dans mon entité 'annonce' j'ai le setter suivant :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    public function setActivite(\Jimmy\FrontBundle\Entity\Activite $activite = null)
        {
            $this->activite = $activite;
     
            return $this;
        }
    - Dans mon controleur, lors de la création de mon annonce, je fais :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
     $entity->setActivite($request->get('activite'));
    J'ai l'erreur suivante :
    Catchable Fatal Error: Argument 1 passed to Jimmy\FrontBundle\Entity\Annonce::setActivite() must be an instance of Jimmy\FrontBundle\Entity\Activite, string given, called in C:\wamp\www\...\FrontBundle\Controller\AnnonceController.php on line 140 and defined in C:\wamp\www\...\FrontBundle\Entity\Annonce.php line 797

    J'ai compris l'erreur, le setter attend une instance de l'entité activite et je lui passe un string, mais je ne vois pas comment résoudre mon problème, j'ai trouvé un début de réponse ici http://www.developpez.net/forums/d12...sed-to-setapp/ mais je n'arrive pas à l'appliquer.

    D'avance merci

  2. #2
    Membre éclairé
    Profil pro
    Inscrit en
    Février 2006
    Messages
    321
    Détails du profil
    Informations personnelles :
    Localisation : France, Nord (Nord Pas de Calais)

    Informations forums :
    Inscription : Février 2006
    Messages : 321
    Par défaut
    Mon 1er problème est résolu. En fait, en mettant juste {{evenement.activite}} , ça fonctionne. Je ne comprend pas pourquoi mais ça fonctionne.

  3. #3
    Membre Expert Avatar de Nico_F
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2011
    Messages
    728
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Avril 2011
    Messages : 728
    Par défaut
    Peux-tu montrer tes entités ?

  4. #4
    Membre éclairé
    Profil pro
    Inscrit en
    Février 2006
    Messages
    321
    Détails du profil
    Informations personnelles :
    Localisation : France, Nord (Nord Pas de Calais)

    Informations forums :
    Inscription : Février 2006
    Messages : 321
    Par défaut
    Voici mon entité annonce :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
     
    <?php
     
    namespace Jimmy\FrontBundle\Entity;
     
    use Doctrine\ORM\Mapping as ORM;
     
    /**
     * Annonce
     *
     * @ORM\Table(name="annonce")
     * @ORM\Entity(repositoryClass="Jimmy\FrontBundle\Entity\AnnonceRepository")
     */
    class Annonce
    {
        /**
         * @var integer
         *
         * @ORM\Column(name="id", type="integer")
         * @ORM\Id
         * @ORM\GeneratedValue(strategy="AUTO")
         */
        private $id;
     
        /**
         * @var string
         *
         * @ORM\Column(name="titre", type="string", length=255)
         */
        private $titre;
     
        /**
         * @var string
         *
         * @ORM\Column(name="presentation", type="text")
         */
        private $presentation;
     
        /**
         * @var integer
         *
         * @ORM\Column(name="age_minimum", type="integer")
         */
        private $age_minimum;
     
        /**
         * @var float
         *
         * @ORM\Column(name="prix", type="decimal")
         */
        private $prix;
     
        /**
         * @var string
         *
         * @ORM\Column(name="conditions_particulieres", type="text")
         */
        private $conditions_particulieres;
     
        /**
         * @var integer
         *
         * @ORM\Column(name="departement", type="integer")
         */
        private $departement;
     
        /**
         * @var integer
         *
         * @ORM\Column(name="region", type="integer")
         */
        private $region;
     
        /**
         * @var string
         *
         * @ORM\Column(name="type_annonceur", type="string", length=255)
         */
        private $type_annonceur;
     
        /**
         * @var string
         *
         * @ORM\Column(name="lieu", type="string", length=255)
         */
        private $lieu;
     
        /**
         * @var string
         *
         * @ORM\Column(name="adresse", type="text")
         */
        private $adresse;
     
        /**
         * @var string
         *
         * @ORM\Column(name="ville", type="string", length=255)
         */
        private $ville;
     
        /**
         * @var string
         *
         * @ORM\Column(name="code_postal", type="string", length=5)
         */
        private $code_postal;
     
        /**
         * @var string
         *
         * @ORM\Column(name="pays", type="string", length=50)
         */
        private $pays;
     
        /**
         * @var string
         *
         * @ORM\Column(name="telephone", type="string", length=30)
         */
        private $telephone;
     
        /**
         * @var string
         *
         * @ORM\Column(name="telecopie", type="string", length=30)
         */
        private $telecopie;
     
        /**
         * @var string
         *
         * @ORM\Column(name="email", type="string", length=200)
         */
        private $email;
     
        /**
         * @var string
         *
         * @ORM\Column(name="site", type="string", length=255)
         */
        private $site;
     
        /**
         * @var string
         *
         * @ORM\Column(name="remarque", type="text")
         */
        private $remarque;
     
        /**
         * @var string
         *
         * @ORM\Column(name="masquer_telephone", type="string", length=1)
         */
        private $masquer_telephone;
     
        /**
         * @var string
         *
         * @ORM\Column(name="annonce_validee", type="string", length=1)
         */
        private $annonce_validee;
     
        /**
         * @var \DateTime
         *
         * @ORM\Column(name="date_creation", type="datetime")
         */
        private $date_creation;
     
        /**
         * @var \DateTime
         *
         * @ORM\Column(name="date_debut", type="datetime")
         */
        private $date_debut;
     
        /**
         * @var \DateTime
         *
         * @ORM\Column(name="date_fin", type="datetime")
         */
        private $date_fin;
     
        /**
         * @var integer
         *
         * @ORM\Column(name="capacite_accueil", type="integer")
         */
        private $capacite_accueil;
     
    	/**
         * @ORM\ManyToOne(targetEntity="Comptepro", inversedBy="annonces")
         * @ORM\JoinColumn(name="compte_id", referencedColumnName="id")
         */
        protected $compte;
     
    	 /**
         * @ORM\ManyToOne(targetEntity="Activite", inversedBy="annonces")
         * @ORM\JoinColumn(name="activite_id", referencedColumnName="id")
         */
        protected $activite;
     
     
     
        /**
         * Get id
         *
         * @return integer 
         */
        public function getId()
        {
            return $this->id;
        }
     
        /**
         * Set titre
         *
         * @param string $titre
         * @return Annonce
         */
        public function setTitre($titre)
        {
            $this->titre = $titre;
     
            return $this;
        }
     
        /**
         * Get titre
         *
         * @return string 
         */
        public function getTitre()
        {
            return $this->titre;
        }
     
        /**
         * Set presentation
         *
         * @param string $presentation
         * @return Annonce
         */
        public function setPresentation($presentation)
        {
            $this->presentation = $presentation;
     
            return $this;
        }
     
        /**
         * Get presentation
         *
         * @return string 
         */
        public function getPresentation()
        {
            return $this->presentation;
        }
     
        /**
         * Set age_minimum
         *
         * @param integer $ageMinimum
         * @return Annonce
         */
        public function setAgeMinimum($ageMinimum)
        {
            $this->age_minimum = $ageMinimum;
     
            return $this;
        }
     
        /**
         * Get age_minimum
         *
         * @return integer 
         */
        public function getAgeMinimum()
        {
            return $this->age_minimum;
        }
     
        /**
         * Set prix
         *
         * @param float $prix
         * @return Annonce
         */
        public function setPrix($prix)
        {
            $this->prix = $prix;
     
            return $this;
        }
     
        /**
         * Get prix
         *
         * @return float 
         */
        public function getPrix()
        {
            return $this->prix;
        }
     
        /**
         * Set conditions_particulieres
         *
         * @param string $conditionsParticulieres
         * @return Annonce
         */
        public function setConditionsParticulieres($conditionsParticulieres)
        {
            $this->conditions_particulieres = $conditionsParticulieres;
     
            return $this;
        }
     
        /**
         * Get conditions_particulieres
         *
         * @return string 
         */
        public function getConditionsParticulieres()
        {
            return $this->conditions_particulieres;
        }
     
        /**
         * Set departement
         *
         * @param integer $departement
         * @return Annonce
         */
        public function setDepartement($departement)
        {
            $this->departement = $departement;
     
            return $this;
        }
     
        /**
         * Get departement
         *
         * @return integer 
         */
        public function getDepartement()
        {
            return $this->departement;
        }
     
        /**
         * Set region
         *
         * @param integer $region
         * @return Annonce
         */
        public function setRegion($region)
        {
            $this->region = $region;
     
            return $this;
        }
     
        /**
         * Get region
         *
         * @return integer 
         */
        public function getRegion()
        {
            return $this->region;
        }
     
        /**
         * Set type_annonceur
         *
         * @param string $typeAnnonceur
         * @return Annonce
         */
        public function setTypeAnnonceur($typeAnnonceur)
        {
            $this->type_annonceur = $typeAnnonceur;
     
            return $this;
        }
     
        /**
         * Get type_annonceur
         *
         * @return string 
         */
        public function getTypeAnnonceur()
        {
            return $this->type_annonceur;
        }
     
        /**
         * Set lieu
         *
         * @param string $lieu
         * @return Annonce
         */
        public function setLieu($lieu)
        {
            $this->lieu = $lieu;
     
            return $this;
        }
     
        /**
         * Get lieu
         *
         * @return string 
         */
        public function getLieu()
        {
            return $this->lieu;
        }
     
        /**
         * Set adresse
         *
         * @param string $adresse
         * @return Annonce
         */
        public function setAdresse($adresse)
        {
            $this->adresse = $adresse;
     
            return $this;
        }
     
        /**
         * Get adresse
         *
         * @return string 
         */
        public function getAdresse()
        {
            return $this->adresse;
        }
     
        /**
         * Set ville
         *
         * @param string $ville
         * @return Annonce
         */
        public function setVille($ville)
        {
            $this->ville = $ville;
     
            return $this;
        }
     
        /**
         * Get ville
         *
         * @return string 
         */
        public function getVille()
        {
            return $this->ville;
        }
     
        /**
         * Set code_postal
         *
         * @param string $codePostal
         * @return Annonce
         */
        public function setCodePostal($codePostal)
        {
            $this->code_postal = $codePostal;
     
            return $this;
        }
     
        /**
         * Get code_postal
         *
         * @return string 
         */
        public function getCodePostal()
        {
            return $this->code_postal;
        }
     
        /**
         * Set pays
         *
         * @param string $pays
         * @return Annonce
         */
        public function setPays($pays)
        {
            $this->pays = $pays;
     
            return $this;
        }
     
        /**
         * Get pays
         *
         * @return string 
         */
        public function getPays()
        {
            return $this->pays;
        }
     
        /**
         * Set telephone
         *
         * @param string $telephone
         * @return Annonce
         */
        public function setTelephone($telephone)
        {
            $this->telephone = $telephone;
     
            return $this;
        }
     
        /**
         * Get telephone
         *
         * @return string 
         */
        public function getTelephone()
        {
            return $this->telephone;
        }
     
        /**
         * Set telecopie
         *
         * @param string $telecopie
         * @return Annonce
         */
        public function setTelecopie($telecopie)
        {
            $this->telecopie = $telecopie;
     
            return $this;
        }
     
        /**
         * Get telecopie
         *
         * @return string 
         */
        public function getTelecopie()
        {
            return $this->telecopie;
        }
     
        /**
         * Set email
         *
         * @param string $email
         * @return Annonce
         */
        public function setEmail($email)
        {
            $this->email = $email;
     
            return $this;
        }
     
        /**
         * Get email
         *
         * @return string 
         */
        public function getEmail()
        {
            return $this->email;
        }
     
        /**
         * Set site
         *
         * @param string $site
         * @return Annonce
         */
        public function setSite($site)
        {
            $this->site = $site;
     
            return $this;
        }
     
        /**
         * Get site
         *
         * @return string 
         */
        public function getSite()
        {
            return $this->site;
        }
     
        /**
         * Set remarque
         *
         * @param string $remarque
         * @return Annonce
         */
        public function setRemarque($remarque)
        {
            $this->remarque = $remarque;
     
            return $this;
        }
     
        /**
         * Get remarque
         *
         * @return string 
         */
        public function getRemarque()
        {
            return $this->remarque;
        }
     
        /**
         * Set masquer_telephone
         *
         * @param string $masquerTelephone
         * @return Annonce
         */
        public function setMasquerTelephone($masquerTelephone)
        {
            $this->masquer_telephone = $masquerTelephone;
     
            return $this;
        }
     
        /**
         * Get masquer_telephone
         *
         * @return string 
         */
        public function getMasquerTelephone()
        {
            return $this->masquer_telephone;
        }
     
        /**
         * Set annonce_validee
         *
         * @param string $annonceValidee
         * @return Annonce
         */
        public function setAnnonceValidee($annonceValidee)
        {
            $this->annonce_validee = $annonceValidee;
     
            return $this;
        }
     
        /**
         * Get annonce_validee
         *
         * @return string 
         */
        public function getAnnonceValidee()
        {
            return $this->annonce_validee;
        }
     
        /**
         * Set date_creation
         *
         * @param \DateTime $dateCreation
         * @return Annonce
         */
        public function setDateCreation($dateCreation)
        {
            $this->date_creation = $dateCreation;
     
            return $this;
        }
     
        /**
         * Get date_creation
         *
         * @return \DateTime 
         */
        public function getDateCreation()
        {
            return $this->date_creation;
        }
     
        /**
         * Set date_debut
         *
         * @param \DateTime $dateDebut
         * @return Annonce
         */
        public function setDateDebut($dateDebut)
        {
            $this->date_debut = $dateDebut;
     
            return $this;
        }
     
        /**
         * Get date_debut
         *
         * @return \DateTime 
         */
        public function getDateDebut()
        {
            return $this->date_debut;
        }
     
        /**
         * Set date_fin
         *
         * @param \DateTime $dateFin
         * @return Annonce
         */
        public function setDateFin($dateFin)
        {
            $this->date_fin = $dateFin;
     
            return $this;
        }
     
        /**
         * Get date_fin
         *
         * @return \DateTime 
         */
        public function getDateFin()
        {
            return $this->date_fin;
        }
     
        /**
         * Set capacite_accueil
         *
         * @param integer $capaciteAccueil
         * @return Annonce
         */
        public function setCapaciteAccueil($capaciteAccueil)
        {
            $this->capacite_accueil = $capaciteAccueil;
     
            return $this;
        }
     
        /**
         * Get capacite_accueil
         *
         * @return integer 
         */
        public function getCapaciteAccueil()
        {
            return $this->capacite_accueil;
        }
     
        /**
         * Set compte
         *
         * @param \Jimmy\FrontBundle\Entity\Comptepro $compte
         * @return Annonce
         */
        public function setCompte(\Jimmy\FrontBundle\Entity\Comptepro $compte = null)
        {
            $this->compte = $compte;
     
            return $this;
        }
     
        /**
         * Get compte
         *
         * @return \Jimmy\FrontBundle\Entity\Comptepro 
         */
        public function getCompte()
        {
            return $this->compte;
        }
     
        /**
         * Set activite
         *
         * @param \Jimmy\FrontBundle\Entity\Activite $activite
         * @return Annonce
         */
        public function setActivite(\Jimmy\FrontBundle\Entity\Activite $activite = null)
        {
            $this->activite = $activite;
     
            return $this;
        }
     
        /**
         * Get activite
         *
         * @return \Jimmy\FrontBundle\Entity\Activite 
         */
        public function getActivite()
        {
            return $this->activite;
        }
    }

  5. #5
    Membre éclairé
    Profil pro
    Inscrit en
    Février 2006
    Messages
    321
    Détails du profil
    Informations personnelles :
    Localisation : France, Nord (Nord Pas de Calais)

    Informations forums :
    Inscription : Février 2006
    Messages : 321
    Par défaut
    Pour mon problème 2, j'ai tenté ceci :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    $entity->setActivite(new \Jimmy\FrontBundle\Entity\Activite($request->get('activite')));
    Mais j'ai l'erreur suivante maintenant :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Catchable Fatal Error: Method Jimmy\FrontBundle\Entity\Activite::__toString() must return a string value in C:\....\vendor\doctrine\orm\lib\Doctrine\ORM\ORMInvalidArgumentException.php line 113

  6. #6
    Membre émérite
    Homme Profil pro
    Technicien maintenance
    Inscrit en
    Août 2011
    Messages
    477
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France

    Informations professionnelles :
    Activité : Technicien maintenance
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Août 2011
    Messages : 477
    Par défaut
    Bonjour,

    En complément, il serait intéressant de voir le formulaire et l'action qui traite le formulaire une fois le valid passé.

    Ce que tu récupère dans la request est une string équivalent à la valeur du champ correspond. Pour créer un objet, il faut hydrater tout l'objet dans son ensemble.

    Je sais si je suis clair ... il est tard

Discussions similaires

  1. Réponses: 9
    Dernier message: 18/02/2008, 20h27
  2. [S2+Tiles2] Problème de définitions non trouvées.
    Par petitpasdelune dans le forum Struts 2
    Réponses: 4
    Dernier message: 26/08/2007, 16h37
  3. [Loader] Problème de classe non trouvée avec LoadFile
    Par Ericx_25 dans le forum Autres composants
    Réponses: 3
    Dernier message: 29/01/2007, 19h01
  4. Problème avec la méthode Buidmenu non trouvée
    Par franckjava dans le forum NetBeans
    Réponses: 2
    Dernier message: 17/01/2007, 00h45
  5. problème de fonction non trouvées
    Par youp_db dans le forum Général JavaScript
    Réponses: 8
    Dernier message: 27/09/2006, 15h01

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo