tapestry-hibernate and MS SQLServer

2008-03-27 Thread Moritz Gmelin
Hi, we have an application developed using a PostgreSQL Database that we are now trying to deploy on a MS SQL Server. Problem is that any database error that occurs (e.G. violation of unique constraints) makes that access to the table involved in the transaction is blobked for all users

Re: How is T5 tutorial?

2008-03-27 Thread Koka Kiknadze
Just a suggestion: maybe you guys can find it in your hearts to ignore trolls from now on. +1 I also think it will be a mature decision. +1 what's happening here and on that TSS thread sounds (or maybe is) a bit childish

Re: T5 (5.0.11) - ready for production deployment

2008-03-27 Thread Martin Grotzke
Hi, we also have a production app running T5 http://www.smatch.com, very stable, up and running. Cheers, Martin On Wed, 2008-03-26 at 21:14 +0100, Jan Vissers wrote: Hi, I have an opportunity to use T5 (5.0.11) in an assignment. My question is; is it safe for me to do so? The application

Re: T5: Problems with Tapestry5-Acegi

2008-03-27 Thread Olle Hallin
Add spring-web.jar or spring-webmvc.jar to your classpath. (Which one depends on which Spring version you use. RequestUtils moved from spring-web.jar to spring-webmvc.jar in version 2.5) tapestry5-acegi does not bring it in automatically. HTH, Olle 2008/3/27, Jacob Bergoo [EMAIL PROTECTED]:

Re: T5 (5.0.11) - ready for production deployment

2008-03-27 Thread Donyee
I had developed a crud system using tapestry-5-0-5, it works fine! and i will upgrade to the latest version. 2008/3/27, Martin Grotzke [EMAIL PROTECTED]: Hi, we also have a production app running T5 http://www.smatch.com, very stable, up and running. Cheers, Martin On Wed, 2008-03-26

Floating Pane and AjaxEventSubmit

2008-03-27 Thread Rohan Kalyan
Hi all, we are migrating from tapestry 4.0.2 to 4.1.5 we were using tacos 4.0 with the previous version and now in tapestry 4.1we have deleted tacos and we are facing problem in changing tacos components (tacos:ajaxEventSubmit and tacos:FloatingPane) Please suggest us on this issue..

Running both T4 and T5 in same application context

2008-03-27 Thread Inge Solvoll
Hi! I would really like to start using T5 for new modules in my web application. The problem is that I have a lot of struts and T4 pages that needs to co-exist with T5-pages under the same application context, I'm already making struts and T4 cooperate in a slightly messy way. I can't afford the

RE: tapestry-hibernate and MS SQLServer

2008-03-27 Thread Jonathan Barker
I use Hibernate / Spring / JTDS / SQL Server 2000. I've seen no such issues when dealing with problems. What does Enterprise Manager or Management Studio say about Current Activity? Is there a lock being held by one process? If so, then either you or tapestry-hibernate needs to commit or

RE: [T5] Ajax validation

2008-03-27 Thread Zheng, Xiahong
Anyone? -Original Message- From: Zheng, Xiahong Sent: Wednesday, March 26, 2008 3:09 PM To: 'Tapestry users' Subject: [T5] Ajax validation If this topic has been discussed, please point me to the right place. It seems that, by default, tapestry 5 only does client side validation when

Tapestry 5 - Acegi ,, using LDAP authentication provider

2008-03-27 Thread Mahen Perera
Hi everybody. I am trying to integrate tapestry 5 with Acegi security. The authentication provider that I am using is LDAP based. I see that most of the examples refer to using DAOAuthentication provider. Just checking if there is someone who used LDAP for the authentication. I

Input Validation on Server Side?

2008-03-27 Thread samlai
A typical t:textfield t:id=foo t:validate=required size=5/ automatically produce client-side validation. Just wondering whether it produce server-side validation counterparts and enforce on the server-side as well? Obviously, it goes from Tapestry validation language to JavaScript. I'd think

Re: Input Validation on Server Side?

2008-03-27 Thread Igor Drobiazko
Just disable JavaScript and you will see that client side validation is duplicated with server-side one. On Thu, Mar 27, 2008 at 3:30 PM, samlai [EMAIL PROTECTED] wrote: A typical t:textfield t:id=foo t:validate=required size=5/ automatically produce client-side validation. Just wondering

Re: Input Validation on Server Side?

2008-03-27 Thread Robert Zeigler
Yes, tapestry's built-in validators validate both client and server- side. Robert On Mar 27, 2008, at 3/279:30 AM , samlai wrote: A typical t:textfield t:id=foo t:validate=required size=5/ automatically produce client-side validation. Just wondering whether it produce server-side

Re: T5: Problems with Tapestry5-Acegi

2008-03-27 Thread Jacob Bergoo
Olle Hallin wrote: Add spring-web.jar or spring-webmvc.jar to your classpath. (Which one depends on which Spring version you use. RequestUtils moved from spring-web.jar to spring-webmvc.jar in version 2.5) tapestry5-acegi does not bring it in automatically. HTH, Olle Thanks

Re: [T5] Ajax validation

2008-03-27 Thread Julian Wood
I think you need to do this yourself, using the builtin AJAX facilities, rather than using any of the builtin validation facilities. Say you were looking to make sure a username was unique on signup. Place an actionlink beside the field (check availability). The actionlink would need

RE: [T5] Ajax validation

2008-03-27 Thread Zheng, Xiahong
Thanks for the clarification. I was wondering if such capability already exists in T5. I like the mixin approach since it doesn't require another click. -Original Message- From: Julian Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 11:39 AM To: Tapestry users Subject: Re:

RE: [T5] FormFragment doesn't work on IE6

2008-03-27 Thread Zheng, Xiahong
Anybody tested formfragment/mixin on IE6? I could not get the fragment to show on IE6. It does work on firefox however. Is this a known issue or am I missing something? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [T5] FormFragment doesn't work on IE6

2008-03-27 Thread Adam Zimowski
I think there is an issue, although it works partially. If you click on the checkbox it doesn't slide the fragment down. However, a subsequent click anywhere on the page will slide it down causing the process and checkbox to be out of sync. I implemented my own toggle functionality so it wasn't

Re: Running both T4 and T5 in same application context

2008-03-27 Thread Howard Lewis Ship
It's not possible; Tapestry 4 and Tapestry 5 use overlapping package names and (in all likelihood) overapping class names. There was a point where I had to decide on a root package: org.apache.tapestry5 or org.apache.tapestry ... I chose the latter. Hopefully, that's the worst mistake I've made.

RE: [T5] FormFragment doesn't work on IE6

2008-03-27 Thread Zheng, Xiahong
I am seeing another problem; On submit from the fragment, I don't get any input values bound to the fragment fields. Has anybody seen it? -Original Message- From: Adam Zimowski [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 1:01 PM To: Tapestry users Subject: Re: [T5]

Re: [T5] FormFragment doesn't work on IE6

2008-03-27 Thread Adam Zimowski
That could be by design. If your fragment is hidden values won't be submitted. If it's shown, they should be submitted and I never had this problem as they do submit correctly for me. I tested it with all kinds of browsers and it works well aside from issue with javascript slide down I mentioned

RE: Tapestry 5 - Acegi ,, using LDAP authentication provider

2008-03-27 Thread Jonathan Barker
Here are the relevant portions (with identifying info stripped out) for authentication with Active Directory. With AD, you need to use bind-based authentication. If you are using something like OpenLDAP, you may have access to the password or password hash, so you would change the authenticator.

RE: [T5] FormFragment doesn't work on IE6

2008-03-27 Thread Zheng, Xiahong
I am not sure why it is not working for me. Here is my simple test page, NewPosition.tml html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; body form t:type=Form t:id=addForm t:checkbox t:id=addPosition t:mixins=triggerfragment fragment=addPositionFragment/

T5: nested loops don't work (can't figure this one out)

2008-03-27 Thread Britske
Hi, I'm breaking my head on this one. I have 2 nested loops where the value of the outer loop is used as the source of the inner loop. The problem is that getCurPhotoAsThumb() is never called (as noticed by debugging) thus nothing is rendered. I've made sure that getCurThumbSublist() has at

RE: T5: Problems with Tapestry5-Acegi

2008-03-27 Thread Jonathan Barker
This is currently listed on the TODO list: http://www.localhost.nu/java/tapestry5-acegi/todo.html -Original Message- From: Jacob Bergoo [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 11:04 AM To: users@tapestry.apache.org Subject: Re: T5: Problems with Tapestry5-Acegi

Re: T5: nested loops don't work (can't figure this one out)

2008-03-27 Thread Howard Lewis Ship
That should work just fine. Nothing jumps out at me as being wrong. In fact, I just tried a simplified test case and it worked fine: public Object[][] getData() { return new Object[][] { { fred, flintstone }, { barney, rubble } }; }

Zone div lingering

2008-03-27 Thread Bill Holloway
I have a page which used to have a zone component in use. I have now removed the zone component in favor of another approach. However, when I hit that page, I get a Javascript error in tapestry.js (the following from Firebug): $(zoneDiv) has no properties -- Bill @ PeoplePad

Re: Zone div lingering

2008-03-27 Thread Howard Lewis Ship
I suspect you still have a TriggerFragment mixin on a link and it's trying to initialize that relationship. On Thu, Mar 27, 2008 at 12:07 PM, Bill Holloway [EMAIL PROTECTED] wrote: I have a page which used to have a zone component in use. I have now removed the zone component in favor of

Re: Zone div lingering

2008-03-27 Thread Bill Holloway
I didn't use a triggerfragment. Perhaps I should! Related: The reason I used a zone was because the t5components.Editorwasn't showing up in the block that replaced my zone's initial contents. The usual Tapestry components showed up fine in the replacement block. Bill On Thu, Mar 27, 2008 at

Re: Zone div lingering

2008-03-27 Thread Bill Holloway
Well, no, actually. TriggerFragment isn't needed. I'm trying to replace simple output of some fields with a form that edits those fields (with one of them using a t5components.editor field). There's not a fragment like the Tapestry shipping/billing address example for FormFragment. Bill On

RE: [T5] FormFragment doesn't work on IE6

2008-03-27 Thread Zheng, Xiahong
I found a workaround. It seems tapestry is not linking the checkbox event with the hidden field in this case addPositionFragment:hidden This value of this hidden field is used on the server side to determine if binding of the fragment fields should happen. If I manually add a onchange event

Re: [T5] FormFragment doesn't work on IE6

2008-03-27 Thread Adam Zimowski
I recently posted e-mail to this list on this exact same topic. Here is that post: Per documentation, FormFragment decides if its content should be submitted based on the hidden field [formfragmentname]:hidden: // this is the relevant code from FormFragment source: void beginRender(..)

[T5] Form errors persisted in session?

2008-03-27 Thread Renat Zubairov
Hi Where are the validation results of the BeanEdit persisted in T5? I disabled javascript then submited empty form, then enabled javascript and opened empty form without any sumbit, but errors are still there. Only when I dropped the cookie error messages went away. -- Best regards, Renat

Re: [T4] PageRedirectException in pageValidate after AjaxDirectLink

2008-03-27 Thread Kelly Merrell
Thanks for the example Steve. My only issue is that I don't seem to be getting a dojo-ajax-request header in the request. There is a dojoRequest parameter, which seems like I can use it for the same purpose. Are you using a version of Tapestry greater than 4.02? I'm going to try to adopt

Re: [T5] Form errors persisted in session?

2008-03-27 Thread Josh Canfield
I believe they are persisted in the session by the form in it's validation tracker. I'm not 100% sure that this is the best approach, but I have used: void cleanupRender() { _myForm.clearErrors(); } to make sure old errors don't stick around. Josh On Thu, Mar 27, 2008 at 1:22

Re: [T4] PageRedirectException in pageValidate after AjaxDirectLink

2008-03-27 Thread Steve Shucker
I'm using 4.1.5 and I think I wrote that code against 4.1.3. I agree that you shouldn't move your auth code into a filter - I only mentioned that to explain why I wasn't handing you the whole filter code. You may have to tweak the generated code a bit for 4.0.2. I just used firebug to grab

Re: [T4] PageRedirectException in pageValidate after AjaxDirectLink

2008-03-27 Thread Andreas Andreou
Tapestry 4.0.x with tacos probably doesn't add the request header... just the parameter. So, what you're seeing is consistent, and if you want to plan ahead, check for the existence of either of those On Thu, Mar 27, 2008 at 11:32 PM, Kelly Merrell [EMAIL PROTECTED] wrote: Thanks for the example

Re: T5 (5.0.11) - ready for production deployment

2008-03-27 Thread Thiago HP
In the company I worked for until two weeks ago, I developed an internal application with T5 and it's already in production. That was a very successful experience, so the same company is now developing another one in T5. There is another public website, thedailytube.com, developed with T5 by some

Re: [T5] Form errors persisted in session?

2008-03-27 Thread Angelo Chen
how about: @Component private Form regForm; void cleanupRender() { regForm.clearErrors(); } Renat Zubairov wrote: Hi Where are the validation results of the BeanEdit persisted in T5? I disabled javascript then submited empty form, then enabled javascript and opened empty

RE: T5: nested loops don't work (can't figure this one out)

2008-03-27 Thread Jonathan Barker
Subtle logic error. outputlist.add(list.subList(counter, Math.min(counter+maxListsize,outputlist.size(; Should be outputlist.add(list.subList(counter, Math.min(counter+maxListsize, list.size(; Gotta love those! -Original Message- From: Britske [mailto:[EMAIL PROTECTED]

T4-AJAX executing client side script from an async listener

2008-03-27 Thread Paul Stanton
Hi all, I have a form which is handled via an async listener, which currently just does some component updates: ResponseBuilder builder = getRequestCycle().getResponseBuilder(); builder.updateComponent(dataPanes); builder.updateComponent(filterSubmit); But now I need to be able to execute

Re: T5: nested loops don't work (can't figure this one out)

2008-03-27 Thread Howard Lewis Ship
Great catch. Simpler is always better. On Thu, Mar 27, 2008 at 4:10 PM, Jonathan Barker [EMAIL PROTECTED] wrote: Subtle logic error. outputlist.add(list.subList(counter, Math.min(counter+maxListsize,outputlist.size(; Should be outputlist.add(list.subList(counter,

Re: T4-AJAX executing client side script from an async listener

2008-03-27 Thread Andreas Andreou
Can't you conditionally include a @Script in the response? Also, that's on 4.1.5, right? On Fri, Mar 28, 2008 at 1:32 AM, Paul Stanton [EMAIL PROTECTED] wrote: Hi all, I have a form which is handled via an async listener, which currently just does some component updates: ResponseBuilder

@Mixin( parameters= )

2008-03-27 Thread Fernando Padilla
https://issues.apache.org/jira/browse/TAPESTRY-1643 So, any hope on this issue? Or at least I don't get how mixin parameters can be set when you use the @Mixin annotation? Does it look at parameters of the containing component, or just getters? But what if I don't want to expose those

Re: T5 (5.0.11) - ready for production deployment

2008-03-27 Thread Josh Canfield
There is another public website, thedailytube.com, developed with T5 by some member of this list I can't recall his name. :P That'd be me :) The site went up with 5.0.5, and currently on 5.0.10. Tapestry 5 is rendering everything, the site, the RSS feeds, the content for the email newsletters

Re: T5 (5.0.11) - ready for production deployment

2008-03-27 Thread Howard Lewis Ship
Fun is one of my favorite adjectives for Tapestry. On Thu, Mar 27, 2008 at 5:20 PM, Josh Canfield [EMAIL PROTECTED] wrote: There is another public website, thedailytube.com, developed with T5 by some member of this list I can't recall his name. :P That'd be me :) The site went up with

Re: @Mixin( parameters= )

2008-03-27 Thread Howard Lewis Ship
Sorry if progress seems short; I'm sidetracked on a client project, and working on new slide decks for upcoming NFJS shows. On Thu, Mar 27, 2008 at 5:00 PM, Fernando Padilla [EMAIL PROTECTED] wrote: https://issues.apache.org/jira/browse/TAPESTRY-1643 So, any hope on this issue? Or at least

T5:Problem with Beaneditor and autobuilding

2008-03-27 Thread Andreas Pursian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi list, i just updated my t5 app from an early 5.0.11 Snapshot to the finally release version. Unfortunatly i experienced some problems. One of the app pages is using the beaneditor component to display and edit different data beans. Different

Re: @Mixin( parameters= )

2008-03-27 Thread Fernando Padilla
no problem :) I was just getting confused on how parameters work for mixins when they are declared inside of a component through the @Mixin annotation. The documentation explicitly shows how that works for components/mixins in the template. Howard Lewis Ship wrote: Sorry if progress seems

Re: T5:Problem with Beaneditor and autobuilding

2008-03-27 Thread Howard Lewis Ship
I think what's happened is that there's a subtle change in the order of operations inside BeanEditForm and BeanEditor. They now build the BeanModel from the bound property type ... in this case, your abstract bean. I think youre best bet is to inject the BeanModelSource service, and obtain the

Re: Input Validation on Server Side?

2008-03-27 Thread samlai
Thanks guys. Server-side validation is a must. Whatever makes it easy is doing the right thing. However, I'm disappointed to find a flaw. I was able to manually edit the selection values in the html and submit without a problem. I'd expect Tapestry to enforce the selection to be only the

Form with a Zone - ComponentEventException

2008-03-27 Thread petros
When the userSearchForm of the code below is submitted I am getting the following exception A component event handler method returned the value [EMAIL PROTECTED] Return type org.apache.internal.structure.BlockImpl can not be handled. Configured return types are java.lang.Class, java.lang.String,