RE: ASO Frustrations

2007-06-13 Thread Kristian Marinkovic
just a guess. is within you .page file and not within your .html? "Jonathan Barker" <[EMAIL PROTECTED]> 14.06.2007 05:16 Bitte antworten an "Tapestry users" An "'Tapestry users'" Kopie Thema RE: ASO Frustrations Chris, Nothing jumps out at me as *wrong*, but I've run into stra

Re: T5 Invoke ValidationTracker recordError with elementName instead of Field

2007-06-13 Thread Jiri Mares
Okay, I understand, write test for checking this particular thing and you can be calm. How are you satisfied with using Hibernate Validator? jirka Martin Grotzke napsal(a): > Yes, we already did this, but this works only as long as the internals > of tapestry do not change. E.g. if another pro

Re: Order in which ognl expressions are evaluated

2007-06-13 Thread munich
Thanks! Independent on what exactly the error is, it is weird that is makes a difference whether I write: or as the line inside should never be calledunless the ognl expressions are evaluated prior to rendering Original-Nachricht Datum: Wed, 13 J

RE: ASO Frustrations

2007-06-13 Thread Jonathan Barker
Chris, Nothing jumps out at me as *wrong*, but I've run into strange problems when I omit constructors. Try adding no-arg constructors to your factory and ASO classes. I lean more toward annotations, so I hardly ever use the method, so I wouldn't even know what I was missing there. Jonathan >

Re: T5: Ajaxify Page with built in Scriptaculous

2007-06-13 Thread Jun Tsai
I had test it. works fine. 2007/6/14, Bill Holloway <[EMAIL PROTECTED]>: Joshua, here's a very simple example: Template: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> function handleResponse (xhrResponse) { alert (xhrResponse.responseText);

Re: Order in which ognl expressions are evaluated

2007-06-13 Thread Jesse Kuhnert
The @If component should prevent any further evaluation of things within it. It's impossible to guess at your problem as I have no idea what "an error occurs" means. On 6/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi there! Something really weird is going on I have created a sta

Re: Tapestry 4.1.2 Expected release Date

2007-06-13 Thread Jesse Kuhnert
I am waiting a few days for word back from the opensymphony.com people about some items I need to get OGNL released. If I haven't heard anything by this weekend I may just release it quietly on ibiblio myself for now. After that is done then we can finally start all of the steps involved in rel

Re: bean declared already exception

2007-06-13 Thread Jesse Kuhnert
It is hard to say. A test case of some kind in a jira issue would be helpful. The issues outlined in the old ticket have never come up again until now. If someone has something in a jira issue somewhere, I can - as always - look at it at the next available opportunity. On 6/13/07, Warner Onsti

Re: Setting a message for Identity Validator

2007-06-13 Thread Jesse Kuhnert
That looks mostly reasonable, though I've never really seen this identity validator before. Is there someone else who'd be able to patch things up? On 6/13/07, Lionel Touati <[EMAIL PROTECTED]> wrote: Hi List, There is no way AFAIK to specify a different message to be displayed for the Ident

Re: Tap 4.0.3 HttpSession and WebSession

2007-06-13 Thread Jesse Kuhnert
That and all of the objects found here: http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/index.html On 6/12/07, Pedro Maria Buitrago Mantilla <[EMAIL PROTECTED]> wrote: I need to accede to the HttpSession once I do submit . The only object that I have available is IRequestCycl

Re: T5 Does someone have a Palette example

2007-06-13 Thread Howard Lewis Ship
These examples are, of course, part of the unit test suite for Tapestry, based on Selenium. On 6/13/07, Marcus <[EMAIL PROTECTED]> wrote: Hi Marcell Java classes are in src/test/java/org.apache.tapestry.integration.app1 and templates are in src/test/app1/WEB-INF or in 'components' folder. Hi D

Re: T5: Can't use any page name but "Start"

2007-06-13 Thread Alexandru Dragomir
I made a small test and it works . Should be fine with these files: com.my.package.root.pages.Start.java com.my.package.root.pages.admin.Test.java com.my.package.root.component.Messages.java WEB-INF/Start.html WEB-INF/admin/Test.html Both Start.html and Test.html contain the tag With both lin

Re: T5: Ajaxify Page with built in Scriptaculous

2007-06-13 Thread Fidel Chavarria
Hi, i copy & paste this example but it don't work , do i missing something ? texomaleo wrote: > > Joshua, > > here's a very simple example: > > Template: > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> > > > > > > > function handleResponse (xhrResponse) > { >

Re: T5: Translating lists

2007-06-13 Thread Ben Tomasini
I think you are right. I will probalby just put a static public List makeList(List) on the domain object. It is only used for the grid component, so this probably appropriate. Ben On 6/13/07, Daniel Jue <[EMAIL PROTECTED]> wrote: Are there other uses of the converted domain objects beside

Re: illegal character: \64 error when built using jdk1.4

2007-06-13 Thread Yann Ramin
Annotations don't exist in JDK 1.4. You need to use JDK5 or stop using annotations. Ajit Raj wrote: Hi, I got an illegal character: \64 error for the following statement @InjectMeta ^ and @Persist ^ etc when I switch from jdk1.5 to jdk1.4 to compile the project which

illegal character: \64 error when built using jdk1.4

2007-06-13 Thread Ajit Raj
Hi, I got an illegal character: \64 error for the following statement @InjectMeta ^ and @Persist ^ etc when I switch from jdk1.5 to jdk1.4 to compile the project which is using tapestry 4.0. Could anyone let me know where the issue is? Thanks, Ajit _

Re: T4.1.2 LinkSubmit stops working

2007-06-13 Thread Jesse Kuhnert
Hold down the shift button and click on your browsers "reload page" button with mouse. On 6/13/07, Maksym Gryevtsov <[EMAIL PROTECTED]> wrote: Thanks, I use this version. But I found small message at the end of all pages: FATAL exception raised: Could not load 'tapestry.html'; last tried '/_

Re: T5: Translating lists

2007-06-13 Thread Daniel Jue
Are there other uses of the converted domain objects besides the presentation layer? I am wondering if it's "good practice" to tie in Tapestry for this. Can Type A and Type B both implement a common interface? Then you could have the presentation layer work on that interface. If a common inter

Re: T5: Can't use any page name but "Start"

2007-06-13 Thread Steven Coco
Hi. I think this could be due to a known bug in parsing the page path name. The path "/status/ViewStatus" is supposed to be canonicalized into "/status/View" which should be how you'd refer to that page in your PageLinks. But there is some bug in the code handling those path translations. It's

Re: T5: Translating lists

2007-06-13 Thread Ben Tomasini
Thank you. Is there native support for lists of different types? Will the TypeCoercer take a List and create a List if that is what is requested? If so, how are generic lists handled? Does the TypeCoercer inspect the first element for its type? Ben On 6/13/07, Davor Hrg <[EMAIL PROTECTED]>

Re: T4.1.2 LinkSubmit stops working

2007-06-13 Thread Maksym Gryevtsov
Thanks, I use this version. But I found small message at the end of all pages: FATAL exception raised: Could not load 'tapestry.html'; last tried '/__package__.js' Besides I have this errors in my log: 13:07:30,220 WARN [Asset] Classpath resource '/tapestry//html.js' does not exist. 13:07:30,

Re: T4.1.2 LinkSubmit stops working

2007-06-13 Thread Jesse Kuhnert
http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/ The very latest version being: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/tapestry-framework/4.1.2-SNAPSHOT/tapestry-framework-4.1.2-20070613.173434-115.jar On 6/13/07, Maksym Gryevtsov <[EMAI

Re: RE : T5: Access to an ApplicationState object from a HttpServlet

2007-06-13 Thread Massimo Lusetti
On 6/13/07, Deleuze Sébastien <[EMAIL PROTECTED]> wrote: However, if someone knows a way to access to Tapestry ApplicationState objects without having to copy it to HttpSession, please let me know. By definition ASO are stored in the session. Here is a quote from online docs about Application

Re: T5: Translating lists

2007-06-13 Thread Davor Hrg
You need TypeCoercer, you can inject it where needed, and use it.. ina a page: @Injectprivate TypeCoercer typeCoercer in a method, or service constructor: public myMethod(@Inject TypeCoercer typeCoercer){} you then use it like this: SomeClass destination = typeCoercer.coerce(source, Some

Re: T4.1.2 LinkSubmit stops working

2007-06-13 Thread Maksym Gryevtsov
Which maven repository do I have to use? Jessek wrote: > > Your "extract from new working page" shows a snippet of: > >>> >>> a href="javascript:tapestry.form.submit('taskForm', >>> 'transitionEndTaskLink');" id="transitionEndTaskLink" > > This means you aren't using the latest 4.1.2-SNA

Re: T4.1.2 LinkSubmit stops working

2007-06-13 Thread Jesse Kuhnert
Your "extract from new working page" shows a snippet of: a href="javascript:tapestry.form.submit('taskForm', 'transitionEndTaskLink');" id="transitionEndTaskLink" This means you aren't using the latest 4.1.2-SNAPSHOT. On 6/13/07, Maksym Gryevtsov <[EMAIL PROTECTED]> wrote: Old code is

Re: T4.1.2 LinkSubmit stops working

2007-06-13 Thread Maksym Gryevtsov
Old code is from 4.1.1; new one from the latest 4.1.2. When I click on a link, nothing happens Jessek wrote: > > This must be an "old" latest snapshot. The actual latest snapshot doesn't > render any javascript: statements in the href. I would double check to be > sure you really have the mos

Re: T4.1.2 LinkSubmit stops working

2007-06-13 Thread Jesse Kuhnert
This must be an "old" latest snapshot. The actual latest snapshot doesn't render any javascript: statements in the href. I would double check to be sure you really have the most current version. On 6/13/07, Maksym Gryevtsov <[EMAIL PROTECTED]> wrote: After upgrading to the latest SNAPSHOT al

Re: T5 I guess the Any component is gone.

2007-06-13 Thread Robert Zeigler
Any is gone... there's just no need for it anymore, with attribute expansions in place. ... is now just: ... Robert On Jun 13, 2007, at 6/131:11 PM , Steven Woolley wrote: I noticed the same thing, and I wasn't sure if it was because of a refresh, or using a different xml parser in my own

T4.1.2 LinkSubmit stops working

2007-06-13 Thread Maksym Gryevtsov
After upgrading to the latest SNAPSHOT all LinkSubmit stop working. They just call nothing. It seems javascript issue. Extract from old working page: djConfig = {"isDebug":true,"debugAtAllCosts":false,"debugContainerId":"debug","baseRelativePath":"/mydesktop/app?service=asset&path=%2Fdojo%2F","pr

Broken link for T5 tutorial

2007-06-13 Thread Borut Bolčina
http://tapestry.apache.org/tapestry5/tapestry-tutorial1/ at http://tapestry.apache.org/tapestry5/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5 I guess the Any component is gone.

2007-06-13 Thread Steven Woolley
I noticed the same thing, and I wasn't sure if it was because of a refresh, or using a different xml parser in my own code... On 6/13/07, Bill Holloway <[EMAIL PROTECTED]> wrote: ...not complaining (expansions to the rescue), just checking. After a recent code launch of maven, all my t:type="an

Re: T5: Expiclit Service Injection

2007-06-13 Thread Ben Tomasini
Upgraded to 5.0.5-SNAPSHOT and that fixed it. On 6/13/07, Ben Tomasini <[EMAIL PROTECTED]> wrote: I am working with tapestry 5.0.4 trying to do explicit service injection since there are three services which match my interface. Here is the code for the private field in the tapestry page: @In

Re: T5 Invoke ValidationTracker recordError with elementName instead of Field

2007-06-13 Thread Martin Grotzke
Yes, we already did this, but this works only as long as the internals of tapestry do not change. E.g. if another property of Field would be used or e.g. the hashCode or equals methods would be used, our application would be broken. That's why I ask for a modification of the interface. Cheers, Ma

Re: T5 Does someone have a Palette example

2007-06-13 Thread Marcus
Hi Marcell Java classes are in src/test/java/org.apache.tapestry.integration.app1 and templates are in src/test/app1/WEB-INF or in 'components' folder. Hi Daniel, We can deploy those tests using Jetty plugin in Eclipse. Marcus

T5: Translating lists

2007-06-13 Thread Ben Tomasini
I have a simple requirement to tranlsate a list of type A to a list of type B I have a simple service interface to do this: List translate(List list) It does a 1:1 translation on the source list, mapping properties to the new list. It is specifically used to create beans to pass into the grid

T5: Expiclit Service Injection

2007-06-13 Thread Ben Tomasini
I am working with tapestry 5.0.4 trying to do explicit service injection since there are three services which match my interface. Here is the code for the private field in the tapestry page: @Inject @Service("UserTranslator") private Translator userTranslator; And here is the module public T

Re: T5 Does someone have a Palette example

2007-06-13 Thread Erik Vullings
Looking at the URLs, it seems likely that even after a new release, they would still be valid. There is no reference to 5.0.5 in them, so I hope it will be OK. BTW I've removed some HTML links (that didn't exist). About the links to the items, the Wiki automatically creates links for words that us

RE: T5: Can't use any page name but "Start"

2007-06-13 Thread Joel Wiegman
Thanks for the response Alexandru. Yeah, it's all in the correct spot (keep in mind I just renamed an already-working file). My "ViewStatus.html" is: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> -Original Message- From: Alexandru Drago

T5 I guess the Any component is gone.

2007-06-13 Thread Bill Holloway
...not complaining (expansions to the rescue), just checking. After a recent code launch of maven, all my t:type="any"s broke. Bill -- "The future is here. It's just not evenly distributed yet." -- Traditional - To unsub

Re: T5: Can't use any page name but "Start"

2007-06-13 Thread Alexandru Dragomir
I can think about the following : - you must have the "messages" declared in the html file too - make sure the html is in the right place http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html -> Template Location Hope it helps. Alex On 6/13/07, Joel Wiegman <[EMAIL PROTECTED]

Re: T5: Ajaxify Page with built in Scriptaculous

2007-06-13 Thread Bill Holloway
Joshua, here's a very simple example: Template: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> function handleResponse (xhrResponse) { alert (xhrResponse.responseText); } function asyncCall () { new Ajax.Req

ASO Frustrations

2007-06-13 Thread Chris Chiappone
Could someone take a quick look at this and see if i'm doing anything wrong. I am trying to use and session based ASO but it doesn't seem to be getting injected properly, i've looked at this code over and over and must be missing something. hivemodule.xml

Order in which ognl expressions are evaluated

2007-06-13 Thread munich
Hi there! Something really weird is going on I have created a static method that returns false ( getFalseCondition())... inside of the condition is a component. If the component is rendered, an error occurs - if I leave the component out, the error does not occ

Re: T5 Does someone have a Palette example

2007-06-13 Thread Daniel Jue
It would be nice if sample usage was included in the javadocs, so that when Howard releases new code, the short examples are right there. Or I guess we have the tests we can look at. Is there a commiter that we can funnel our usage suggestions to, so that the person only has to cut and paste it

T5: Can't use any page name but "Start"

2007-06-13 Thread Joel Wiegman
All, I have an HTML file and Java file that functions perfectly with the following structure: /status/Start When I rename the HTML and Java file to something more meaningful, like: /status/ViewStatus Run a clean build and load the page, none of my embedded components are found anymore: "Compo

Tapestry 4.1.2 Expected release Date

2007-06-13 Thread Lionel Touati
Hi Jessee, I was wondering if you've updated the schedule for 4.1.2 release. You wrote earlier that you would be waiting for OGNL to get stable before announcing anything. It seems to me this is the case now, so do you have an idea on when this could happen now ? Thanks for the hard work L

Re: T5 Related Components

2007-06-13 Thread Todd Orr
The quick and dirty is this: Given: The targetId String of the related component passed into this component as a parameter: resources is an injected instance of ComponentResources like so @Inject private ComponentResources resources; Code: Component comp = resourc

Re: bean declared already exception

2007-06-13 Thread Warner Onstine
Jesse, since you closed this bug would you care to comment? -warner On Jun 11, 2007, at 2:38 PM, Warner Onstine wrote: I'm still seeing this issue when I'm trying to convert from 4.0.2 up to 4.1.2. Here's my issue: I have a Login component that declares a bean @Bean(EventsValidationDelegate.

Re: T5: Page lifecycle and pageAttached()

2007-06-13 Thread Howard Lewis Ship
This behavior is correct. Page2 is attach to the request because of the PageLink component. The PageLink component (or rather, the LinkFactory service behind the scenes) obtains an instance of Page2 so that it can fire the "passivate" event on it. http://tapestry.apache.org/tapestry5/tapestry-c

T5: Page lifecycle and pageAttached()

2007-06-13 Thread tovarisch
Hi all, I'm using 5.0.4, I have two pages, Page1 and Page2, similar to this: Page1.html http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; > Page 1 Page 2 Page2.html http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; > Page 2 Page 1 where both pageAttached() and pageDetached() ju

Re: T5: Ajaxify Page with built in Scriptaculous

2007-06-13 Thread Massimo Lusetti
On 6/13/07, Joshua Jackson <[EMAIL PROTECTED]> wrote: And then process it with prototype inside your html page? Yep. Or do you have any other approach for this? You may or may not use TextStreamResponse but that pretty much the same of what i'm using right now Ciao -- Massimo http://merid

Re: T5 Invoke ValidationTracker recordError with elementName instead of Field

2007-06-13 Thread Jiri Mares
Hi Martin, why not to implement your own Field and fill it with the name and pass it into recordError? Jirka Martin Grotzke napsal(a): > Yes, I totally understand and it's of course very important that > you do not change the API each time a user asks for it. > > The question in this case is

Re: T5 Invoke ValidationTracker recordError with elementName instead of Field

2007-06-13 Thread Martin Grotzke
Yes, I totally understand and it's of course very important that you do not change the API each time a user asks for it. The question in this case is then: why does the interface require a Field? It's only the Field's elementName that is used for the recordError functionality, so is it only for co