You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Enrique Medina Montenegro <e....@gmail.com> on 2006/07/05 06:31:23 UTC
Shale, Spring & Tiger Annotations
Hi,
I'm starting a new development where I will use MyFaces together with Shale
and Spring. I've been reading the documentation regarding the integration
between Spring and Shale, in terms of the delegating VariableResolver.
Furthermore, I've been reading the documentation regarding Tiger extensions
for Shale.
So the point is I want to use both the Spring integration and the Tiger
extensions for the same purpose: get my JSF managed beans.
And here comes the question. Is it possible to combine both the @Bean
annotation and the definition of the bean in the applicationContext.xml from
Spring? The reason for this question is very simple, and maybe there's a
workaround for it without having to use both functionalities all together: I
would like to define all my beans within Spring's applicationContext.xml,
but I don't know how to indicate the scope for those beans, so I was
wondering whether the use in conjunction with the @Bean(name="xxxxBean"
scope=Scope.REQUEST) annotation would help to achieve the desired result.
Thanks.
Re: Shale, Spring & Tiger Annotations
Posted by Enrique Medina Montenegro <e....@gmail.com>.
Yes, that's the same link I tried, but without success...
On 7/5/06, Adam Brod <AB...@intralinks.com> wrote:
>
> Well, I haven't actually used the Spring 2.0 scopes yet (I'm using
> Shale-Tiger for our "scoped" objects). However, if you google 'Spring 2.0
> scope session', there are a couple good links like this one:
>
> http://forum.springframework.org/showthread.php?t=26302
>
>
> Adam Brod
> Product Development Team
>
>
> "Enrique Medina Montenegro" <e....@gmail.com>
> 07/05/2006 12:57 PM
> Please respond to
> "Struts Users Mailing List" <us...@struts.apache.org>
>
>
> To
> "Struts Users Mailing List" <us...@struts.apache.org>
> cc
>
> Subject
> Re: Shale, Spring & Tiger Annotations
>
>
>
>
>
>
> Hi Adam,
>
> How do you declare a Spring bean to be session scoped? I've tried:
>
> <bean id="XXXXX" class="YYYYYY.ZZZZZZ" scope="session" />
>
> but I get an IllegalStateException.
>
> Please note that I'm not using the container yet, as I'm just preparing
> the
> control logic for JSF in a isolated way through Shale testing framework
> ;-)
>
> On 7/5/06, Adam Brod <AB...@intralinks.com> wrote:
> >
> > Hi Enrique-
> >
> > I don't believe there is any way to register the same bean instance with
> > both Spring and JSF. If you look at Spring 2.0, it has the ability to
> > register a bean with Request or Session scope, so perhaps that would be
> > your best bet. Of course you wouldn't be able to use Shale-Tiger. There
> > is a Spring Annotations open source project that is supposed to work
> > similarly to Shale-Tiger, but I haven't tried that myself.
> >
> > HTH,
> >
> > Adam Brod
> > Product Development Team
> >
> >
> > "Enrique Medina Montenegro" <e....@gmail.com>
> > 07/05/2006 12:31 AM
> > Please respond to
> > "Struts Users Mailing List" <us...@struts.apache.org>
> >
> >
> > To
> > user@struts.apache.org
> > cc
> >
> > Subject
> > Shale, Spring & Tiger Annotations
> >
> >
> >
> >
> >
> >
> > Hi,
> >
> > I'm starting a new development where I will use MyFaces together with
> > Shale
> > and Spring. I've been reading the documentation regarding the
> integration
> > between Spring and Shale, in terms of the delegating VariableResolver.
> > Furthermore, I've been reading the documentation regarding Tiger
> > extensions
> > for Shale.
> >
> > So the point is I want to use both the Spring integration and the Tiger
> > extensions for the same purpose: get my JSF managed beans.
> >
> > And here comes the question. Is it possible to combine both the @Bean
> > annotation and the definition of the bean in the applicationContext.xml
> > from
> > Spring? The reason for this question is very simple, and maybe there's a
> > workaround for it without having to use both functionalities all
> together:
> > I
> > would like to define all my beans within Spring's
> applicationContext.xml,
> > but I don't know how to indicate the scope for those beans, so I was
> > wondering whether the use in conjunction with the @Bean(name="xxxxBean"
> > scope=Scope.REQUEST) annotation would help to achieve the desired
> result.
> >
> > Thanks.
> >
> > Disclaimer: This electronic mail and any attachments are confidential
> and
> > may be privileged. If you are not the intended recipient, please notify
> the
> > sender immediately by replying to this email, and destroy all copies of
> this
> > email and any attachments. Thank you.
> >
> >
>
> Disclaimer: This electronic mail and any attachments are confidential and
> may be privileged. If you are not the intended recipient, please notify the
> sender immediately by replying to this email, and destroy all copies of this
> email and any attachments. Thank you.
>
>
Re: Shale, Spring & Tiger Annotations
Posted by Adam Brod <AB...@intralinks.com>.
Well, I haven't actually used the Spring 2.0 scopes yet (I'm using
Shale-Tiger for our "scoped" objects). However, if you google 'Spring 2.0
scope session', there are a couple good links like this one:
http://forum.springframework.org/showthread.php?t=26302
Adam Brod
Product Development Team
"Enrique Medina Montenegro" <e....@gmail.com>
07/05/2006 12:57 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>
To
"Struts Users Mailing List" <us...@struts.apache.org>
cc
Subject
Re: Shale, Spring & Tiger Annotations
Hi Adam,
How do you declare a Spring bean to be session scoped? I've tried:
<bean id="XXXXX" class="YYYYYY.ZZZZZZ" scope="session" />
but I get an IllegalStateException.
Please note that I'm not using the container yet, as I'm just preparing
the
control logic for JSF in a isolated way through Shale testing framework
;-)
On 7/5/06, Adam Brod <AB...@intralinks.com> wrote:
>
> Hi Enrique-
>
> I don't believe there is any way to register the same bean instance with
> both Spring and JSF. If you look at Spring 2.0, it has the ability to
> register a bean with Request or Session scope, so perhaps that would be
> your best bet. Of course you wouldn't be able to use Shale-Tiger. There
> is a Spring Annotations open source project that is supposed to work
> similarly to Shale-Tiger, but I haven't tried that myself.
>
> HTH,
>
> Adam Brod
> Product Development Team
>
>
> "Enrique Medina Montenegro" <e....@gmail.com>
> 07/05/2006 12:31 AM
> Please respond to
> "Struts Users Mailing List" <us...@struts.apache.org>
>
>
> To
> user@struts.apache.org
> cc
>
> Subject
> Shale, Spring & Tiger Annotations
>
>
>
>
>
>
> Hi,
>
> I'm starting a new development where I will use MyFaces together with
> Shale
> and Spring. I've been reading the documentation regarding the
integration
> between Spring and Shale, in terms of the delegating VariableResolver.
> Furthermore, I've been reading the documentation regarding Tiger
> extensions
> for Shale.
>
> So the point is I want to use both the Spring integration and the Tiger
> extensions for the same purpose: get my JSF managed beans.
>
> And here comes the question. Is it possible to combine both the @Bean
> annotation and the definition of the bean in the applicationContext.xml
> from
> Spring? The reason for this question is very simple, and maybe there's a
> workaround for it without having to use both functionalities all
together:
> I
> would like to define all my beans within Spring's
applicationContext.xml,
> but I don't know how to indicate the scope for those beans, so I was
> wondering whether the use in conjunction with the @Bean(name="xxxxBean"
> scope=Scope.REQUEST) annotation would help to achieve the desired
result.
>
> Thanks.
>
> Disclaimer: This electronic mail and any attachments are confidential
and
> may be privileged. If you are not the intended recipient, please notify
the
> sender immediately by replying to this email, and destroy all copies of
this
> email and any attachments. Thank you.
>
>
Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Re: Shale, Spring & Tiger Annotations
Posted by Enrique Medina Montenegro <e....@gmail.com>.
Hi Adam,
How do you declare a Spring bean to be session scoped? I've tried:
<bean id="XXXXX" class="YYYYYY.ZZZZZZ" scope="session" />
but I get an IllegalStateException.
Please note that I'm not using the container yet, as I'm just preparing the
control logic for JSF in a isolated way through Shale testing framework ;-)
On 7/5/06, Adam Brod <AB...@intralinks.com> wrote:
>
> Hi Enrique-
>
> I don't believe there is any way to register the same bean instance with
> both Spring and JSF. If you look at Spring 2.0, it has the ability to
> register a bean with Request or Session scope, so perhaps that would be
> your best bet. Of course you wouldn't be able to use Shale-Tiger. There
> is a Spring Annotations open source project that is supposed to work
> similarly to Shale-Tiger, but I haven't tried that myself.
>
> HTH,
>
> Adam Brod
> Product Development Team
>
>
> "Enrique Medina Montenegro" <e....@gmail.com>
> 07/05/2006 12:31 AM
> Please respond to
> "Struts Users Mailing List" <us...@struts.apache.org>
>
>
> To
> user@struts.apache.org
> cc
>
> Subject
> Shale, Spring & Tiger Annotations
>
>
>
>
>
>
> Hi,
>
> I'm starting a new development where I will use MyFaces together with
> Shale
> and Spring. I've been reading the documentation regarding the integration
> between Spring and Shale, in terms of the delegating VariableResolver.
> Furthermore, I've been reading the documentation regarding Tiger
> extensions
> for Shale.
>
> So the point is I want to use both the Spring integration and the Tiger
> extensions for the same purpose: get my JSF managed beans.
>
> And here comes the question. Is it possible to combine both the @Bean
> annotation and the definition of the bean in the applicationContext.xml
> from
> Spring? The reason for this question is very simple, and maybe there's a
> workaround for it without having to use both functionalities all together:
> I
> would like to define all my beans within Spring's applicationContext.xml,
> but I don't know how to indicate the scope for those beans, so I was
> wondering whether the use in conjunction with the @Bean(name="xxxxBean"
> scope=Scope.REQUEST) annotation would help to achieve the desired result.
>
> Thanks.
>
> Disclaimer: This electronic mail and any attachments are confidential and
> may be privileged. If you are not the intended recipient, please notify the
> sender immediately by replying to this email, and destroy all copies of this
> email and any attachments. Thank you.
>
>
hi : problem
Posted by KUNDAN KUMAR <kn...@yahoo.co.in>.
Hi all,
I am new to sturts and tried to execute a sample application
but I am getting exception as
" org.apache.jasper.JasperException: /index.jsp(4,0) Unable to find setter method for attribute: name
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39).....
..."
I tried to find out the reason myself ..
when I try to run with 1.2.9 ver
but same application runs when I execute with jar files in lib of older struts version.
plz help me to get the reason.
thanx
kundan
---------------------------------
Yahoo! India Answers: Share what you know. Learn something new Click here
Catch all the FIFA World Cup 2006 action on Yahoo! India Click here
Re: Shale, Spring & Tiger Annotations
Posted by Adam Brod <AB...@intralinks.com>.
Hi Enrique-
I don't believe there is any way to register the same bean instance with
both Spring and JSF. If you look at Spring 2.0, it has the ability to
register a bean with Request or Session scope, so perhaps that would be
your best bet. Of course you wouldn't be able to use Shale-Tiger. There
is a Spring Annotations open source project that is supposed to work
similarly to Shale-Tiger, but I haven't tried that myself.
HTH,
Adam Brod
Product Development Team
"Enrique Medina Montenegro" <e....@gmail.com>
07/05/2006 12:31 AM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>
To
user@struts.apache.org
cc
Subject
Shale, Spring & Tiger Annotations
Hi,
I'm starting a new development where I will use MyFaces together with
Shale
and Spring. I've been reading the documentation regarding the integration
between Spring and Shale, in terms of the delegating VariableResolver.
Furthermore, I've been reading the documentation regarding Tiger
extensions
for Shale.
So the point is I want to use both the Spring integration and the Tiger
extensions for the same purpose: get my JSF managed beans.
And here comes the question. Is it possible to combine both the @Bean
annotation and the definition of the bean in the applicationContext.xml
from
Spring? The reason for this question is very simple, and maybe there's a
workaround for it without having to use both functionalities all together:
I
would like to define all my beans within Spring's applicationContext.xml,
but I don't know how to indicate the scope for those beans, so I was
wondering whether the use in conjunction with the @Bean(name="xxxxBean"
scope=Scope.REQUEST) annotation would help to achieve the desired result.
Thanks.
Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
Re: Shale, Spring & Tiger Annotations
Posted by KUNDAN KUMAR <kn...@yahoo.co.in>.
Hi all,
I am new to sturts and tried to execute a sample application
but I am getting exception as
" org.apache.jasper.JasperException: /index.jsp(4,0) Unable to find setter method for attribute: name
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39).....
..."
I tried to find out the reason myself ..
when I try to run with 1.2.9 ver
but same application runs when I execute with jar files in lib of older struts version.
plz help me to get the reason.
thanx
kundan
---------------------------------
Yahoo! India Answers: Share what you know. Learn something new Click here
Catch all the FIFA World Cup 2006 action on Yahoo! India Click here