T4 - async - pre-submit client side handler

2008-04-02 Thread Paul Stanton
Hi guys, I've got a @Form which submits async, and a @Submit. I've also got an onclick js event handler which is causing me some grief, but only for IE: When the submit button is clicked, in Firefox the js is called, and then the form submits as per expected. however in IE the js is called

Re: Eclipse tapestry templates on wiki

2008-04-02 Thread Davor Hrg
hi, I wrote those templates, and I use latest eclispe milestone, The added import statements are there to make sure right classes are imported along with the template, http://download.eclipse.org/eclipse/downloads/drops/S-3.4M2-200709210919/eclipse-news-M2.html#JDT under subject: Extended

Re: Eclipse tapestry templates on wiki

2008-04-02 Thread Davor Hrg
the new xml is now added there (I just removed import statements), http://wiki.apache.org/tapestry-data/attachments/Tapestry5HowToEclipseCodeTemplates/attachments/t5_eclipse_code_templates_before_E3.4.M2.xml please try it out so I can confirm it works :) Davor Hrg On Wed, Apr 2, 2008 at 10:01

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Alec Leamas
Sorry for the delay. I'm amazed over the help I get, and you shouldn't really have to say Sorry. But I need to say Thanks! I read Josh's answer as No, Tapestry should really treat all parameters be it ListString, ListMyMap or MyObject the same. (?) I'm on CET, and will come back into this

Re: component event handling problem

2008-04-02 Thread Francois Armand
Natia Gdzelishvili wrote: hi, I'm using tapestry 5.0.10 version, i hve a broblem with dandling submit component event handling on page i have: t:form t:id=registrationForm /t:form Hello, Perhaps with a litthe more context ? For example, what are you doing in the java class ? What do see

RE: component event handling problem

2008-04-02 Thread Cordenier Christophe
Hello Have you tried this ? @OnEvent(value=selected,component=submitButton) I think there is also a defer attribute with the Submit component that can be used the selected event to be triggered after form submission. Christophe. -Message d'origine- De : Natia Gdzelishvili

updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-02 Thread caarney
Hello, I'm using AJAX functionality in my Tapestry 4.1.2 application in the following way: Code that updates the component: cycle.getResponseBuilder().updateComponent(standardArea); Component to update: div jwcid=[EMAIL PROTECTED] ... /div Everything works fine until I add HTML

T4 how to get a real path out of the current context

2008-04-02 Thread J W
Hi all, I'm trying to arrange all the uploaded files into a folder outside of the current context path. And to do that, I setup a virtual path by creating an upload.xml under Tomcat: ?xml version=1.0 encoding=UTF-8? Context docBase=D:/uploadfile reloadable=true debug=0 / Now any file under the

Re: component event handling problem

2008-04-02 Thread Natia Gdzelishvili
on page Registration.tml i have: t:form t:id=registrationForm //...some component input t:type=submit type=submit t:id=submitButton value=submit/input /t:form and on Registartion.java @OnEvent(component=submitButton) void onSubmitButton() { System.out.println(Submit button was

Re: component event handling problem

2008-04-02 Thread Francois Armand
Natia Gdzelishvili wrote: on page Registration.tml i have: t:form t:id=registrationForm //...some component input t:type=submit type=submit t:id=submitButton value=submit/input /t:form and on Registartion.java @OnEvent(component=submitButton) void onSubmitButton() {

T5: Layout question

2008-04-02 Thread Onno Scheffers
I created a Layout component called Border. According to the documentation, I have to setup my page something like this: html t:type=Border xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; Page content /html I want the template to be previewable though so the webdesigners can

component event handling problem

2008-04-02 Thread Natia Gdzelishvili
hi, I'm using tapestry 5.0.10 version, i hve a broblem with dandling submit component event handling on page i have: t:form t:id=registrationForm /t:form

Re: Render element and block using one method

2008-04-02 Thread Imants Firsts
Thanks! Changing the return type from Object to Block solved the problem. Imants Quoting Josh Canfield [EMAIL PROTECTED]: What version of Tapestry are you using? This works in 5.0.11. Do you have the matching afterRender block to close the div? public Block beginRender(MarkupWriter

Re: updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-02 Thread Igor Drobiazko
please close the tag: br/ On Wed, Apr 2, 2008 at 11:13 AM, caarney [EMAIL PROTECTED] wrote: Hello, I'm using AJAX functionality in my Tapestry 4.1.2 application in the following way: Code that updates the component: cycle.getResponseBuilder().updateComponent(standardArea); Component

Re: onSelected event from Submit component

2008-04-02 Thread Adam Zimowski
I solved this by having a single form and generating dynamic radio buttons instead, and have a single submit at the bottom. As to your strategy, the problem is that submit component does not pass context to select event so it's hard to pass in additional information. -adam On Tue, Apr 1, 2008

Re: onSelected event from Submit component

2008-04-02 Thread Francois Armand
Adam Zimowski wrote: I solved this by having a single form and generating dynamic radio buttons instead, and have a single submit at the bottom. As to your strategy, the problem is that submit component does not pass context to select event so it's hard to pass in additional information.

Re: onSelected event from Submit component

2008-04-02 Thread Adam Zimowski
The submitWithContext on wiki is out of date at lest in regards to 5.0.11 as the API changed somewhat since 5.0.4. processSubmission(String) is now the function to be implemented, so: @Override protected void processSubmission(FormSupport formSupport, String elementName) needs to be

Re: T5: Layout question

2008-04-02 Thread 宁德辉
It looks like that T5 doesn't have such solution as $content$ in T4. It is discussed before. http://www.nabble.com/Writing-an-FAQ-for-Tapestry-5-to15719185.html#a15739812 Even though the t:container element can't help. Thanks! DH - Original Message - From: Julien HENRY [EMAIL

Re: Re : T5: Layout question

2008-04-02 Thread Onno Scheffers
Hi Julien thanks for your answer and that was what I expected to see happening, but it doesn't. So if it is supposed to work like that, then I must be doing something wrong here. My Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN

Re : T5: Layout question

2008-04-02 Thread Julien HENRY
Hi Onno, You don't need to do anything else. Everything outside of div class=text-column t:type=Border Page content /div will be discarded and the Layout component will be used instead. Is it not the case? Regards, Julien - Message d'origine De : Onno Scheffers

[ANN] JumpStart 3.5 available - for Tapestry 5.0.11

2008-04-02 Thread Geoff Callender
Hi all, JumpStart 3.5 is now available. It's for Tapestry 5.0.11. New in this release: * Examples for localization, Select, and EventLink. * Fixed existing Selects to fit in with 5.0.11's new blank option handling. * Replaced Start page with 5.0.11's new Index page.

Re: T5: Layout question

2008-04-02 Thread Onno Scheffers
Hi DH, thanks for your response. I missed that earlier discussion and t:container indeed doesn't seem to offer a proper work-around for the lack of $content$ when using the Layout component pattern. Does anyone know if something like $content$ will be added to T5 before the stable release?

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Alec Leamas
More and more mysterious... The relevant getters in the page is getListSource() and getReport(), enclosing excerpts from page below. The problems seems to be related to getListSource(). The call chain as I understand it: - ${orvar} in layout.tmpl is fetching data data from

T5: Beaneditform Validation differences between IE6 and firefox2.0?

2008-04-02 Thread dhning
Hi, I just begin to learn T5 and simply use component t:beaneditform to create/edit a simple entity User. But I found that the validation behavior are different in IE6 and firefox. Please help. My tapestry version is 5.0.11. My entity code: public class User implements Serializable {

Re : Re : T5: Layout question

2008-04-02 Thread Julien HENRY
Sorry Onno, I was wrong. Because Layout is basically component it doesn't work the way you (and I) expected. So it seems there is no official way to keep templates previewable with additionnal ouside markup that will be discarded at runtime to only keep the outside of the template. -

Re: updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-02 Thread caarney
That works, thanks. Does it mean that the component must be in XHTML? Is it specified somewhere? Igor Drobiazko wrote: please close the tag: br/ -- View this message in context:

Re: [ANN] JumpStart 3.5 available - for Tapestry 5.0.11

2008-04-02 Thread Francois Armand
Geoff Callender wrote: Hi all, [..] Geoff Callender Again, so that we also say when things go well : thank you for that Geoff :) -- Francois Armand Etudes Développements J2EE Groupe Linagora - http://www.linagora.com Tél.: +33 (0)1 58 18 68 28 --- InterLDAP - http://interldap.org

[T5.0.11]:Select component - possible bug

2008-04-02 Thread Tomasz Dziurko
Hi. Currently I am working on project using Tapestry 5. I need to use select component and I found some missing features or/and possible bugs. 1. At site http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Select.html there is an example saying:

Is there a way to include a component with fields in a form ?

2008-04-02 Thread Stephane Decleire
Hi, In my application, i have got several forms with the same bunch of fields and other different fields. What i would like is to create a component with the bunch of fields and include it in the forms. But the validateForm event is only managed by the page where my form is declared and i

@EventListener

2008-04-02 Thread Kavya K
Hi.. My html code is.. input id=supplimentalId class=button jwcid=@Submit value=Add/ and java code is @EventListener(elements = supplimentalId, events = onclick) public void watchText(IRequestCycle cycle) { // do something

problem with @EventListener

2008-04-02 Thread kk4Nabble
Hi.. I am using tapestry 4.1 My html code is.. input id=supplimentalId class=button jwcid=@Submit value=Add/ and java code is @EventListener(elements = supplimentalId, events = onclick) public void watchText(IRequestCycle cycle) { // do something

Re: Re : Re : T5: Layout question

2008-04-02 Thread Peter Beshai
Hi there, I believe I have a solution that works using parameters and delegates. Basically instead of including t:body/ you will delegate the content to a parameter of the component. See the source below: Start.tml: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN

Tapestry working with other Servlets

2008-04-02 Thread Imran Amajd
Hello everybody, I m using Tapestry4 with spring Hibernate. I am having a problem when i call my own java servlet with-in appcalication. The calling servlet sends response correctly but it causes HttpSession termination. i want tapestry to ignore this servlet request and let the container

Re: [T5.0.11]:Select component - possible bug

2008-04-02 Thread Adam Zimowski
In regards to your color example, the reason you're getting an error is likely due to missing required parameter. If you look at component reference for Select, you'll see that besides model, another required parameter is value. The example on the website is somewhat flawed because it is

Re: Tapestry working with other Servlets

2008-04-02 Thread Norman Franke
Those links are for Tapestry 5. I use multiple servlets in a single application and haven't had a problem with Tapestry 4. I just map the URLs uniquely in the web.xml. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Apr 2, 2008, at 10:06 AM, Imran Amajd wrote: Hello

Re: updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-02 Thread Andy Pahne
I had the same problem. It's not only unclosed br tags, but also hr and others. It works with an unclossed img tag. Don't know why, but it's not specified anywhere. Igor Drobiazko schrieb: please close the tag: br/ On Wed, Apr 2, 2008 at 11:13 AM, caarney [EMAIL PROTECTED] wrote:

Re: Is there a way to include a component with fields in a form ?

2008-04-02 Thread Dmitry Shyshkin
Stephane Decleire пишет: Hi, In my application, i have got several forms with the same bunch of fields and other different fields. What i would like is to create a component with the bunch of fields and include it in the forms. But the validateForm event is only managed by the page where my

Re: updateComponent doesn't work if component contains HTML BR tag (4.1.2)

2008-04-02 Thread Igor Drobiazko
The ajax response is XHTML. Since your template is rendered to create the response, it fails if the template is not XHTML. On Wed, Apr 2, 2008 at 2:03 PM, caarney [EMAIL PROTECTED] wrote: That works, thanks. Does it mean that the component must be in XHTML? Is it specified somewhere? Igor

Re: Eclipse tapestry templates on wiki

2008-04-02 Thread Steven Woolley
Thanks. Works fine in 3.3.1 (without the imports) Steve On Apr 2, 2008, at 3:15, Davor Hrg [EMAIL PROTECTED] wrote: the new xml is now added there (I just removed import statements),

Zone and block : xmlns problem

2008-04-02 Thread Cordenier Christophe
Hello, I have a simple action link that update a zone with a Block. I have implemented the Layout pattern and my Layout template starts with !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml;

Re: Re : Re : T5: Layout question

2008-04-02 Thread Onno Scheffers
Hi Peter, thanks, but this still doesn't seem to solve the issue. The Start page still renders all template-content around div class=text-column t:type=Border.../div. regards, Onno 2008/4/2, Peter Beshai [EMAIL PROTECTED]: Hi there, I believe I have a solution that works using parameters

Re: Zone and block : xmlns problem

2008-04-02 Thread Fernando Padilla
have you tried adding a second xmlns element deeper in the document, maybe around where the Zone is defined. Somewhere the partial render will have it available? The Namespace support is still not the best; though getting better bit by bit. You should file this as a Jira bug even if you

Re: Re : Re : T5: Layout question

2008-04-02 Thread Peter Beshai
What if you try making the html element the border object? Like so: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; t:type=Border

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Josh Canfield
Hey Alec, Looking at small excerpts from a large file leaves too much to the imagination. Can you create a minimal but complete page and component that reproduces the problem? It feels like there is a bad return type or something on one of the methods in the chain, so having a complete

Re: T5: Beaneditform Validation differences between IE6 and firefox2.0?

2008-04-02 Thread Josh Canfield
Hi, Why do you think there is an ajax request sent? Last I checked client side validation is done with javascript that is added to the page when it is rendered. I don't use the beaneditform, so I can't be sure but I doubt it's doing validation via ajax. You're catching every action from

T5.0.11: @Persist(flash) values are not retained if validation fails

2008-04-02 Thread Joel Wiegman
All, I've noticed that if validation fails on my page, any field annotated with @Persist(flash) is not retained when the response is rendered. Per the documentation for @Persist(flash), this doesn't appear to be expected behavior. Should I put this in JIRA? Joel

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Alec Leamas
Josh Canfield wrote: Hey Alec, Looking at small excerpts from a large file leaves too much to the imagination. Can you create a minimal but complete page and component that reproduces the problem? Yes, I should have done it long time ago, I know. Below is the complete example, removing all

T5: Expansions prefixes

2008-04-02 Thread Andy Blower
I'm accessing message catalogs using expansion with a prefix. e.g. ${message:this-is-my-key} 1) Is there a list of prefixes anywhere, or have I got them all now? (literal, prop, message) 2) Is there a way of accessing a message with a key that's partially generated by another expansion? e.g.

Re: T5, newbie: Component parameter passing problems (¤3)

2008-04-02 Thread Alec Leamas
Hm... looking more into your example As I understand it, your example and my ReportSize component are really similar and both do indeed work demonstrating that *is* possible to pass the arguments. So it is something with the Layout component... Feeling dumb, need a better brain. --alec

Re: T5: Expansions prefixes

2008-04-02 Thread Peter Beshai
1) I'm not sure if there is a list anywhere, but I know there are more prefixes than those ; 'var' is one! 2/3) You most likely want to do something like this: XX.properties: product-name = Apple Sauce - %s Then when you want to use it, you will need to add a property to your page/component:

Re: T5, newbie: Component parameter passing problems (#3)

2008-04-02 Thread Alec Leamas
Hm... looking more on your example... Seems that yoyr example and my ReportSize component are similar and both do indeed work. So it's something with the Layout component... --alec - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: T5: Expansions prefixes

2008-04-02 Thread Imants Firsts
1) See the Binding Expressions section. http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html 2) Use your property like this in the template ${prop:myMessage}, and in code define it as follows: @Inject private Messages _messages; public String getMyMessage() { return

RE: T5.0.11: @Persist(flash) values are not retained if validation fails

2008-04-02 Thread Joel Wiegman
As an addendum, I shouldn't say any field. The culprit is a List that gets iterated over in the TML. -Original Message- From: Joel Wiegman [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 2:20 PM To: Tapestry users Subject: T5.0.11: @Persist(flash) values are not retained if

Mixin rendering a component

2008-04-02 Thread Imants Firsts
Can mixin render a component, for example TextField? I know that that it does not support templates and that it can render the input tag directly. But I would like the mixin to add a component to form, so that it can be processed when the form is submitted. Is something like that possible with

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Josh Canfield
Hey Alec, I was hoping for something a little more minimal, but still complete/compilable. :) I still can't reproduce the problem, but maybe @Persist on your report property is the culprit? Try it with out that. That's a shot in the dark though, so if that doesn't help I think I'll need

Re: T5, newbie: Component parameter passing problems (#2)

2008-04-02 Thread Alec Leamas
I actually got the same idea, just after pushing the send button. It's quite a task, though, to carve this out. But it's certainly my job. I'll make a try. In the meanwhile: an observation. Looking at the breakpoint in BugPage.getListsource () I can see the call stack. At the top is

Re: T5: Expansions prefixes

2008-04-02 Thread Petros Petrou
You may want to read this http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html Andy Blower wrote: I'm accessing message catalogs using expansion with a prefix. e.g. ${message:this-is-my-key} 1) Is there a list of prefixes anywhere, or have I got them all now?

RE: @EventListener

2008-04-02 Thread Craig Spry
I think you have not set the update component, you need to put some code into watchText() like this: cycle.getResponseBuilder().updateComponent(DialogContentSupplimental); I have also had more success implementing my dialogs like this div jwcid= [EMAIL PROTECTED] hidden=ognl:not showDlg

Re: T5.0.11: @Persist(flash) values are not retained if validation fails

2008-04-02 Thread Ted Steen
Could you give a simple example of the problem? 2008/4/2, Joel Wiegman [EMAIL PROTECTED]: As an addendum, I shouldn't say any field. The culprit is a List that gets iterated over in the TML. -Original Message- From: Joel Wiegman [mailto:[EMAIL PROTECTED] Sent: Wednesday, April

Re: problem with @EventListener

2008-04-02 Thread Paul Stanton
don't double post please kk4Nabble wrote: Hi.. I am using tapestry 4.1 My html code is.. input id=supplimentalId class=button jwcid=@Submit value=Add/ and java code is @EventListener(elements = supplimentalId, events = onclick) public void watchText(IRequestCycle cycle) { //

Re: @EventListener

2008-04-02 Thread Paul Stanton
Kavya, The id should be part of the jwcid expression: input class=button jwcid=[EMAIL PROTECTED] value=Add/ the component will create the id attribute for you. Kavya K wrote: Hi.. My html code is.. input id=supplimentalId class=button jwcid=@Submit value=Add/ and java code is

Re: T5: Expansions prefixes

2008-04-02 Thread Filip S. Adamsen
I've been thinking about adding support for this to the MessageFormatBindingPrefix found on this wiki page: http://wiki.apache.org/tapestry/Tapestry5HowToAddMessageFormatBindingPrefix If you take a look at it the code, MessageFormatBindingFactory in particular, you'll see that making the

Re: T4 - async - pre-submit client side handler

2008-04-02 Thread Paul Stanton
any ideas guys .. it seems dojo can't attach the ajax submit handler if i have an onclick on my button - therefore is there a way to pre-pend a handler after dojo has attached to the form aka registerForm? p. Paul Stanton wrote: Hi guys, I've got a @Form which submits async, and a @Submit.

The error when create my own component[t5]

2008-04-02 Thread 滕训华
According the book[Tapestry.5.Building.Web.Applications] --Create own component ,but when i create the dateinput component and run it in a simple page,i get the follow error: An unexpected application exception has occurred. Exception constructing service 'ValueEncoderSource': Error invoking

Re: The error when create my own component[t5]

2008-04-02 Thread Filip S. Adamsen
Hi there, Is there a longer stacktrace available? Anyhow, the problem is mostly likely somewhere in your code, a configuration file or perhaps a Tapestry page or component .tml file. If you've got some code to show that would probably help as well. Also, be aware that Tapestry has changed a bit

Re: T4 - async - pre-submit client side handler

2008-04-02 Thread Andreas Andreou
dojo.event.connectBefore and make sure you stop the event (if you want to), otherwise the other connected function will get executed. On undefined, Paul Stanton [EMAIL PROTECTED] wrote: any ideas guys .. it seems dojo can't attach the ajax submit handler if i have an onclick on my button -

@tacos:dojowidget problem

2008-04-02 Thread abhilash
Hi all, I am using Tapestry4.1.5 and tacos4.1.1 In my page i have dojowidget of type FloatingPane. When i tried to include a form in FloatingPane i am getting following exception javax.servlet.ServletException: Component Error/$InspectorButton.link requires r endering support, but no

[T5]: label in properties file

2008-04-02 Thread Andy Huhn
OK, this is driving me crazy. I have a .tml named FindCoops.tml that contains the following fragment: t:label for=userPstlCodeField/ input t:type=TextField t:id=userPstlCodeField t:value=userPstlCode / In the same directory as the corresponding .java page file, I have a file named

TapestryHibernate

2008-04-02 Thread 滕训华
Why need hibernate.jar?I use tapestry5.0.11 but I do not need to integrate with hibernate and my web.xml as follow: ?xml version=1.0 encoding=UTF-8? web-app id=WebApp_ID version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: TapestryHibernate

2008-04-02 Thread Tomasz Dziurko
Maybe you also have tapestry-hibernate-5.0.11.jar in your lib directory? Try removing it. Regards, Tomasz Dziurko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

答复: TapestryHibernate

2008-04-02 Thread 滕训华
Yes,I remove the tapestry-hibernate-5.0.11.jar and hibernate3.jar,but the error still has. -邮件原件- 发件人: Tomasz Dziurko [mailto:[EMAIL PROTECTED] 发送时间: 2008年4月3日 13:37 收件人: Tapestry users 主题: Re: TapestryHibernate Maybe you also have tapestry-hibernate-5.0.11.jar in your lib directory?

problem with custom dialog

2008-04-02 Thread Sricharan
hi everyone, i am using tapestry 4.1 i have an custom dialog box which should be shown on button click so i placed that (dialog).getComponent(custom dialog).show() in side the listener method of button submit.Here it is going to the that line and coming out but the dialog is not displaying i