myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrique Arizon Benito (JIRA)" <>
Subject [jira] Created: (MYFACES-1447) @EmbeddedId/@Embeddable PK static inner class bug ?
Date Mon, 09 Oct 2006 15:20:19 GMT
@EmbeddedId/@Embeddable PK static inner class bug ?

                 Key: MYFACES-1447
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.1.4
         Environment: JDK 1.5.06
            Reporter: Enrique Arizon Benito

I'm trying a JSF code similar to:

<li>Number:<h:inputText value="#{}" required="true" id="pk_number"
<li>Alias:<h:inputText value="#{}" required="true" id="pk_alias"

The contract bean looks like:

public class Contract implements Serializable {
    private Contract.PK pk;
    public static class PK implements Serializable {
        private String number;
        private String alias;
        public String getNumber() { return this.number; }
        public void setNumber(String sNumber) {...}
        public String getAlias() { return this.alias; }
        public void setAlias(String sAlias) {...}

 Whatever I input into my form a "conversion error" is returned since getPk() returns null.

 To solve the problem I have to explicetely initialize the pk member:

public class Contract implements Serializable {
    private Contract.PK pk = new Contract.PK();


More info:

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message