Re: T5: Spring Integration Issue

2007-04-24 Thread Massimo Lusetti

On 4/24/07, Matt Welch [EMAIL PROTECTED] 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;


This is from 5.0.4-SNAPSHOT and on, for early version use the one
other has suggested.


--
Massimo
http://meridio.blogspot.com

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



Re: Fw: Tacos:Autocompleter , problem with UTF-8 encoding for non latin characters

2007-04-24 Thread Inge Solvoll

My company just switched to UTF-8 to support all european languages. It is
not easy, and hopefully this Autocompleter issue was our last problem.
Encoding is not fun, it is not easy, and it is not always well documented
because it it needs to be configured in so many layers, all made by
different people around the world.

If anyone has a step-by-step guide on how to consistently apply an encoding
to an entire application, please let me know :)

On 4/24/07, Inge Solvoll [EMAIL PROTECTED] wrote:


Hi!

We had this problem, and we solved it by setting the correct UriEncoding
for tomcat:

http://tomcat.apache.org/faq/connectors.html#utf8

Hope this helps!

On 4/7/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:

 I'm running on empty, but I think you play with  the hivemind
 configuration
 point looking somewhat like the following to set whatever ISO encoding
 requirements you have.

 contribution configuration-id= tapestry.markup.MarkupFilters
 This contribution associates text/xml content types with
 tapestry so
 that an
 IMarkupWriter instance can be created that will write xml
 responses.
 !-- content type=text/xml
 filter=instance:org.apache.tapestry.markup.UTFMarkupFilter
 /
 --
 content type=text/xml
 filter=instance:
 org.apache.tapestry.markup.AsciiMarkupFilter /
 content type=text/plain
 filter=instance:
 org.apache.tapestry.markup.AsciiMarkupFilter/
 /contribution


 On 4/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Please someone could reply this. This is my 3rd question in this list
  without a  reply.Or no one has any idea?
 
  thank you all.
 
 
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: Tapestry users  [EMAIL PROTECTED]
  Sent: Thursday, April 06, 2006 13:47
  Subject: Tacos:autocompleter , problem with UTF-8 encoding for non
 latin
  characters
 
 
   Hi all,
  
   i get wrong characters in the autocomplete listener when non latin
   characters in the search string.
   How do i handle this? any ideas ? Even extended latin characters are

   wrongly converted.
  
   thanks.
  
   gant
   iNext
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]

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


 --
 Jesse Kuhnert
 Tacos/Tapestry, team member/developer

 Open source based consulting work centered around
 dojo/tapestry/tacos/hivemind.  http://opennotion.com





Tapestry 4.1.2-SNAPSHOT + Tacos 4.1.0-SNAPSHOT syntax error

2007-04-24 Thread Borut Bolčina

Any hints? Tacos 4.1.0-SNAPSHOT Tree is giving me trouble.

org.apache.hivemind.ApplicationRuntimeException: Unable to add method
java.lang.Object get(ognl.OgnlContext, java.lang.Object) to class
ognl.ASTAdd28176527Accessor: [source error] syntax error near ) 1) +
(.getTreeIter
   at org.apache.tapestry.enhance.ClassFabImpl.addMethod(
ClassFabImpl.java:278)
   at
org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression
(HiveMindExpressionCompiler.java:162)
   at ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:387)
   at ognl.Ognl.compileExpression(Ognl.java:123)
   at org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(
ExpressionCacheImpl.java:129)
   at
org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(
ExpressionCacheImpl.java:91)
   at
$ExpressionCache_1122267770f.getCompiledExpression($ExpressionCache_1122267770f.java)
   at org.apache.tapestry.binding.ExpressionBinding.resolveExpression(
ExpressionBinding.java:122)
   at org.apache.tapestry.binding.ExpressionBinding.getObject(
ExpressionBinding.java:113)
   at org.apache.tapestry.AbstractComponent.renderInformalParameters(
AbstractComponent.java:278)
   at org.apache.tapestry.components.Any.renderComponent(Any.java:42)
   at org.apache.tapestry.AbstractComponent.render(
AbstractComponent.java:712)
   at org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
DefaultResponseBuilder.java:184)
   at org.apache.tapestry.AbstractComponent.renderBody(
AbstractComponent.java:525)
   at net.sf.tacos.components.tree.TreeHelper.normalRenderComponent(
TreeHelper.java:81)
   at net.sf.tacos.components.tree.TreeHelper.renderComponent(
TreeHelper.java:56)
   at org.apache.tapestry.AbstractComponent.render(
AbstractComponent.java:712)
   at org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
DefaultResponseBuilder.java:184)
   at org.apache.tapestry.AbstractComponent.renderBody(
AbstractComponent.java:525)
   at org.apache.tapestry.components.ForBean.renderComponent(
ForBean.java:181)
   at org.apache.tapestry.AbstractComponent.render(
AbstractComponent.java:712)
   at org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
DefaultResponseBuilder.java:184)
   at org.apache.tapestry.AbstractComponent.renderBody(
AbstractComponent.java:525)
   at org.apache.tapestry.components.Any.renderComponent(Any.java:47)
   at org.apache.tapestry.AbstractComponent.render(
AbstractComponent.java:712)
   at org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
DefaultResponseBuilder.java:184)
   at org.apache.tapestry.BaseComponent.renderComponent(
BaseComponent.java:92)
   at net.sf.tacos.components.tree.Tree.renderComponent(Tree.java:85)
   at org.apache.tapestry.AbstractComponent.render(
AbstractComponent.java:712)
   at org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
DefaultResponseBuilder.java:184)
   at org.apache.tapestry.AbstractComponent.renderBody(
AbstractComponent.java:525)
   at org.apache.tapestry.components.RenderBody.renderComponent(
RenderBody.java:41)
   at org.apache.tapestry.AbstractComponent.render(
AbstractComponent.java:712)
   at org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
DefaultResponseBuilder.java:184)
   at org.apache.tapestry.AbstractComponent.renderBody(
AbstractComponent.java:525)
   at org.apache.tapestry.html.Body.renderComponent(Body.java:38)
   at org.apache.tapestry.AbstractComponent.render(
AbstractComponent.java:712)
   at org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
DefaultResponseBuilder.java:184)
   at org.apache.tapestry.AbstractComponent.renderBody(
AbstractComponent.java:525)
   at org.apache.tapestry.html.Shell.renderComponent(Shell.java:64)
   at org.apache.tapestry.AbstractComponent.render(
AbstractComponent.java:712)
   at org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
DefaultResponseBuilder.java:184)
   at org.apache.tapestry.BaseComponent.renderComponent(
BaseComponent.java:92)
   at org.apache.tapestry.AbstractComponent.render(
AbstractComponent.java:712)
   at org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
DefaultResponseBuilder.java:184)
   at org.apache.tapestry.BaseComponent.renderComponent(
BaseComponent.java:92)
   at org.apache.tapestry.AbstractComponent.render(
AbstractComponent.java:712)
   at org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
DefaultResponseBuilder.java:182)
   at org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java
:237)
   at org.apache.tapestry.engine.RequestCycle.renderPage(
RequestCycle.java:397)
   at
org.apache.tapestry.services.impl.DefaultResponseBuilder.renderResponse(
DefaultResponseBuilder.java:158)
   at

Re: T5: Spring Integration Issue

2007-04-24 Thread 蝈蝈龙

If you develop base on Tapestry 5.0.3
Please use
 @Inject(Spring:groupRepository)
Instead of
   @Inject
   @SpringBean(groupRepository)

'groupRepository' is just your the bean id defined in your spring's
configuration file.

This is my first to answer question in mail list

2007/4/24, Matt Welch  [EMAIL PROTECTED]:


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



RE: Tapestry Forum

2007-04-24 Thread Kolesnikov, Alexander GNI
I think Tapestry forum is very much needed. Exactly for expanding and
strengthening Tapestry community. The more communication channels there
are about Tapestry, the better for the framework, and for all of us.
Different people prefer different things, so there should be ideally
plenty of everything. 

I have recently convinced my manager to adopt Tapestry 4 for a major new
project. That was really hard, and the main reason is that there are
very few people who know anything at all about Tapestry. I feel this is
something to be dealt with.

Will go and post there ;)

Alexander

-Original Message-
From: Paul Stanton [mailto:[EMAIL PROTECTED] 
Sent: 24 April 2007 01:11
To: Tapestry users
Subject: Re: Tapestry Forum


Kalle,

Each to their own I guess, if you aren't interested by all means ignore.

I am not trying to spam the list, just trying to build on the tapestry 
community.

Personally I think forums are a more usable medium that mailing lists 
for a number of reasons. eg:
* It is easier for new users to ask their first question
* You can 'decorate' your messages (code blocks, quotes etc) making them

more legible.
* Posts are better categorised
* You can ignore traffic until you are ready to read it

I think many new tapestry users are uncomfortable with joining a mailing

list and therefore don't get the help they need to get up and running.

You don't have to agree...

Paul.

Kalle Korhonen wrote:
 We have the mailing lists for questions, they are archived and 
 searchable and we have the wiki which I regard as a much better place 
 to store how-tos etc. and other more static information. What do we 
 need the forums for?

 Kalle

 On 4/23/07, Paul Stanton [EMAIL PROTECTED] wrote:

 It would be great to get a few of you over at 
 http://www.tapestryforums.com/

 I've signed up as a moderator to help out with the spam issues, but 
 the place could really benefit from your knowledge.

 Paul.



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



--
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is intended 
even if addressed incorrectly.  Please delete it from your files if you are not 
the intended recipient.  Thank you for your compliance.  Copyright 2007 CIGNA
==


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



Re: How to add a PageLink in a grid?

2007-04-24 Thread Eugene Lozovan

Yes, I also would like to know the way to have a grid with link on a page.
E.g. grid with users list and click on a row takes navigation to an
EditSpecifiedUser page.

Thanks in advance!

On 24/04/07, Donyee [EMAIL PROTECTED] wrote:


Is there a simple way to add a pagelink in the row ?

Some suggestion will be great!
--
Chinese name:徐 依伟
English name: will



Re: How to add a PageLink in a grid?

2007-04-24 Thread Massimo Lusetti

On 4/24/07, Donyee [EMAIL PROTECTED] wrote:


Is there a simple way to add a pagelink in the row ?

Some suggestion will be great!


Use the t:parameter way:
t:parameter name=namecell
  your hatml goes here
/t:parameter

This all goes inside a t:grid component

--
Massimo
http://meridio.blogspot.com

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



Creating unique URLs

2007-04-24 Thread Hans Braxmeier

Hello,

The tapestry tutorial demonstrates how to implement
the Hi/Lo Game (Start and Guess Page). Is it possible
to set the URL dependent on the guessed number?
Let's say if I click 10 the Browser's URL should
be http://localhost:8080/guess/10, if I click 5 the
Browser's URL should be be http://localhost:8080/guess/5
(In Tapestry 4 we used ServiceEncoding)

Thanks for any help,
Hans

--

Abteilungen SAI
und Stochastik

Universität Ulm
Helmholtzstr. 18
Raum E22
0731/50-23575

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



Re: Creating unique URLs

2007-04-24 Thread Massimo Lusetti

On 4/24/07, Hans Braxmeier [EMAIL PROTECTED] wrote:


The tapestry tutorial demonstrates how to implement
the Hi/Lo Game (Start and Guess Page). Is it possible
to set the URL dependent on the guessed number?
Let's say if I click 10 the Browser's URL should
be http://localhost:8080/guess/10, if I click 5 the
Browser's URL should be be http://localhost:8080/guess/5
(In Tapestry 4 we used ServiceEncoding)


With that kind of URL the 10 and 5 numbers are considered page context
parameter so you can get at them with the onActivate/onPassivate
paradigm.


--
Massimo
http://meridio.blogspot.com

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



Re: Specify where to find the HTML templates

2007-04-24 Thread Alejandro Scandroli

When I have explicitly define a template I use this in my component/page:

 @Asset(value = /org/trails/component/ObjectTable.html)
 public abstract IAsset get$template();

Where value points to your html template. The method name is very
important you can't change it.

The down side of this approach is that you have to explicitly define
all the templates for all your pages, but if you can't find a better
approach this one will work.

Saludos.
Alejandro.



On 4/23/07, mateamargo [EMAIL PROTECTED] wrote:



Manri Offermann-3 wrote:

 Hi,

 You can use the ISpecificationResolverDelegate and specify where to find
 the specs and htmls. Try something like this:

 http://wiki.apache.org/tapestry/PagesAndComponentsInWEB-INF

 Best regards,

 Manri


Hi, thanks for your answer.

I'm looking something exactly like that, but not for the *.pages files
(because I don't have any), but for my HTML templates files.

After doing what that wiki says, Tapestry forces me to use a .page file for
each template.

Is there something similar to this
org.apache.tapestry.specification-resolver-delegate but with templates?

Thanks.

--
View this message in context: 
http://www.nabble.com/Specify-where-to-find-the-HTML-templates-tf3603234.html#a10140866
Sent from the Tapestry - User mailing list archive at Nabble.com.



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



Re: How to add a PageLink in a grid?

2007-04-24 Thread Donyee

span t:type=Grid source=jobs model=modelForGrid rowsPerPage=2
t:parameter name=updatecell
a t:type=PageLink t:page=Start t:context=更新/a
/t:parameter /span

but how can i get a arg for the t:context?
I am new to T5!

2007/4/24, Eugene Lozovan [EMAIL PROTECTED]:

Yes, I also would like to know the way to have a grid with link on a page.
E.g. grid with users list and click on a row takes navigation to an
EditSpecifiedUser page.

Thanks in advance!

On 24/04/07, Donyee [EMAIL PROTECTED] wrote:

 Is there a simple way to add a pagelink in the row ?

 Some suggestion will be great!
 --
 Chinese name:徐 依伟
 English name: will





--
Chinese name:徐 依伟
English name: will


Re: retrive value from html to java

2007-04-24 Thread Christian Haselbach
On Tue, Apr 24, 2007 at 07:08:44AM -, ana  ben wrote:
   
  tr jwcid=[EMAIL PROTECTED] source=ognl:session.menu.tools 
 value=ognl:tool element=tr
 tdspan jwcid=@Insert id=toolnumber 
 value=ognl:tool.product.pnumberTool Number/span/td
 
 Can any one tell me how to retrive the pnumber value from the html in java 
 file.

You mean what the equivalent of the ognl expression
tool.product.pnumber in java would be? Well, this depends on what
realy is behind the properties tool and product. But probably it is
equivalent to getTool().getProduct().getPnumber().

Regards,
Christian
-- 
Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804
TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
Geschäftsführer: Henrik Klagges, Gerhard Müller, Eike Reinel
Amtsgericht München, HRB 135082

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



RE: Hivemind eager loading of a service which references tapestry services is not possible

2007-04-24 Thread Marcus.Schulte
The name of the config-point is ApplicationInitializers, not
ApplicationSpecificationInitializer.

 -Original Message-
 From: Paul Stanton [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 24, 2007 2:27 AM
 To: Tapestry users
 Subject: Re: Hivemind eager loading of a service which 
 references tapestry services is not possible
 
 Thanks Howard,
 
 I've altered the 'contribution element to the following:
 
 contribution
 configuration-id=tapestry.init.ApplicationSpecificationInitializer
 command 
 after=tapestry.init.ApplicationSpecificationInitializer 
 id=zzz object=service:application.zzz/
 /contribution
 
 But now I get the error message:
 
 org.apache.hivemind.ApplicationRuntimeException: Error at 
 context:/WEB-INF/hivemodule.xml, line 29, column 85: Module 
 application has contributed to unknown configuration point 
 tapestry.init.ApplicationSpecificationInitializer. The 
 contribution has been ignored.
 
 It seems I don't have visibility of the tapestry 
 configuration points. 
 How I declare/reference the configuration point?
 
 Paul.
 
 Howard Lewis Ship wrote:
  What you do in this case, where you are reliant on information 
  HiveMind doesn't have at Registry creation, is to hook into the 
  ApplicationInitializers configuration point:
 
  
 http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/tapestry
  .init.ApplicationInitializers.html
 
 
  On 4/22/07, Paul Stanton [EMAIL PROTECTED] wrote:
 
  I'm trying to avoid Spring and use Hivemind to manage my Hibernate 
  service. It's pretty basic stuff but one basic feature is proving 
  very hard to achieve: eager load startup.
 
  In my case I need to reference WebContext (the tapestry 
 component) in 
  my initialisation procedure, but it seems to be 
 'unresolved' at that 
  point and I get a NullPointerException.
 
  As a result, I'm starting to think there is a gap in how 
 Tapestry and 
  Hivemind are integrated, in that tapestry components cannot be 
  referenced in eager loading services.
 
  It's possible that changing service loading order (in
  ApplicationServlet.init) solves this, and equally possible 
 that I've 
  missed an obvious alternative.
 
  I've got a thread with all the relevant details:
 
  
 http://www.tapestryforums.com/can-hivemind-call-something-after-all-s
  et-objects-vt9931.html
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: Upgrading Tapestry

2007-04-24 Thread Marcus.Schulte
Eclipse-WTP is quite decent. With Annotations and/or auto-completion in
xml the only things I miss are:

  - jumping between template and Java files
  - an autocompleting template editor.

both losses don't hurt a lot - for me. Could be different if you used a
real lot of different component-types.

Marcus

 -Original Message-
 From: James Sherwood [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 23, 2007 1:36 PM
 To: Tapestry users
 Subject: Re: Upgrading Tapestry
 
 Hello,
 
 Sorry, I said tapestry 4 and meant 4.1.
 
 So currently we use Tapestry 3 and wish to upgrade to Tapestry 4.1.
 
 We use spindle/eclipse and it says that spindle only works 
 with 3 so I was wondering what people are using to develop 
 Tapestry 4.1.
 
 Thanks,
 James
 
 - Original Message -
 From: James Sherwood [EMAIL PROTECTED]
 To: Tapestry users users@tapestry.apache.org
 Sent: Monday, April 23, 2007 8:25 AM
 Subject: Upgrading Tapestry
 
 
  Hello,
 
  I am starting to upgrade to Tapestry 4 from 3 and noticed 
 that spindle 
  only supports 3.
 
  We use Eclipse/Spindle and I was wondering what people are 
 using for 
  Tapestry 4?
 
  Thanks,
  James
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  __ NOD32 2212 (20070423) Information __
 
  This message was checked by NOD32 antivirus system.
  http://www.eset.com
 
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: Creating unique URLs

2007-04-24 Thread Hans Braxmeier

Thanks Massimo, it works...

One more question: Is it possible to change
guess although the html-file is named
guess.html respectively the class-file
guess.java?

Hans

On Tue, 24 Apr 2007, Massimo Lusetti wrote:

 On 4/24/07, Hans Braxmeier [EMAIL PROTECTED] wrote:

  The tapestry tutorial demonstrates how to implement
  the Hi/Lo Game (Start and Guess Page). Is it possible
  to set the URL dependent on the guessed number?
  Let's say if I click 10 the Browser's URL should
  be http://localhost:8080/guess/10, if I click 5 the
  Browser's URL should be be http://localhost:8080/guess/5
  (In Tapestry 4 we used ServiceEncoding)

 With that kind of URL the 10 and 5 numbers are considered page context
 parameter so you can get at them with the onActivate/onPassivate
 paradigm.


 --
 Massimo
 http://meridio.blogspot.com

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




--

Abteilungen SAI
und Stochastik

Universität Ulm
Helmholtzstr. 18
Raum E22
0731/50-23575

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



Re: T5: Spring Integration Issue

2007-04-24 Thread SergeEby

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 ListUser 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]



Re: Creating unique URLs

2007-04-24 Thread Massimo Lusetti

On 4/24/07, Hans Braxmeier [EMAIL PROTECTED] wrote:



Thanks Massimo, it works...

One more question: Is it possible to change
guess although the html-file is named
guess.html respectively the class-file
guess.java?


I would say not but with a considerable amount of code patches.

--
Massimo
http://meridio.blogspot.com

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



Re: How to add a PageLink in a grid?

2007-04-24 Thread Massimo Lusetti

On 4/24/07, Donyee [EMAIL PROTECTED] wrote:


span t:type=Grid source=jobs model=modelForGrid rowsPerPage=2
t:parameter name=updatecell
a t:type=PageLink t:page=Start t:context=更新/a
/t:parameter /span

but how can i get a arg for the t:context?


Set a row parameter within Grid to point to a property object in your
page then grab a property (maybe a pkey if that is db related) from
that object:

span t:type=Grid source=jobs row=job model=modelForGrid
rowsPerPage=2
   t:parameter name=updatecell
a t:type=PageLink t:page=Start t:context=job.id更新/a
   /t:parameter /span


I am new to T5!


Consider look also at the source while looking for answers.

--
Massimo
http://meridio.blogspot.com


Re: getKeyProvider() not found in org.apache.tapestry.IDynamicInvoker

2007-04-24 Thread Jesse Kuhnert

A jira issue (in ognl ? ) would still be nice, but you can do what you want
if you use one of the specific version numbers in here:

http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/tapestry-framework/maven-metadata.xml

On 4/23/07, Borut Bolčina [EMAIL PROTECTED] wrote:


In Friday my app worked, today I am getting a lot of errors. Maven
pulled the latest tapestry 4.1.2 libs from the repos.

javassist.compiler.CompileError
getKeyProvider() not found in org.apache.tapestry.IDynamicInvoker

Unable to parse OGNL expression 'async ?
{keyProvider.getKey(value).toString() } : null': Unable to add method
java.util.List ref1(ognl.OgnlContext, java.lang.Object) to class
ognl.ASTTest8638208Accessor: [source error] getKeyProvider() not found
in org.apache.tapestry.IDynamicInvoker

Off topic, but still...
Is there a way to convince maven to use jars that were in my local repo
on specific date/time? Can I say - use jars from up to last Friday?

Thanks,
Borut


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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: Upgrading Tapestry

2007-04-24 Thread Jesse Kuhnert

FYI - if you're not against a commercial editor the HandyTapestry IDEA
plugin does all that you have mentioned and much much more...I use it myself
for T4 related dev.

http://handyedit.com/

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


Eclipse-WTP is quite decent. With Annotations and/or auto-completion in
xml the only things I miss are:

  - jumping between template and Java files
  - an autocompleting template editor.

both losses don't hurt a lot - for me. Could be different if you used a
real lot of different component-types.

Marcus

 -Original Message-
 From: James Sherwood [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 23, 2007 1:36 PM
 To: Tapestry users
 Subject: Re: Upgrading Tapestry

 Hello,

 Sorry, I said tapestry 4 and meant 4.1.

 So currently we use Tapestry 3 and wish to upgrade to Tapestry 4.1.

 We use spindle/eclipse and it says that spindle only works
 with 3 so I was wondering what people are using to develop
 Tapestry 4.1.

 Thanks,
 James

 - Original Message -
 From: James Sherwood [EMAIL PROTECTED]
 To: Tapestry users users@tapestry.apache.org
 Sent: Monday, April 23, 2007 8:25 AM
 Subject: Upgrading Tapestry


  Hello,
 
  I am starting to upgrade to Tapestry 4 from 3 and noticed
 that spindle
  only supports 3.
 
  We use Eclipse/Spindle and I was wondering what people are
 using for
  Tapestry 4?
 
  Thanks,
  James
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  __ NOD32 2212 (20070423) Information __
 
  This message was checked by NOD32 antivirus system.
  http://www.eset.com
 
 


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



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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


T5: Improve pretty url support

2007-04-24 Thread Jérôme BERNARD

Hi,

I'd like to have my AboutUs page mapped to the URL /about-us.html.
I can't find a trivial way to do it, and wonder why it could not be
done transparently when the name of the page is AboutUs (meaning the
Camel syntax would mean add a dash before the uppercase letter).

This is something really important for SEO reasons as the dash is the
only word separator accepted (otherwise I have /aboutus.html).


Thanks in advance.


Regards,
Jérôme.


--
Jérôme BERNARD,
Kalixia, SARL.
http://weblog.kalixia.com

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



Fwd: Call for Papers Opens for ApacheCon US 2007

2007-04-24 Thread Howard Lewis Ship

I expect to be submitting a session about T5, but if you have something else
worthy of note, such as case studies, innovative techniques, or something I
haven't thought of, then please submit!

-- Forwarded message --
From: Rich Bowen [EMAIL PROTECTED]
Date: Apr 16, 2007 7:40 AM
Subject: Call for Papers Opens for ApacheCon US 2007
To: [EMAIL PROTECTED]

Call for Papers Opens for ApacheCon US 2007

The Call for Papers is now open for ApacheCon US, to be held November
12-16 at the Peachtree Westin, Atlanta. The conference will consist
of two day of tutorials (November 12-13) and three days of regular
conference sessions (November 14-16).

Please log in to the website at http://apachecon.com/html/login.html
to submit your proposal. Further details about fees and are
avaialable on the CFP form.

Topics appropriate for submission to this conference are manifold,
and may include but are not restricted to:

* ASF projects
* ASF-Incubated projects
* Scripting languages and dynamic content such as Java, Perl, Python,
Ruby, XSL, and PHP
* New technologies and broader initiatives such as Web Services and
Web 2.0
* Security and e-commerce, performance tuning, load balancing, and
high availability
* Business and community issues surrounding the ASF and Open Source

The paper submission deadline is Monday, 28 April 2007, Midnight GMT.

Thanks, and we hope to hear from you, and to see you in Atlanta.

--
The ApacheCon Planners
[EMAIL PROTECTED]


--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com


Re: Specify where to find the HTML templates

2007-04-24 Thread mateamargo



Manri Offermann-3 wrote:
 
 Hi,
 
 how about ITemplateSourceDelegate:
 
 org.apache.tapestry. template-source-delegate
 
 or you could modify the specification resolver delegate like this example:
 
 http://wiki.apache.org/tapestry/SpeclessPagesInWEB-INF
 
 Regards,
 
 Manri
 

Thanks, with that I'm able to put inside WEB-INf, but not in WEB-INF/pages.
Should I change the @PageLink including this subdirectory?

-- 
View this message in context: 
http://www.nabble.com/Specify-where-to-find-the-HTML-templates-tf3603234.html#a10162936
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Specify where to find the HTML templates

2007-04-24 Thread mateamargo



mateamargo wrote:
 
 
 
 Manri Offermann-3 wrote:
 
 Hi,
 
 how about ITemplateSourceDelegate:
 
 org.apache.tapestry. template-source-delegate
 
 or you could modify the specification resolver delegate like this
 example:
 
 http://wiki.apache.org/tapestry/SpeclessPagesInWEB-INF
 
 Regards,
 
 Manri
 
 
 Thanks, with that I'm able to put inside WEB-INf, but not in
 WEB-INF/pages.
 Should I change the @PageLink including this subdirectory?
 
 

The answer is yes :P
I have changed the page value from SomePage to page/SomePage.

Thanks!!
-- 
View this message in context: 
http://www.nabble.com/Specify-where-to-find-the-HTML-templates-tf3603234.html#a10162994
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Call for Papers Opens for ApacheCon US 2007

2007-04-24 Thread Jan de Jonge

Sounds good!!


On 4/24/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:


I expect to be submitting a session about T5, but if you have something
else
worthy of note, such as case studies, innovative techniques, or something
I
haven't thought of, then please submit!

-- Forwarded message --
From: Rich Bowen [EMAIL PROTECTED]
Date: Apr 16, 2007 7:40 AM
Subject: Call for Papers Opens for ApacheCon US 2007
To: [EMAIL PROTECTED]

Call for Papers Opens for ApacheCon US 2007

The Call for Papers is now open for ApacheCon US, to be held November
12-16 at the Peachtree Westin, Atlanta. The conference will consist
of two day of tutorials (November 12-13) and three days of regular
conference sessions (November 14-16).

Please log in to the website at http://apachecon.com/html/login.html
to submit your proposal. Further details about fees and are
avaialable on the CFP form.

Topics appropriate for submission to this conference are manifold,
and may include but are not restricted to:

* ASF projects
* ASF-Incubated projects
* Scripting languages and dynamic content such as Java, Perl, Python,
Ruby, XSL, and PHP
* New technologies and broader initiatives such as Web Services and
Web 2.0
* Security and e-commerce, performance tuning, load balancing, and
high availability
* Business and community issues surrounding the ASF and Open Source

The paper submission deadline is Monday, 28 April 2007, Midnight GMT.

Thanks, and we hope to hear from you, and to see you in Atlanta.

--
The ApacheCon Planners
[EMAIL PROTECTED]


--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com



Re: T5: Improve pretty url support

2007-04-24 Thread janjonge

+1 for me!

Jan

Jérôme BERNARD wrote:
 
 Hi,
 
 I'd like to have my AboutUs page mapped to the URL /about-us.html.
 I can't find a trivial way to do it, and wonder why it could not be
 done transparently when the name of the page is AboutUs (meaning the
 Camel syntax would mean add a dash before the uppercase letter).
 
 This is something really important for SEO reasons as the dash is the
 only word separator accepted (otherwise I have /aboutus.html).
 
 
 Thanks in advance.
 
 
 Regards,
 Jérôme.
 
 
 -- 
 Jérôme BERNARD,
 Kalixia, SARL.
 http://weblog.kalixia.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Improve-pretty-url-support-tf3639138.html#a10163861
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Eager loading Tapestry pages

2007-04-24 Thread Andrus Adamchik
Analyzing more thread dumps, I found that PageLoader is not the only  
contention point, but still Tapestry service stack warmup is the  
bottleneck. Any ideas?


Andrus


On Apr 24, 2007, at 5:00 PM, Andrus Adamchik wrote:

Maybe that's a FAQ that I overlooked somehow, but a google search  
wasn't helpful in solving the problem below...


I have a busy application running on Tapestry 4.0.2 / Jetty 6 / JDK  
1.5. On startup the JVM would sometimes crash overwhelmed with  
requests. If it survives for the first 1-2 minutes, it warms up and  
runs just fine thereafter. I was able to take thread dump right  
before it crashed (see below). Most request threads (there's about  
a hundred per JVM) are being stuck waiting for shared resources,  
somewhere down PageLoader stack.


So it would be nice to eagerly warm up Tapestry stack. I tried  
eager-loading PageLoader service, but I guess this doesn't load  
needed dependencies, as I got a bunch of startup errors for the  
following configuration:


contribution configuration-id=hivemind.EagerLoad
 load service-id=tapestry.page.PageLoader /
/contribution

So my question is: how can I init Tapestry services eagerly from  
within the ApplicationServlet.init(), before the gate is opened and  
requests start to come in? I can probably hack some kind of startup  
filter that throttles the first N requests, but I hope there's a  
standard way of handling that.


Any insights are appreciated.

Thanks
Andrus



 at org.mortbay.jetty.webapp.WebAppClassLoader.getResource 
(WebAppClassLoader.java:221)
- waiting to lock 0x794637d0 (a  
org.mortbay.jetty.webapp.WebAppClassLoader)
at org.apache.hivemind.impl.DefaultClassResolver.getResource 
(DefaultClassResolver.java:50)
at org.apache.hivemind.util.LocalizedResourceFinder.resolve 
(LocalizedResourceFinder.java:71)
at  
org.apache.hivemind.util.ClasspathResource.getLocalization 
(ClasspathResource.java:57)
at  
org.apache.tapestry.l10n.DefaultResourceLocalizer.findLocalization 
(DefaultResourceLocalizer.java:36)
at $ResourceLocalizer_11223035a49.findLocalization 
($ResourceLocalizer_11223035a49.java)
at $ResourceLocalizer_112230359be.findLocalization 
($ResourceLocalizer_112230359be.java)
at  
org.apache.tapestry.services.impl.TemplateSourceImpl.findStandardTempl 
ate(TemplateSourceImpl.java:333)
at  
org.apache.tapestry.services.impl.TemplateSourceImpl.findTemplate 
(TemplateSourceImpl.java:245)
at  
org.apache.tapestry.services.impl.TemplateSourceImpl.getTemplate 
(TemplateSourceImpl.java:188)
at $TemplateSource_112230359ce.getTemplate 
($TemplateSource_112230359ce.java)
at  
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemp 
late(ComponentTemplateLoaderImpl.java:55)
at $ComponentTemplateLoader_11223035a4e.loadTemplate 
($ComponentTemplateLoader_11223035a4e.java)
at  
org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent 
(PageLoader.java:648)
at org.apache.tapestry.BaseComponent.readTemplate 
(BaseComponent.java:77)
at org.apache.tapestry.BaseComponent.finishLoad 
(BaseComponent.java:107)
at $ContentModuleComponent_17.finishLoad 
($ContentModuleComponent_17.java)
at  
org.apache.tapestry.pageload.PageLoader.constructComponent 
(PageLoader.java:439)
at  
org.apache.tapestry.pageload.PageLoader.createImplicitComponent 
(PageLoader.java:494)



   at  
org.apache.tapestry.services.impl.TemplateSourceImpl.constructTemplate 
Instance(TemplateSourceImpl.java:395)
- waiting to lock 0x7b3f66e8 (a  
org.apache.tapestry.services.impl.TemplateSourceImpl)
at  
org.apache.tapestry.services.impl.TemplateSourceImpl.parseTemplate 
(TemplateSourceImpl.java:383)
at  
org.apache.tapestry.services.impl.TemplateSourceImpl.getOrParseTemplat 
e(TemplateSourceImpl.java:360)
at  
org.apache.tapestry.services.impl.TemplateSourceImpl.findStandardTempl 
ate(TemplateSourceImpl.java:340)
at  
org.apache.tapestry.services.impl.TemplateSourceImpl.findTemplate 
(TemplateSourceImpl.java:245)
at  
org.apache.tapestry.services.impl.TemplateSourceImpl.getTemplate 
(TemplateSourceImpl.java:188)
at $TemplateSource_112230359ce.getTemplate 
($TemplateSource_112230359ce.java)
at  
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemp 
late(ComponentTemplateLoaderImpl.java:55)
at $ComponentTemplateLoader_11223035a4e.loadTemplate 
($ComponentTemplateLoader_11223035a4e.java)
at  
org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent 
(PageLoader.java:648)
at org.apache.tapestry.BaseComponent.readTemplate 
(BaseComponent.java:77)
at org.apache.tapestry.BaseComponent.finishLoad 
(BaseComponent.java:107)
at $ContentModuleComponent_17.finishLoad 
($ContentModuleComponent_17.java)
at  

Re: Eager loading Tapestry pages

2007-04-24 Thread Jesse Kuhnert

It's hard to say for sure what the problem is without more information but
you can try adding things like the below methods to help your startup times:

-) Increase or add the initial heap memory size via command line -Xms224m
(or whatever seems appropriate) .

-) Increase your perm gen space size - this will be critical for all of the
javassist compilations that happen when initially loading up pages /
components. -XX:MaxPermSize=99m

-) Make sure you don't have caching disabled of course. ;)

Not sure what else there is. I know there are a few unnecessary
synchronized() lock calls in a few places that were added to fix some issues
related to dev mode problems (ie caching being disabled) - but I've been
slowly removing them here and there when I notice them. Maybe I should just
do one big sweep of all usages to be sure.

On 4/24/07, Andrus Adamchik [EMAIL PROTECTED] wrote:


Maybe that's a FAQ that I overlooked somehow, but a google search
wasn't helpful in solving the problem below...

I have a busy application running on Tapestry 4.0.2 / Jetty 6 / JDK
1.5. On startup the JVM would sometimes crash overwhelmed with
requests. If it survives for the first 1-2 minutes, it warms up and
runs just fine thereafter. I was able to take thread dump right
before it crashed (see below). Most request threads (there's about a
hundred per JVM) are being stuck waiting for shared resources,
somewhere down PageLoader stack.

So it would be nice to eagerly warm up Tapestry stack. I tried eager-
loading PageLoader service, but I guess this doesn't load needed
dependencies, as I got a bunch of startup errors for the following
configuration:

contribution configuration-id=hivemind.EagerLoad
  load service-id=tapestry.page.PageLoader /
/contribution

So my question is: how can I init Tapestry services eagerly from
within the ApplicationServlet.init(), before the gate is opened and
requests start to come in? I can probably hack some kind of startup
filter that throttles the first N requests, but I hope there's a
standard way of handling that.

Any insights are appreciated.

Thanks
Andrus



  at org.mortbay.jetty.webapp.WebAppClassLoader.getResource
(WebAppClassLoader.java:221)
sniupped





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: getKeyProvider() not found in org.apache.tapestry.IDynamicInvoker

2007-04-24 Thread Borut Bolčina

Thanks Jesse, I tried with version numbers, but am unsure if the right jar
is being picked up. I posted a question on maven user list under Depending
on snapshots topic. As I can't afford to much time investigating, I
downgraded to 4.1.1 which works. Using on the edge libs and frameworks can
really hurt sometime, but still...

I will file a jira issue later today or tomorrow.


2007/4/24, Jesse Kuhnert [EMAIL PROTECTED]:

A jira issue (in ognl ? ) would still be nice, but you can do what you

want

if you use one of the specific version numbers in here:



http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/tapestry-framework/maven-metadata.xml


On 4/23/07, Borut Bolčina [EMAIL PROTECTED] wrote:

 In Friday my app worked, today I am getting a lot of errors. Maven
 pulled the latest tapestry 4.1.2 libs from the repos.

 javassist.compiler.CompileError
 getKeyProvider() not found in org.apache.tapestry.IDynamicInvoker

 Unable to parse OGNL expression 'async ?
 {keyProvider.getKey(value).toString() } : null': Unable to add method
 java.util.List ref1(ognl.OgnlContext, java.lang.Object) to class
 ognl.ASTTest8638208Accessor: [source error] getKeyProvider() not found
 in org.apache.tapestry.IDynamicInvoker

 Off topic, but still...
 Is there a way to convince maven to use jars that were in my local repo
 on specific date/time? Can I say - use jars from up to last Friday?

 Thanks,
 Borut


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




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com



Re: getKeyProvider() not found in org.apache.tapestry.IDynamicInvoker

2007-04-24 Thread Andreas Andreou

Borut, this has also (just) been fixed in the latest tacos...
As stated in the other email, im filling ALL the related bug reports :)

On 4/24/07, Borut Bolčina [EMAIL PROTECTED] wrote:


Thanks Jesse, I tried with version numbers, but am unsure if the right jar
is being picked up. I posted a question on maven user list under
Depending
on snapshots topic. As I can't afford to much time investigating, I
downgraded to 4.1.1 which works. Using on the edge libs and frameworks can
really hurt sometime, but still...

I will file a jira issue later today or tomorrow.


2007/4/24, Jesse Kuhnert [EMAIL PROTECTED]:
 A jira issue (in ognl ? ) would still be nice, but you can do what you
want
 if you use one of the specific version numbers in here:



http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/tapestry-framework/maven-metadata.xml

 On 4/23/07, Borut Bolčina [EMAIL PROTECTED] wrote:
 
  In Friday my app worked, today I am getting a lot of errors. Maven
  pulled the latest tapestry 4.1.2 libs from the repos.
 
  javassist.compiler.CompileError
  getKeyProvider() not found in org.apache.tapestry.IDynamicInvoker
 
  Unable to parse OGNL expression 'async ?
  {keyProvider.getKey(value).toString() } : null': Unable to add method
  java.util.List ref1(ognl.OgnlContext, java.lang.Object) to class
  ognl.ASTTest8638208Accessor: [source error] getKeyProvider() not found
  in org.apache.tapestry.IDynamicInvoker
 
  Off topic, but still...
  Is there a way to convince maven to use jars that were in my local
repo
  on specific date/time? Can I say - use jars from up to last Friday?
 
  Thanks,
  Borut
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Jesse Kuhnert
 Tapestry/Dojo team member/developer

 Open source based consulting work centered around
 dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com






--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


Re: getKeyProvider() not found in org.apache.tapestry.IDynamicInvoker

2007-04-24 Thread Jesse Kuhnert

Well you better file them fast as I'm in there fixing things right now and
don't see any yet. ;)

On 4/24/07, Andreas Andreou [EMAIL PROTECTED] wrote:


Borut, this has also (just) been fixed in the latest tacos...
As stated in the other email, im filling ALL the related bug reports :)

On 4/24/07, Borut Bolčina [EMAIL PROTECTED] wrote:

 Thanks Jesse, I tried with version numbers, but am unsure if the right
jar
 is being picked up. I posted a question on maven user list under
 Depending
 on snapshots topic. As I can't afford to much time investigating, I
 downgraded to 4.1.1 which works. Using on the edge libs and frameworks
can
 really hurt sometime, but still...

 I will file a jira issue later today or tomorrow.


 2007/4/24, Jesse Kuhnert [EMAIL PROTECTED]:
  A jira issue (in ognl ? ) would still be nice, but you can do what you
 want
  if you use one of the specific version numbers in here:
 
 


http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/tapestry-framework/maven-metadata.xml
 
  On 4/23/07, Borut Bolčina [EMAIL PROTECTED] wrote:
  
   In Friday my app worked, today I am getting a lot of errors. Maven
   pulled the latest tapestry 4.1.2 libs from the repos.
  
   javassist.compiler.CompileError
   getKeyProvider() not found in org.apache.tapestry.IDynamicInvoker
  
   Unable to parse OGNL expression 'async ?
   {keyProvider.getKey(value).toString() } : null': Unable to add
method
   java.util.List ref1(ognl.OgnlContext, java.lang.Object) to class
   ognl.ASTTest8638208Accessor: [source error] getKeyProvider() not
found
   in org.apache.tapestry.IDynamicInvoker
  
   Off topic, but still...
   Is there a way to convince maven to use jars that were in my local
 repo
   on specific date/time? Can I say - use jars from up to last Friday?
  
   Thanks,
   Borut
  
  
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Jesse Kuhnert
  Tapestry/Dojo team member/developer
 
  Open source based consulting work centered around
  dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
 




--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: T5: Improve pretty url support

2007-04-24 Thread DJ Gredler

+1, unless there's something technical I'm not seeing... add it to JIRA :-)

On 4/24/07, janjonge [EMAIL PROTECTED] wrote:



+1 for me!

Jan

Jérôme BERNARD wrote:

 Hi,

 I'd like to have my AboutUs page mapped to the URL /about-us.html.
 I can't find a trivial way to do it, and wonder why it could not be
 done transparently when the name of the page is AboutUs (meaning the
 Camel syntax would mean add a dash before the uppercase letter).

 This is something really important for SEO reasons as the dash is the
 only word separator accepted (otherwise I have /aboutus.html).


 Thanks in advance.


 Regards,
 Jérôme.


 --
 Jérôme BERNARD,
 Kalixia, SARL.
 http://weblog.kalixia.com

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




--
View this message in context:
http://www.nabble.com/T5%3A-Improve-pretty-url-support-tf3639138.html#a10163861
Sent from the Tapestry - User mailing list archive at Nabble.com.


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




Re: getKeyProvider() not found in org.apache.tapestry.IDynamicInvoker

2007-04-24 Thread Andreas Andreou

The first one is in there - was trying to isolate them from the environment
and recreate them

On 4/24/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


Well you better file them fast as I'm in there fixing things right now and
don't see any yet. ;)

On 4/24/07, Andreas Andreou [EMAIL PROTECTED] wrote:

 Borut, this has also (just) been fixed in the latest tacos...
 As stated in the other email, im filling ALL the related bug reports :)

 On 4/24/07, Borut Bolčina [EMAIL PROTECTED] wrote:
 
  Thanks Jesse, I tried with version numbers, but am unsure if the right
 jar
  is being picked up. I posted a question on maven user list under
  Depending
  on snapshots topic. As I can't afford to much time investigating, I
  downgraded to 4.1.1 which works. Using on the edge libs and frameworks
 can
  really hurt sometime, but still...
 
  I will file a jira issue later today or tomorrow.
 
 
  2007/4/24, Jesse Kuhnert [EMAIL PROTECTED]:
   A jira issue (in ognl ? ) would still be nice, but you can do what
you
  want
   if you use one of the specific version numbers in here:
  
  
 
 

http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/tapestry-framework/maven-metadata.xml
  
   On 4/23/07, Borut Bolčina [EMAIL PROTECTED] wrote:
   
In Friday my app worked, today I am getting a lot of errors. Maven
pulled the latest tapestry 4.1.2 libs from the repos.
   
javassist.compiler.CompileError
getKeyProvider() not found in org.apache.tapestry.IDynamicInvoker
   
Unable to parse OGNL expression 'async ?
{keyProvider.getKey(value).toString() } : null': Unable to add
 method
java.util.List ref1(ognl.OgnlContext, java.lang.Object) to class
ognl.ASTTest8638208Accessor: [source error] getKeyProvider() not
 found
in org.apache.tapestry.IDynamicInvoker
   
Off topic, but still...
Is there a way to convince maven to use jars that were in my local
  repo
on specific date/time? Can I say - use jars from up to last
Friday?
   
Thanks,
Borut
   
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
   Jesse Kuhnert
   Tapestry/Dojo team member/developer
  
   Open source based consulting work centered around
   dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
  
 



 --
 Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
 Tapestry / Tacos developer
 Open Source / JEE Consulting




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com





--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


Stale Link in From with For (tap 4.0.2)

2007-04-24 Thread Holger Stolzenberg
Hi guys,

I alway get the following exception for the following code:

= PAGE SPEC =
component id=PageEditForm type=Form
binding name=delegate value=page.getValidationDelegate() /
binding name=focus value=true/
/component

component id=AllocableAppFunctionSelect type=Select
binding name=multiple value=true /
binding name=disabled value=isAllocableAppFunctionSelectDisabled() 
/
/component

component id=AllowedAppFunctionOptGroup type=For
binding name=source value=ognl:{'1x','2x'} /
binding name=element value=literal:optgroup /
/component

component id=InvisibleRemoveAppFunction type=InvisibleSubmit
binding name=function value=literal:removeApplicationFunctions /
binding name=action value=listener:removeApplicationFunctions /
/component



= HTML TEMPLATE ===
form jwcid=PageEditForm action=#
select jwcid=AllowedAppFunctionSelect class=w350 size=5 
multiple=multiple
optgroup jwcid=AllowedAppFunctionOptGroup
/optgroup
/select
/form


When I submit the form, the following stale link exception occurs:

org.apache.tapestry.StaleLinkException: Rewind of form 
AdministrationOperatorFunctionRights/PageEditForm expected 1 more form 
elements, starting with id 'AllowedAppFunctionOptGroup'. 
[context:/WEB-INF/pages/secure/administrationPages/administrationOperatorFunctionRights/AdministrationOperatorFunctionRights.page,
 line 17, column 43]
at 
org.apache.tapestry.form.FormSupportImpl.rewind(FormSupportImpl.java:585)
at org.apache.tapestry.form.Form.renderComponent(Form.java:226)
at $Form_6.renderComponent($Form_6.java)
at 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
at org.apache.tapestry.form.Form.rewind(Form.java:327)
at 
org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:439)
at org.apache.tapestry.form.Form.trigger(Form.java:338)
at 
org.apache.tapestry.engine.DirectService.triggerComponent(DirectService.java:146)
at 
org.apache.tapestry.engine.DirectService.service(DirectService.java:132)
at $IEngineService_11224df909b.service($IEngineService_11224df909b.java)
at 
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:66)
at 
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:248)
at 
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:60)
at 
$WebRequestServicer_11224df906f.service($WebRequestServicer_11224df906f.java)
at 
$WebRequestServicer_11224df906b.service($WebRequestServicer_11224df906b.java)
at 
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:56)
at 
$ServletRequestServicer_11224df905d.service($ServletRequestServicer_11224df905d.java)
at 
org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
at 
$ServletRequestServicerFilter_11224df9059.service($ServletRequestServicerFilter_11224df9059.java)
at 
$ServletRequestServicer_11224df905f.service($ServletRequestServicer_11224df905f.java)
at 
org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
at 
$ServletRequestServicerFilter_11224df9057.service($ServletRequestServicerFilter_11224df9057.java)
at 
$ServletRequestServicer_11224df905f.service($ServletRequestServicer_11224df905f.java)
at 
org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
at 
$ServletRequestServicerFilter_11224df905b.service($ServletRequestServicerFilter_11224df905b.java)
at 
$ServletRequestServicer_11224df905f.service($ServletRequestServicer_11224df905f.java)
at 
$ServletRequestServicer_11224df9051.service($ServletRequestServicer_11224df9051.java)
at 
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:123)
at 
org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:168)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve..java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 

Tap 4.1.2 Snapshot : Unable to parse a validator

2007-04-24 Thread Shing Hing Man
I have an application written  couple of months ago in

Tap 4.1.2 Snaphot. When I run it  with the latest
snapshot :
org.apache.tapestry:tapestry-framework:4.1.2-20070424.031019-55

I have the following error exception :
Unable to parse
'required,min=0.0001[%defaultProbInterestRate],
max=199.9[%defaultProb-interestRate]' into
a list of validators.
Stack Trace:

*
max=199.9[%defaultProb-interestRate]' into
a list of validators.
*
org.apache.tapestry.form.validator.ValidatorFactoryImpl.constructValidatorList(ValidatorFactoryImpl.java:76)
*
$ValidatorFactory_112252dd54e.constructValidatorList($ValidatorFactory_112252dd54e.java)
*
$ValidatorFactory_112252dd54d.constructValidatorList($ValidatorFactory_112252dd54d.java)
*
org.apache.tapestry.form.validator.ValidatorsBindingFactory.createBinding(ValidatorsBindingFactory.java:43)
*
$BindingFactory_112252dd510.createBinding($BindingFactory_112252dd510.java)
*
$BindingFactory_112252dd50f.createBinding($BindingFactory_112252dd50f.java)
*
org.apache.tapestry.services.impl.BindingSourceImpl.createBinding(BindingSourceImpl.java:77)
*
$BindingSource_112252dd3c5.createBinding($BindingSource_112252dd3c5.java)
*
org.apache.tapestry.pageload.PageLoader.convert(PageLoader.java:317)
*
org.apache.tapestry.pageload.PageLoader.bind(PageLoader.java:274)
*
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:389)
*
org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:600)
*
$IPageLoader_112252dd47d.loadPage($IPageLoader_112252dd47d.java)
*
$IPageLoader_112252dd47e.loadPage($IPageLoader_112252dd47e.java)



Here is the component :
 component id=interestRateTF type=TextField
   binding name=displayName
value=literal:Interest rate in %/
   binding name=value
value=defaultProbBean.interestRate/
   binding name=translator
value=translator:number,pattern=0.#/
   binding name=validators
  
validators:required,min=0.0001[%defaultProb-interestRate],
   max=199.9[%defaultProb-interestRate]
   /binding
   /component
   

It would be appreciated if someone can point out what
is wrong.

Shing 

Home page :
  http://uk.geocities.com/matmsh/index.html


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

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



Re: Tap 4.1.2 Snapshot : Unable to parse a validator

2007-04-24 Thread Jesse Kuhnert

https://issues.apache.org/jira/browse/TAPESTRY-1428

Fixed and deploying now - sorry about the regression.

On 4/24/07, Shing Hing Man [EMAIL PROTECTED] wrote:


I have an application written  couple of months ago in

Tap 4.1.2 Snaphot. When I run it  with the latest
snapshot :
org.apache.tapestry:tapestry-framework:4.1.2-20070424.031019-55

I have the following error exception :
Unable to parse
'required,min=0.0001[%defaultProbInterestRate],
max=199.9[%defaultProb-interestRate]' into
a list of validators.
Stack Trace:
snipped





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


T5 Tapestry IoC services as webservices?

2007-04-24 Thread Bill Holloway

Are there any plans for tools to export T5 IoC services as webservices?

bill

--
The future is here.  It's just not evenly distributed yet.

-- Traditional

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



Re: Eager loading Tapestry pages

2007-04-24 Thread Andrus Adamchik

Hi Jesse,

Thanks for your reply. I'll try bumping up MaxPermSize value - this  
is one parameter that can possibly cause the crashes I am observing  
(Xms/Xmx are sufficiently high already).


Although I was still hoping there is a way to warm up the stack to  
fill in the page cache before the app starts serving requests. But  
looks like there's none? (if I can solve the JVM crashing, this  
becomes a secondary concern, still would've been a nice performance  
enhancement).


Thanks
Andrus


On Apr 24, 2007, at 7:01 PM, Jesse Kuhnert wrote:

It's hard to say for sure what the problem is without more  
information but
you can try adding things like the below methods to help your  
startup times:


-) Increase or add the initial heap memory size via command line - 
Xms224m

(or whatever seems appropriate) .

-) Increase your perm gen space size - this will be critical for  
all of the

javassist compilations that happen when initially loading up pages /
components. -XX:MaxPermSize=99m

-) Make sure you don't have caching disabled of course. ;)

Not sure what else there is. I know there are a few unnecessary
synchronized() lock calls in a few places that were added to fix  
some issues
related to dev mode problems (ie caching being disabled) - but I've  
been
slowly removing them here and there when I notice them. Maybe I  
should just

do one big sweep of all usages to be sure.



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



Re: T5 Tapestry IoC services as webservices?

2007-04-24 Thread Howard Lewis Ship

It makes some kind of sense as an add-on. SOAP or REST?  (I'd choose REST,
right off the bat).  It gets uglier from there!

On 4/24/07, Bill Holloway [EMAIL PROTECTED] wrote:


Are there any plans for tools to export T5 IoC services as webservices?

bill

--
The future is here.  It's just not evenly distributed yet.

 -- Traditional

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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com


Re: Eager loading Tapestry pages

2007-04-24 Thread Jesse Kuhnert

YeahIt's probably ultimately something in javassist. It creates a very
large cache of objects when compiling things. Not that it's javassists
fault, there are ways to help fix some of that but it's not very
straightforward / easy to do.

...Which more or less means intelligently finding ways to make it so that
this cache can be cleared out. I've done this for the ognl compilations
already but the method required to do it on tapestry proper will have to be
much different so it's probably going to be a 4.2 kind of thing. (or maybe
sooner if someone wants to take a crack at it, I'll happily outline my ideas
somewhere ;) )

On 4/24/07, Andrus Adamchik [EMAIL PROTECTED] wrote:


Hi Jesse,

Thanks for your reply. I'll try bumping up MaxPermSize value - this
is one parameter that can possibly cause the crashes I am observing
(Xms/Xmx are sufficiently high already).

Although I was still hoping there is a way to warm up the stack to
fill in the page cache before the app starts serving requests. But
looks like there's none? (if I can solve the JVM crashing, this
becomes a secondary concern, still would've been a nice performance
enhancement).

Thanks
Andrus


On Apr 24, 2007, at 7:01 PM, Jesse Kuhnert wrote:

 It's hard to say for sure what the problem is without more
 information but
 you can try adding things like the below methods to help your
 startup times:

 -) Increase or add the initial heap memory size via command line -
 Xms224m
 (or whatever seems appropriate) .

 -) Increase your perm gen space size - this will be critical for
 all of the
 javassist compilations that happen when initially loading up pages /
 components. -XX:MaxPermSize=99m

 -) Make sure you don't have caching disabled of course. ;)

 Not sure what else there is. I know there are a few unnecessary
 synchronized() lock calls in a few places that were added to fix
 some issues
 related to dev mode problems (ie caching being disabled) - but I've
 been
 slowly removing them here and there when I notice them. Maybe I
 should just
 do one big sweep of all usages to be sure.


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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: Eager loading Tapestry pages

2007-04-24 Thread Howard Lewis Ship

One of the issues is that until we have a request, we don't know a number of
things that Tapestry needs when constructing pages and supporting services.
This really gets in the way of doing a warm up.  In the past, I've seen
scripts that do a warm up against the server before the Apache reverse
firewall is allowed to flood the server with requests.

On 4/24/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


YeahIt's probably ultimately something in javassist. It creates a very
large cache of objects when compiling things. Not that it's javassists
fault, there are ways to help fix some of that but it's not very
straightforward / easy to do.

...Which more or less means intelligently finding ways to make it so that
this cache can be cleared out. I've done this for the ognl compilations
already but the method required to do it on tapestry proper will have to
be
much different so it's probably going to be a 4.2 kind of thing. (or maybe
sooner if someone wants to take a crack at it, I'll happily outline my
ideas
somewhere ;) )

On 4/24/07, Andrus Adamchik [EMAIL PROTECTED] wrote:

 Hi Jesse,

 Thanks for your reply. I'll try bumping up MaxPermSize value - this
 is one parameter that can possibly cause the crashes I am observing
 (Xms/Xmx are sufficiently high already).

 Although I was still hoping there is a way to warm up the stack to
 fill in the page cache before the app starts serving requests. But
 looks like there's none? (if I can solve the JVM crashing, this
 becomes a secondary concern, still would've been a nice performance
 enhancement).

 Thanks
 Andrus


 On Apr 24, 2007, at 7:01 PM, Jesse Kuhnert wrote:

  It's hard to say for sure what the problem is without more
  information but
  you can try adding things like the below methods to help your
  startup times:
 
  -) Increase or add the initial heap memory size via command line -
  Xms224m
  (or whatever seems appropriate) .
 
  -) Increase your perm gen space size - this will be critical for
  all of the
  javassist compilations that happen when initially loading up pages /
  components. -XX:MaxPermSize=99m
 
  -) Make sure you don't have caching disabled of course. ;)
 
  Not sure what else there is. I know there are a few unnecessary
  synchronized() lock calls in a few places that were added to fix
  some issues
  related to dev mode problems (ie caching being disabled) - but I've
  been
  slowly removing them here and there when I notice them. Maybe I
  should just
  do one big sweep of all usages to be sure.


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




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com


Re: T5: Spring Integration Issue

2007-04-24 Thread Matt Welch

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 ListUser 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]