RE: t5: home page

2008-03-06 Thread Kristian Marinkovic
try this: public void contributeApplicationDefaults(MappedConfiguration configuration) { configuration.add("tapestry.start-page-name","logicalPageName"); } if you dont like Strings - like me :) - and prefer typesafe programming you can inject the ComponentClassResolver and let it return th

Re: How to use DatePicker in tapestry 4.1.3 without tacos?

2008-03-06 Thread Patrick Klein
Hello! Im getting javascript error "calendar.DatePicker_7 is undefined" while clicking tacos:DatePicker component in tapestry 4.1.3. It was working fine in tapestry 4.0. After the upgradation of tapestry 4.1.3 only its throwing this JS error. Is there any alternative to use datepick

How to use DatePicker in tapestry 4.1.3 without tacos?

2008-03-06 Thread Roger_man
Hi everyone, Im getting javascript error "calendar.DatePicker_7 is undefined" while clicking tacos:DatePicker component in tapestry 4.1.3. It was working fine in tapestry 4.0. After the upgradation of tapestry 4.1.3 only its throwing this JS error. Is there any alternative to use dat

t5: home page

2008-03-06 Thread Angelo Chen
hi, t5 loads start page when it is called: http://localhost:8080/myapp I'd like it to load home.tmp instead, any way to set it? renaming home.tml to start.tml is one, but i like to keep it. thanks. A.C. -- View this message in context: http://www.nabble.com/t5%3A-home-page-tp15890272p1589027

Re: Tapestry 5 Form

2008-03-06 Thread Angelo Chen
Hi Simon, The template should have .tml as extension and place under webapp in the new version of t5. A.C Simon Raveh wrote: > > Hi, > > I have a small demo application that use to work correctly with > version 5.0.6 but know when I switch to 5.0.10 it's stop working. > > I'm getting an ex

Re: T5: Chinese in form submission(5.0.11)

2008-03-06 Thread Angelo Chen
Hi Yuan, yes, the problem now is, file upload, if you have a textfield mixed with file upload, the input will have garbage. yuan gogo wrote: > > This problem has been resolved. > > I'm Chinese too :-) > > > -- View this message in context: http://www.nabble.com/T5%3A-Chinese-in-form-sub

Re: [T5] Help getting generics to work

2008-03-06 Thread Howard Lewis Ship
Tapestry only understands simple generics applied directly to your page or component class. On Thu, Mar 6, 2008 at 4:59 PM, buckofive <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I'm wondering if this is even possible. I read that java 1.5 generics > support was as added as of tapestry 5.0.10

Re: T5: Chinese in form submission(5.0.11)

2008-03-06 Thread yuan gogo
This problem has been resolved. I'm Chinese too :-) 2008/3/6, Angelo Chen <[EMAIL PROTECTED]>: > > > This problem is fixed by following the utf8 how to in the wiki page. the > problem now is, the form's field and file upload, it turned into garbage. > any fix on this? thanks. > > > Angelo Chen wr

Help getting generics to work

2008-03-06 Thread buckofive
Hi all, I'm wondering if this is even possible. I read that java 1.5 generics support was as added as of tapestry 5.0.10 but I am unable to get it to work. I always end up with this exception: "Class java.lang.Object does not contain a property named 'id' (within property expression 'genericsT

Tapestry 5 Form

2008-03-06 Thread Simon Raveh
Hi, I have a small demo application that use to work correctly with version 5.0.6 but know when I switch to 5.0.10 it's stop working. I'm getting an exception: An unexpected application exception has occurred. Component tickets/SearchTicket does not contain an embedded component with id 'search

Comma-delimited looper

2008-03-06 Thread Bill Holloway
I need to comma-delimit components in a loop that will be . I.e., ${currThing.name}, The above, of course, produces a trailing comma. I know that some CSS tricks can turn a into a comma-delimited list, but the only CSS solutions I've seen use things like ul li::before and other CSS thing

Re: [T5] Jetty issues after using Tomcat

2008-03-06 Thread Josh Canfield
Make sure the hibernate module is only being included once in your environment. It's possible to end up with one in WEB-INF/lib and then a classpath that also points to it somewhere else. On Thu, Mar 6, 2008 at 10:56 AM, Szemere Szemere <[EMAIL PROTECTED]> wrote: > I experimented with Tomcat Maven

rcss-type css generation for tapestry? (4.1.x)

2008-03-06 Thread Warner Onstine
Ok, I've come across an interesting problem and am puzzling my way through it. I have some assets that I want to use inside of a CSS file. But I'm not sure what the best way to do it is. One option that crossed my mind was to create a service that I could call. In that service it would ne

Re: T5: Weird RadioGroup/Radio ClassCast with Enum

2008-03-06 Thread Adam Zimowski
Heh... "pages" package is very picky. Enums and other non-page classes offend Tapestry and that's where exception is comming from. Moving the enum outside of the pages package makes Tapestry behave properly :) On Thu, Mar 6, 2008 at 5:53 AM, Adam Zimowski <[EMAIL PROTECTED]> wrote: > Also, igonre

Re: T5.0.7 Validation error

2008-03-06 Thread Davor Hrg
isn't event name: validateForm http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Form.html under SubmitEvents topic Davor Hrg On Thu, Mar 6, 2008 at 4:56 PM, Joel Wiegman <[EMAIL PROTECTED]> wrote: > componentResources.triggerEvent() appears t

Re: T4: EventListener on multiple elements

2008-03-06 Thread Jesse Kuhnert
I'm not sure. In my case the rows are rendered within a @For loop over a list of objects. When my listener is invoked the object that was the "current object" during that loop iteration is still the current object when the listener is invoked so it works for me as expected. The BrowserEvent sho

Re: T4: EventListener on multiple elements

2008-03-06 Thread Andreas Andreou
Jesse, correct me if i'm wrong, but I believe that defaultChecked will be triggered after the rewind, so, it will not be possible to know at which iteration this took place (or get values the way they were at that iteration). So, this really reminds me of http://article.gmane.org/gmane.comp.java.t

Re: T4: EventListener on multiple elements

2008-03-06 Thread Jesse Kuhnert
I'm not sure how you have your page set up but this is all I have to do in a similar situation: @EventListener(targets = "publishByDefault", events = {"onclick", "onchange"}) public void defaultChecked() { ... } ... .. It's listening to both onclick/onchange because IE doesn't fire on

[T5] Jetty issues after using Tomcat

2008-03-06 Thread Szemere Szemere
I experimented with Tomcat Maven plugin today and got my app working fine. However when switching back to using Jetty (mvn jetty:run), I started to get a strange error message: 2008-03-06 18:38:16.990::WARN: Failed startup of context [EMAIL PROTECTED] /appname,/home/user/appname} java.lang.Runtim

RE: T5.0.7 Validation error

2008-03-06 Thread Joel Wiegman
componentResources.triggerEvent() appears to be broken in T5.0.11-SNAPSHOT I have the following situation: public class LayoutClass { @Component private Form editControlForm; public void onValidateFromEditControlForm() { resources.triggerEvent("formValida

T4: EventListener on multiple elements

2008-03-06 Thread Dmitry Shyshkin
Hello, All. I want to apply the only @EventListener("onchange") for multiple form elements (say checkboxes or selectboxes). Each of them is placed into his own row in the table (table is not a component, it's formed using @For by ). But the problem here is that I do not know how many table ro

Re: How to Upload a file to my server

2008-03-06 Thread Angelo Chen
can't find anything wrong, try to dump the file name, is it valid? private String fname = "c:/temp/"+strategyFile.getFileName(); System.out.println(fname); Yeeswara Nadapana (HCL Financial Services) wrote: > > > File stratFile = new File("c:/temp/"+strategyFile.getFileName()); > > strategyF

AW: AW: AW: T5: Preventing form success

2008-03-06 Thread Martin Kersten
I know. Implementation was quicker then thought (stick to Java serialization for simplicity) and a lot more time was was wasted in investigating unecessary workarounds. Its a pitty. So if it is needed, implement it. Cheers, Martin (Kersten) -Ursprüngliche Nachricht- Von: Filip S. Adam

Re: T5: Preventing form success

2008-03-06 Thread Filip S. Adamsen
Hey, that's a pretty good idea - hadn't thought of that. Thanks! -Filip Hugo Palma skrev: Have you tried using AJAX ? You could very easily send the values the user entered in the form to the server side without even triggering a form submit. You could also use the Zone component to show the pr

Re: AW: AW: T5: Preventing form success

2008-03-06 Thread Filip S. Adamsen
Yeah, that's what I've been wanting to do for a while, but I haven't had the time for it. Thanks for the pointers. -Filip Martin Kersten skrev: Hi Filip, the problem of persiting objects using @Persist might lead to serious problems when the user uses views the page in different browser tab

[T5] Component report

2008-03-06 Thread Kheldar666
Hello everybody ! I'm working on a project that -for practical reasons- have in the same Maven project several sources folders each one containing a particular SubModule declared in the main Tapestry App. For the moment there are no Maven modules. I was wondering if there is a way to generate Co

Re: T5: Weird RadioGroup/Radio ClassCast with Enum

2008-03-06 Thread Adam Zimowski
Also, igonre the validate="required" in radiogroup - it was a typo. The issue ofcourse still occurrs when validate="required" is removed. On Thu, Mar 6, 2008 at 5:49 AM, Adam Zimowski <[EMAIL PROTECTED]> wrote: > I have a very simple radiogroup backed by the enum (below is grossly > simplified &

Re: T5: beaneditor and remove

2008-03-06 Thread Marcus
Hi Howard, If i want to disable one or more attributes(the user should view it, but not change it, so it can't be removed) i have to add a parameter with the disabled="true" in the component body. My suggestion: A new attribute for BeanEditForm, "disabled", like "remove" and "reorder". A comma sep

T5: Weird RadioGroup/Radio ClassCast with Enum

2008-03-06 Thread Adam Zimowski
I have a very simple radiogroup backed by the enum (below is grossly simplified & trimmed version from my project page), running on 5.0.10. http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> test Web Registrations

Random Stale Link exceptions (without back button usage)

2008-03-06 Thread Tobias Marx
I keep on getting random stale link exceptions in a Tapestry 4.1 application. I am not using the browser's back button, however. The error is not reproducable and just "happens" to appear every 20th or 30th time a form is submitted. The error message: "Rewind of form Home/$Form expected only 0

Re: JumpStart 3.3.3 now available - fixes 3.3.1 bugs

2008-03-06 Thread Geoff Callender
I've finally been able to reproduce this problem by using JDK 1.6. Not sure why that is but I'll be looking into it. in the meantime please drop back to JDK 1.5 like this: - In Eclipse choose Window > Preferences > Java Compiler and set Compiler compliance level to 5.0. - Before running JBos

Re: T5: Examples for Cayenne integration?

2008-03-06 Thread Davor Hrg
The problem is not just tapestry, the framework it self deals with it's own area... but what users really need is guide on making applications in tapestry, and that includes knowledge of an ORM. Hibernate is great, but has many caveats, and you can not make a decent application without hibernate

How to Upload a file to my server

2008-03-06 Thread Yeeswara Nadapana (HCL Financial Services)
Hi, I am using Tapestry 5 for my application. I want to upload an excel file to the Tomcat server. On HTML, I am using the and on java file, I written as: File stratFile = new File("c:/temp/"+strategyFile.getFileName()); strategyFile.write(stratFile); But, I cannot exactly find the f

Re: T5: Examples for Cayenne integration?

2008-03-06 Thread Andreas Pardeike
On 5 mar 2008, at 22.19, Robert Zeigler wrote: I'll do one better a little later today (or possibly tomorrow): I'll clean up my code and package it as a standalone "cayenne integration" module. I do believe that the need for such example(s) is quite high. What hinders T5 most from success

Re: T5: Preventing form success

2008-03-06 Thread Hugo Palma
Have you tried using AJAX ? You could very easily send the values the user entered in the form to the server side without even triggering a form submit. You could also use the Zone component to show the preview, on the same page. Filip S. Adamsen wrote: > Hi, > > I have to show a preview of some c

AW: AW: T5: Preventing form success

2008-03-06 Thread Martin Kersten
Hi Filip, the problem of persiting objects using @Persist might lead to serious problems when the user uses views the page in different browser tabs. When you are using a database and you are going to distribute you might use the conversation pattern. Just persist a conversation for this form.

Re: AW: T5: Preventing form success

2008-03-06 Thread Filip S. Adamsen
Hi, Well, due to the nature of the content being created/edited, it's necessary to have the preview on the same page as the form. (This is for a content management system.) I know about the two requests per page behaviour of Tapestry, but consider that when a validation error occurs, the user