Re: [ANNOUNCEMENT] tapestry-resteasy 0.2.0 and tapestry-model 0.0.2 released!

2010-06-08 Thread Robin Komiwes
Congratulations Tynamo! The improvements on REASTEasy module and its droppinability are great. That was something I was looking for some months ago. Keep on doing great things! On Wed, Jun 9, 2010 at 7:34 AM, Kalle Korhonen wrote: > (If your name is Paul Stanton, please stop reading now :-> ) >

Re: How to enable suggestions when entering the input field

2010-06-08 Thread Josh Canfield
The autocomplete mixin is based on Scriptaculous's autocompleter. See if this helps: http://blog.ilexius.de/blog-post/2010/02/05/activate-autocompleter-in-scriptaculous-when-entering-a-field-on-focus/ Josh On Tue, Jun 8, 2010 at 8:39 AM, Donarus wrote: > > Hi, >  this is example part of code of

Re: Tapestry 5 and Html 5

2010-06-08 Thread Robin Komiwes
Good point! It's a shame for a web framework to no support the most exciting web standard! And I think that Tapestry can do so much with HTML5 specifics components. There are two issues about that on JIRA [1] [2], and I think it is a problem related with the way Tapestry 5 parse and handles entiti

Re: Undeclared general entity

2010-06-08 Thread Josh Canfield
> however I'm still having this problem when I declare an xhtml entity within > a page that uses a component to handle the layout, even if both the layout > component and the page tml's declare the xhtml xmlns.: Each of your .tml files is a complete xml file. When tapestry parses your MyPage.tml t

[ANNOUNCEMENT] tapestry-resteasy 0.2.0 and tapestry-model 0.0.2 released!

2010-06-08 Thread Kalle Korhonen
(If your name is Paul Stanton, please stop reading now :-> ) They say that a release a week keeps the doctor away so to combat any potential illnesses in advance, we are announcing tapestry-resteasy 0.2.0 and tapestry-model 0.0.2 releases! Tapestry-resteasy is whiz-bang job of Alejandro Scandroli

Re: Testify unable to locate the @IncludeStylesheet

2010-06-08 Thread Bryan Lewis
I've used Testify with no real problems. I tried your line of initialization code and it worked for me. I've done no special configuration, just righ-clicked on my tet class and Debug as TestNG Test. The exception says it's looking for a file src/main/webapp/css/grid.css. On Tue, Jun 8, 2010 at

Tapestry 5 and Html 5

2010-06-08 Thread Angelo Chen
Hi, Html 5 is getting popular lately, any idea how we can try to integrate it with tapestry 5? or what is direction we can take for html 5? Thanks, Angelo -- View this message in context: http://old.nabble.com/Tapestry-5-and-Html-5-tp28824708p28824708.html Sent from the Tapestry - User mailin

Re: Component .java file unit testing and @Property

2010-06-08 Thread Christian Edward Gruber
Ok, so I ran into an issue where, because of how the TestUtil class fits in the hierarchy of TestBase, etc, it requires a dependency on org.testng.Assert. I filed a bug in JIRA and added a patch to extract PropertyUtil, but maintaining the TestUtil signatures for backwards compatibility, bu

Re: How to enable suggestions when entering the input field

2010-06-08 Thread Donarus
Pablo dos Reis wrote: > > Use the Select and not a AutoComplete. > Thanks for reply, but that is not a solution for me. I can't use select box. This was only example, but my real application will do more... If input will be some string, which is not in suggestions, it will search it in DB, b

Testify unable to locate the @IncludeStylesheet

2010-06-08 Thread Dongmei Cao
I’m trying to use Testify to do unit testing. But it can not locate the css files in the @IncludeStylesheet annotation. It works fine if I use . I have specified the context root when initializing the TapestryTester, such as, private static final TapestryTester SHARED_TESTER = new Tapest

Re: Component .java file unit testing and @Property

2010-06-08 Thread Christian Edward Gruber
Woot! Thanks. I thought I'd read about these, but couldn't find them. We'll check them out. Saves some effort on my part. Let's get those into the page on unit testing. I only saw PageTester. :) Christian. On Jun 8, 2010, at 5:03 PM, Igor Drobiazko wrote: Please have a look at TestUtil

Re: Component .java file unit testing and @Property

2010-06-08 Thread Igor Drobiazko
Please have a look at TestUtils [1]. Methods create(), set() and get() are what you are looking for. For T5.1 see [2]. [1] http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/ioc/test/TestUtils.html [2] http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/ioc/tes

Component .java file unit testing and @Property

2010-06-08 Thread Christian Edward Gruber
Hey, So @Property is beautiful, but sometimes when I'm testing the thin controller logic that remains I want access to an @Property from within the test in order to verify that something was done/changed. I've looked at PageTester, but I don't want to dig into the rendered document,

Re: How to enable suggestions when entering the input field

2010-06-08 Thread Pablo dos Reis
Use the Select and not a AutoComplete. 2010/6/8 Donarus > > Hi, > this is example part of code of my autocomplete textfield (im using T > 5.1.0.5) > > JAVA PART: > List onProvideCompletionsFromNaseptavacValue(String partial) { > List matches = new ArrayList(); > matches.add("match1"); >

[Tapestry Central] Who Wants The Func? Gotta Have That Func!

2010-06-08 Thread Howard
I've been entranced by the concept of laziness since I first really considered it while teaching myself a bit of Haskell. Laziness is the idea that no computation takes place until it is actually needed ... an idea that is common in the functional programming world and one that works best with immu

Re: NPE in afterRender method in Tomcat

2010-06-08 Thread Radek Terber
I'm vwr sorry, I'm stupid.The constant Constants.REQUIRED_LOGIN_RQATR was null. But I'm surprised the Tomcat does not provide any reasonable message. Dne 7.6.2010 22:13, Radek Terber napsal(a): Hi I have such problem: I have quite simple T5 application - (T5 + hibernate), currently compiled

How to enable suggestions when entering the input field

2010-06-08 Thread Donarus
Hi, this is example part of code of my autocomplete textfield (im using T 5.1.0.5) JAVA PART: List onProvideCompletionsFromNaseptavacValue(String partial) { List matches = new ArrayList(); matches.add("match1"); matches.add("match2"); matches.add("match3"); return matches; } TM

Re: add textfields to form dynamically

2010-06-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 Jun 2010 11:22:03 -0300, Dimitrios Sferopoulos wrote: You can't use dots for Tapestry t:id's nor HTML ids. Use an underscore or hyphen instead. There has to be a dot there as it refers to dynamic content retrieved from an arraylist of objects. You can use a dot in the value pa

Re: add textfields to form dynamically

2010-06-08 Thread Dimitrios Sferopoulos
Thiago H. de Paula Figueiredo wrote: On Tue, 08 Jun 2010 10:46:40 -0300, Dimitrios Sferopoulos wrote: Hi all, Hi! I want users of an advanced search page to be able to add textfields to a form dynamically. There should be a plus sign button which when each time it's pressed there should

Re: add textfields to form dynamically

2010-06-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 Jun 2010 10:46:40 -0300, Dimitrios Sferopoulos wrote: Hi all, Hi! I want users of an advanced search page to be able to add textfields to a form dynamically. There should be a plus sign button which when each time it's pressed there should be added 2 dropdowns and a textfiel

add textfields to form dynamically

2010-06-08 Thread Dimitrios Sferopoulos
Hi all, I want users of an advanced search page to be able to add textfields to a form dynamically. There should be a plus sign button which when each time it's pressed there should be added 2 dropdowns and a textfield. I have created an advancedSearchFields class with getters and setters. p

Re: event handlers - handling by the container (page)

2010-06-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 Jun 2010 09:40:52 -0300, Paul Stanton wrote: Sorry Thiago, Thanks for the answer but I'm still not sure i've explained this properly. Take the following example... I have a page 'MyPage', who's root element is ...>. Within MyLayout i have an actionlink 'MyLink'. I want to han

Re: event handlers - handling by the container (page)

2010-06-08 Thread Benny Law
Try giving your MyLayout component an id in MyPage.tml and use that id in the event handler name. You can't reference the id of the form component because it's not a direct child of the page. When an event bubbles up, it will appear to be coming from the immediate child. I think you can even omit t

Re: Res: session.persist saves object with id 0

2010-06-08 Thread Dmitry Gusev
Just to clarify, if you're talking about tynamo's tapestry-jpa module then: @CommitAfter tells Tapestry to commit after this method successfully completed. Initially the transaction created automatically in the beginning of each request processing (and rolled back if you haven't declare any @Commi

Re: event handlers - handling by the container (page)

2010-06-08 Thread Paul Stanton
Sorry Thiago, Thanks for the answer but I'm still not sure i've explained this properly. Take the following example... I have a page 'MyPage', who's root element is . Within MyLayout i have an actionlink 'MyLink'. I want to handle the event 'onActionFromMyLink' in MyPage.java. I would expect

Res: Res: session.persist saves object with id 0

2010-06-08 Thread Everton Agner
And I forgot to mention it... Yes, the @CommitAfter annotation tells Tapestry to wrap that method in a Transaction when it will call it... So, is enough to just .persist() it. ;) De: Everton Agner Para: Tapestry users ; gpu...@ngeografics.com Enviadas: Terça-

Res: session.persist saves object with id 0

2010-06-08 Thread Everton Agner
Could you show us how you mapped your Entity? And regardless if it was by XML or Annotations, show your Entity class code too. De: Peter Stavrinides Para: Tapestry users ; gpu...@ngeografics.com Enviadas: Terça-feira, 8 de Junho de 2010 5:39:14 Assunto: Re: session.persist saves object with id

Re: event handlers - handling by the container (page)

2010-06-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 Jun 2010 08:57:03 -0300, Paul Stanton wrote: "Note that events that are not handled by a component will bubble up to the component's container" I'm a little confused because I thought this meant I could have a component containing components and handle the events from the root

event handlers - handling by the container (page)

2010-06-08 Thread Paul Stanton
"Note that events that are not handled by a component will bubble up to the component's container" I'm a little confused because I thought this meant I could have a component containing components and handle the events from the root container aka the page ? eg MyLayout.tml ... ...

Re: session.persist saves object with id 0

2010-06-08 Thread Peter Stavrinides
Perhaps the type is a primitive, so instead of null a default value will be 0? just a guess. Peter - Original Message - From: "Genís Pujol" To: "Tapestry users" Sent: Tuesday, 25 May, 2010 18:30:10 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: session.persist saves object w

Re: LinkSubmit doesn't work

2010-06-08 Thread paha
try to change onsubmit.call(window.document, event) to onsubmit.call(window.document, event) == undefined -- View this message in context: http://old.nabble.com/LinkSubmit-doesn%27t-work-tp28813499p28814310.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Tapestry5 jQuery - closing an Ajax Dialog

2010-06-08 Thread Christophe Cordenier
Hi If your form is submitted through an Ajax request, you can create a PartialMarkupRendererFilter that you can add in the PageRenderQueue, and then access to the RenderSupport in the filter to fill your JS code. 2010/6/8 Greg Pagendam-Turner > I have a modal jQuery dialog with a LinkSubmit. W

Tapestry5 jQuery - closing an Ajax Dialog

2010-06-08 Thread Greg Pagendam-Turner
I have a modal jQuery dialog with a LinkSubmit. When the LinkSubmit is clicked I would like the dialog to save the changes to the database and then close. What do I return from onSuccess to cause the dialog to close? The documentation for jQuery Dialog states that the code for closing a dialog

Re: Submit component issues

2010-06-08 Thread Inge Solvoll
You're not the first one :) I believe this has been fixed for 5.2. https://issues.apache.org/jira/browse/TAP5-947 On Tue, Jun 8, 2010 at 9:42 AM, Paul Stanton wrote: > I'm keen for peoples opinions regarding whether this is a bug or not. > > > >>> > > >>> > > >>> >

Re: OnEvent Problem

2010-06-08 Thread Inge Solvoll
The formatting is caused by the &&, which are special XML chars that tapestry templates don't like. The best solution is to provide your static javascript in a file that is included with @IncludeJavascriptLibrary, not include it inline like this. If you want to keep your solution, putting this at

Submit component issues

2010-06-08 Thread Paul Stanton
I'm keen for peoples opinions regarding whether this is a bug or not. >>> obviously, you can avoid this by giving your submit component a t:id: >>> >>>

OnEvent Problem

2010-06-08 Thread matt22
I am using ck/onEvent in template file: .. - Without tags i get Tapestry templa

tapestry5 / hibernate error: cannot be cast to

2010-06-08 Thread Genís Pujol
Hello list, I'm getting an error and can't see why hibernate is trying to cast when iterating. The function can be seen here: http://dpaste.com/204571/ The exact error is ' java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.ngeografics.entities.UsuarioTerritorioPerfil'

Re: LinkSubmit doesn't work

2010-06-08 Thread Paul Stanton
i think you mixed up the email subjects ^ ?? Radek Terber wrote: I'm sorry, I mistook in WAR's URL. the correct is http://www.gapo.cz/download/genusinum.war - To unsubscribe, e-