Re: Setting a message for Identity Validator

2007-06-12 Thread Lionel Touati
Hi List, There is no way AFAIK to specify a different message to be displayed for the Identity validator. For example, when using the following format match=password[%user_general_info_ERR12], it does not pickup the specified message. When looking at the code the Identity class looks for the

Re: T5 Related Components

2007-06-12 Thread Martin Reurings
Can you give me some small example code on how you were able to gain access from one tag to the other? I am currently trying to create a matchfield validator in which one text field must match the value of another and I am pondering on how to access the second field. I know the id of the second f

Re: T5: Ajaxify Page with built in Scriptaculous

2007-06-12 Thread Joshua Jackson
Hi Massimo Thanks for the response. How do you exatcly implement the response? What I assume is that you do something like this: public StreamResponse onAction(){ return new TextStreamResponse("text/xml", ""); } And then process it with prototype inside your html

Re: T5: Displaying field error message at specific point in the template - possible?

2007-06-12 Thread Martin Reurings
Sorry to visit back on this subject. I've been digging through the source-code and javadocs to get my head around the way validation is handled and I was left wondering over one final aspect of the whole set. Where do I tell Tapestry / a form / a form-element to use my custom implementation of Va

Re: T5: Ajaxify Page with built in Scriptaculous

2007-06-12 Thread Joshua Jackson
Hi Howard, Thanks for the reply. This is a great news for the whole community, as AJAX is something we can not avoid these days. You're right about response is a full page HTML. How will the dispatcher only gives back the data I need instead of the full page HTML? On 6/12/07, Howard Lewis Ship <

Re: Form Validation

2007-06-12 Thread petros
Hi, Please ignore the previous message. I just realizes that the problem was with Firefox remembering the values. Everything is working fine with IE. Petros petros wrote: > > I have a problem with the following code. > > When the form is submitted my form displays a message advising if t

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

2007-06-12 Thread Deleuze Sébastien
Title: RE : T5: Access to an ApplicationState object from a HttpServlet I have found how to access to the HttpSession on the wiki howto : http://wiki.apache.org/tapestry/Tapestry5ObtainingHttpServletRequest I may be able to store objects in HttpSession. However, if someone knows a way to

Re: T5 Does someone have a Palette example

2007-06-12 Thread Marcell Manfrin Barbacena
Nice. However some links looks wrong and there are lots of java class without htmls. How could we keep this bleeding edge? []s On 6/12/07, Erik Vullings <[EMAIL PROTECTED]> wrote: Duh, I feel like an idiot, but this is really a great tip. As promised, I have created a Wiki HowTo page for it, so

T5 friendly URLs proposal

2007-06-12 Thread Otho
Hi all! The automatic nicety of the URLs is ok mostly but sometimes it interferes with the internal organisation of classes or planned naming conventions etc. Wouldn't it be nice if there was a @UrlString("myPath/myName") annotation with which you could override the automatic url-generation for a

Re: T5 Does someone have a Palette example

2007-06-12 Thread Erik Vullings
Duh, I feel like an idiot, but this is really a great tip. As promised, I have created a Wiki HowTo page for it, so hopefully, it will prevent some other sod like me to make the same mistake :-) http://wiki.apache.org/tapestry/Tapestry5CheckOutTheSourceCode Thanks Marcus! On 6/12/07, Marcus <[EM

T5: Swapping out Spring definitions

2007-06-12 Thread Joel Wiegman
Hello all, During the execution of our end-to-end (out-of-container) unit tests, I'd like to load my service definitions as mock objects from Spring configuration files that are different from the ones defined in my container (web.xml file). Believe it or not, the Tapestry PageTester class has a

Re: T5 Related Components

2007-06-12 Thread Todd Orr
I have created a solution that requires the developer to add a targetId parameter to the SearchForm component that specifies the ID of the SearchResults component. This is sort of how Label works with an input component. It currently requires the literal: prefix on the String targetId passed to it

Re: T5: support for radio buttons?

2007-06-12 Thread Howard Lewis Ship
It's a bit different, and I expect to use the same RadioGroup/Radio pattern as in T4. On 6/12/07, Daniel Jue <[EMAIL PROTECTED]> wrote: I tried to start writing one, based off of the code for Checkbox, but it was too much for me once I started thinking about handling radiogroups. I guess the st

T5 Related Components

2007-06-12 Thread Todd Orr
How would one create two components that function by one passing the results of some form processing to another? My use case is this: I have a reusable SearchForm component. This component is little more than a form that takes the search parameter and executes the search using the OnEvent annota

Re: T5 Does someone have a Palette example

2007-06-12 Thread Marcus
Hi Erik, Take a look at PaletteDemo inside tapestry-core (src/test/java/org.apache.tapestry.integration.app1) Marcus

T5 Does someone have a Palette example

2007-06-12 Thread Erik Vullings
Hi all, Does someone have a palette example - it requires some parameters, and it would be nice to see what they look like. I'll promis to add it to the Wiki (and attribute it, of course :-) Thanks Erik

Re: T5: Ajaxify Page with built in Scriptaculous

2007-06-12 Thread Massimo Lusetti
On 6/12/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: My plans for Ajax is to introduce a new Dispatcher that recognizes the XHR request and handles the response different, rendering a response within the same request. What you are seeing is probably the result of the ac tion request sending

Re: T5: Prototype's AJAX.updater question

2007-06-12 Thread Erik Vullings
Thanks for your replies - removing the html part already did the job, and there was no need for a more advanced processing. The only remaining problem so far is that I haven't managed to obtain my persisted object (it's persisted in the main page), but the component I get using AJAX doesn't seem t

T5: Access to an ApplicationState object from a HttpServlet

2007-06-12 Thread Deleuze Sébastien
Title: T5: Access to an ApplicationState object from a HttpServlet Hi, I would like to reformulate my question in a more general way. How can I access to Tapestry 5 ApplicationState objects from outside Tapestry 5 context (an HttpServlet for example). We tried to understand if something i

Re: Tap 4.0.3 HttpSession and WebSession

2007-06-12 Thread Pedro Maria Buitrago Mantilla
I need to accede to the HttpSession once I do submit . The only object that I have available is IRequestCycle cycle. That I can do? 2007/3/9, Miguel Angel Hernández <[EMAIL PROTECTED]>: Hi, Petter: Seems I've mistaken the version number is 4.0.2, sorry for that! :P Renat, It seems to be that

Re: T5: support for radio buttons?

2007-06-12 Thread Daniel Jue
I tried to start writing one, based off of the code for Checkbox, but it was too much for me once I started thinking about handling radiogroups. I guess the structure could mirror the if-else structure in T5, where you specify an If and then have parameters inside the if that correspond to elses.

Re: T5: Direct URL to Class Mappings are Inconvenient

2007-06-12 Thread Yann Ramin
As long as we can fix the package foo.pages.bar; class Bar { } turning into /bar/ and not finding the html page bug ;) Howard Lewis Ship wrote: That may not make it into the initial release of Tapestry; there are so many other concerns that are more critical! On 6/12/07, David Peterson <[EMA

Re: T5: support for radio buttons?

2007-06-12 Thread Howard Lewis Ship
Yep, it's missing. There's a JIRA issue on this. On 6/12/07, Stephan Schwab <[EMAIL PROTECTED]> wrote: Hi, do I miss something or is there no support in T5 for radio buttons yet? I've search this mailing list, but could not find much about the topic and the T5 component catalog only shows a ch

Re: T5: Direct URL to Class Mappings are Inconvenient

2007-06-12 Thread Howard Lewis Ship
That may not make it into the initial release of Tapestry; there are so many other concerns that are more critical! On 6/12/07, David Peterson <[EMAIL PROTECTED]> wrote: It's the word "view" that I'd like to get rid of because the more slashes in your URL, the lower the page is ranked in certain

T5: support for radio buttons?

2007-06-12 Thread Stephan Schwab
Hi, do I miss something or is there no support in T5 for radio buttons yet? I've search this mailing list, but could not find much about the topic and the T5 component catalog only shows a checkbox component. Stephan -- http://www.stephan-schwab.com -- View this message in context: http://ww

Re: T5 Invoke ValidationTracker recordError with elementName instead of Field

2007-06-12 Thread Howard Lewis Ship
There's a long history in Tapestry of any time there's a hint of extra API, people find a way to abuse it. So I'm being very, very conservative! On 6/12/07, Martin Grotzke <[EMAIL PROTECTED]> wrote: And what are your concerns with an additional method recordError(String,String) on the Validation

Re: T5 Invoke ValidationTracker recordError with elementName instead of Field

2007-06-12 Thread Martin Grotzke
And what are your concerns with an additional method recordError(String,String) on the ValidationTracker (and Form)? Cheers, Martin On Tue, 2007-06-12 at 09:19 -0700, Howard Lewis Ship wrote: > I'm not familiar enough with Hibernate Validator to say. > > On 6/11/07, Martin Grotzke <[EMAIL PROTE

Re: T5: Direct URL to Class Mappings are Inconvenient

2007-06-12 Thread David Peterson
It's the word "view" that I'd like to get rid of because the more slashes in your URL, the lower the page is ranked in certain search engines. /article -> ArticleViewer /admin/article/edit -> ArticleEditor It would be nice to have the mapping strategy from URI to classname (and back) be made plu

Re: T5 Invoke ValidationTracker recordError with elementName instead of Field

2007-06-12 Thread Howard Lewis Ship
I'm not familiar enough with Hibernate Validator to say. On 6/11/07, Martin Grotzke <[EMAIL PROTECTED]> wrote: Hi Howard, On Sat, 2007-06-09 at 22:44 +0200, Martin Grotzke wrote: > Does this enable us to use hibernate validator in our business layer > that is completely independent from tapestr

Re: T5: Prototype's AJAX.updater question

2007-06-12 Thread Howard Lewis Ship
Most of that logic will move into the framework pretty much invisibly. On 6/12/07, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: hi erik, GetContent.html is interpreted by T5 as: go to component "html" on page "GetContent". if you know beforehand what your link looks like (eg. what component

Antwort: T5: Prototype's AJAX.updater question

2007-06-12 Thread Kristian Marinkovic
hi erik, GetContent.html is interpreted by T5 as: go to component "html" on page "GetContent". if you know beforehand what your link looks like (eg. what component and what page) you can use following code snippet to perform partial page rendering: @Component private ActionLink UpdateLink; //

Re: T5: Ajaxify Page with built in Scriptaculous

2007-06-12 Thread Howard Lewis Ship
My plans for Ajax is to introduce a new Dispatcher that recognizes the XHR request and handles the response different, rendering a response within the same request. What you are seeing is probably the result of the ac tion request sending a redirect to the client, then a full page of HTML. On 6/1

Re: T5: obtaining Link or InvocationTarget from Component

2007-06-12 Thread Howard Lewis Ship
There's a few different ways to accomplish what you need, but it would be easier if you started with your goal, rather than the approaches you've tried that failed. You could replace the LinkFactory itself. You could get the ComponentResources for the ActionLink or PageLink. The ComponentInvoca

Re: T5: Prototype's AJAX.updater question

2007-06-12 Thread Howard Lewis Ship
You are formulating the URL incorrectly. /GetContent.html looks like an "action" event on the "html" component of page "GetContent". See: http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html The best way to get a URL is to inject ComponentResources and ask the component to cre

Looking for Tapestry/Java engineers in Boston

2007-06-12 Thread Dan Adams
We are actively looking for engineers and are located in Boston right next to the Children's Museum. It's a great company with a lot of really awesome projects and we use all of the following (depending on the project): - Tapestry 4,Hibernate,Spring (and T5 soon) - XSLT, XQuery, and MarkLogic - Au

T5: Prototype's AJAX.updater question

2007-06-12 Thread Erik Vullings
Hi all, Is it possible to use prototype's AJAX updater function to replace a div with the output of a tapastry page or component? I''ve tried the following: I created a js function which should update the mainContent div *function* showAJAX(index) { *new* Ajax.Updater("mainContent", "GetContent

Re: T5: Direct URL to Class Mappings are Inconvenient

2007-06-12 Thread Howard Lewis Ship
The current rules allow for this: pages.view.ViewArticle is mapped to "view/article" (not "view/viewarticle"). This is very useful, since you'll likely add other options: "add/" or "edit/" or "search/". On 6/12/07, David Peterson <[EMAIL PROTECTED]> wrote: I'm finding that I often want my page

[ANN] Tapestry 4 Tutorial, issue 12

2007-06-12 Thread Kolesnikov, Alexander GNI
Please have a look: http://www.devshed.com/c/a/Apache/PropertySelection-and-IPropertySelecti onModel-in-Apache-Tapestry/ Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please imm

T5: Direct URL to Class Mappings are Inconvenient

2007-06-12 Thread David Peterson
I'm finding that I often want my pages to have the same names as classes in my model. For example, I have an Article class in my model and I want the article viewer URL to be "/article" (with a context specifying the article reference). Although this is possible by using fully-qualified class nam

T5: obtaining Link or InvocationTarget from Component

2007-06-12 Thread Kristian Marinkovic
Hi, can someone help me to obtain a Link or InvocationTarget instance from a specific Component (ActionLink, PageLink). I'm trying to delegate this information to a service that generates the necessary javascript for my asynchronous invocations. First i thought the ComponentInvocationMap were the

T5: Ajaxify Page with built in Scriptaculous

2007-06-12 Thread Joshua Jackson
Hi all, I'm having a rough time to Ajaxify my page with the built in scriptaculous in T5. How do I process and display the streaming result received from server with the built in scriptaculous bundled with T5? Has anyone able to implement scriptaculous on their Page? Can you please share it with

T5 and DWR

2007-06-12 Thread Deleuze Sébastien
Hi, We try to find a way to make DWR and Tapestry 5 communicate together. The main problem that we encounter is that Tapestry 5 does not use usual servlet session like other framework like Tapestry 4 or Struts. We do not understand Tapestry 5 internal mechanism well enough to achieve this

Re: T5 encoding issue

2007-06-12 Thread Ulrich Stärk
In case you are using Tomcat try adding URIEncoding="UTF-8" to your connector definition in server.xml. Uli On Mo, 11.06.2007, 23:13, Martin Grotzke sagte: > Hi, > > I have currently an encoding issue, but am not really sure what's > the reason for this. > > I have an url that contains a url enco

tapestry-1.0.0 on any mirror?

2007-06-12 Thread Peter Schröder
hi jesse, you wrote, that you wanted to push a version to ibiblio mirror. i didnt find it jet?! kind regards peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]