Multipe databases support

2011-02-26 Thread Tom van Dijk
OK, I uploaded a small pdf that explains the basics of my idea to http://www.tvandijk.nl/pub/multiconf.pdf You can pull from my multiconf branch, git://hetdiana.dyndns.org/tapestry5.git. Tom. Op 26-2-2011 21:40, Tom van Dijk schreef: My Multiple database support version of Tapestry is still wo

Re: t:select enum conflict

2011-02-26 Thread Paul Stanton
see jira: https://issues.apache.org/jira/browse/TAP5-1452 On 22/02/2011 9:51 PM, Thiago H. de Paula Figueiredo wrote: On Tue, 22 Feb 2011 07:18:08 -0300, Paul Stanton wrote: thiago, is this how it's supposed to work? What exactly? ---

Re: Grid with multiple forms

2011-02-26 Thread Thiago H. de Paula Figueiredo
On Sat, 26 Feb 2011 16:41:46 -0300, Jonathan Barker wrote: The documentation has improved immensely, and the quality of help on the list is amazing. This has not been a single-guru project for quite some time :-) Thanks you for saying that. Tapestry hasn't been a one-man shown for at lea

Re: Grid with multiple forms

2011-02-26 Thread Tom van Dijk
Op 26-2-2011 22:43, Thiago H. de Paula Figueiredo schreef: On Sat, 26 Feb 2011 17:40:21 -0300, Tom van Dijk wrote: My Multiple database support version of Tapestry is still working and being updated every few days. I just need to find time to promote it and document it on the developer mail l

Re: Tapestry 5

2011-02-26 Thread Mark
On Sat, Feb 26, 2011 at 6:07 AM, Dang Ngoc Son wrote: >   1. Tapestry 5 component show rss feed. Show info of user twitter in RSS > format: ex: http://twitter.com/statuses/user_timeline/14717608.rss If you want to read RSS feeds, you might want to look at Rome or something similar. If there is a

Re: Grid with multiple forms

2011-02-26 Thread Thiago H. de Paula Figueiredo
On Sat, 26 Feb 2011 17:40:21 -0300, Tom van Dijk wrote: My Multiple database support version of Tapestry is still working and being updated every few days. I just need to find time to promote it and document it on the developer mail list I suppose. Right now I'm banging my head against Tap

Re: Grid with multiple forms

2011-02-26 Thread Tom van Dijk
My Multiple database support version of Tapestry is still working and being updated every few days. I just need to find time to promote it and document it on the developer mail list I suppose. Right now I'm banging my head against Tapestry's JS/AJAX/Rendering concepts that won't stick into my h

Re: Grid with multiple forms

2011-02-26 Thread Jonathan Barker
Preface: I've been around since the alpha days of T4, and I try to keep up my reading on the list, but I usually only pop my head to contribute up when something is painfully familiar - like security manager issues with Tomcat on Debian, or the occasional Spring issues. I'm associated with a coup

Re: Q: Tapestry 5.2.4 + Hibernate 3.6 ?

2011-02-26 Thread dwi ardi irawan
One more question why it still show this error if I use jetty launcher(It works fine if I use mvn jetty:run) *Exception constructing service 'ValueEncoderSource': Error invoking service builder method org.apache.tapestry5.services.TapestryModule.buildValueEncoderSource(Map, InvalidationEventHub) (

Re: Q: Tapestry 5.2.4 + Hibernate 3.6 ?

2011-02-26 Thread dwi ardi irawan
Yay. I got it works ! I forgot to mapped the beans entity on my hibernate configuration com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/tapestryboard org.hibernate.dialect.MySQLDialect root update true true

Tapestry 5

2011-02-26 Thread Dang Ngoc Son
I'm trying training for Tapestry 5. And I'm having some problems would you help me, please. 1. Tapestry 5 component show rss feed. Show info of user twitter in RSS format: ex: http://twitter.com/statuses/user_timeline/14717608.rss 2. Using Spring security to create mechanisms login/logout in

Re: Rendering a Block

2011-02-26 Thread Thiago H. de Paula Figueiredo
On Sat, 26 Feb 2011 13:52:27 -0300, Tom van Dijk wrote: Hi, Hi! Well, it is an AJAX request. The X-Requested-With header is properly set, isXHR() will return true. I'm executing it in Javascript, just a normal call. It's supposed to return a form that I can then display in any DIV that

Re: Grid with multiple forms

2011-02-26 Thread Thiago H. de Paula Figueiredo
On Sat, 26 Feb 2011 13:25:23 -0300, Adam Zimowski wrote: Okay, I will use loop instead. Thank you for suggestion. Just wanted to make sure I did not miss anything with Grid. You're welcome! :) Grid is more focused on showing objects, not editing. On the other hand, we could create another

Re: Grid with multiple forms

2011-02-26 Thread Thiago H. de Paula Figueiredo
On Sat, 26 Feb 2011 12:56:45 -0300, Jonathan Barker wrote: It's not so much that Tapestry is rigid, because it is incredibly flexible, but knowing how to flex it is the challenge. I've spent lots of time trying to figure out the RIGHT (TM) way to do something when it feels like it shou

Re: Rendering a Block

2011-02-26 Thread Adam Zimowski
That was my issue. I did not want to work with zones either, and as a result pounded my head against the wall. Using Tapestry features - zones and blocks - solves this problem (although not very intuitive). The tricky part is the Tapestry specific JavaScript which isn't readily documented. On Sat,

Re: Rendering a Block

2011-02-26 Thread Jonathan Barker
Unless I'm missing something (which is possible), in both cases the complexity comes because you are trying to NOT use the features of Tapestry. Both of you want to bypass the tools Tapestry gives you. Use an EventLink and use a context and a zone. As for an arbitrary div... you can update any

Focus on first field in added row in AjaxFormLoop

2011-02-26 Thread Joakim Olsson
Hi, I would like to get focus on the first available field in the added row in an AjaxFormLoop. Is it possible in an easy way? Regards, Joakim - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional comman

Re: Rendering a Block

2011-02-26 Thread Markus Feindler
The thing is, he does not want to work with zones! Heh.. this is funny, but it sounds like the issue I just described in my "Grid with multiple forms" thread. Anyway, to call a Tapestry event from a JavaScript you probably want this in your javascript: function yourJavaScriptMethod(yourParameter

Re: Rendering a Block

2011-02-26 Thread Adam Zimowski
Heh.. this is funny, but it sounds like the issue I just described in my "Grid with multiple forms" thread. Anyway, to call a Tapestry event from a JavaScript you probably want this in your javascript: function yourJavaScriptMethod(yourParameterIfYouHaveOne) { var url = '${tapestryEvent}' + '/

Re: Rendering a Block

2011-02-26 Thread Tom van Dijk
Hi, Well, it is an AJAX request. The X-Requested-With header is properly set, isXHR() will return true. I'm executing it in Javascript, just a normal call. It's supposed to return a form that I can then display in any DIV that I want, and I don't want to use zones here. So I would think I sho

Re: Q: Tapestry 5.2.4 + Hibernate 3.6 ?

2011-02-26 Thread dwi ardi irawan
Yes, I've checked it. And it doesn't corrupt at all. I think the problem is in the jetty launcher, cos when use mvn jetty:run, it doesn't show any error Strange but now there is another problem, now, the page is show: "There is no data to display." my table has only 1 row. On Sat, Feb 26,

Re: Grid with multiple forms

2011-02-26 Thread Jonathan Barker
I don't think there's an easy way to do one per row, but I have used a form in one cell per row, and I also used an in-place editor component to allow item-by-item editing within a grid - but any row-wise validation was completely manual. It's not so much that Tapestry is rigid, because it is incr

Re: Rendering a Block

2011-02-26 Thread Josh Canfield
Hi Tom. You can definitely return a block as the result of an AJAX request. If it's not an AJAX request then you will get an error about not having a result processor. Make sure that the zone parameter is set on the link you are using to initiate the zone update, and that javascript is turned on.

Re: No context for a t:select?

2011-02-26 Thread Josh Canfield
;) ya sorry, I meant implementation ! On Feb 26, 2011 7:12 AM, "Thiago H. de Paula Figueiredo" wrote: > On Sat, 26 Feb 2011 10:12:40 -0300, Andreas Andreou > wrote: > >> On Fri, Feb 25, 2011 at 20:23, Josh Canfield >> wrote: They wouldn't see the difference - they'd be using the component t

Re: Grid with multiple forms

2011-02-26 Thread Thiago H. de Paula Figueiredo
On Sat, 26 Feb 2011 11:28:31 -0300, Adam Zimowski wrote: Is it possible to have a grid with one form for each row? I don't think so. In this case, can you use Loop instead? For the errors outside Form part: I've never tried that, but Form has a tracker parameter. It's type is ValidationT

Re: No context for a t:select?

2011-02-26 Thread Thiago H. de Paula Figueiredo
On Sat, 26 Feb 2011 10:12:40 -0300, Andreas Andreou wrote: On Fri, Feb 25, 2011 at 20:23, Josh Canfield wrote: They wouldn't see the difference - they'd be using the component that would internally use the mixin Actually, I wasn't thinking of an internal mixin. Putting a "zone" on the Se

Re: Q: Tapestry 5.2.4 + Hibernate 3.6 ?

2011-02-26 Thread Thiago H. de Paula Figueiredo
On Sat, 26 Feb 2011 09:52:40 -0300, dwi ardi irawan wrote: As of Hibernate 3.6, JDK 1.4 support has been dropped and the Hibernate Annotations have been merged back into Core. Then why should I need hibernate annotations on my pom.xml ?? You shouldn't. Have you checked if the Hibernate JAR

Re: Disabling sort in Grid forces property names being java coded?

2011-02-26 Thread Thiago H. de Paula Figueiredo
On Sat, 26 Feb 2011 10:31:08 -0300, Vjeran Marcinko wrote: One thing that comes to my mind is related to the T5 feature that I'm not very well acquanted with - Mixins. Do you think it would be possible to develop such Mixin that would take whatever model is defined for given Grid, and di

Grid with multiple forms

2011-02-26 Thread Adam Zimowski
Is it possible to have a grid with one form for each row? All examples I see everywhere have a single form wrapping grid inside. For my functional spec, which requires Update/Remove buttons on each row, a single form has some unwanted implications such as validating other rows on submission from on

Grid disable sorting mixin

2011-02-26 Thread Vjeran Marcinko
Hello all, I developed simple mixin that disables sorting for any Grid. I didn't test it extensively, but it seems to work, so if anyone is interested here it is: import org.apache.tapestry5.annotations.InjectContainer; import org.apache.tapestry5.beaneditor.BeanModel; import org.apache.tapest

Rendering a Block

2011-02-26 Thread Tom van Dijk
Hello, I want to do something that should be simple but appears to be complex. I want to render a Block and return the result. The context is a website in which I want to use Javascript to fill a . I don't want to use a zone for this. What I did was make a in the .tml file. Now what I want to do

Re: Disabling sort in Grid forces property names being java coded?

2011-02-26 Thread Vjeran Marcinko
Hmm... At the moment I don't exactly grasp the dea, but I will try to analyse it further. One thing that comes to my mind is related to the T5 feature that I'm not very well acquanted with - Mixins. Do you think it would be possible to develop such Mixin that would take whatever model is defin

Re: No context for a t:select?

2011-02-26 Thread Andreas Andreou
On Fri, Feb 25, 2011 at 20:23, Josh Canfield wrote: >> They wouldn't see the difference - they'd be using the component that >> would internally >> use the mixin > > Actually, I wasn't thinking of an internal mixin. Putting a "zone" on > the Select seems random, making it an internal mixin doesn't

Re: Q: Tapestry 5.2.4 + Hibernate 3.6 ?

2011-02-26 Thread dwi ardi irawan
As of Hibernate 3.6, JDK 1.4 support has been dropped and the Hibernate Annotations have been merged back into Core. Then why should I need hibernate annotations on my pom.xml ?? On Sat, Feb 26, 2011 at 2:03 AM, Josh Canfield wrote: > > Could not initialize class > > org.hibernate.annotations.co

Re: Disabling sort in Grid forces property names being java coded?

2011-02-26 Thread Joost Schouten (mailing lists)
You can use what you posted below but you can also do the following which just shows a few ways to add and modify columns: public BeanModel getUnsortableBeanModel() { BeanModel model = beanModelSource.createDisplayModel(YourModel.class, messages); model.include("sortableColumn", "nonSortab

Disabling sort in Grid forces property names being java coded?

2011-02-26 Thread Vjeran Marcinko
Hello, I want to create Grid with sorting disabled, similar to T4 grid usage with exclamation mark for sort disabling: "!username,!age, !creationTime" Property names are best specified in template, naturally. I heard somewhere that in order to achive that little thing in T5.2 I need to add to