You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Anton Marchenkov <ma...@handybank.ru> on 2009/05/07 07:40:22 UTC
Problem using BeanEditForm: empty form
Hi!
I have the a TariffData.java object that I'm trying to use the BeanEditForm
component with. Tapestry does not return any errors, but the form is
empty: only Create/Update button, no edit fields, no labels...
In doing so, the logs shows that the Tapestry is requesting and
receiving data:
[ENTER] getTariffData()
[ EXIT] getTariffData [TarifDataImpl{id=1, fix=2, coeff=2,000000,
min=15, max=300}]
My template is as follows:
<t:beaneditform t:id="systemTariffEditor"
t:object="tariffData"
exclude="id">
</t:beaneditform>
My TariffData.java interface looks as follows:
public interface TariffData {
Integer getId();
Long getFix();
Double getCoeff();
Long getMin();
Long getMax();
}
Any help is appreciated.
--
Best regards,
Anton Marchenkov.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Problem using BeanEditForm: empty form
Posted by Otho <ta...@googlemail.com>.
If the read only is by design you could also use BeanDisplay component.
2009/5/7 Thiago H. de Paula Figueiredo <th...@gmail.com>
> On Thu, May 7, 2009 at 2:40 AM, Anton Marchenkov <ma...@handybank.ru> wrote:
> > Hi!
>
> Hi!
>
> > My TariffData.java interface looks as follows:
> >
> > public interface TariffData {
> >
> > Integer getId();
> >
> > Long getFix();
> >
> > Double getCoeff();
> >
> > Long getMin();
> >
> > Long getMax();
> > }
>
> BeanEditor/BeanEditForm only work on read/write properties, and our
> TariffData just have read-only ones.
>
> --
> Thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Problem using BeanEditForm: empty form
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, May 7, 2009 at 2:40 AM, Anton Marchenkov <ma...@handybank.ru> wrote:
> Hi!
Hi!
> My TariffData.java interface looks as follows:
>
> public interface TariffData {
>
> Integer getId();
>
> Long getFix();
>
> Double getCoeff();
>
> Long getMin();
>
> Long getMax();
> }
BeanEditor/BeanEditForm only work on read/write properties, and our
TariffData just have read-only ones.
--
Thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org