You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ice96 <ic...@gmail.com> on 2008/05/07 00:23:31 UTC
Tapestry 5 Beaneditform and TextFlield
Hello,
I have simple question: I have extended TextField component with few new
futures (I called it Input), now I want to replace TextField component to my
Input component in BeanEditForm. Is it not painfull way without tapestry
corelib recompilation?
--
View this message in context: http://www.nabble.com/Tapestry-5-Beaneditform-and-TextFlield-tp17093611p17093611.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: Tapestry 5 Beaneditform and TextFlield
Posted by Kristian Marinkovic <kr...@porsche.co.at>.
does your template have a t:block with the id "text"?
what is the problem exactly? Is there an exception... ?
if you get an exception you probably dont have a block defined :)
g,
kris
ice96 <ic...@gmail.com>
08.05.2008 00:45
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>
An
users@tapestry.apache.org
Kopie
Thema
Re: Tapestry 5 Beaneditform and TextFlield
Hello,
I don;t know why but it doesn't works :(
in AppModule.java I added this lines
public static void
contributeBeanBlockOverrideSource(Configuration<BeanBlockContribution>
configuration)
{
configuration.add(new BeanBlockContribution("text",
"AppPropertyEditBlocks", "text", true));
}
and in components I created this class
package org.tapestry.myapp.pages;
import org.apache.tapestry.annotations.Component;
import org.apache.tapestry.annotations.Environmental;
import org.apache.tapestry.services.PropertyEditContext;
import org.tapestry.myapp.components.Input;
public class AppPropertyEditBlocks {
@Environmental
private PropertyEditContext _context;
@Component(parameters =
{ "value=context.propertyValue",
"label=prop:context.label",
"clientId=prop:context.propertyId" })
private Input _input;
public PropertyEditContext getContext() { return
_context; }
}
But it doesn't wokr.
Can anyone help me?
--
View this message in context:
http://www.nabble.com/Tapestry-5-Beaneditform-and-TextFlield-tp17093611p17116083.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: Tapestry 5 Beaneditform and TextFlield
Posted by ice96 <ic...@gmail.com>.
Hello,
I don;t know why but it doesn't works :(
in AppModule.java I added this lines
public static void
contributeBeanBlockOverrideSource(Configuration<BeanBlockContribution>
configuration)
{
configuration.add(new BeanBlockContribution("text",
"AppPropertyEditBlocks", "text", true));
}
and in components I created this class
package org.tapestry.myapp.pages;
import org.apache.tapestry.annotations.Component;
import org.apache.tapestry.annotations.Environmental;
import org.apache.tapestry.services.PropertyEditContext;
import org.tapestry.myapp.components.Input;
public class AppPropertyEditBlocks {
@Environmental
private PropertyEditContext _context;
@Component(parameters =
{ "value=context.propertyValue", "label=prop:context.label",
"clientId=prop:context.propertyId" })
private Input _input;
public PropertyEditContext getContext() { return _context; }
}
But it doesn't wokr.
Can anyone help me?
--
View this message in context: http://www.nabble.com/Tapestry-5-Beaneditform-and-TextFlield-tp17093611p17116083.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: Tapestry 5 Beaneditform and TextFlield
Posted by Howard Lewis Ship <hl...@gmail.com>.
It is possible; you must make your own contribution to the
BeanBlockOverrideSource service configuration. In this way, you can
override how "text" data types are displayed or editted (or both).
Contibutions to BeanBlockOverrideSource do exactly that, override the
contributions to BeanBlockSource.
On Tue, May 6, 2008 at 3:23 PM, ice96 <ic...@gmail.com> wrote:
>
> Hello,
> I have simple question: I have extended TextField component with few new
> futures (I called it Input), now I want to replace TextField component to my
> Input component in BeanEditForm. Is it not painfull way without tapestry
> corelib recompilation?
> --
> View this message in context: http://www.nabble.com/Tapestry-5-Beaneditform-and-TextFlield-tp17093611p17093611.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
>
>
--
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