Re: no service implements the interface java.util.Date

2009-03-02 Thread nillehammer
Hi ?. http://tapestry.apache.org/tapestry5/faq/general.html Cheers, nillehammer > While I'm using BeanEditForm component from T5.0.18, it throws an > error says "no servicie implements java.util.Date". My code is quite > simple. > > > > and Celebrity is just a POJO which has an constructor like

Re: [OT] Problem using eclipse+maven+jetty

2009-03-02 Thread Allex Juang
Sorry, It's a stupid mistake. I change jetty version from 6.0.0beta17 to 6.1.14, and every thing goes smoothly. But as Szemere said, add [scope] parameter into jetty-env.xml is not working. Allex J. Allex Juang 提到: > Hi, Tapestry Infodea, > > Thanks for your detail description. > But as I tried o

Re: [OT] Problem using eclipse+maven+jetty

2009-03-02 Thread Allex Juang
Hi, Tapestry Infodea, Thanks for your detail description. But as I tried on my setup: jetty-env.xml http://jetty.mortbay.org/configure.dtd";> /aaa jdbc/XXX XXX localhost 5432 xxx zzz and using jetty:run, I only got following messages: INFO] [jetty6:run] [INFO] Configuring Jetty for pro

Re: no service implements the interface java.util.Date

2009-03-02 Thread 丁振波
你把缺省的构造去掉就可以了 否则T5IoC会去自动进行参数注入 注入的参数就会去找实现的service 找不到就报这个错误了 - Original Message - From: "孙立伟" To: "Tapestry users" Sent: Tuesday, March 03, 2009 1:57 PM Subject: no service implements the interface java.util.Date While I'm using BeanEditForm component from T5.0.18, it throws an e

no service implements the interface java.util.Date

2009-03-02 Thread 孙立伟
While I'm using BeanEditForm component from T5.0.18, it throws an error says "no servicie implements java.util.Date". My code is quite simple. and Celebrity is just a POJO which has an constructor like "public Celebrity(String firstName, String lastName,Date dateOfBirth)". I'm a newbie and can't

Re: Component rendering and parameters binding

2009-03-02 Thread Simon Raveh
Yes but this is in the component template and it is being called before tapestry is binding the parameter to the component. If you look at stack trace you will see that the call to getTicketNumber() on the component is coming before tapestry is calling getTicket() on the page object to get the par

Action Link In Parent Component

2009-03-02 Thread Davor Miku
Hi! I want to set action link in child component, but action needs to be handled in parent component. I tried to hack like: Class Parent { onActionFromChildEvent(int id){ // Do something } } In child.tml : Action but I'm getting : Component parent does not contain an em

Re: Component rendering and parameters binding

2009-03-02 Thread Howard Lewis Ship
I'm not sure what the confusion is: ${ticketNumber} That's your call to getTicketNumber(). On Mon, Mar 2, 2009 at 6:04 PM, Alex Kotchnev wrote: > Simon, >   I still can't figure out your dilemma, but I notice something > interesting.. In the stacktrace that you provided, it looks like this time

Re: Component rendering and parameters binding

2009-03-02 Thread Alex Kotchnev
Simon, I still can't figure out your dilemma, but I notice something interesting.. In the stacktrace that you provided, it looks like this time getStatus() is being called before getTicket.. Maybe some of the folks that are more familiar w/ the guts of T5 can look at this. It doesn't look li

Consulting Opportunity

2009-03-02 Thread ktrochez
A 6-8 week contract with a client of mine located in San Francisco, CA. They are looking for someone with strong Tapestry experience to be a contributor to the team as well as mentor other developers on Tapestry framework. Please let me know if you would like to discuss the opportunity more in d

Re: Strange exception

2009-03-02 Thread Thiago H. de Paula Figueiredo
Em Mon, 02 Mar 2009 17:19:03 -0300, Jorge Merlino escreveu: I'm trying use the tapestry tree component found in http://wiki.apache.org/tapestry/Tapestry5TreeComponent but I'm stuck with a very strange exception which is this: By the way, that wiki page does not follow the Tapestry best pr

Re: Strange exception

2009-03-02 Thread Thiago H. de Paula Figueiredo
Em Mon, 02 Mar 2009 17:26:32 -0300, Carl Crowder escreveu: This is just a vague guess, but as far as I *think* that class name isn't the only thing Java uses to compare two classes when casting. So if you have defined your TreeNode class in more than once place, it's possible that the cl

Re: Component rendering and parameters binding

2009-03-02 Thread Simon Raveh
Hi, Thanks for your help. I'm still trying to figure out why getTicketNumber() is being called before the parameter was set. From debugging this it seems that it is being called when the Index page is being render. Bellow you can find a thread dump: [INFO] Started Jetty Server 2009-03-02 13:09:

Re: Strange exception

2009-03-02 Thread Jorge Merlino
El Lun 02 Mar 2009 18:26:32 Carl Crowder escribió: > This is just a vague guess, but as far as I *think* that class name > isn't the only thing Java uses to compare two classes when casting. So > if you have defined your TreeNode class in more than once place, it's > possible that the class you're

Re: Strange exception

2009-03-02 Thread Carl Crowder
This is just a vague guess, but as far as I *think* that class name isn't the only thing Java uses to compare two classes when casting. So if you have defined your TreeNode class in more than once place, it's possible that the class you're passing it and the class Tapestry is trying to use were

Strange exception

2009-03-02 Thread Jorge Merlino
Hi, I'm trying use the tapestry tree component found in http://wiki.apache.org/tapestry/Tapestry5TreeComponent but I'm stuck with a very strange exception which is this: java.lang.ClassCastException: uy.com.ipcontact.webjastconf.components.TreeNode cannot be cast to uy.com.ipcontact.webjastcon

Re: [OT] Problem using eclipse+maven+jetty

2009-03-02 Thread Szemere Szemere
Tapestry Infodea explains it nicely. That was my working setup in T5 5.0.11. But I've just upgraded to 5.0.18, which has a newer version of Jetty and so as per Jetty website, I changed the jetty.env-xml configuration to add an extra scoping parameter: *[scope]* * *

Behavior of Resource.forFile()

2009-03-02 Thread José Paumard
Hello all, I need to check the existence of an image in a folder. Here is what I first did : @Inject @Path("context:images/folder") private Asset imageFolder ; public boolean isExists() { Resource image = imageFolder.getResource().forFile(getImageName()) ; return image.exists() ; } Wh

Re: Providing service mocks for integration tests

2009-03-02 Thread Robert Zeigler
Are you using PageTester or Selenium? Thinking about this a bit more, I've taken this approach with PageTester, where it's easy: just specify the appropriate module (or add it) as necessary. I've also taken this approach with selenium testing, but typically setup a "testing" application (si

Re: T5 : how to make input validations during the submission of a field ?

2009-03-02 Thread Francois Armand
Stephane Decleire wrote: I have implemented a field which is a subclass of abstract field and i would like to make input validations during the processSubmission() event. Is there a way to get the form component in there to record new errors ? Or is there another event where this can be done ?

Re: Multiple zone refresh

2009-03-02 Thread Andy Pahne
I think that this is not possible right now. But it should be. Did not look, but I bet there is a related JIRA issue. You might want to vote for it... Andy Julien Ruchaud wrote: Hi, I am trying to refresh two zones on the same time with one ajax action. Java, @Inject Block b1; @Injec

Multiple zone refresh

2009-03-02 Thread Julien Ruchaud
Hi, I am trying to refresh two zones on the same time with one ajax action. Java, @Inject Block b1; @Inject Block b2; onActionTest() { return b1, b2; } Tml, Test I think it is not possible this way. Is there another way to do it ? If you need more info, do not hesitate to ask. Thanks

Re: [OT] Problem using eclipse+maven+jetty

2009-03-02 Thread Tapestry Infodea
Sorry, maybe I mistakenly assumed that you had configured correctly the datasource for jetty: this is my configuration: WEB.INF/jetty-env.xml http://jetty.mortbay.org/configure.dtd";> jdbc/mydb

Re: [OT] Problem using eclipse+maven+jetty

2009-03-02 Thread Tapestry Infodea
In Run --> Run configurations...I've created a new Maven Build configuration adding the following goals: org.mortbay.jetty:maven-jetty-plugin:6.1.14:run Allex Juang ha scritto: > maven eclipse plugin?? > You mean m2eclipse, or anything else? > Since I didn't find any option about using DataSource

Re: [OT] Problem using eclipse+maven+jetty

2009-03-02 Thread Allex Juang
maven eclipse plugin?? You mean m2eclipse, or anything else? Since I didn't find any option about using DataSource in m2eclipse Allex J. Tapestry Infodea 提到: > I had the same problem and I solved using the maven eclipse plugin to > run Jetty > > Allex Juang ha scritto: > >> Hi, >> >> Sorry for

Re: [OT] Problem using eclipse+maven+jetty

2009-03-02 Thread Tapestry Infodea
I had the same problem and I solved using the maven eclipse plugin to run Jetty Allex Juang ha scritto: > Hi, > > Sorry for offtopic. > But I am writing my own website using T5+hibernate. > And when I using eclipse 3.4 with m2eclipse, jetty can be launched very > well. > But here I got a problem

[OT] Problem using eclipse+maven+jetty

2009-03-02 Thread Allex Juang
Hi, Sorry for offtopic. But I am writing my own website using T5+hibernate. And when I using eclipse 3.4 with m2eclipse, jetty can be launched very well. But here I got a problem using DataSource in jetty. In my webapp, I always using JNDI: jdbc/DS to access my datasource. With tomcat, I know how

Jetty Launcher causes problems.

2009-03-02 Thread 孙立伟
Jetty Launcher Eclipse plugin causes a wiered problem while I'm trying to add contributions to ApplicationStateManager for Tapetry 5 . After a long time tracing and guessing. I found out at DefaultMuduleDef.java line 190,(ver5.0.15),the HashMap produces wrong hashcode and failed to get configurati

Re: T5: problems with PageTester

2009-03-02 Thread Inge Solvoll
Sorry for bothering you guys before doing enough research myself. I've been digging into this for a while, and found that the basic documentation tells me how to test a page with an activation context. The problem now is that the docs for that is outdated, the ComponentInvocation seems to have turn