You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Olga <ba...@list.ru> on 2011/09/27 17:10:44 UTC

Value of select type

Hello, i have this problem.

I have object Profile, this object has field 
private GenderEnum gender;

When i need update Profile, i create form:

Update.tml

<tr>
<th>Gender:</th>
<td>
    <t:select t:type="select" t:id="gengerEnum" t:model="gengeres"
t:value="profileDO.genger"/>
</td>
</tr>

Update.java

@Persist
private ProfileDO profileDO;
private GenderEnum gengerEnum;

public SelectModel getGengeres() {
        return new EnumSelectModel(GenderEnum.class, messages);
}

public GenderEnum getGengerEnum() {
         return gengerEnum;
}

public void setGengerEnum(GenderEnum gengerEnum) {
        this.gengerEnum = gengerEnum;
}

Genger can be select o not. The problem is when i try to go to Update page i
have this error:

Exception assembling root component of page Update: Could not convert
'profileDO.genger' into a component parameter binding: Exception generating
conduit for expression 'profileDO.genger': Class
com.htc.identity.domain.model.ProfileDO does not contain a property (or
public field) named 'genger'.


What i do wrong?
Thanks.



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Value-of-select-type-tp4845726p4845726.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Value of select type

Posted by Olaf Tomczak <ol...@gmail.com>.
Isn't this a simple typo?
you have property named 'gender'  not 'genger' in profileDO.

Cheers,
Olaf

2011/9/27 Taha Hafeez Siddiqi <ta...@gmail.com>

> Hi
>
> Two things.
>
> 1) why is there a gengerEnum property in Update.java when it is not in use
> ?
>
> 2)  Is there a setter/getter for genger in ProfileDO ?
>
> regards
> Taha
>
> On Sep 27, 2011, at 8:40 PM, Olga wrote:
>
> > Hello, i have this problem.
> >
> > I have object Profile, this object has field
> > private GenderEnum gender;
> >
> > When i need update Profile, i create form:
> >
> > Update.tml
> >
> > <tr>
> > <th>Gender:</th>
> > <td>
> >    <t:select t:type="select" t:id="gengerEnum" t:model="gengeres"
> > t:value="profileDO.genger"/>
> > </td>
> > </tr>
> >
> > Update.java
> >
> > @Persist
> > private ProfileDO profileDO;
> > private GenderEnum gengerEnum;
> >
> > public SelectModel getGengeres() {
> >        return new EnumSelectModel(GenderEnum.class, messages);
> > }
> >
> > public GenderEnum getGengerEnum() {
> >         return gengerEnum;
> > }
> >
> > public void setGengerEnum(GenderEnum gengerEnum) {
> >        this.gengerEnum = gengerEnum;
> > }
> >
> > Genger can be select o not. The problem is when i try to go to Update
> page i
> > have this error:
> >
> > Exception assembling root component of page Update: Could not convert
> > 'profileDO.genger' into a component parameter binding: Exception
> generating
> > conduit for expression 'profileDO.genger': Class
> > com.htc.identity.domain.model.ProfileDO does not contain a property (or
> > public field) named 'genger'.
> >
> >
> > What i do wrong?
> > Thanks.
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/Value-of-select-type-tp4845726p4845726.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Value of select type

Posted by Taha Hafeez Siddiqi <ta...@gmail.com>.
Hi

Two things.

1) why is there a gengerEnum property in Update.java when it is not in use ?

2)  Is there a setter/getter for genger in ProfileDO ?

regards
Taha

On Sep 27, 2011, at 8:40 PM, Olga wrote:

> Hello, i have this problem.
> 
> I have object Profile, this object has field 
> private GenderEnum gender;
> 
> When i need update Profile, i create form:
> 
> Update.tml
> 
> <tr>
> <th>Gender:</th>
> <td>
>    <t:select t:type="select" t:id="gengerEnum" t:model="gengeres"
> t:value="profileDO.genger"/>
> </td>
> </tr>
> 
> Update.java
> 
> @Persist
> private ProfileDO profileDO;
> private GenderEnum gengerEnum;
> 
> public SelectModel getGengeres() {
>        return new EnumSelectModel(GenderEnum.class, messages);
> }
> 
> public GenderEnum getGengerEnum() {
>         return gengerEnum;
> }
> 
> public void setGengerEnum(GenderEnum gengerEnum) {
>        this.gengerEnum = gengerEnum;
> }
> 
> Genger can be select o not. The problem is when i try to go to Update page i
> have this error:
> 
> Exception assembling root component of page Update: Could not convert
> 'profileDO.genger' into a component parameter binding: Exception generating
> conduit for expression 'profileDO.genger': Class
> com.htc.identity.domain.model.ProfileDO does not contain a property (or
> public field) named 'genger'.
> 
> 
> What i do wrong?
> Thanks.
> 
> 
> 
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Value-of-select-type-tp4845726p4845726.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org