Re: [T5] Ajax And Zones

2008-11-06 Thread Inge Solvoll
Isn't this the same problem I ran into some weeks ago? Forms not supported in zones? Seems to be a lot of people not getting this. regards Inge On Fri, Nov 7, 2008 at 3:47 AM, Marcel Sammut <[EMAIL PROTECTED]> wrote: > > Greetings, > I have a component which displays a header and body contents,

Re: [T5] Getting DWR to work with tapestry's filter mapping

2008-11-06 Thread Howard Lewis Ship
Ooops. I'll check a fix in for that with some other outstanding changes (no JIRA issue necessary). On Thu, Nov 6, 2008 at 6:47 PM, BarryDev <[EMAIL PROTECTED]> wrote: > > > > Thiago H. de Paula Figueiredo wrote: >> >> Em Thu, 06 Nov 2008 11:29:30 -0300, BarryDev <[EMAIL PROTECTED]> >> escreveu: >

Re: Authentication

2008-11-06 Thread Craig St. Jean
Personally, I stick to using a stateful session bean, but I also provide single sign on for my various web apps. I've also used the standard J2EE's j_username and j_password with an LDAP realm. Both have nothing to do with Tapestry, but still apply. (Just my 2 cents) On Thu, Nov 6, 2008 at 5:06

[T5] Ajax And Zones

2008-11-06 Thread Marcel Sammut
Greetings, I have a component which displays a header and body contents, where the contents are collapsed via AJAX support. The component is a DIV which wraps a table that contains the header, AJAX block and Zone. There is an ActionLink which is used to invoke the AJAX method that returns the AJ

Re: [T5] Getting DWR to work with tapestry's filter mapping

2008-11-06 Thread BarryDev
Thiago H. de Paula Figueiredo wrote: > > Em Thu, 06 Nov 2008 11:29:30 -0300, BarryDev <[EMAIL PROTECTED]> > escreveu: > > It should be named AppModule. > > Thanks actually I had it in AppModule but the the problem was I had an Collection in my method signature instead of a Configuration.

Re: [T5-IOC] How to detect annotation on service implementation class?

2008-11-06 Thread Lubor Gajda
I've created new JIRA to cover this issue: https://issues.apache.org/jira/browse/TAP5-335 On Wed, Nov 5, 2008 at 1:23 AM, Thiago H. de Paula Figueiredo < [EMAIL PROTECTED]> wrote: > Em Tue, 04 Nov 2008 20:57:33 -0300, Lubor Gajda <[EMAIL PROTECTED]> > escreveu: > > The only feasible solutions I

Re: White space problems in latest T5 snapshot

2008-11-06 Thread nillehammer
Hi Peter, that seems odd. Your label, being just as an html tag not the Tapestry component, should not be touched by Tapestry at all. Is there a reason, why you do not use the component? If not, I suggest you rewrite your code to: ... This surely does not answer your question, but might well solve

Re: Authentication

2008-11-06 Thread Borut Bolčina
Thanks Ulrich! I will try that first thing Monday morning as I am going on a short vacation in a few hours. This method signature looks pretty scary as I am not used to this kind of syntax yet. Cheers, Borut 2008/11/6 Ulrich Stärk <[EMAIL PROTECTED]> > Just inject both providers into your contri

Re: [T5] Something like GORM for Tapestry?

2008-11-06 Thread Fernando Padilla
sorry no. But we use JDO/JPA and we have helper methods that look much like that, but not as concise.. but really easy to create a HQL, JDOQL, JPQL from a method like this: List books = dao.findByFields( Book.class, "firstname", "Howard Lewis", "lastname", "Ship" ); Otho wrote: Hi all,

Re: T5: @ApplicationState is misleading - voters wanted!

2008-11-06 Thread Howard Lewis Ship
Glad we agree. The advantage of all the annotations, naming conventions and meta programming is that you can gracefully evolve (away from stupid names, etc.). On Thu, Nov 6, 2008 at 3:55 AM, Geoff Callender <[EMAIL PROTECTED]> wrote: > Hi Howard, > > I completely understand your position on this.

Re: Dynamic JavaScript

2008-11-06 Thread Howard Lewis Ship
No, the strategy has changed. You generally want to a) Include a static JavaScript file with the logic (event handlers, etc.) b) Generate a *small* amount of initialization JavaScript dynamically Because statics are only included once, you no longer need the element from the T4 script DTD. Ini

RE: Dynamic JavaScript

2008-11-06 Thread Todd Miller
Does Tapestry 5 still use the following type of script file or has this changed? I couldn't tell from browsing through the Url you gave. http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>

Re: Dynamic JavaScript

2008-11-06 Thread Howard Lewis Ship
http://tapestry.formos.com/nightly/tapestry5/guide/ajax.html On Thu, Nov 6, 2008 at 11:36 AM, Todd Miller <[EMAIL PROTECTED]> wrote: > > I am currently involved in porting a Tapestry 4 project to Tapestry 5. > I came across some html with the following: > > inputFieldID="languageTextFiel

Dynamic JavaScript

2008-11-06 Thread Todd Miller
I am currently involved in porting a Tapestry 4 project to Tapestry 5. I came across some html with the following: I've been told that this is for dynamic JavaScript. I haven't been able to find documentation for how this is done in Tapestry 5. Could someone point me to a good Url that explai

Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Fernando Padilla
This is probably because it can't download the files.. I would double check your networking, but because you're emailing us I'll assume it's working. Someone I know also had issue like this, and the cause for him was he installed it as root on his laptop, so when he tried to build it as his

[T5] Something like GORM for Tapestry?

2008-11-06 Thread Otho
Hi all, I am just in the process of deciding which framework to use for an internal business app. The choices are spring rcp, tap5 and grails. The latter mainly because of the really nifty ORM. Especially the dynamic finders are neat, since they are readable and make daos redundant in most cases.

RE: Tapestry 5, WAR files and deployment

2008-11-06 Thread James Sherwood
Hello, You need to put those dependencies in your pom.xml file.(did you check if it works just using the eclipse built in war exporter?) --James -Original Message- From: tapestryphoto [mailto:[EMAIL PROTECTED] Sent: November-06-08 11:50 AM To: users@tapestry.apache.org Subject: Re: Ta

Improved Guide to Injection in Tapestry IoC

2008-11-06 Thread Howard Lewis Ship
I spent a chunk of time working on this yesterday: http://tapestry.formos.com/nightly/tapestry5/tapestry-ioc/injection.html -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL P

Re: Authentication

2008-11-06 Thread Ulrich Stärk
Just inject both providers into your contributeProviderManager method: public static void contributeProviderManager( OrderedConfiguration configuration, @InjectService("OpenIDAuthenticationProvider") AuthenticationProvider openIdAuthenticationProvider, @InjectServi

Re: [T5 IOC] bug in StrategyBuilder when using allowNonMatch="true"?

2008-11-06 Thread Howard Lewis Ship
This is not a bug. Either register a "catch-all" handler for Object, or leave allowNonMatch as false, and the StrategyRegistry will report the non match for you. On Thu, Nov 6, 2008 at 7:30 AM, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > hi all, > > when i create a strategy with allowNonMatc

Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread tapestryphoto
Quoting Olle Hallin <[EMAIL PROTECTED]>: Does it work from the command line? Olle I tried mvn war:war from the project directory. Bizarrely it gives even more problems. I find Maven very frustrating... [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.maven:maven-archi

Re: is there any eclipse plugin for tapestry4.1

2008-11-06 Thread Norman Franke
I don't think so. I use the J2EE / WST which provides a validating XML editor. That helps editing the .page files and the like. I try to put most stuff in the .java files, so there is less other stuff to manage. The html editor things my HTML has about 2 errors per line, it seems, since jwc

Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Olle Hallin
Does it work from the command line? Olle 2008/11/6 tapestryphoto <[EMAIL PROTECTED]> > Thanks Olle, much appreciated! > > Although when I try Maven I get: > > > Error message: Failed to resolve plugin for mojo binding: > org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test > Root error mess

Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread tapestryphoto
Thanks Olle, much appreciated! Although when I try Maven I get: Error message: Failed to resolve plugin for mojo binding: org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test Root error message: Unable to download the artifact from any repository p. Quoting Olle Hallin <[EMAIL PROTECT

RE: Tapestry 5, WAR files and deployment

2008-11-06 Thread James Sherwood
Hello, I just file/export/war in eclipse. Works fine for tomcat. --James -Original Message- From: Olle Hallin [mailto:[EMAIL PROTECTED] Sent: November-06-08 11:15 AM To: Tapestry users Subject: Re: Tapestry 5, WAR files and deployment Everyday one learns something new is a good day :D

[T5 IOC] bug in StrategyBuilder when using allowNonMatch="true"?

2008-11-06 Thread Kristian Marinkovic
hi all, when i create a strategy with allowNonMatch="true" a NullPointerException in the generated code will be thrown if a do a strategy call with a non-registered type System.out.println(strategy.filter("hello")); System.out.println(strategy.filter(new Integer(3))); // throws NPE in tapestry g

Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Olle Hallin
Everyday one learns something new is a good day :D Olle 2008/11/6 Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> > Em Thu, 06 Nov 2008 12:05:50 -0300, Olle Hallin <[EMAIL PROTECTED]> > escreveu: > > Hi, >> If you insist on doing it from within Eclipse, then >> >> 1. install the m2eclipse p

Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Thiago H. de Paula Figueiredo
Em Thu, 06 Nov 2008 12:05:50 -0300, Olle Hallin <[EMAIL PROTECTED]> escreveu: Hi, If you insist on doing it from within Eclipse, then 1. install the m2eclipse plugin 2. enable Maven for your project 3. right-click pom.xml and invoke Run As -> Maven package You can also right-click

Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Olle Hallin
Hi, This is most easily done with mvn package. The resulting WAR is found in the target folder of your project. Drop it into Tomcat/Jetty, and you're done. If you insist on doing it from within Eclipse, then 1. install the m2eclipse plugin 2. enable Maven for your project 3. right-click

RE: Tapestry 5, WAR files and deployment

2008-11-06 Thread James Sherwood
Hello, I deploy to tomcat but war essentials should be the same. I think the only difference between tomcat and Jetty are Tomcats classloaders which maven takes care of apparently. Just create the WAR with eclipse and drop it in your deploy folder(tomcat is the webapps directory and you don't ev

Re: [T5] Getting DWR to work with tapestry's filter mapping

2008-11-06 Thread Thiago H. de Paula Figueiredo
Em Thu, 06 Nov 2008 11:29:30 -0300, BarryDev <[EMAIL PROTECTED]> escreveu: I've added this method to my AppSupport.java class (created from the archetype), It should be named AppModule. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor Consultor, desen

Re: [T5] Getting DWR to work with tapestry's filter mapping

2008-11-06 Thread BarryDev
Thanks this makes a lot more sense. Also my above example wasn't working like magic, was getting errors tried to load assets :). I've reverted back and I'm attempted to get the configuration to work. I've added this method to my AppSupport.java class (created from the archetype), public stati

Re: Tapestry 5, WAR files and deployment

2008-11-06 Thread Thiago H. de Paula Figueiredo
Em Thu, 06 Nov 2008 11:18:59 -0300, tapestryphoto <[EMAIL PROTECTED]> escreveu: Hi, Having gone through the Tapestry tutorials, got to grips with it, developed a small application and have got it running well I'd like to actually deploy it. I notice there are no documents, examples or t

Re: t5:make into a OR

2008-11-06 Thread peibel
thanks Andy, I think the same too Andy Pahne-6 wrote: > > > I think you can't. > > You can write a method in your page (component) class > > public boolean isCondidtion(){ >... > } > > > and in your template: > > ... > > > > Another possibility is to use ognl binding. see t5compon

Tapestry 5, WAR files and deployment

2008-11-06 Thread tapestryphoto
Hi, Having gone through the Tapestry tutorials, got to grips with it, developed a small application and have got it running well I'd like to actually deploy it. I notice there are no documents, examples or tutorials (as far as I can see) that address how to do this. Even the "Tapestry 5"

RE: T5: The other misleading term is "encoder"?

2008-11-06 Thread Newham, Cameron
I agree - I found it confusing when I first read about it. It isn't an "encoder" as it also "decodes". Much prefer your term "mapper". -Original Message- From: Geoff Callender [mailto:[EMAIL PROTECTED] Sent: 06 November 2008 12:42 To: Tapestry users Subject: T5: The other misleading te

Re: [T5] Getting DWR to work with tapestry's filter mapping

2008-11-06 Thread Thiago H. de Paula Figueiredo
Em Thu, 06 Nov 2008 10:46:51 -0300, BarryDev <[EMAIL PROTECTED]> escreveu: app /app/* And it all works like magic. But you don't need to do that. Take a look at the end of this page: http://tapestry.apache.org/tapestry5/guide/conf.html. You can make Tape

[T5] Getting DWR to work with tapestry's filter mapping

2008-11-06 Thread BarryDev
Hey everyone, Just integrated direct web remoting into my tapestry app. Found one gotcha that I thought might be worth sharing. If you start the maven quickstart archetype your filter mapping will be: app /* When you try to add the servlet mapping for dwr d

Re: t5:make into a OR

2008-11-06 Thread Andy Pahne
I think you can't. You can write a method in your page (component) class public boolean isCondidtion(){ ... } and in your template: ... Another possibility is to use ognl binding. see t5components: http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html Andy pe

t5:make into a OR

2008-11-06 Thread peibel
Hi, I want Know if I can to make a AND or OR into thaks, Sorry for my english -- View this message in context: http://www.nabble.com/t5%3Amake-into-%3Ct%3Aif%3E-a-OR-tp20360846p20360846.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Has anyone integrated tapestry-acegi with CAS?

2008-11-06 Thread Olle Hallin
Hi! I'm looking for examples/code for how to configure tapestry-acegi to use CAS. Anyone out there that have done this? TIA, Olle Hallin

input validation

2008-11-06 Thread Muralidhar Y
Hi friends I got a problem. I am working with tapestry4.1. Actually in the java class I am taking the user name from the html file and in the listener method I have to validate the user name and if the user name is not correct I want to add an error saying that "your user name is incorrect" and it

T5: The other misleading term is "encoder"?

2008-11-06 Thread Geoff Callender
Has anyone else found the "encoder" concept in Loop misleading? I'd suggest renaming it to "mapper". I see a "mapper" as being something that maps between one thing and another, eg. between a key and an object. An "encoder" is something that converts data between formats without loss - all

Re: Tapestry 5 and ServletContext

2008-11-06 Thread Thiago H. de Paula Figueiredo
Em Thu, 06 Nov 2008 02:10:41 -0300, Muralidhar Y <[EMAIL PROTECTED]> escreveu: I am not sure of T5 but you can use ASO with global scope. In this way the ASO will store in the servlet context. That might solve your problem. There isn't a global scoped ASO in Tapestry 5. Many things have cha

Re: T5: @ApplicationState is misleading - voters wanted!

2008-11-06 Thread Geoff Callender
Hi Howard, I completely understand your position on this. If any of the suggestions people have made in https://issues.apache.org/jira/browse/TAP5-274 are on the right track then it's not a trivial task, so it would be better to get 5.0 out first. Cheers, Geoff On 06/11/2008, at 6:13 A

Re: AppPropertyBlocks & @PageAttached

2008-11-06 Thread José Paumard
Howard, Thank you for your answer, I understand what you mean, and thought about this approach. But I dont see how I can do that for a property editor, since it is declared in its own page, and invoked implicitly through a beaneditor : I dont think I have the hand on what parameters are sent

Authentication

2008-11-06 Thread Borut Bolčina
Hello, I need some help/guidelines in implementing a login with classic username and password login and with openid. I am looking at http://www.localhost.nu/svn/public/tapestry-spring-security-sample/ for classic setup and http://wiki.apache.org/tapestry/Tapestry5HowToSpringSecurityAndOpenId for

Re: White space problems in latest T5 snapshot

2008-11-06 Thread Peter Stavrinides
As a workaround I changed the to a , which renders correctly. - Original Message - From: "Peter Stavrinides" <[EMAIL PROTECTED]> To: "Tapestry Mailing List" Sent: Thursday, 6 November, 2008 10:45:53 AM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: White space problems in l

White space problems in latest T5 snapshot

2008-11-06 Thread Peter Stavrinides
Hi everyone, Not sure if its just me, but since this morning I am experiencing some weird problems with whitespace. This line of code: Is rendering as: Which is clearly incorrect, if I add a character like this: Z it becomes: Z which is correct. I even tried replacing t