Re: @Dialog form with validation errors broken

2007-06-04 Thread Paul Stanton
further to that: In my system out I get: WARNING: Parameters: Invalid chunk ignored. At the bottom of my page I get: DEBUG: invalid date string: 206-01-01 In the Dialog form (which shouldn't be visible) the DropdownDatePicker component does not render, while the rest of the form does. -

@Dialog form with validation errors broken

2007-06-04 Thread Paul Stanton
4.1.1 with the following example (pseudo code) <@Dialog hidden on load="true"> <@Form async="false"> <@DropdownDatePicker translator="translator:date,format=dd/MM/"/> When I submit the dialog's form with an invalid date ('01/01/206') the page re-loads with the dialog a

4.1.2 without maven

2007-06-04 Thread Paul Stanton
just downloaded the latest framework, contrib and annotation jars hoping they would work with the libs I already have for 4.1.1 they don't where can I get the project .zip or something to list the required libs and their versions? Thanks. ---

Cometd Implimentation

2007-06-04 Thread Craig Spry
Hello, I've managed to get a very rough implementation of cometd working with tapestry/jetty/dojo. I've implemented it as a component, you can get the source from here: http://www.spry.net.au/?q=node/10 To get the full effect open up 2 browsers and point them at the webapp. I'm putting this up

Re: Multiple component validation

2007-06-04 Thread Steve Shucker
I already tried it on both fields and it doesn't work either way. -Steve andyhot wrote: From http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/form/validator/Identity.html " Apply this validator to the second field ... " So, you need to do it the other way around, i.e. pass

Re: Multiple component validation

2007-06-04 Thread andyhot
From http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/form/validator/Identity.html " Apply this validator to the second field ... " So, you need to do it the other way around, i.e. pass the name of the first field to your validator and apply the validator to the second field -

Re: [T5.0.5 SNAPSHOT] Proper way to inject Assets like CSS

2007-06-04 Thread Howard Lewis Ship
On 6/4/07, Daniel Jue <[EMAIL PROTECTED]> wrote: Thank you Howard, that works like a charm! FWIW, Removing the t:id parameters and keeping href="prop:style" That will work if there's a t:type, but not for ordinary elements. seemed to work for the style sheet, but not for the images. Cha

Re: Updating a property with InlineEditBox 4.1.1

2007-06-04 Thread Chris Chiappone
Ok I've updated to 4.1.2, thanks for those who helped getting me on the right OGNL repository but and still can't seem to get the InlineEditBox to change a property. Here is what I have: page.html: ... page.java

Multiple component validation

2007-06-04 Thread Steve Shucker
I'm trying to write a variant of the match/differ validators to check if two fields have the same null state. I pass in the name of the second field to the validator and can access that field with TextField referent = (TextField) field.getContainer().getComponent(_fieldName); However, refer

Re: [T5.0.5 SNAPSHOT] Proper way to inject Assets like CSS

2007-06-04 Thread Daniel Jue
Thank you Howard, that works like a charm! FWIW, Removing the t:id parameters and keeping href="prop:style" seemed to work for the style sheet, but not for the images. Changed all the "prop:abc" to "${abc}" and now everything is working fine. Daniel On 6/4/07, Howard Lewis Ship <[EMAIL PROT

Re: [T5.0.5 SNAPSHOT] Proper way to inject Assets like CSS

2007-06-04 Thread Howard Lewis Ship
Because expansions are now supported inside attributes (of non-component elements), the need for the Any components has gone away. Now if you specified a t:id you must define the type (it doesn't default to Any). You can rewrite your template as: On 6/4/07, Daniel Jue <[EMAIL PROTECTED]> wrot

Re: [T5.0.5 SNAPSHOT] Proper way to inject Assets like CSS

2007-06-04 Thread Daniel Jue
Sorry, my initial post was misleading. It's not just CSS files, it's all the injected Assets I have (images, etc). For code like this, T5 also gives an error saying that I need to give a type. @Inject @Path("context:images/OACSIMLogo_Trans_DS2.jpg") private Asset ieislogo; Is this related to

[T5.0.5 SNAPSHOT] Proper way to inject Assets like CSS

2007-06-04 Thread Daniel Jue
Hi, this was working this morning, until the latest and greatest snapshot came out today. How should we go about injecting a css file now? I had this: @Inject @Path("context:css/IEISStyle.css") private Asset style; And it was working fine. But now I get this: o

Re: T4.1.1 - Why is ServiceEncoder always called on external page?

2007-06-04 Thread Jan Vissers
Arrgh, my mistake. Missed the pageName.equals(_pageName) check in the encode method. Sorry > Using this setup in hivemodule.xml > > > > stateful-extension="sdirect" /> > > object="instance:com.cumquatit.refapp.view.tapestry.viewencoders.ViewCardEncoder,pageName=p

Re: T5: how to control form display

2007-06-04 Thread Daniel Jue
I have T5 with tomcat running via eclipse (add servers/etc, the way it is shown in some articles about using WTP with Tapestry and Tomcat). I recently ran into an issue with using the maven tomcat plugin (i.e. running mvn tomcat:run from a command line or Eclipses external tools). So I've reverte

Re: Unit Testing EnhancementWorkers

2007-06-04 Thread Howard Lewis Ship
I would tend to use a mock IComponentSpecification, or a hand initialized one. There are not any magic tools here, though I suspect a lot of the plumbing could be moved into base classes or helper classes. On 6/4/07, carlos f <[EMAIL PROTECTED]> wrote: Howard Lewis Ship wrote: > > But an int

Re: T5: how to control form display

2007-06-04 Thread Marcus
Hi Jess, Search your gmail messages for: t5 tomcat eclipse you will find something like this: " (I use Eclipse WTP 1.5.3, so I have to run mvn -Dwtpversion=1.5 eclipse:eclipse whenever I add a new dependency. Then I refresh my eclipse view and it autobuilds for me, which then causes Tomcat to

T4.1.1 - Why is ServiceEncoder always called on external page?

2007-06-04 Thread Jan Vissers
Using this setup in hivemodule.xml Why is it that all of my external pages 'go through' the 'viewcard' service encoder? I would have expected only 'pages/ResearchCardpage' being encoded/decoded. Hoping anyone can clear this up, Thanks, -J --

Re: Unit Testing EnhancementWorkers

2007-06-04 Thread carlos f
Howard Lewis Ship wrote: > > But an integration test (either relatively contained, such as creating the > EnhancementOperationImpl, or wider, such as firing up the app and testing > with selenimum) is the only worthwhile way to > ensure that generated code is correct. > I would like to as tigh

RE: T5: Testing - PageTester reworked... How do I use mock services now?

2007-06-04 Thread Joel Wiegman
"You can specify the additional module classes when creating the page tester." Howard, could you go into a little more detail here? I didn't see a constructor arg or a method on PageTester for specifying additional modules. -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTEC

T5: PageTester failure

2007-06-04 Thread Joel Wiegman
In a TestNG test, I'm calling: Document doc = tester.renderPage("status/Start"); //IMPORTANT NOTE: This URL renders without error in a browser This page renders a few components, and appears to be complaining about one of them (the StoreHierarchy component). I'm using the Spring IoC and am not

Re: BreadCrumb thoughts...

2007-06-04 Thread alvaro tovar
hi, in zope (www.zope.org ) i see a way to create a navigation bar, but this is based in the files in the actually folder. This create a list of links to the page that are in the actuall folder. maybe is posible copy this idea. i don't know if this is avaible o funtionaly. On 6/4/07, Jacob B

Re: T5: how to control form display

2007-06-04 Thread Howard Lewis Ship
I do my day to day development with Jetty; I'm not sure what's up with Tomcat in this regard. Have you configured Tomcat to operate against your workspace files? I like Jetty because it doesn't get in the way. On 6/4/07, Jessica Sobieski <[EMAIL PROTECTED]> wrote: I'm sorry. I could have been

Re: Whoops: 5.0.5 SNAPSHOT NoSuchMethodError Registry.eagerLoadServices

2007-06-04 Thread Howard Lewis Ship
My bad, I just uploaded the latest tapestry-core snapshot, which depends on the latest tapestry-ioc. On 6/4/07, Steven Coco <[EMAIL PROTECTED]> wrote: I spoke a little to soon. I dumped all those repositories into the POM and the project builds fine. But then I tried to run it. Both Jetty and

Re: Unit Testing EnhancementWorkers

2007-06-04 Thread Howard Lewis Ship
To be honest, I've been moving away from testing the actual code generation towards your later observation, the create the class with the enhanced code and see that it works. To me that's a general maxum: with code generation, testing the generated source isn't useful, testing the generated compi

Whoops: 5.0.5 SNAPSHOT NoSuchMethodError Registry.eagerLoadServices

2007-06-04 Thread Steven Coco
I spoke a little to soon. I dumped all those repositories into the POM and the project builds fine. But then I tried to run it. Both Jetty and Tomcat throw a NoSuchMethodError. This is the stack trace from Tomcat. I have to step out just now but I thought I'd post the trace quickly. Ciao. Ju

Re: Integration Tapestry 4.0 + Spring 2.0 + Hibernate 3.0 + JBoss 4.2

2007-06-04 Thread Jacob Bergoo
No problem, if you have any other questions just feel free to ask... Cheers, Jacob César Augusto Mateus wrote: > > thank you very much Jacob, your help has been very valuable!!! > > On 6/4/07, Jacob Bergoo <[EMAIL PROTECTED]> wrote: >> >> >> Hi Cesar, >> >> the datasource is defined in the w

Re: Integration Tapestry 4.0 + Spring 2.0 + Hibernate 3.0 + JBoss 4.2

2007-06-04 Thread César Augusto Mateus
thank you very much Jacob, your help has been very valuable!!! On 6/4/07, Jacob Bergoo <[EMAIL PROTECTED]> wrote: Hi Cesar, the datasource is defined in the web.xml: OracleDS javax.sql.DataSource Container we tie everythin

Re: T5: how to control form display

2007-06-04 Thread Jessica Sobieski
I'm sorry. I could have been more precise. I'm new to Tapestry and I'm still trying to figure out what is probably obvious to many. Anyway, I got the form (with table inside) working but I had to restart my application (in Tomcat application manager) What confused me is that I was under the impres

Re: How To Get 5.0.5

2007-06-04 Thread Steven Coco
Fixed it. All I had to do was run the Maven archtype and copy the repository and plugin repository elements: my POM was missing some of those I thought would be obscure; but apparently more than one is needed even for a simple project. So I'm all set: and I'm happily running Maven 2.0.6 and Tap

Unit Testing EnhancementWorkers

2007-06-04 Thread carlos f
I have written an enhancement worker that adds some conditional logic to a component. The unit tests I have written rely on mock objects to verify the behavior under test is appropriate. This is similar to the design of the unit tests in the tapestry-framework project. look at testStandard() as

Re: Dynamic Property Selection

2007-06-04 Thread Asim Khaja
I hadn't seen that before, it is exactly what I was trying to do. Thanks, Asim On 6/2/07, Shing Hing Man <[EMAIL PROTECTED]> wrote: Have you checked out the DynamicSelectionList component at http://lombok.demon.co.uk/tapestry4Demo/app ? Shing --- Asim Khaja <[EMAIL PROTECTED]> wrote: > BT

Re: Integration Tapestry 4.0 + Spring 2.0 + Hibernate 3.0 + JBoss 4.2

2007-06-04 Thread Jacob Bergoo
Hi Cesar, the datasource is defined in the web.xml: OracleDS javax.sql.DataSource Container we tie everything togeather in jboss_service.xml: java:OracleDS java:/hibernate/Investaco

Re: How To Get 5.0.5

2007-06-04 Thread Davor Hrg
I found it easier to download trunk and build it, I also disabled tests while mvn install to make it faster. On 6/4/07, Daniel Jue <[EMAIL PROTECTED]> wrote: Search the list for a thread called Shipwreck downloading 5.0.5. Towards the end there are helpful comments. You may have to tweak the v

Re: How to obtain 'URL' for a page being rendered?

2007-06-04 Thread Howard Lewis Ship
You always have access to the Request or HttpServletRequest. On 6/4/07, Jan Vissers <[EMAIL PROTECTED]> wrote: Is there a (safe) way to obtain the URL of the page being rendered, for instance in "pageBeginRender" ? - To unsub

Re: Integration Tapestry 4.0 + Spring 2.0 + Hibernate 3.0 + JBoss 4.2

2007-06-04 Thread César Augusto Mateus
Hi Jacob, a question perhaps some foo: You construct a bean sessionFactory with org.springframework.jndi.JndiObjectFactoryBean, in addition your bean dataSource is also a org.springframework.jndi.JndiObjectFactoryBean. My question is: it needs from bean sessionFactory the specification of a data

Re: T5: how to control form display

2007-06-04 Thread Howard Lewis Ship
I'm pretty sure it does. Do that all the time. Something must not be as it seems. http://www.catb.org/~esr/faqs/smart-questions.html On 6/4/07, Jessica Sobieski <[EMAIL PROTECTED]> wrote: Hi, What is the proper (and easiest) way to controlling in a way it renders final HTML? If I place tab

T5: how to control form display

2007-06-04 Thread Jessica Sobieski
Hi, What is the proper (and easiest) way to controlling in a way it renders final HTML? If I place table inside it doesn't get rendered. Jess

Re: BreadCrumb thoughts...

2007-06-04 Thread Jacob Bergoo
Hi Jan, try this: in your java file: @InjectObject("engine-service:external") public abstract IEngineService getExternalService(); String linkURL = getExternalService().getLink(false, new ExternalServiceParameter("YourPageName", new Object[] {parameter1, parameter2, ...})).getURL());

Re: How To Get 5.0.5

2007-06-04 Thread Daniel Jue
Search the list for a thread called Shipwreck downloading 5.0.5. Towards the end there are helpful comments. You may have to tweak the version you want and/or the repository locations. Daniel On 6/4/07, Steven Coco <[EMAIL PROTECTED]> wrote: Hi. I'm a noob and I like T5 a lot! I've been do

RE: T5: Testing - PageTester reworked... How do I use mock services now?

2007-06-04 Thread Joel Wiegman
Otho, Any chance you could share an example of this with the community? I'm having a hard time finding an example on the T5 website. Thanks! Joel -Original Message- From: Otho [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 29, 2007 4:36 AM To: Tapestry users Subject: Re: T5: Testing -

Re: Unit testing Tapestry 4.1 components with TestNG and Easymock

2007-06-04 Thread Ray McBride
Thanks for you advice. I think I'm a bit further forward. viewProductDetail is actually a Tapestry component and is instantiated using the com.javaforge.tapestry.testng.TestBase; library. I have removed the expect call from my testGetSaving method and moved the replay/verify to my setUp metho

How To Get 5.0.5

2007-06-04 Thread Steven Coco
Hi. I'm a noob and I like T5 a lot! I've been doing "desktop" Java development since V1 and I have had great pains looking into Web frameworks; but when T5 came along by me I jumped in right away. This is a real great way to develop Web apps. So I'm very interested in all this doctype and entity

How to obtain 'URL' for a page being rendered?

2007-06-04 Thread Jan Vissers
Is there a (safe) way to obtain the URL of the page being rendered, for instance in "pageBeginRender" ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

BreadCrumb thoughts...

2007-06-04 Thread Jan Vissers
Hi, Been thinking about implementing BreadCrumb component. My thoughts currently... Application's base Page implements "PageBeginRenderListener" and does something like this: public void pageBeginRender(PageEvent event) { if (!event.getRequestCycle().isRewinding()) { String _

Re: Tapestry 4.1 and jdk version issue - JIRA issue created

2007-06-04 Thread Hugo Palma
Glad you got it working. I actually hit the same problem but with a different stack trace and it was only when Jesse pointed me to the correct ognl repo that i got it working to. Chris Chiappone wrote: Damn the whole time I had the wrong repository, thats the problem with using maven sometime

Re: Ognl Exception tap 4.1.2 weblogic 8 and java 1.4

2007-06-04 Thread Chris Chiappone
Nevermind this issue has been resolved. Hugo informed me I was using an old OGNL snapshot. On 6/4/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: I also updated an JIRA issue for the Tapestry, although I am not sure if its a tapestry or OGNL problem. Here is more of the stacktrace: RequestExce

Re: Tapestry 4.1 and jdk version issue - JIRA issue created

2007-06-04 Thread Chris Chiappone
Damn the whole time I had the wrong repository, thats the problem with using maven sometimes, you think you have the up to date software and all along I was using a stale repository. Thanks for the help and sorry for all the noise about this. On 6/4/07, Hugo Palma <[EMAIL PROTECTED]> wrote: You

Re: Tapestry 4.1 and jdk version issue - JIRA issue created

2007-06-04 Thread Hugo Palma
You're using an old ognl snapshot. Add this to your pom: ognl.snapshots http://opencomponentry.com/repository/m2-snapshot-repo You should get the ognl-2.7-20070603.222724-5. snapshot with that. Chris Chiappone wrote: tapestry-framework-4.1.2-20070604.004743-105.

T4.0.2 Problem with JPA/Hibernate Connection

2007-06-04 Thread Marcelo lotif
Hi all, I'm having problems with Tapestry and JPA together using Hibernate as the provider. When i try to make a connection, tapestry gives me this exception: org.apache.tapestry.BindingException Exception invoking listener method gravar of component Home: Failure invoking listener method 'public

Re: Tapestry 4.1 and jdk version issue - JIRA issue created

2007-06-04 Thread Chris Chiappone
tapestry-framework-4.1.2-20070604.004743-105.jar ognl-2.7.20070425.021856-29.jar On 6/4/07, Hugo Palma <[EMAIL PROTECTED]> wrote: Are you sure you have the latest ognl snapshot ? Can you please reply with the exact snapshots that you are using for both tapestry and ognl ? Chris Chiappone wrote

Re: [OT] who can use selenium to test dojo dialog widget?

2007-06-04 Thread Geoff Callender
This clicks on a submit, checks the dialog text, then clicks the alert button. click save assertTextPresent You must enter a value for Login Id. click alertButton HTH, Geoff http://files.doublenegative.com.au/jum

Re: Tapestry 4.1 and jdk version issue - JIRA issue created

2007-06-04 Thread Hugo Palma
Are you sure you have the latest ognl snapshot ? Can you please reply with the exact snapshots that you are using for both tapestry and ognl ? Chris Chiappone wrote: I updated this issue since I am still having problems: https://issues.apache.org/jira/browse/TAPESTRY-1520 On 5/26/07, Jacob

Re: Ognl Exception tap 4.1.2 weblogic 8 and java 1.4

2007-06-04 Thread Chris Chiappone
I also updated an JIRA issue for the Tapestry, although I am not sure if its a tapestry or OGNL problem. Here is more of the stacktrace: RequestExceptionReporter - Unable to process client request: Error initializing property dojoSource of bean 'coreAjaxDelegate' (of component tsagent/GetAgent/$

Re: Tapestry 4.1 and jdk version issue - JIRA issue created

2007-06-04 Thread Chris Chiappone
I updated this issue since I am still having problems: https://issues.apache.org/jira/browse/TAPESTRY-1520 On 5/26/07, Jacob von Eyben <[EMAIL PROTECTED]> wrote: I have created a JIRA issue: https://issues.apache.org/jira/browse/TAPESTRY-1520 Jesse Kuhnert wrote: > Yes please do. > > On 5/25

Re: T5: How to generate page links from Java code?

2007-06-04 Thread Ivan Dubrov
Nick Westgate wrote: > Hi Martin. > > A typical way to do this in previous Tapestry versions is to have > some simple logic functions in your component class to provide a > boolean result ("this link is to the current page") which is used > for each link's disabled parameter, and to select a string

Re: T5: How to generate page links from Java code?

2007-06-04 Thread Nick Westgate
Hi Martin. A typical way to do this in previous Tapestry versions is to have some simple logic functions in your component class to provide a boolean result ("this link is to the current page") which is used for each link's disabled parameter, and to select a string supplied to an informal CSS "st

AW: How Can I display chart in Tapestry pages?

2007-06-04 Thread Peter Schröder
yeah, thats how i did it: http://gmxmailnotifier.cvs.sourceforge.net/gmxmailnotifier/basement5/src/main/java/de/phoet/basement5/components/Chart.java?view=markup -Ursprüngliche Nachricht- Von: Joshua Jackson [mailto:[EMAIL PROTECTED] Gesendet: Montag, 4. Juni 2007 10:30 An: Tapestry us

Re: T4.1.1 - How to inject (dynamic) page into component?

2007-06-04 Thread Jan Vissers
To whom it may concern: I'm now using this and that works. In my page class I specify: @Component(type = "components/LoginLogoff", bindings = { "loginPage=literal:pages/login/Loginpage" }) public abstract LoginLogoff getLoginLogoff(); My component class has: @Parameter(name = "logi

Re: T5: How to generate page links from Java code?

2007-06-04 Thread Martin Grotzke
On Fri, 2007-06-01 at 08:48 -0700, Howard Lewis Ship wrote: > You have to inject your ComponentResources. > > There are methods for generating page render links and component action > links as part of the ComponentResources interface. Great! What's then the intended way of rendering the component

Re: How Can I display chart in Tapestry pages?

2007-06-04 Thread Joshua Jackson
You have to make your own Chart component/module to support JFreeChart. It shouldn't be too hard making components in tapestry5. Then after that you can call it from your page as such: Good luck On 6/4/07, Eko S.W. <[EMAIL PROTECTED]> wrote: owh yes! I already made it. (just by browsing to re

Logged error with latest 4.1.2 SNAPSHOT

2007-06-04 Thread Hugo Palma
I'm getting the following error logged when my app is first accessed. I'm not sure if this is an ognl, hivemind or tapestry issue so i thought i'd post here first before creating an issue in the wrong project. Thanks. org.apache.hivemind.ApplicationRuntimeException: Unable to add method java.

Re: How Can I display chart in Tapestry pages?

2007-06-04 Thread Eko S.W.
owh yes! I already made it. (just by browsing to repo1.maven.org/, find it at jfreechart/jfreechart) Thanks. But then, how can I include it in my page? there isn't any isn't ? Or else? (I have download source of JFreeChart too, I hope there's example that I can follow) Thanks 2007/6/4, Joshua J

Re: How Can I display chart in Tapestry pages?

2007-06-04 Thread Joshua Jackson
I don't think this is related specifically to tapestry. Try adding jfreechart to your pom.xml On 6/4/07, Eko S.W. <[EMAIL PROTECTED]> wrote: Dear All, I am sorry for this newbie question. But how can I display chart on a page in T5? What is the dependency should I include in pom.xml? Thanks in

How Can I display chart in Tapestry pages?

2007-06-04 Thread Eko S.W.
Dear All, I am sorry for this newbie question. But how can I display chart on a page in T5? What is the dependency should I include in pom.xml? Thanks in advance -- Best wishes, Eko SW http://swdev.blogs.friendster.com/my_blog/