Re: Injecting a spring bean into a Service

2006-04-27 Thread Cosmin Bucur
gt; > > interface="org.apache.tapestry.engine.IEngineService"> > > > > > > > > > > > > I would like to inject a spring bean into this service . I am > > currently able to inject spring beans into normal tapestry pages using > > :

RE: Injecting a spring bean into a Service

2006-04-27 Thread Jimmi Dyson
a spring bean into a Service I have the following service : I would like to inject a spring bean into this service . I am currently able to inject spring beans into normal tapestry pages using : in the .jwc/.page files . What is the standard way to do this

Re: Injecting a spring bean into a Service

2006-04-27 Thread Christian Haselbach
Zitat von Cosmin Bucur <[EMAIL PROTECTED]>: > I have the following service : > > > > > > interface="org.apache.tapestry.engine.IEngineService"> > > > > > > I would like to inject a spring bean into t

Injecting a spring bean into a Service

2006-04-27 Thread Cosmin Bucur
I have the following service : I would like to inject a spring bean into this service . I am currently able to inject spring beans into normal tapestry pages using : in the .jwc/.page files . What is the standard way to do this in Tap4 with Services ? I

@Bean initializer question

2006-03-29 Thread Henri Dupre
In the initializer property of the @Bean annotation, is it possible to inject stuff... For instance write something like: @Bean(lifecycle = Lifecycle.REQUEST, initializer = "dataOperations=spring:DataOperations, userData=state:visit") public abstract Configuration getConfiguration(

Re: Global bean configuration

2006-03-23 Thread Ron Piterman
InjValidationDelegate to my page class. Cheers, Ron Leonardo Quijano Vincenzi wrote: Hi, For some types of beans (for example ValidationDelegates), the same bean definition would be used on all of the application pages. In this case, for example, I'd like to use the same ValidationDelegate for all

Re: Global bean configuration

2006-03-22 Thread Leonardo Quijano Vincenzi
[EMAIL PROTECTED] wrote: Nice! And i see you really like EnhancmentWorkers :) Regarding the initial question, i think there's a very nice solution for (2). Define an interface, ValidationDelegateAware or something like this: { @Bean ValidationDelegate getValidationDelegate(); void setVa

Re: Global bean configuration

2006-03-22 Thread andyhot
Nice! And i see you really like EnhancmentWorkers :) Regarding the initial question, i think there's a very nice solution for (2). Define an interface, ValidationDelegateAware or something like this: { @Bean ValidationDelegate getValidationDelegate(); void setValidationDel

Re: Global bean configuration

2006-03-22 Thread Leonardo Quijano Vincenzi
Yes. For now, I used an EnhacementWorker, like this: class="com.dtqsoftware.utils.web.enhance.FormDelegateEnhancementWorker"> And in FormDelegateEnhancementWorker: if (AjaxForm.class.isAssignableFrom(op.getBaseClass())) { if(spec.g

Re: Global bean configuration

2006-03-22 Thread Jesse Kuhnert
;s see. I have an @AjaxForm. I'd like to do something like this: > >delegate="bean:someBean" ... /> > > Now, bean:some is not on the page JWC. You're saying I can access a bean > definition directly from Hivemind without: > > 1) Declaring

R: Global bean configuration

2006-03-22 Thread Giampaolo Tomassoni
Have a look here: http://jakarta.apache.org/tapestry/UsersGuide/hivemind.html . > Ok let's see. I have an @AjaxForm. I'd like to do something like this: > >delegate="bean:someBean" ... /> > > Now, bean:some is not on the page JWC. You'

Re: Global bean configuration

2006-03-22 Thread Leonardo Quijano Vincenzi
Ok let's see. I have an @AjaxForm. I'd like to do something like this: Now, bean:some is not on the page JWC. You're saying I can access a bean definition directly from Hivemind without: 1) Declaring a bean in the ".page" file. 2) Declaring a bean in the

Re: Global bean configuration

2006-03-22 Thread Jesse Kuhnert
D]> wrote: > > I'm talking about bean definitions in JWC / Page files. > > -- > Ing. Leonardo Quijano Vincenzi > DTQ Software > > > Jesse Kuhnert wrote: > > Isn't that what hivemind is? Maybe I'm wrong.. > > > > > > > > -

Re: Global bean configuration

2006-03-22 Thread Leonardo Quijano Vincenzi
I'm talking about bean definitions in JWC / Page files. -- Ing. Leonardo Quijano Vincenzi DTQ Software Jesse Kuhnert wrote: Isn't that what hivemind is? Maybe I'm wrong.. - To unsubscribe, e-mail: [

Re: Global bean configuration

2006-03-22 Thread Jesse Kuhnert
Isn't that what hivemind is? Maybe I'm wrong.. On 3/22/06, Leonardo Quijano Vincenzi <[EMAIL PROTECTED]> wrote: > > Hi, > > For some types of beans (for example ValidationDelegates), the same bean > definition would be used on all of the application pages. In this c

Global bean configuration

2006-03-22 Thread Leonardo Quijano Vincenzi
Hi, For some types of beans (for example ValidationDelegates), the same bean definition would be used on all of the application pages. In this case, for example, I'd like to use the same ValidationDelegate for all forms, without having to specify this 2 things: 1) The delegate paramet

Re: Duplicate Validation Bean Configuration

2006-03-20 Thread butterdave
What I ended up doing was creating a new sub-component that defined all of my shared bean validation delegates. Then in the parent container, I annotate the new sub-component and reference it where i need it -- View this message in context: http://www.nabble.com/Duplicate-Validation-Bean

Duplicate Validation Bean Configuration

2006-03-20 Thread butterdave
I have a bunch of pages that extend a parent page. So I'm really enjoying Tapestry 4's annotation support which allows me to define shared components once. However when I try to annotate shared validation bean delegates I run into problems. One problem is I need to evaluate an OGNL

RE: @Bean

2006-02-23 Thread James Carman
A bean gets instantiated and managed for you (different "scopes"). The transient page property doesn't. -Original Message- From: Martin Strand [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 11:43 AM To: Tapestry Subject: @Bean I don't understand wh

@Bean

2006-02-23 Thread Martin Strand
I don't understand what the difference is between a transient page property and a regular @Bean. Could someone please explain? public abstract ArrayList getList(); vs @Bean public abstract ArrayList getList(); ---

Re: How to mix my custom Validator ( bean ) with default validators?

2006-02-10 Thread Daniel Lydiard
This is for T4 right? To use a bean you need to use $name for a bean. http://jakarta.apache.org/tapestry/UsersGuide/validation.html so: validators:$myCustomValidator,required should work. - Original Message - From: "Aleksej" <[EMAIL PROTECTED]> To: "tapestr

How to mix my custom Validator ( bean ) with default validators?

2006-02-10 Thread Aleksej
Hi! I have my own validator which checks database and I want to mix it with default "required" validator ( or any other including my own ). Syntax like that is not working: I tried various combinations but with the same result. Is it possible at all?

Re: Bean problems

2005-12-03 Thread Howard Lewis Ship
#x27;m able to use the components with no problem, but the > validators are not been found by my application: > > > > Unable to instantiate bean 'cpfValidator' of component Register: Unable to > find class org.tupiniquim.validators.CPFValidator within package list >

Bean problems

2005-12-02 Thread Vinicius Carvalho
Hello there! I have a component library and inside it I've bundle some validators. I'm able to use the components with no problem, but the validators are not been found by my application: Unable to instantiate bean 'cpfValidator' of component Register:

Re: Counting table rows with bean

2005-10-20 Thread Derek Brown
g in a block to the > table > component. But this component is on the page not in > the wrapper component. > > In this block component, I have a link that takes in > binding of the row count. The counting bean only > counts when the link is clicked, not when the block >

Counting table rows with bean

2005-10-19 Thread Derek Brown
I have a Wrapper Component that has a tableview component in it. I am passing in a block to the table component. But this component is on the page not in the wrapper component. In this block component, I have a link that takes in binding of the row count. The counting bean only counts when the

Re: Bean initializers

2005-09-21 Thread Kent Tong
Dan Adams ifactory.com> writes: > > Is there any way of initializing bean properties with something > non-trivial (such as an object from the calling class or something)? You can't do that with annotations. Use and instead in your .page file. -- Author of a book for

@Bean initializers

2005-09-20 Thread Dan Adams
Is there any way of initializing bean properties with something non-trivial (such as an object from the calling class or something)? -- Dan Adams Software Engineer Interactive Factory - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: How to get manager bean, (Tapestry 3.0.3, Spring 1.2)

2005-08-12 Thread Radim Burget
Burget <[EMAIL PROTECTED]> wrote: Hi, could anyone help me how do I get Spring bean from Spring? I am using Spring 1.2-rc2, Tapestry 3.0.3 Here is my code: Home.java: public abstract class Home extends BasePage implements PageRenderListener { . public abstract TitleManager getTitl

Re: How to get manager bean, (Tapestry 3.0.3, Spring 1.2)

2005-08-11 Thread Cesar Saenz
How are you injecting it into into Tapestry's Global object since you are requesting it from there? On 8/11/05, Radim Burget <[EMAIL PROTECTED]> wrote: > Hi, > could anyone help me how do I get Spring bean from Spring? > > I am using Spring 1.2-rc2, Tapestry 3.0

How to get manager bean, (Tapestry 3.0.3, Spring 1.2)

2005-08-11 Thread Radim Burget
Hi, could anyone help me how do I get Spring bean from Spring? I am using Spring 1.2-rc2, Tapestry 3.0.3 Here is my code: Home.java: public abstract class Home extends BasePage implements PageRenderListener { . public abstract TitleManager getTitleManager(); public abstract void

Re: 4.0b2: bean property value is not updated

2005-07-21 Thread Kent Tong
Howard Lewis Ship gmail.com> writes: > Good spotting everyone! Please add a bug to JIRA! I've added a comment to the bug report submitted by Ron. For some other bugs that I've found, I've also included in the bug report the location that contains the bug: http://issues.apache.org/jira/browse

Re: 4.0b2: bean property value is not updated

2005-07-20 Thread Howard Lewis Ship
rty or binding it, but about passing a > > parameter to the component which is passed further to the bean. > > You're right. The bug seems to be in: > > public class BindingBeanInitializer extends AbstractBeanInitializer > { > public void setBeanProperty(IBeanPro

Re: 4.0b2: bean property value is not updated

2005-07-18 Thread Kent Tong
Ron Piterman gmx.net> writes: > > If you look at the example in the bug, you can see this isn't working. > Its not about changing the property or binding it, but about passing a > parameter to the component which is passed further to the bean. You're right. The bu

Re: 4.0b2: bean property value is not updated

2005-07-18 Thread Ron Piterman
Thats why I ziped the files and attached them to the bug - I am not an expert regarding what is going on in Tapestry under the hood. But at the moment it seems that the simple procedure of passing a static (thus not dynamic) component parameter to a bean does not work correctly, when it is

Re: 4.0b2: bean property value is not updated

2005-07-18 Thread Howard Lewis Ship
Let's just make sure we're on the same page about beans and components. Each component will, utlimately, have its own instance of the bean. The bean's required property is set from the component's required property, which itself is a parameter. Each bean is createdon first

Re: 4.0b2: bean property value is not updated

2005-07-18 Thread Ron Piterman
If you look at the example in the bug, you can see this isn't working. Its not about changing the property or binding it, but about passing a parameter to the component which is passed further to the bean. How come this functions for the *first* component instance, while the beans i

Re: 4.0b2: bean property value is not updated

2005-07-18 Thread Kent Tong
Ron Piterman gmx.net> writes: > Please look at the example in bug > http://issues.apache.org/jira/browse/TAPESTRY-406 > > It shows that if you use 3 components of the same type, each one has a > bean, whose attribute is set to a parameter of the component, the > *first*

Re: 4.0b2: bean property value is not updated

2005-07-18 Thread Ron Piterman
ציטוט Kent Tong: Ron Piterman vollbio.de> writes: in a component I have a 'required' parameter, which is passed to a validator bean to use in a "ValidField" component: ... If i use more than one instance of my component in a page, the bean is not updated for

Re: 4.0b2: bean property value is not updated

2005-07-17 Thread Kent Tong
Ron Piterman vollbio.de> writes: > in a component I have a 'required' parameter, which is passed to a > validator bean to use in a "ValidField" component: > > > ... > > > > If i use more than one instance of my component in a page, the

Re: 4.0b2: bean property value is not updated

2005-07-15 Thread Ron Piterman
Yes, I saw your bug and I guess its related, but am not sure... Scott F. Walter: Ron Piterman wrote: Hi, in a component I have a 'required' parameter, which is passed to a validator bean to use in a "ValidField" component: ... If i use more than one instanc

Re: 4.0b2: bean property value is not updated

2005-07-15 Thread Scott F. Walter
Ron Piterman wrote: Hi, in a component I have a 'required' parameter, which is passed to a validator bean to use in a "ValidField" component: ... If i use more than one instance of my component in a page, the bean is not updated for each instance, thus all ar

4.0b2: bean property value is not updated

2005-07-15 Thread Ron Piterman
Hi, in a component I have a 'required' parameter, which is passed to a validator bean to use in a "ValidField" component: ... If i use more than one instance of my component in a page, the bean is not updated for each instance, thus all are either required or no

Re: Spring bean injection question (Tapestry 4)

2005-05-23 Thread Krutyakov Roman
В Пнд, 23/05/2005 в 15:03 +0300, Krutyakov Roman пишет: > Hello, > is now possible to inject to tapestry pages (components) Spring beans > that were proxyed with Spring-AOP? > > HiveMind is configured as described there > http://wiki.apache.org/jakarta-tapestry/Tapestry31Spring > > In alpha-2 it

Spring bean injection question (Tapestry 4)

2005-05-23 Thread Krutyakov Roman
Hello, is now possible to inject to tapestry pages (components) Spring beans that were proxyed with Spring-AOP? HiveMind is configured as described there http://wiki.apache.org/jakarta-tapestry/Tapestry31Spring In alpha-2 it works After alpha-3 changes in tapestry API i only can access to simple