Tapestry seems to delete object data

2009-10-23 Thread Mite
Hello to everyone on the forum. I have these two pages: - import org.apache.tapestry5.annotations.InjectPage; public class Index { private String message; @InjectPage private Second second;

Re: Tapestry seems to delete object data

2009-10-23 Thread Mite
Thank you guys. The problem is solved. I am beginner in this, and really like the concept of Tapestry. This problem gave me an hour of troubles, but now my love for the framework is back to 100%. :) Thanks again. Mite -- View this message in context: http://www.nabble.com/Tapestry-seems-to

Re: Tapestry seems to delete object data

2009-10-23 Thread Mite
I made some efforts to solve it on my own at first, but that was not possible. It wouldn't have been fair to you guys if I immediately posted the question. Read you on the forums. Mite -- View this message in context: http://www.nabble.com/Tapestry-seems-to-delete-object

Return type

2009-10-26 Thread Mite
A beginner question. A short answer will be enough. What is the difference between returning a .class and an object from the same class, by a method handler? Thank you, Mite -- View this message in context: http://www.nabble.com/Return-type-tp26058940p26058940.html Sent from the Tapestry

Re: Return type

2009-10-26 Thread Mite
Thanks for the answers. :) -- View this message in context: http://www.nabble.com/Return-type-tp26058940p26059228.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr.

Select does not submit form on change

2009-12-07 Thread Mite
Hi I am trying to attach an event to a select. The guys that worked before me used this model. http://wiki.apache.org/tapestry/Tapestry5SelectObject I have written this code so far: void onSubmit() { System.out.println("Value changed!"); } Whenever I change the value from the sele

Re: Select does not submit form on change

2009-12-08 Thread Mite
Thank you for the reply. It does not make any difference. Still the same result. This is really bad. Trying to get to work an event on a select for a whole day. It is so much easier with .NET or only JavaScript and HTML. Try this.form.submit() -- View this message in context: http://old.n

Re: Select does not submit form on change

2009-12-08 Thread Mite
No, I just have the function: void onSubmit() { System.out.println("Value changed!"); } which prints to console when a submit is made, but it does not print anything when I change the value. Are you using some debug tool to verify if a request is sent to the server? Like firebug i

Re: Select does not submit form on change

2009-12-08 Thread Mite
At last. This way works. This is the second time you get me out of the mud. :) Thank you -- View this message in context: http://old.nabble.com/Select-does-not-submit-form-on-change-tp26687467p26697258.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Select does not submit form on change

2009-12-08 Thread Mite
I removed the submit button and it works indeed. Thank you for the answer. -- View this message in context: http://old.nabble.com/Select-does-not-submit-form-on-change-tp26687467p26703632.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Accessing array in tml

2010-02-20 Thread Mite
I have this List of arrays: public List getCourses(){ courseWithSubject = ...; return courseWithSubject; } and the arrays have two elements. In the tml: i want to display the name of the subject in the dropdown but when the user selects, the selected

Directory listing error

2010-03-18 Thread Mite
I have created a project few hours ago with the quickstart archetype. I was able to start it and it was running OK. I created some model classes and annotated them with hibernate to connect them to my database. Now I try to run the application (http://localhost:8081/)and all I get is a directory l

Autocomplete mixin css

2010-03-27 Thread Mite
Hi How can I override the css for the autocomplete mixin on the jumpstart page? I searched the forum but couldn't find anything. -- View this message in context: http://old.nabble.com/Autocomplete-mixin-css-tp28056100p28056100.html Sent from the Tapestry - User mailing list archive at Nabble.com

Coercion from String to ArrayList in Loop

2010-04-08 Thread Mite
Hi I have this method and need to display the strings in the .tml. When the page is opened the first time it works fine. But when I submit from the page it throws: Could not find a coercion from type java.lang.String to type java.util.ArrayList. In the documentation is written that this might h

Re: Coercion from String to ArrayList in Loop

2010-04-09 Thread Mite
Thanks, it works now. -- View this message in context: http://old.nabble.com/Coercion-from-String-to-ArrayList-in-Loop-tp28183967p28190833.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe

Refresh zone periodicaly

2010-08-12 Thread Mite
Hi Is there a way to refresh a zone on a fixed period automatically? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Refresh-zone-periodicaly-tp2498534p2498534.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Select in Loop

2010-08-13 Thread Mite
I made a ValueEncoder and also put formState="iteration" in the loop. The second one seemed to made it work, even though I don't really understand why. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Select-in-Loop-tp2471420p2572247.html Sent from the Tapestry - User mai

Call function periodically

2010-08-31 Thread Mite
I need to have a function called every one minute from the moment the application is deployed on the server, that does some database row updates. This has to be done independently of the activity of the users on the web application. Even if there are no users using the application, this call has t

Radio button and submit

2010-09-19 Thread Mite
I have two radio buttons and want to submit a form when one gets selected. I have this code. # # The correct events get called when the radio gets selected, but after that always the second radio is displaye