You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by Zarick Lau <za...@gmail.com> on 2007/07/02 15:59:00 UTC

Shale-tiger and Spring 2

Dear list,

Our project currently using JSF RI 1.2, facelets 1.1.11, trinidad 1.0.1. and
spring2.

I've just added shale-core (for ViewController) into our project.
I'm also try to add shale-tiger, however, once shale-tiger are added.

Spring's integration stop working. We're currently using
org.springframework.web.jsf.DelegatingVariableResolver

To inject spring bean into normal JSF backing bean.

Is it a legitimate use case for mixing spring2, jsf-ri and shale-tiger
together?

Regards,
Zarick

Re: Shale-tiger and Spring 2

Posted by Craig McClanahan <cr...@apache.org>.
On 7/2/07, Zarick Lau <za...@gmail.com> wrote:
> >
> > > Our project currently using JSF RI 1.2, facelets 1.1.11, trinidad 1.0.1.
> > and
> > > spring2.
> > >
> > > I've just added shale-core (for ViewController) into our project.
> >
> > What version of Shale are you using?  From version 1.0.4 (the current
> > on) onwards, the ViewController stuff is in shale-view-xxx.jar, not
> > shale-core-xxx.jar.
>
>
> Yes, you're right.
> I'm using shale-view and shale-core.
>
> > I'm also try to add shale-tiger, however, once shale-tiger are added.
> > >
> > > Spring's integration stop working. We're currently using
> > > org.springframework.web.jsf.DelegatingVariableResolver
> > >
> > > To inject spring bean into normal JSF backing bean.
> > >
> > > Is it a legitimate use case for mixing spring2, jsf-ri and shale-tiger
> > > together?
> >
> > It should indeed by a legitimate use case.  I suspect there might be
> > something going on with the order that the resolvers are loaded ...
> > will need to do some investigation to figure that out.
>
>
> You mean, shale-tiger also providing a resolvers.
> The order of shale-resolver and spring resolver is not correct?
> What should I do to help finding out the cause?

Unfortunately, there is no current configuration-based mechanism to
resolve the ordering issue -- this is one of the topics of things the
JSF 2.0 expert group needs to look at.  In the mean time, we
implementors of JSF stuff need to ensure that our functionality works
no matter what the ordering is.

>
> Thanks and regards,
> Zarick
>

Craig

Re: Shale-tiger and Spring 2

Posted by Zarick Lau <za...@gmail.com>.
>
> > Our project currently using JSF RI 1.2, facelets 1.1.11, trinidad 1.0.1.
> and
> > spring2.
> >
> > I've just added shale-core (for ViewController) into our project.
>
> What version of Shale are you using?  From version 1.0.4 (the current
> on) onwards, the ViewController stuff is in shale-view-xxx.jar, not
> shale-core-xxx.jar.


Yes, you're right.
I'm using shale-view and shale-core.

> I'm also try to add shale-tiger, however, once shale-tiger are added.
> >
> > Spring's integration stop working. We're currently using
> > org.springframework.web.jsf.DelegatingVariableResolver
> >
> > To inject spring bean into normal JSF backing bean.
> >
> > Is it a legitimate use case for mixing spring2, jsf-ri and shale-tiger
> > together?
>
> It should indeed by a legitimate use case.  I suspect there might be
> something going on with the order that the resolvers are loaded ...
> will need to do some investigation to figure that out.


You mean, shale-tiger also providing a resolvers.
The order of shale-resolver and spring resolver is not correct?
What should I do to help finding out the cause?

Thanks and regards,
Zarick

Re: Shale-tiger and Spring 2

Posted by Matthias Wessendorf <ma...@apache.org>.
will do

On 7/7/07, Craig McClanahan <cr...@apache.org> wrote:
> On 7/7/07, Matthias Wessendorf <ma...@apache.org> wrote:
> > Hi Kito,
> >
> > I updated the 1.1.x (which is trunk) stuff to consume Spring 2.x.
> > The 1.0.x branch is still on Spring 1.x
> >
> > So, do we agree to remove the shale-spring module ?
> >
>
> Why not just leave it there in case people are using Spring 1?
> Certainly update the documentation that you don't need it if you're
> using Spring 2, though.
>
> > -Matthias
>
> Craig
>
> >
> > On 7/5/07, Kito D. Mann <km...@virtua.com> wrote:
> > > > -----Original Message-----
> > > > From: mwessendorf@gmail.com [mailto:mwessendorf@gmail.com] On Behalf Of
> > > > Matthias Wessendorf
> > > > Sent: Thursday, July 05, 2007 3:18 AM
> > > > To: user@shale.apache.org; kmann@virtua.com
> > > > Subject: Re: Shale-tiger and Spring 2
> > > >
> > > > thx kito,
> > > >
> > > > so should we remove this module on 1.1.x ?
> > >
> > > I think so, unless you want to keep it for people using very old versions of
> > > Spring (in which case the docs should make it explicit that it's not
> > > necessary for Spring 2 or higher).
> > >
> > >
> > > > On 7/3/07, Kito D. Mann <km...@virtua.com> wrote:
> > > > > > -----Original Message-----
> > > > > > From: craigmcc@gmail.com [mailto:craigmcc@gmail.com] On Behalf Of
> > > > Craig
> > > > > > McClanahan
> > > > > > Sent: Monday, July 02, 2007 11:27 PM
> > > > > > To: user@shale.apache.org; kmann@virtua.com
> > > > > > Subject: Re: Shale-tiger and Spring 2
> > > > > >
> > > > > > On 7/2/07, Kito D. Mann <km...@virtua.com> wrote:
> > > > > > > Craig, does Shale really need the Spring integration anymore?
> > > > Does it
> > > > > > do
> > > > > > > anything that Spring 2 doesn't?
> > > > > >
> > > > > > For Spring2, you don't need anything extra from Shale, unless you
> > > > need
> > > > > > EL based access to the Spring ApplicationContext.
> > > > >
> > > > > Actually, you get that with Spring 2 as well:
> > > > >
> > > > http://www.springframework.org/docs/api/org/springframework/web/jsf/Web
> > > > Appli
> > > > > cationContextVariableResolver.html.
> > > > >
> > > > > > But (from my
> > > > > > understanding of the original post), the problem comes when
> > > > combining
> > > > > > Spring2's native JSF support with shale-tiger -- it did not sound
> > > > like
> > > > > > shale-spring-xxx.jar was involved.
> > > > >
> > > > > Ah, okay.
> > > > >
> > > > >
> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > > Kito D. Mann - Author, JavaServer Faces in Action
> > > > > http://www.virtua.com - JSF/Java EE consulting, training, and
> > > > mentoring
> > > > > http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
> > > > >
> > > > > * Sign up for the JSF Central newsletter!
> > > > > http://oi.vresp.com/?fid=ac048d0e17 *
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Matthias Wessendorf
> > > >
> > > > further stuff:
> > > > blog: http://matthiaswessendorf.wordpress.com/
> > > > mail: matzew-at-apache-dot-org
> > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > mail: matzew-at-apache-dot-org
> >
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Re: Shale-tiger and Spring 2

Posted by Craig McClanahan <cr...@apache.org>.
On 7/7/07, Matthias Wessendorf <ma...@apache.org> wrote:
> Hi Kito,
>
> I updated the 1.1.x (which is trunk) stuff to consume Spring 2.x.
> The 1.0.x branch is still on Spring 1.x
>
> So, do we agree to remove the shale-spring module ?
>

Why not just leave it there in case people are using Spring 1?
Certainly update the documentation that you don't need it if you're
using Spring 2, though.

> -Matthias

Craig

>
> On 7/5/07, Kito D. Mann <km...@virtua.com> wrote:
> > > -----Original Message-----
> > > From: mwessendorf@gmail.com [mailto:mwessendorf@gmail.com] On Behalf Of
> > > Matthias Wessendorf
> > > Sent: Thursday, July 05, 2007 3:18 AM
> > > To: user@shale.apache.org; kmann@virtua.com
> > > Subject: Re: Shale-tiger and Spring 2
> > >
> > > thx kito,
> > >
> > > so should we remove this module on 1.1.x ?
> >
> > I think so, unless you want to keep it for people using very old versions of
> > Spring (in which case the docs should make it explicit that it's not
> > necessary for Spring 2 or higher).
> >
> >
> > > On 7/3/07, Kito D. Mann <km...@virtua.com> wrote:
> > > > > -----Original Message-----
> > > > > From: craigmcc@gmail.com [mailto:craigmcc@gmail.com] On Behalf Of
> > > Craig
> > > > > McClanahan
> > > > > Sent: Monday, July 02, 2007 11:27 PM
> > > > > To: user@shale.apache.org; kmann@virtua.com
> > > > > Subject: Re: Shale-tiger and Spring 2
> > > > >
> > > > > On 7/2/07, Kito D. Mann <km...@virtua.com> wrote:
> > > > > > Craig, does Shale really need the Spring integration anymore?
> > > Does it
> > > > > do
> > > > > > anything that Spring 2 doesn't?
> > > > >
> > > > > For Spring2, you don't need anything extra from Shale, unless you
> > > need
> > > > > EL based access to the Spring ApplicationContext.
> > > >
> > > > Actually, you get that with Spring 2 as well:
> > > >
> > > http://www.springframework.org/docs/api/org/springframework/web/jsf/Web
> > > Appli
> > > > cationContextVariableResolver.html.
> > > >
> > > > > But (from my
> > > > > understanding of the original post), the problem comes when
> > > combining
> > > > > Spring2's native JSF support with shale-tiger -- it did not sound
> > > like
> > > > > shale-spring-xxx.jar was involved.
> > > >
> > > > Ah, okay.
> > > >
> > > >
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > Kito D. Mann - Author, JavaServer Faces in Action
> > > > http://www.virtua.com - JSF/Java EE consulting, training, and
> > > mentoring
> > > > http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
> > > >
> > > > * Sign up for the JSF Central newsletter!
> > > > http://oi.vresp.com/?fid=ac048d0e17 *
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Matthias Wessendorf
> > >
> > > further stuff:
> > > blog: http://matthiaswessendorf.wordpress.com/
> > > mail: matzew-at-apache-dot-org
> >
> >
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> mail: matzew-at-apache-dot-org
>

Re: Shale-tiger and Spring 2

Posted by Matthias Wessendorf <ma...@apache.org>.
Hi Kito,

I updated the 1.1.x (which is trunk) stuff to consume Spring 2.x.
The 1.0.x branch is still on Spring 1.x

So, do we agree to remove the shale-spring module ?

-Matthias

On 7/5/07, Kito D. Mann <km...@virtua.com> wrote:
> > -----Original Message-----
> > From: mwessendorf@gmail.com [mailto:mwessendorf@gmail.com] On Behalf Of
> > Matthias Wessendorf
> > Sent: Thursday, July 05, 2007 3:18 AM
> > To: user@shale.apache.org; kmann@virtua.com
> > Subject: Re: Shale-tiger and Spring 2
> >
> > thx kito,
> >
> > so should we remove this module on 1.1.x ?
>
> I think so, unless you want to keep it for people using very old versions of
> Spring (in which case the docs should make it explicit that it's not
> necessary for Spring 2 or higher).
>
>
> > On 7/3/07, Kito D. Mann <km...@virtua.com> wrote:
> > > > -----Original Message-----
> > > > From: craigmcc@gmail.com [mailto:craigmcc@gmail.com] On Behalf Of
> > Craig
> > > > McClanahan
> > > > Sent: Monday, July 02, 2007 11:27 PM
> > > > To: user@shale.apache.org; kmann@virtua.com
> > > > Subject: Re: Shale-tiger and Spring 2
> > > >
> > > > On 7/2/07, Kito D. Mann <km...@virtua.com> wrote:
> > > > > Craig, does Shale really need the Spring integration anymore?
> > Does it
> > > > do
> > > > > anything that Spring 2 doesn't?
> > > >
> > > > For Spring2, you don't need anything extra from Shale, unless you
> > need
> > > > EL based access to the Spring ApplicationContext.
> > >
> > > Actually, you get that with Spring 2 as well:
> > >
> > http://www.springframework.org/docs/api/org/springframework/web/jsf/Web
> > Appli
> > > cationContextVariableResolver.html.
> > >
> > > > But (from my
> > > > understanding of the original post), the problem comes when
> > combining
> > > > Spring2's native JSF support with shale-tiger -- it did not sound
> > like
> > > > shale-spring-xxx.jar was involved.
> > >
> > > Ah, okay.
> > >
> > >
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > Kito D. Mann - Author, JavaServer Faces in Action
> > > http://www.virtua.com - JSF/Java EE consulting, training, and
> > mentoring
> > > http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
> > >
> > > * Sign up for the JSF Central newsletter!
> > > http://oi.vresp.com/?fid=ac048d0e17 *
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > mail: matzew-at-apache-dot-org
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

RE: Shale-tiger and Spring 2

Posted by "Kito D. Mann" <km...@virtua.com>.
> -----Original Message-----
> From: mwessendorf@gmail.com [mailto:mwessendorf@gmail.com] On Behalf Of
> Matthias Wessendorf
> Sent: Thursday, July 05, 2007 3:18 AM
> To: user@shale.apache.org; kmann@virtua.com
> Subject: Re: Shale-tiger and Spring 2
> 
> thx kito,
> 
> so should we remove this module on 1.1.x ?

I think so, unless you want to keep it for people using very old versions of
Spring (in which case the docs should make it explicit that it's not
necessary for Spring 2 or higher).


> On 7/3/07, Kito D. Mann <km...@virtua.com> wrote:
> > > -----Original Message-----
> > > From: craigmcc@gmail.com [mailto:craigmcc@gmail.com] On Behalf Of
> Craig
> > > McClanahan
> > > Sent: Monday, July 02, 2007 11:27 PM
> > > To: user@shale.apache.org; kmann@virtua.com
> > > Subject: Re: Shale-tiger and Spring 2
> > >
> > > On 7/2/07, Kito D. Mann <km...@virtua.com> wrote:
> > > > Craig, does Shale really need the Spring integration anymore?
> Does it
> > > do
> > > > anything that Spring 2 doesn't?
> > >
> > > For Spring2, you don't need anything extra from Shale, unless you
> need
> > > EL based access to the Spring ApplicationContext.
> >
> > Actually, you get that with Spring 2 as well:
> >
> http://www.springframework.org/docs/api/org/springframework/web/jsf/Web
> Appli
> > cationContextVariableResolver.html.
> >
> > > But (from my
> > > understanding of the original post), the problem comes when
> combining
> > > Spring2's native JSF support with shale-tiger -- it did not sound
> like
> > > shale-spring-xxx.jar was involved.
> >
> > Ah, okay.
> >
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Kito D. Mann - Author, JavaServer Faces in Action
> > http://www.virtua.com - JSF/Java EE consulting, training, and
> mentoring
> > http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
> >
> > * Sign up for the JSF Central newsletter!
> > http://oi.vresp.com/?fid=ac048d0e17 *
> >
> >
> >
> >
> >
> 
> 
> --
> Matthias Wessendorf
> 
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> mail: matzew-at-apache-dot-org


Re: Shale-tiger and Spring 2

Posted by Matthias Wessendorf <ma...@apache.org>.
thx kito,

so should we remove this module on 1.1.x ?

On 7/3/07, Kito D. Mann <km...@virtua.com> wrote:
> > -----Original Message-----
> > From: craigmcc@gmail.com [mailto:craigmcc@gmail.com] On Behalf Of Craig
> > McClanahan
> > Sent: Monday, July 02, 2007 11:27 PM
> > To: user@shale.apache.org; kmann@virtua.com
> > Subject: Re: Shale-tiger and Spring 2
> >
> > On 7/2/07, Kito D. Mann <km...@virtua.com> wrote:
> > > Craig, does Shale really need the Spring integration anymore? Does it
> > do
> > > anything that Spring 2 doesn't?
> >
> > For Spring2, you don't need anything extra from Shale, unless you need
> > EL based access to the Spring ApplicationContext.
>
> Actually, you get that with Spring 2 as well:
> http://www.springframework.org/docs/api/org/springframework/web/jsf/WebAppli
> cationContextVariableResolver.html.
>
> > But (from my
> > understanding of the original post), the problem comes when combining
> > Spring2's native JSF support with shale-tiger -- it did not sound like
> > shale-spring-xxx.jar was involved.
>
> Ah, okay.
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Kito D. Mann - Author, JavaServer Faces in Action
> http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
> http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
>
> * Sign up for the JSF Central newsletter!
> http://oi.vresp.com/?fid=ac048d0e17 *
>
>
>
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

RE: Shale-tiger and Spring 2

Posted by "Kito D. Mann" <km...@virtua.com>.
> -----Original Message-----
> From: craigmcc@gmail.com [mailto:craigmcc@gmail.com] On Behalf Of Craig
> McClanahan
> Sent: Monday, July 02, 2007 11:27 PM
> To: user@shale.apache.org; kmann@virtua.com
> Subject: Re: Shale-tiger and Spring 2
> 
> On 7/2/07, Kito D. Mann <km...@virtua.com> wrote:
> > Craig, does Shale really need the Spring integration anymore? Does it
> do
> > anything that Spring 2 doesn't?
> 
> For Spring2, you don't need anything extra from Shale, unless you need
> EL based access to the Spring ApplicationContext.  

Actually, you get that with Spring 2 as well:
http://www.springframework.org/docs/api/org/springframework/web/jsf/WebAppli
cationContextVariableResolver.html.

> But (from my
> understanding of the original post), the problem comes when combining
> Spring2's native JSF support with shale-tiger -- it did not sound like
> shale-spring-xxx.jar was involved.

Ah, okay.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kito D. Mann - Author, JavaServer Faces in Action
http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info

* Sign up for the JSF Central newsletter!
http://oi.vresp.com/?fid=ac048d0e17 *





Re: Shale-tiger and Spring 2

Posted by Craig McClanahan <cr...@apache.org>.
On 7/2/07, Kito D. Mann <km...@virtua.com> wrote:
> Craig, does Shale really need the Spring integration anymore? Does it do
> anything that Spring 2 doesn't?

For Spring2, you don't need anything extra from Shale, unless you need
EL based access to the Spring ApplicationContext.  But (from my
understanding of the original post), the problem comes when combining
Spring2's native JSF support with shale-tiger -- it did not sound like
shale-spring-xxx.jar was involved.

Craig

RE: Shale-tiger and Spring 2

Posted by "Kito D. Mann" <km...@virtua.com>.
Craig, does Shale really need the Spring integration anymore? Does it do
anything that Spring 2 doesn't?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kito D. Mann - Author, JavaServer Faces in Action
http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info

* Sign up for the JSF Central newsletter!
http://oi.vresp.com/?fid=ac048d0e17 *


> -----Original Message-----
> From: craigmcc@gmail.com [mailto:craigmcc@gmail.com] On Behalf Of Craig
> McClanahan
> Sent: Monday, July 02, 2007 1:49 PM
> To: user@shale.apache.org
> Subject: Re: Shale-tiger and Spring 2
> 
> On 7/2/07, Zarick Lau <za...@gmail.com> wrote:
> > Dear list,
> >
> > Our project currently using JSF RI 1.2, facelets 1.1.11, trinidad
> 1.0.1. and
> > spring2.
> >
> > I've just added shale-core (for ViewController) into our project.
> 
> What version of Shale are you using?  From version 1.0.4 (the current
> on) onwards, the ViewController stuff is in shale-view-xxx.jar, not
> shale-core-xxx.jar.
> 
> > I'm also try to add shale-tiger, however, once shale-tiger are added.
> >
> > Spring's integration stop working. We're currently using
> > org.springframework.web.jsf.DelegatingVariableResolver
> >
> > To inject spring bean into normal JSF backing bean.
> >
> > Is it a legitimate use case for mixing spring2, jsf-ri and shale-
> tiger
> > together?
> 
> It should indeed by a legitimate use case.  I suspect there might be
> something going on with the order that the resolvers are loaded ...
> will need to do some investigation to figure that out.
> 
> Craig
> 
> 
> >
> > Regards,
> > Zarick
> >


Re: Shale-tiger and Spring 2

Posted by Craig McClanahan <cr...@apache.org>.
On 7/2/07, Zarick Lau <za...@gmail.com> wrote:
> Dear list,
>
> Our project currently using JSF RI 1.2, facelets 1.1.11, trinidad 1.0.1. and
> spring2.
>
> I've just added shale-core (for ViewController) into our project.

What version of Shale are you using?  From version 1.0.4 (the current
on) onwards, the ViewController stuff is in shale-view-xxx.jar, not
shale-core-xxx.jar.

> I'm also try to add shale-tiger, however, once shale-tiger are added.
>
> Spring's integration stop working. We're currently using
> org.springframework.web.jsf.DelegatingVariableResolver
>
> To inject spring bean into normal JSF backing bean.
>
> Is it a legitimate use case for mixing spring2, jsf-ri and shale-tiger
> together?

It should indeed by a legitimate use case.  I suspect there might be
something going on with the order that the resolvers are loaded ...
will need to do some investigation to figure that out.

Craig


>
> Regards,
> Zarick
>