Re: Grid component and available rows number

2008-10-13 Thread Renat Zubairov
Hello You may have a look on the implementation of the GridDataSource for Hibernate http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry5/hibernate/HibernateGridDataSource.java?view=markup BR Renat 2008/10/14 shymon <[EMAIL PROTECTED]>: > >

Re: ActionLink in component

2008-10-13 Thread mdes
maybe you can try to be more specific in this way: ${index} @OnEvent(value = "action", component = "select") void valueChosen(int value) { this.value = value; } Here you can find more explanation: http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html moritzgilsdorf-

Grid component and available rows number

2008-10-13 Thread shymon
I wanted to use a grid component to display search results. So I tried to define a class which implements GridDataSource interface. Unfortunatelly getAvailableRecords() method is called by T5 before prepare(...) method. This doesn't suit me as I receive total record number with search results onl

Re: ActionLink in component

2008-10-13 Thread Howard Lewis Ship
Where is your event handler method? If the is inside component Foo's template (Foo.tml), then the method goes inside Foo.java. On Mon, Oct 13, 2008 at 9:22 AM, moritzgilsdorf <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm feeling like posting a very trivial problem but unfortunately I can't > find m

Re: manage sub-collection with grid component

2008-10-13 Thread mdes
sorry for being not so clear in my previous explanation,here the complete code concerning my problem: I need to show a list of products, and because each product can contain one or more contents, I want to add a list of actionlink in the last column representing the content list related. @Entity

Re: How to return .tml content as a String from a Java class?

2008-10-13 Thread superoverdrive
This is just a simple opening/closing. I am looking for an Accordion with a transition. Original-Nachricht > Datum: Mon, 13 Oct 2008 13:27:00 +0200 > Von: Joachim Van der Auwera <[EMAIL PROTECTED]> > An: Tapestry users > Betreff: Re: How to return .tml content as a String from

Re: ActionLink in component

2008-10-13 Thread moritzgilsdorf
Yes, they are both persisted. tableParsed is set to true after a file was uploaded and parsed success fully. This variable is then used to show the next step of this process which requires the table to be parsed. The whole thing works well except that after the process is finished I have to resta

T5 : localization of Options in a dropdown list

2008-10-13 Thread Stephane Decleire
Hi, What is the best way to localize the options of a dynamically generated Select component ? Thanks in advance. Stephane

Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Geoff Callender
Hi, There's a README in the root directory. Is it missing the information you are looking for? Failing that, do these pages answer all those questions? http://files.doublenegative.com.au/jumpstart/installation.html http://files.doublenegative.com.au/jumpstart/orientation.html

Re: TransformationException running tutorial

2008-10-13 Thread D Dart
I'm using 5.0.15. Thiago H. de Paula Figueiredo wrote: > > What Tapestry version are you using? The @Property annotation was added in > some release I cannot remeber exactly. Make sure you are using the latest > one. ;) > > Em Mon, 13 Oct 2008 15:45:04 -0200, D Dart <[EMAIL PROTECTED]> esc

Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread superoverdrive
what about a small readme file that describes, how to start it, e.g. context directory, whether any additional libs are necessary (cglib.jar?), etcand whether you are supposed to run the war file or directly the directory of the files etc...? And should you start exploder.xml or build.xml fi

Re: TransformationException running tutorial

2008-10-13 Thread Thiago H. de Paula Figueiredo
What Tapestry version are you using? The @Property annotation was added in some release I cannot remeber exactly. Make sure you are using the latest one. ;) Em Mon, 13 Oct 2008 15:45:04 -0200, D Dart <[EMAIL PROTECTED]> escreveu: I'm doing this tutorial, http://tapestry.apache.org/tapestry

Re: How to return .tml content as a String from a Java class?

2008-10-13 Thread superoverdrive
Where is this? This is from the Tapestry5 accordion - and it only takes Strings - no other components can be put inside the Accordion. Original-Nachricht > Datum: Mon, 13 Oct 2008 13:27:00 +0200 > Von: Joachim Van der Auwera <[EMAIL PROTECTED]> > An: Tapestry users > Betreff:

TransformationException running tutorial

2008-10-13 Thread D Dart
I'm doing this tutorial, http://tapestry.apache.org/tapestry5/tutorial1/forms.html, but using Tomcat instead of Jetty and "t5demo" instead of "org.apache.tapestry5.tutorial". I'm getting this exception when trying to run it in Tomcat: caught an exception while obtaining a class file for t5demo.p

Re: t5: DAO and hibernate integration

2008-10-13 Thread Hugo Palma
Why don't you make those "normal java classes" services ? shinkei wrote: Is there another way? I have quite a few DAO's that need to talk with alot normal java classes behind the page. So it seems a bit messy injecting all the DAOs through the page class and then back into the java classes beh

Re: t5: DAO and hibernate integration

2008-10-13 Thread shinkei
Is there another way? I have quite a few DAO's that need to talk with alot normal java classes behind the page. So it seems a bit messy injecting all the DAOs through the page class and then back into the java classes behind it. HugoPalma wrote: > > Just inject it into the page/component/s

Re: t5: DAO and hibernate integration

2008-10-13 Thread Hugo Palma
Just inject it into the page/component/service where the normal java class is being called from and pass the userDAO instance to it. shinkei wrote: How would I use the userDAO in a normal java class (ie. not a page)? Inject won't seem to work unless its a page. Can anyone help? Raul Rosenz

Re: ActionLink in component

2008-10-13 Thread Thiago H. de Paula Figueiredo
Em Mon, 13 Oct 2008 14:22:36 -0200, moritzgilsdorf <[EMAIL PROTECTED]> escreveu: @OnEvent(component = "reset") public Object reset(){ tableParsed = false; saveSucceed = false; return null; } Are tableParsed and saveSucceed @Persist'ed? -- Thiago H. de Pau

ActionLink in component

2008-10-13 Thread moritzgilsdorf
Hi, I'm feeling like posting a very trivial problem but unfortunately I can't find my mistake. I have a actionlink in a component to reset some persisted booleans. The actionlink looks like this: Reset And the triggered method like this: @OnEvent(component = "reset") public Object res

5.0.15 asset NullPointerException

2008-10-13 Thread Jack Nuzbit
Hi All, I've just switched over to tapestry 5.0.15 and I'm now seeing sporadic NullPointerExceptions originating from the ContextAssetFactory. Caused by: java.lang.NullPointerException at $Request_11cf6ca8ebe.getContextPath($Request_11cf6ca8ebe.java) at $Request_11cf6ca8e55.getContextPath

Re: t5: DAO and hibernate integration

2008-10-13 Thread shinkei
How would I use the userDAO in a normal java class (ie. not a page)? Inject won't seem to work unless its a page. Can anyone help? Raul Rosenzvaig wrote: > > Finally I got the most simple solution from Onno > > Just to pass the hibernate session in the constructor and that will do the > tr

Re: Ajax Response in IE with HTML Entities (4.1.6)

2008-10-13 Thread lt
Jesse, You seem to be the expert. Im snagged yet again by IE. The character this time is & raquo; . In the ajax response its a valid html entity. I added the space here to make it clearer. Again all browsers are fine with it except for IE. All characters encoded in the 100's range fails to

Re: Construction of service 'MasterObjectProvider' has failed due to recursion

2008-10-13 Thread José Paumard
Sorry, it was my mistake, due to a mess in a pom.xml, that was referencing both 5.0.15 and 5.0.14, following a merge. The problem is now solved. J. José Paumard a écrit : Joachim, I met the same problem (5.0.15), and I'm having troubles with it. Could you solve it ? Any hint anyone ? Th

Re: Construction of service 'MasterObjectProvider' has failed due to recursion

2008-10-13 Thread Hugo Palma
Do you mean tapestry-spring-security at http://www.localhost.nu/java/tapestry-spring-security ? Joachim Van der Auwera wrote: Anybody know what the cause/solution for this error is (see exception below). I am trying to integrate tapestry-sping-acegi and this exception occurs. I have already

Re: Construction of service 'MasterObjectProvider' has failed due to recursion

2008-10-13 Thread José Paumard
Joachim, I met the same problem (5.0.15), and I'm having troubles with it. Could you solve it ? Any hint anyone ? Thank you, José Joachim Van der Auwera a écrit : Anybody know what the cause/solution for this error is (see exception below). I am trying to integrate tapestry-sping-acegi

Bug with grid default-sorting

2008-10-13 Thread Martin Grotzke
Hi, can anybody help with https://issues.apache.org/jira/browse/TAP5-135 (Grid.getSortContraints NPE when sortColumnId != null)? Is there any workaround for this or any other solution? 1) We really want to upgrade T5 because of https://issues.apache.org/jira/browse/TAPESTRY-2561 2) We really nee

Re: BeanEditForm and Date problem

2008-10-13 Thread Geoff Callender
This sounds worth creating an issue in JIRA. https://issues.apache.org/jira/browse/TAPESTRY On 11/10/2008, at 3:54 AM, shymon wrote: I have a bean with property of type java.util.Date. There is also a constructor getting Date value as parameter. When I try to use BeanEditForm with this be

Re: Can i use components.

2008-10-13 Thread Ulrich Stärk
I think it should be possible to just put it anywhere in your classpath but the package hierarchy has to be respected. That is you could put it into /templates/org/yourgroup/components/Template.tml and contribute /templates to your classpath if the component is in org/yourgroup/components/Template.

Re: Can i use components.

2008-10-13 Thread Thiago H. de Paula Figueiredo
Em Mon, 13 Oct 2008 04:54:23 -0200, BhushanMahajan <[EMAIL PROTECTED]> escreveu: I have created a custom layout component and also a .tml page for it. Tapestry 5 allows me to keep the tml in the component folder only, but i want to use it out side of the components folder. it shows a binding e

Re: Reply is Null

2008-10-13 Thread Thiago H. de Paula Figueiredo
Em Mon, 13 Oct 2008 04:50:00 -0200, BhushanMahajan <[EMAIL PROTECTED]> escreveu: Hi, Hi! I m using zone with block but i have some problem with it as it gives me js error as "reply is null". if any body had solution please tell me its urgent. You should always return a Zone or Block in

Re: manage sub-collection with grid component

2008-10-13 Thread Hugo Palma
Have you taken a look at the "Adding Columns Example" here http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html ? Does that solve your problem ? mdes wrote: Dear all, I need your support in order to determine the better way to solve this si

manage sub-collection with grid component

2008-10-13 Thread mdes
Dear all, I need your support in order to determine the better way to solve this situation. I have, say, 2 entities (ejb3) @Entity public class Child { private String idChild; private String firstName; private String secondName; ... } @Entity public class Father{ private String idFather;

Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Geoff Callender
Thanks, guys. You're making me blush! On 13/10/2008, at 11:24 PM, Inge Solvoll wrote: Agreed, I love Jumpstart! Extremely useful! On Mon, Oct 13, 2008 at 2:19 PM, Francois Armand <[EMAIL PROTECTED]>wrote: Francois Armand wrote: Geoff, I didn't look at your work yet, I mean, "I didtn't

Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Inge Solvoll
Agreed, I love Jumpstart! Extremely useful! On Mon, Oct 13, 2008 at 2:19 PM, Francois Armand <[EMAIL PROTECTED]>wrote: > Francois Armand wrote: > >> Geoff, I didn't look at your work yet, >> > I mean, "I didtn't look at that new version of...", of course :) > > > -- > Francois Armand > Etudes & D

Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Francois Armand
Francois Armand wrote: Geoff, I didn't look at your work yet, I mean, "I didtn't look at that new version of...", of course :) -- 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 Feder

Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Francois Armand
Geoff Callender wrote: Hi all, JumpStart 3.16 is now available. It has heaps of new examples! Geoff, I didn't look at your work yet, but I already want to thank you for this really good piece of work, you quite follow the T5 development, and it's really great to have this bunch of examples.

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-13 Thread Onno Scheffers
Great sum up. There has been talk in the past about the missing $remove$, $body$ etc. which we had in Tapestry 4 if I'm not mistaken. There are work-arounds in T5, but I would expect those to be available in a release candidate of T5. regards, Onno Scheffers On Mon, Oct 13, 2008 at 11:36 AM,

Re: How to return .tml content as a String from a Java class?

2008-10-13 Thread Joachim Van der Auwera
You may want to look at the "Accordion" component in equanda-tapestry5 Kind regards, Joachim [EMAIL PROTECTED] wrote: The SlidingPanel (as it currently is), expects an Array of Strings that contain the contents of the SlidingPanel: E.g.: public String[] getDetails(){

Re: hidden input field, TAPESTRY5

2008-10-13 Thread Andy Pahne
There is already a JIRA issue and a patch: https://issues.apache.org/jira/browse/TAP5-265 Joel Halbert schrieb: Just out of interest, does any one know what the rational was for not making hidden fields part of the core codebase? Is it simply because Activation Contexts should be used in pref

[ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Geoff Callender
Hi all, JumpStart 3.16 is now available. It has heaps of new examples! * Grid Model * Editable Grid * onActivate and OnPassivate * Passing Data Between Pages * Return Types * Multiple Method Matches * Event Bubbling * Triggering a

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-13 Thread Francois Armand
OK, so a little sum up with the matching bug reference, so that at least everybody can vote for this easaly. It would be quite simple afterward to bring the T5 dev attention to bugs with tens of vote for them. Note: some bugs are in the Tapestry project, not the TAP5 one. I thing there owners

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-13 Thread Neeme Praks
I agree with all the points. And, for point #4, there is also a JIRA issue you can vote on: https://issues.apache.org/jira/browse/TAP5-223 As it is a simple addition and commonly used, I do not see why it should not be included in 5.0. Then the wiki page can just describe how to enable it (act

Re: hidden input field, TAPESTRY5

2008-10-13 Thread Joel Halbert
Just out of interest, does any one know what the rational was for not making hidden fields part of the core codebase? Is it simply because Activation Contexts should be used in preference to hidden fields for keeping state between requests? Bill Holloway wrote: The tapestry5-components project