Caused by: javax.el.ELException: /personaForm.xhtml @34,141
value="#{personaForm.persona.comuna['comNombre']}":
java.lang.NullPointerException
        at 
com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:65)


Caused by: java.lang.NullPointerException
        at cl.lejadesh.app.model.Persona.getComuna(Persona.java:39)


2009/5/3 Michael Horwitz <mike.horw...@gmail.com>

> Perhaps if you could post details of the errors you are getting we may be
> able to help?
>
> Mike
>
> 2009/5/3 Leonardo Castaño <leonardo.cast...@gmail.com>
>
> Hi AppFuseFans ...
>>
>> Please, if some one have this working fine, send me POJO, actions and
>> htmlxs.
>> I am triying to make a CRUD using GenericDao with two tables
>> master/details related
>> but I have erros when I am going to save the maped Entity.
>> With entity owner no have problems to save and display data
>> I am using the AppFuse 2.0.1
>> The comand I am using is
>>
>> *mvn appfuse:gen-model
>> mvn appfuse:gen -Dentity=Persona
>> mvn appfuse:gen -Dentity=Comuna*
>>
>> The tables in mysql are
>> *DROP TABLE IF EXISTS persona;
>> DROP TABLE IF EXISTS comuna;
>>
>> CREATE TABLE comuna (
>>        comid BIGINT NOT NULL AUTO_INCREMENT
>>      , com_nombre VARCHAR(20)
>>      , PRIMARY KEY (comid)
>> );
>>
>> CREATE TABLE persona (
>>        perid BIGINT NOT NULL AUTO_INCREMENT
>>      , per_nombre VARCHAR(50)
>>      , comid BIGINT NOT NULL
>>      , PRIMARY KEY (perid)
>>      , INDEX (comid)
>>      , CONSTRAINT FK_persona_1 FOREIGN KEY (comid)
>>                   REFERENCES comuna (comid)
>> );*
>>
>>
>>
>> --
>> Leonardo Castaño D.
>>
>>
>


-- 
Leonardo Castaño D.

Reply via email to