You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mark Horn <ma...@agilesrc.com> on 2008/01/03 22:05:59 UTC
BeanEditor & TextArea
I'm sorry if the answer for this is out there, but I have not been
able to find it. I'm trying to use a BeanEditor and defined a
TextArea for a property instead of the default TextField.
Here is a snip-it form my template file
<form t:type="form" t:id="form">
<t:errors />
<span t:type="beaneditor" t:object="component" reorder="id,name,description" >
<t:parameter name="description">
<t:label for="description"/>
<t:textarea t:id="description" cols="80" rows="5"
value="mybean.description"/>
</t:parameter>
</span>
</form>
The problem is that a text field is still displayed no matter what I
do. Can someone please help me out?
FYI.. using Tapestry 5.0.7
Thanks,
--
Mark Horn
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: BeanEditor & TextArea
Posted by Howard Lewis Ship <hl...@gmail.com>.
And I've already fixed it (in the 5.0.8 nightly snapshot).
On Jan 3, 2008 6:22 PM, Mark Horn <ma...@agilesrc.com> wrote:
> Thanks Howard. I have created the bug in JIRA it is
>
> https://issues.apache.org/jira/browse/TAPESTRY-2013
>
>
> On 1/3/08, Howard Lewis Ship <hl...@gmail.com> wrote:
> > That is strange, it should work as you have shown it. I know this
> > behavior works ... there are unit tests to verify it.
> >
> > Ooops, please file a bug. I see the problem; BeanEditForm supports
> > informal parameters, but BeanEditor does not!
> >
> > On Jan 3, 2008 1:05 PM, Mark Horn <ma...@agilesrc.com> wrote:
> > > I'm sorry if the answer for this is out there, but I have not been
> > > able to find it. I'm trying to use a BeanEditor and defined a
> > > TextArea for a property instead of the default TextField.
> > >
> > > Here is a snip-it form my template file
> > >
> > > <form t:type="form" t:id="form">
> > > <t:errors />
> > > <span t:type="beaneditor" t:object="component" reorder="id,name,description" >
> > > <t:parameter name="description">
> > > <t:label for="description"/>
> > > <t:textarea t:id="description" cols="80" rows="5"
> > > value="mybean.description"/>
> > > </t:parameter>
> > > </span>
> > > </form>
> > >
> > > The problem is that a text field is still displayed no matter what I
> > > do. Can someone please help me out?
> > >
> > > FYI.. using Tapestry 5.0.7
> > >
> > > Thanks,
> > > --
> > > Mark Horn
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> >
> > --
> > Howard M. Lewis Ship
> >
> > Creator Apache Tapestry and Apache HiveMind
> >
> > ---------------------------------------------------------------------
> > 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
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: BeanEditor & TextArea
Posted by Mark Horn <ma...@agilesrc.com>.
Thanks Howard. I have created the bug in JIRA it is
https://issues.apache.org/jira/browse/TAPESTRY-2013
On 1/3/08, Howard Lewis Ship <hl...@gmail.com> wrote:
> That is strange, it should work as you have shown it. I know this
> behavior works ... there are unit tests to verify it.
>
> Ooops, please file a bug. I see the problem; BeanEditForm supports
> informal parameters, but BeanEditor does not!
>
> On Jan 3, 2008 1:05 PM, Mark Horn <ma...@agilesrc.com> wrote:
> > I'm sorry if the answer for this is out there, but I have not been
> > able to find it. I'm trying to use a BeanEditor and defined a
> > TextArea for a property instead of the default TextField.
> >
> > Here is a snip-it form my template file
> >
> > <form t:type="form" t:id="form">
> > <t:errors />
> > <span t:type="beaneditor" t:object="component" reorder="id,name,description" >
> > <t:parameter name="description">
> > <t:label for="description"/>
> > <t:textarea t:id="description" cols="80" rows="5"
> > value="mybean.description"/>
> > </t:parameter>
> > </span>
> > </form>
> >
> > The problem is that a text field is still displayed no matter what I
> > do. Can someone please help me out?
> >
> > FYI.. using Tapestry 5.0.7
> >
> > Thanks,
> > --
> > Mark Horn
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> ---------------------------------------------------------------------
> 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: BeanEditor & TextArea
Posted by Howard Lewis Ship <hl...@gmail.com>.
That is strange, it should work as you have shown it. I know this
behavior works ... there are unit tests to verify it.
Ooops, please file a bug. I see the problem; BeanEditForm supports
informal parameters, but BeanEditor does not!
On Jan 3, 2008 1:05 PM, Mark Horn <ma...@agilesrc.com> wrote:
> I'm sorry if the answer for this is out there, but I have not been
> able to find it. I'm trying to use a BeanEditor and defined a
> TextArea for a property instead of the default TextField.
>
> Here is a snip-it form my template file
>
> <form t:type="form" t:id="form">
> <t:errors />
> <span t:type="beaneditor" t:object="component" reorder="id,name,description" >
> <t:parameter name="description">
> <t:label for="description"/>
> <t:textarea t:id="description" cols="80" rows="5"
> value="mybean.description"/>
> </t:parameter>
> </span>
> </form>
>
> The problem is that a text field is still displayed no matter what I
> do. Can someone please help me out?
>
> FYI.. using Tapestry 5.0.7
>
> Thanks,
> --
> Mark Horn
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: BeanEditor & TextArea
Posted by Mark Horn <ma...@agilesrc.com>.
Josh - thanks for the suggestion and link. Unfortunately the
<t:parameter name="descriptionCell"> still does not work.
I did find this listing that talks about the same issue
http://www.nabble.com/Can-we-use-Text-Area-for-String-field-in-BeanEditor--td13920248.html#a13920248
At the end Howard suggests the use of a new Annotation but that will
not work for me ether as I am not able to put annotations on the bean.
Any other suggestions? the <t:parameter ... > element I listed below
works great on a BeanEditorForm but not a BeanEditor.
On 1/3/08, Josh Canfield <jo...@thedailytube.com> wrote:
> I believe you need to add Cell to the end of your parameter name.
> <t:parameter name="descriptionCell">
>
> This question comes up a lot, so if that doesn't work you should be able to
> find some examples by searching the list.
> http://www.nabble.com/Tapestry---User-f340.html indexes this list for
> searching.
>
> Josh
> On Jan 3, 2008 1:05 PM, Mark Horn <ma...@agilesrc.com> wrote:
>
> > I'm sorry if the answer for this is out there, but I have not been
> > able to find it. I'm trying to use a BeanEditor and defined a
> > TextArea for a property instead of the default TextField.
> >
> > Here is a snip-it form my template file
> >
> > <form t:type="form" t:id="form">
> > <t:errors />
> > <span t:type="beaneditor" t:object="component"
> > reorder="id,name,description" >
> > <t:parameter name="description">
> > <t:label for="description"/>
> > <t:textarea t:id="description" cols="80"
> > rows="5"
> > value="mybean.description"/>
> > </t:parameter>
> > </span>
> > </form>
> >
> > The problem is that a text field is still displayed no matter what I
> > do. Can someone please help me out?
> >
> > FYI.. using Tapestry 5.0.7
> >
> > Thanks,
> > --
> > Mark Horn
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> --
> TheDailyTube.com. Sign up and get the best new videos on the internet
> delivered fresh to your inbox.
>
--
Mark Horn
AgileSrc LLC
Ph. 616-723-8918
Fax 866-515-6286
Cell. 616-617-3087
mark.horn@agilesrc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: BeanEditor & TextArea
Posted by Josh Canfield <jo...@thedailytube.com>.
I believe you need to add Cell to the end of your parameter name.
<t:parameter name="descriptionCell">
This question comes up a lot, so if that doesn't work you should be able to
find some examples by searching the list.
http://www.nabble.com/Tapestry---User-f340.html indexes this list for
searching.
Josh
On Jan 3, 2008 1:05 PM, Mark Horn <ma...@agilesrc.com> wrote:
> I'm sorry if the answer for this is out there, but I have not been
> able to find it. I'm trying to use a BeanEditor and defined a
> TextArea for a property instead of the default TextField.
>
> Here is a snip-it form my template file
>
> <form t:type="form" t:id="form">
> <t:errors />
> <span t:type="beaneditor" t:object="component"
> reorder="id,name,description" >
> <t:parameter name="description">
> <t:label for="description"/>
> <t:textarea t:id="description" cols="80"
> rows="5"
> value="mybean.description"/>
> </t:parameter>
> </span>
> </form>
>
> The problem is that a text field is still displayed no matter what I
> do. Can someone please help me out?
>
> FYI.. using Tapestry 5.0.7
>
> Thanks,
> --
> Mark Horn
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.