Re: Why Howard choose testNG in tapestry test module

2006-08-22 Thread xVik
I gues it is :) As i can see Howard has a sharp eye for technologies and he would naver take a bad one.. But may i ask wat exactly better (in short)? Jessek wrote: > > Because TestNG is better ;) > > On 8/21/06, xVik <[EMAIL PROTECTED]> wrote: >> >> >> Yesterday i reed a last post on Howars'

Re: Properties file in different location

2006-08-22 Thread Andrei Chiritescu
You could try implementing "ComponentMessagesSource" (or extending "ComponentMessagesSourceImpl" to make it easier). Then add this to your hivemind module : {code:xml} class="be.unid.tapestry.messages.UnidComponentMessagesSourceImpl"> value=

Re: Properties file in different location

2006-08-22 Thread soir
Thank you! This is for the messages, isn't it? But how Tapestry looks up for localized pictures? Andrei Chiritescu-3 wrote: > > You could try implementing "ComponentMessagesSource" (or extending > "ComponentMessagesSourceImpl" to make it easier). > Then add this to your hivemind module : > >

Re: Properties file in different location

2006-08-22 Thread Andrei Chiritescu
Well ... I haven't used this ... but if you take a look at the tapestry.asset.xml you'll see that there is a "AssetFactories" contribution like : For this I think you have to implement "AssetFactory" and make a service-point then add it to the contribution (with your own chosen pref

Re: contrib:Table changing the header

2006-08-22 Thread Jani Lindqvist
If i want to keep the link to sort the table by this column, can i just add an anchor tag with some specific jwcid that would insert a default link for sorting, or how should it be done? for example like this (assuming sortColumnHeader is the jwcid of the component taking care of the sorting):

Navigating an IBasicTableMOdel implementation

2006-08-22 Thread anil
Hi Everyone - I've recently created a class that implements the IBasicTableModel and it works really well and the navigation between pages is great. But what I would like to do now is create some kind of custom navigation whereby you have a set of links on the page, which are: A B C D etc

Re: new solution for concurrent requests

2006-08-22 Thread Karthik N
yes, i would be very interested in the source code. On 8/22/06, Henri Dupre <[EMAIL PROTECTED]> wrote: We've been having many strange errors message in our logs and several synchronization errors on session objects (especially visit). Also users kept getting error pages when they were clicking

Re: Why Howard choose testNG in tapestry test module

2006-08-22 Thread Vinicius Carvalho
Not better, WAY better! I like Junit and what they've done for the comunity, but testNG ROCKS!!! On 8/22/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Because TestNG is better ;) On 8/21/06, xVik <[EMAIL PROTECTED]> wrote: > > > Yesterday i reed a last post on Howars's blog about tapestry testin

Re: Properties file in different location

2006-08-22 Thread Peter Dawn
guys is this tap3 compatible? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: contrib:Table changing the header

2006-08-22 Thread andyhot
There's no component (yet) that does this... See the comments in http://issues.apache.org/jira/browse/TAPESTRY-958 They describe the solution Jani Lindqvist wrote: > If i want to keep the link to sort the table by this column, can i > just add > an anchor tag with some specific jwcid that would in

Re: DynamicSelectionList and ArrayIndexOutOfBoundsException

2006-08-22 Thread Waimun Yeow
Thank you so much, Shing. The problem was indeed with object equality in Java. I implemented the methods and now I'm able to retrieve the values of the model objects on submit. And thanks Nick, for pointing me to the correct implementation of using the selection models with custom objects.

Problems with InlineEditBox

2006-08-22 Thread tapestry
Hello, i have got a problem with the InlineEditBox Component in Tapestry: My Page-Specification: http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> Partial Page Rendering example with forms My Home.java: package pages; import org.apache.commons.lo

Re: Problems with InlineEditBox

2006-08-22 Thread andyhot
current Tacos works with Tapestry 4.0.x [EMAIL PROTECTED] wrote: > Hello, > > i have got a problem with the InlineEditBox Component in Tapestry: > > My Page-Specification: > >"-//Apache Software Foundation//Tapestry > Specification 4.0//EN" > "http://jakarta.apache.org/tapestry/dtd/Tapestry_4

Re: Why Howard choose testNG in tapestry test module

2006-08-22 Thread hv @ Fashion Content
I do seem to recall a description of the upcoming JUnit version which seem much better "Vinicius Carvalho" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > Not better, WAY better! I like Junit and what they've done for the > comunity, but testNG ROCKS!!! > > On 8/22/06, Jesse K

Re: How to handle components and filesystem wysiwyg design?

2006-08-22 Thread hv @ Fashion Content
> I have menu and locale selection in my border and some other stuff and I Regardless of wether you use the Border pattern or not you are not forced to duplicate content in the static versions. Whatever is between the tags are replaced with the template of your Border/NavigationPane/Header/Foote

Re: return to a specified anchor in a page from a listener method?

2006-08-22 Thread Danny Mandel
Hi, Thanks Jesse. My use case was within a form listener method, so as far as I could tell, there was no anchor parameter to be bound. Reading the other messages in this thread I think the cycle.activate(String pageName, String anchor) would work or the idea of returning an "Anchor" object

RE: Async form in Tap4.1 does not work...

2006-08-22 Thread Denis Souza
I'm still having the same problem as Pedro. Submitting a form with ajax only works when I use @EventListener. Using async=true and updateComponents on the form component seem to have no effect. The form is always submitted normally (without ajax). Tried it with the latest snapshot (4.1.1-20060822.0

Re: Why Howard choose testNG in tapestry test module

2006-08-22 Thread Paul Field
JUnit 4 is already available (and supported in IDEs such as Eclipse 3.2) - see www.junit.org Here's a couple of articles that describe some of the JUnit 4 features: http://www.instrumentalservices.com/index.php?option=com_content&task=view&id=45&Itemid=52 http://www.devx.com/Java/Article/31983/0

Re: return to a specified anchor in a page from a listener method?

2006-08-22 Thread andyhot
Danny Mandel wrote: > Hi, > > Thanks Jesse. My use case was within a form listener method, so as > far as I could tell, there was no anchor parameter to be bound. > Reading the other messages in this thread I think the > cycle.activate(String pageName, String anchor) would work or the idea > of r

Re: Async form in Tap4.1 does not work...

2006-08-22 Thread Norbert Sándor
As I know it is not yet implemented, I guess there are no such parameters (async, updateComponents) for Submit, LinkSubmit, etc. yet. Regards, Norbi Denis Souza wrote: I'm still having the same problem as Pedro. Submitting a form with ajax only works when I use @EventListener. Using async=true

RE: Async form in Tap4.1 does not work...

2006-08-22 Thread Denis Souza
The parameters are not implemented for Submit, but they already do exist in the Form component. Since Jesse replied that's fixed I thought it meant ajax should be working when using these parameters on a form. -Original Message- From: Norbert Sándor [mailto:[EMAIL PROTECTED] Sent: terça-f

Re: How to handle components and filesystem wysiwyg design?

2006-08-22 Thread hv @ Fashion Content
I have tried to describe my approach in the following wiki http://wiki.apache.org/tapestry/WysiwygWithoutBorder "hv @ Fashion Content" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] >> I have menu and locale selection in my border and some other stuff and I > > Regardless of we

Re: Tapestry with Hibernate vs JSF with Hibernate (Object binding question)

2006-08-22 Thread hv @ Fashion Content
I find that when things seem awkward in Tapestry it is often because I use the wrong approach. If you find yourself forced to create a session when there is no need for it, you probably need to rethink how you use listeners/triggers on page/component. "Vinicius Carvalho" <[EMAIL PROTECTED]> skr

Re: Properties file in different location

2006-08-22 Thread hv @ Fashion Content
No, in Tap3 you only have a few options to modify behaviour. Henrik "Peter Dawn" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > guys is this tap3 compatible? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: return to a specified anchor in a page from a listener method?

2006-08-22 Thread Danny Mandel
Hi Andy, That works for me! Thanks, Danny andyhot wrote: Danny Mandel wrote: Hi, Thanks Jesse. My use case was within a form listener method, so as far as I could tell, there was no anchor parameter to be bound. Reading the other messages in this thread I think the cycle.activate(Strin

OpenSessionInViewFilter configuration

2006-08-22 Thread Vinicius Carvalho
Hello there! I'm using OSIVF with spring in my app. I had it configured just like examples on the wiki: hibernateFilter /app But I have a few pages that I want to turn it off, is it possible? I tried before using pattern=*.html and put those pages in a different path, but I get some err

For component and Validation Deligate

2006-08-22 Thread Simon Raveh
Hi, Sorry for the second post, I didn't get any response from the first one so I will try to make myself clearer. I have a For component that includes TextField components, when the form submitted I'm looping over all the values to perform validation. My problem is that when I find an err

Is there a way to render to a freestanding script or, outside of any context

2006-08-22 Thread Josh Long
Hello all, its been several days since ive worked on my little app and this morning I fired up maven and got the latest updates and ran my app and then i was deluged with javascript blood... anything inside of --here-- in a .script used to be rendered freestanding outside of any

Problem with Script and Border

2006-08-22 Thread Bastian Voigt
Hello all, my Tapestry 4.0.2 application uses a border component: -- ... blah ... ... blah ... -- The pages look like this: -- blah ... ... blah ...

Re: Problem with Script and Border

2006-08-22 Thread andyhot
Replace with Bastian Voigt wrote: > Hello all, > > my Tapestry 4.0.2 application uses a border component: > > -- > > >... blah ... > > > >... blah ... > > > -- > > The pages look like this: > > -- > > >

Tapestry + Ajax help

2006-08-22 Thread Vinicius Carvalho
Hello there! I'm experience some problems dealing with ajax + tapestry 4.0.2 (and I do know I'm the reason of the problems :) ) Ok, the scenario: A page that polls at each 2 seconds using xmlhttprequest a tapestry page. The problems: 1- number of HTTPSessions growing in a linear way to the numb

Re: new solution for concurrent requests

2006-08-22 Thread Josh Long
As would I! On 8/22/06, Karthik N <[EMAIL PROTECTED]> wrote: yes, i would be very interested in the source code. On 8/22/06, Henri Dupre <[EMAIL PROTECTED]> wrote: > > We've been having many strange errors message in our logs and several > synchronization errors on session objects (especially v

Re: OpenSessionInViewFilter configuration

2006-08-22 Thread Henri Dupre
Do you really need to turn it off? It shouldn't hurt to have it on even if you don't need an hibernate session. On 8/22/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: Hello there! I'm using OSIVF with spring in my app. I had it configured just like examples on the wiki: hibernateFi

Re: OpenSessionInViewFilter configuration

2006-08-22 Thread Vinicius Carvalho
Well I guess, I'm just worried about performance, those page will handle a few thousands of concurrent users, and they use ajax, we expect something like 500-700 simultaneous requests for the pages. Best regards On 8/22/06, Henri Dupre <[EMAIL PROTECTED]> wrote: Do you really need to turn it of

Re: Tapestry + Ajax help

2006-08-22 Thread Vinicius Carvalho
Working 12 hours a day, 7 days a week, under heavy pressure makes you do stupid things (but as Scott Adams says, every one is stupid). Sorry folks, was so desperate to get help that did not noticed what was happening: For my 3 problems: The number of Httpsessions and the number of invocations,

Re: new solution for concurrent requests

2006-08-22 Thread Patrick Moore
sounds like something that should be rolled into the tapestry code itself. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: OpenSessionInViewFilter configuration

2006-08-22 Thread hv @ Fashion Content
I have the same concerns, but for some reason few people care to make the creation and closing of a session depend on actual use. Relating it to the page name is a weak solution imo. It should be a concern handled strictly and transparently by the persistence framework (provided that you define t

Re: Why Howard choose testNG in tapestry test module

2006-08-22 Thread Jesse Kuhnert
Really? I didn't feel like TestNG was any harder to learn than junit...In fact it felt like it made more sense than the former ;) Like many things, junit4 is simply a response to TestNG. There is so much more going on. I think they also use it in a couple places at google. (maybe I'm wrong, but

Re: Async form in Tap4.1 does not work...

2006-08-22 Thread Jesse Kuhnert
They should be working on forms just fine. In fact, this form uses them here: http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=SDates . On 8/22/06, Denis Souza <[EMAIL PROTECTED]> wrote: The parameters are not implemented for Submit, but they already do exist in the

Re: Is there a way to render to a freestanding script or, outside of any context

2006-08-22 Thread Jesse Kuhnert
Good pointI'm not sure why I thought this would be back-compatible.. I'll make the change later today, though I should say anyone relying on global namespace resolution for their js will find that it probably won't work when trying to render their own components + script in XHR requests. (as

Re: Async form in Tap4.1 does not work...

2006-08-22 Thread Pedro Viegas
Got the bastard! It's a snicky little one! I also updated the last SNAPSHOT and the result are exactly the same. As Danis said, althought the Submit does not have the async parameters the form does and so this should work. I tried the workbench demo link Jesse provided but it behaves preciselly l

problem integration tapestry with servlets

2006-08-22 Thread Andrés Nates
We are using tapestry and hibernate, and our database connection was defined like the definition that is in the book "Enjoying Web Development with Tapestry" Chapter 14 Using Hibernate. now we have a simple java servlet (that consults the database) it returns an xml data, but the connection was

Re: new solution for concurrent requests

2006-08-22 Thread Pedro Viegas
+1 I'm with Patrick. How 'bout it guys, maybe this could be Tap4.1 enhancement material? Do share Henri! :-) On 8/22/06, Patrick Moore <[EMAIL PROTECTED]> wrote: sounds like something that should be rolled into the tapestry code itself. -

RE: Async form in Tap4.1 does not work...

2006-08-22 Thread Denis Souza
It really is working. I don't get it though. I looked at the source code and changed my own code to look as much like it as possible so I could spot the problem. But still no ajax. This is the test I wrote: Where "val" is a String in the component's class. I

RE: Async form in Tap4.1 does not work...

2006-08-22 Thread Denis Souza
I tested on both IE6 and Firefox 1.5 with the same results on both: Workbench demo works, but my own code does not. :( -Original Message- From: Pedro Viegas [mailto:[EMAIL PROTECTED] Sent: terça-feira, 22 de agosto de 2006 19:19 To: Tapestry users Subject: Re: Async form in Tap4.1 does no

Re: Async form in Tap4.1 does not work...

2006-08-22 Thread Jesse Kuhnert
What happens when you clear your browser cache? On 8/22/06, Denis Souza <[EMAIL PROTECTED]> wrote: I tested on both IE6 and Firefox 1.5 with the same results on both: Workbench demo works, but my own code does not. :( -Original Message- From: Pedro Viegas [mailto:[EMAIL PROTECTED] Sent

Re: Async form in Tap4.1 does not work...

2006-08-22 Thread Jesse Kuhnert
I'm using FF 1.5.0.6 on windows as well... I develop on linux but still need a windows / mac box around to be fully compatible. (it's a pain in the ass) On 8/22/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: Got the bastard! It's a snicky little one! I also updated the last SNAPSHOT and the resu

Re: Async form in Tap4.1 does not work...

2006-08-22 Thread Pedro Viegas
Don't know how much is relevant but for what it helps here are the things I spotted diferent of my own test case witch as I had stated works on IE but not on FF. In the shell component I add the undocumented parameter: ajaxEnabled="true" In the updateComponent target I add the ID just in case als

Re: Async form in Tap4.1 does not work...

2006-08-22 Thread Pedro Viegas
That solved it Jesse! It really was the cache. Guess those handy old SNAPSHOT JS scripts were in the way... obvious now that you pointed out! :-D By the way... on the undesired windows extra box subject, have you thought about VMWare? I use windows at home (argh... have to have it, don't ask why)

Re: Async form in Tap4.1 does not work...

2006-08-22 Thread Jesse Kuhnert
Besides Josh, who I've apparently crippled with my radical body script change. (I think Norbert is affected as well.) Oops...Sorry guys...Will be done in a matter of hours.. :/ On 8/22/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: That solved it Jesse! It really was the cache. Guess those handy o

Re: Async form in Tap4.1 does not work...

2006-08-22 Thread Pedro Viegas
I don't envy you but we all sure admire and apreciate your efforts Jesse! ;-) Do go on... :-D On 8/22/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Besides Josh, who I've apparently crippled with my radical body script change. (I think Norbert is affected as well.) Oops...Sorry guys...Will b

Tap4.1 Autocompleter breaks when submited with no value

2006-08-22 Thread Pedro Viegas
If we use a form with an Autocompleter component and submit it without selecting a value from it's list, it issues the following error. String index out of range: 0 Stack Trace: - java.lang.String.charAt(String.java:558) - org.apache.tapestry.util.io.DataSqueezerImpl.unsqueeze( DataSqueez

Re: problem integration tapestry with servlets

2006-08-22 Thread hv @ Fashion Content
I think you need to provide a more detailed error output. "Andrés Nates" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] We are using tapestry and hibernate, and our database connection was defined like the definition that is in the book "Enjoying Web Development with Tapestry" C

Re: Tap4.1 Autocompleter breaks when submited with no value

2006-08-22 Thread Jesse Kuhnert
JIRA please.. On 8/22/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: If we use a form with an Autocompleter component and submit it without selecting a value from it's list, it issues the following error. String index out of range: 0 Stack Trace: - java.lang.String.charAt(String.java:558)

Re: Is there a way to render to a freestanding script or, outside of any context

2006-08-22 Thread Jesse Kuhnert
This is deploying now, should be available in the next few minutes. On 8/22/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Good pointI'm not sure why I thought this would be back-compatible.. I'll make the change later today, though I should say anyone relying on global namespace resolution

Re: Tapestry + Ajax help

2006-08-22 Thread hv @ Fashion Content
I would bet on Tap4.1(currently alpha) if I was in your shoes when it comes to Ajax. 1) The Tap4 part is likely to be fairly stable. 2) The Ajax part is based on Jesses prior work on Tacos 3) It seems to be progressing at a fast pace. I don't know your application, but I would get the non session

Re: Noscript check

2006-08-22 Thread hv @ Fashion Content
Wouldn't you just use ... markup .. in the template? "Peter Dawn" <[EMAIL PROTECTED]> skrev i en meddelelse news:[EMAIL PROTECTED] > guys, > how can i implement the noscript tags within my web app. i mean i use > javascript all over my app. but just in case the user does not have > javascript ena

Re: Tap4.1 Autocompleter breaks when submited with no value

2006-08-22 Thread Pedro Viegas
Done! https://issues.apache.org/jira/browse/TAPESTRY-1074 On 8/23/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: JIRA please.. On 8/22/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: > > If we use a form with an Autocompleter component and submit it without > selecting a value from it's list, it is

Re: Is there a way to render to a freestanding script or, outside of any context

2006-08-22 Thread Josh Long
thank you! (again, heh), Jesse! On 8/22/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: This is deploying now, should be available in the next few minutes. On 8/22/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > Good pointI'm not sure why I thought this would be back-compatible.. > > I'll mak

Re: Tapestry + Ajax help

2006-08-22 Thread Vinicius Carvalho
Thanks, I fixed some of the problems of the persistent :) Those new pages, really need to be persistent, it is the user login that is being held on the session ;) Thanks for the help, I really need a break, today I've worked 11 hours, and i got stuck three hours trying to deal with a problem with

Re: Noscript check

2006-08-22 Thread Peter Dawn
whereabouts in the template. i mean i can only do this if i am explicity using the

LinkSubmit in a form that itself is the result of some other ajax update doesnt work

2006-08-22 Thread Josh Long
I have a pager that moves results from 1 to 100, 10 at a time. the pager itself refreshes a section of the page which in turn has a for loop for th e10 results that are currently being navigated. The elements in for loop also each provide links which work via ajax (@Submit and async on the form)

Re: LinkSubmit in a form that itself is the result of some other ajax update doesnt work

2006-08-22 Thread Jesse Kuhnert
That sounds tricky. I can guess and tell you to turn on browser debugging but this sounds like it will be hard to do that way.. Can you provide me with a test case to reproduce with? (i mean attached to a jira ticket that I can download and run out of the box preferrably) On 8/22/06, Josh Long <

Re: Tapestry + Ajax help

2006-08-22 Thread Jesse Kuhnert
Don't forget...There's always time to stop and do things right if you "will it" . Just don't tell anyone why you didn't appear to do anything for a day or two. ;) (just kidding, I know pointy haired bosses don't always understand...) On 8/22/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: Tha

Tapestry (4.0.2) / Hivemind (1.1.1) in OC4J 10.1.3 - Dig a little bit more, anyone please give me a ladder to climb up

2006-08-22 Thread Vinicius Carvalho
Hello there! I still did not gave up OC4J 10.1.3 (well, I'd love to, but my boss wont let me). So, just to fresh-up memories, I get a nasty exception when I deploy my app on oracle AS: 06/08/22 23:23:51 java.lang.IllegalArgumentException: argument type mismatch 06/08/22 23:23:51 sun.reflect.Nativ

Re: LinkSubmit in a form that itself is the result of some other ajax update doesnt work

2006-08-22 Thread Josh Long
The funny thing is,I was JUST about to sent a note back explaining how the problem (in this evil case) cured itself: pager goes here ${result.company} / ${result.id}

Server side push for Tapestry 3

2006-08-22 Thread Peter Dawn
guys, has somebody implemented server side push using tap3. i am trying to implement that using frames. but i want to see a simple implementation (like perhaps a hello world) and then i want to build on it. any ideas. - To unsu

Re: Problem with Script and Border

2006-08-22 Thread Bastian Voigt
Andy, thanks for your reply. Replace with Yeah of course, That was just a typo in the e-mail :) The problem is still there ... my Tapestry 4.0.2 application uses a border component: -- ... blah ... ... blah ... -- The page

Re: Tapestry (4.0.2) / Hivemind (1.1.1) in OC4J 10.1.3 - Dig a little bit more, anyone please give me a ladder to climb up

2006-08-22 Thread Jan Vissers
To me this seems to be a classloading issue (again). Are you packaging commons-logging in you war/ear? Vinicius Carvalho wrote: Hello there! I still did not gave up OC4J 10.1.3 (well, I'd love to, but my boss wont let me). So, just to fresh-up memories, I get a nasty exception when I deploy my a