0
Error while updating, the value of the field must be the FK code referring to a foreign key, in the form INPUT comes out the value br.com.tkcsapcd.model.bean.Projectionicio@7adacc20, no value="${termoAberturaProject.projectionicio}" must be modified something?
Project code *
<input id="projetoinicio" name="projetoinicio"
style="height: 30px; width: 300px"
Placeholder="" maxlength="150"
value="${termoAberturaProjeto.projetoinicio}" class="input" required="true"
onkeypress="return numbers(event);"></input>
<p class="hint">[Código do Projeto.]</p></td>
</tr>
Like this field : projecting in your bean Managed?
– Marlysson
I’m working with JSP! @Onetoone @Joincolumn(name="projector", nullable = false) Private design design = new Design();
– Josué
Currently you’re showing the full object in the field value, now you need to specify some cmapo of the Projector object to be shown inside.
– Marlysson
Got it! The problem is in specifying this object field in value="${thermoAbertureProject.projectionicio}" the foreign key in JSP. I’ve tried it in a lot of ways and it’s going wrong. You know how?
– Josué
Is this termProject an object? Or an attribute of something that populates jsp.. .
– Marlysson
termoAberturaProject is an Object. When I try to recover the field give this error: Caused by: javax.el.Propertynotfoundexception: Property 'Code' not found on type br.com.tkcsapcd.model.bean.Projectadd
– Josué
It says that your Projective object does not have the Code field. At the time of returning the object you are filling it? What fields does this object have..
– Marlysson
You generated the getters and setters of the 'code' field'?
– Roque Santos