As I mentioned, my Spring configurations is confirmed as working. I was
using 5.0.3 which I assumed was the latest as it's the one mentioned on the
first page as the most recent SNAPSHOT. What's the best way to keep track of
the latest available SNAPSHOT?

A big "Thanks" to everyone who took the time to answer my original question.

-Matt

On 4/24/07, SergeEby <[EMAIL PROTECTED]> wrote:


Hi,

There is a new syntax with 5.0.4-SNAPSHOT and the URL
http://tapestry.apache.org/tapestry5/tapestry-spring/ was updated a while
ago. There is no more   @Inject("spring:yourBean").

It works fine for me.

Here is an excerpt:

public class UserView {
  @Inject
  @SpringBean("userManager")
  private UserManager _userManager;

   public List<User> getAllUsers() {
       return _userManager.getAllUsers();
   }

   ....
}

The error seems to indicate a problem with your spring configuration.

/Serge


Nick Westgate wrote:
>
> Hmm, I'm not sure which way the docs are out of sync - future or past.
> http://tapestry.apache.org/tapestry5/tapestry-spring/
>
> You'll see further down the page after the example it mentions
> "Spring:UserDAO".
> That's what I'm using with 5.0.3 SNAPSHOT and it works. Try
>
>      @Inject("spring:groupRepository")
>      private GroupRepository groupRepository;
>
> Cheers,
> Nick.
>
>
> Matt Welch wrote:
>> I'm sure I must be doing something wrong, but for lthe life of me, I
>> can't
>> figure out what it is.
>>
>> I'm not trying anything complicated. I've confirmed that my Spring
beans
>> are
>> accessible in my webapp so I know the Spring part of my configuration
is
>> correct. Here's how I'm trying to inject the Spring bean (per the
>> tapestry-spring documentation):
>>
>>    @Inject
>>    @SpringBean("groupRepository")
>>    private GroupRepository groupRepository;
>>
>>
>> However, when I try to access the page that uses this service, I'm
seeing
>> the following error:
>>
>> java.lang.RuntimeException: No service implements the interface
>> net.xxx.xxx.repository.GroupRepository.
>>
>> I'm clearly missing a configuration step, but I'm just not sure what it
>> is.
>> Any help would be greatly appreciated.
>>
>> -Matt
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context:
http://www.nabble.com/T5%3A-Spring-Integration-Issue-tf3636078.html#a10159940
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to