public abstract Boolean isQuery()

2007-03-13 Thread Murray Collingwood
Hi all Just trying to clarify my understanding. I had some code that looked like the following: @Persist public abstract Boolean isQuery(); The above code gives me an error, 'no implementation in class', and it took me a while but I finally figured the problem that the enhanced class was not id

Re: Record locking

2007-02-20 Thread Murray Collingwood
Wow - what a lot of responses. First a little more detail - use case (for example): Take a customer record, a basic record has previously been created and the customer has completed some forms so we are now wanting to complete all of the details about contact information, financial details, key a

Re: Record locking

2007-02-19 Thread Murray Collingwood
James Carman carmanconsulting.com> writes: > You can use optimistic locking. When the user submits and they have > outdated data, then you just merge the object's data with what is in > the data store and show it back to the user for them to confirm it. In an application where the user can spend

Re: Record locking

2007-02-18 Thread Murray Collingwood
Hi Jesse Kuhnert gmail.com> writes: > hibernate.org This is a rather simplistic answer, however I have been away and read the documentation and am not convinced that this is providing a method that will warn a user if somebody else if already updating a record. Even this example of pessimistic

Record locking

2007-02-18 Thread Murray Collingwood
Hi all Many years ago I wrote a web application that utilitised a proprietary database. The database supported record locking however it was not suitable for a web application. So, I wrote a facility I called 'Long Locks'. It required a timestamp field be added to each table. When a web user w

Re: Example tapestry 4.1 with ajax style calls

2007-02-16 Thread Murray Collingwood
Thank you once again - another perfect answer. > > // content > In deed the use of was not sufficient. I updated it as suggested and suddenly I began getting ajax responses as expected. Cheers mc - To unsubscribe, e-mail:

Re: Example tapestry 4.1 with ajax style calls

2007-02-16 Thread Murray Collingwood
Hi guys Great responses - both were exactly right. However both lacked any reference to a simple example to get Ajax calls working in Tapestry 4.1. If anybody has one I'd be keen to see it? I have watched this list long enough to know it is possible yet as much as I try I'm still not getting th

Re: My crap development environment

2007-02-15 Thread Murray Collingwood
Hi all Does anybody else find this hellishly confusing? It makes me want to throw everything out and go back to a nice simple DOS system and a Turbo C compiler! How much simpler it was back then... Okay, I downloaded the latest Eclipse system, copied my project into a fresh workspace. Saving a

Example tapestry 4.1 with ajax style calls

2007-02-14 Thread Murray Collingwood
Hi all I hunted for ages and haven't been able to find any simple examples of how to use the Ajax features of Tapestry 4.1. Sorry guys, it's just not obvious from the documentation how it works. You would think a basic @DirectLink with updateComponents and async=true would do it - nah, didn't wo

My crap development environment

2007-02-14 Thread Murray Collingwood
Hi all I have suffered long and hard under Eclipse and Tomcat. Is it really necessary for me to wait so long while a file is saved or an application is published??? Saving a .java file: 15 seconds Saving a .html file: 15 seconds Saving a .jwc file: 28 seconds Stopping the tomcat server: 2 secon

Re: Tapestry 4.1 startup errors

2007-02-14 Thread Murray Collingwood
Murray Collingwood gmail.com> writes: > FATAL exception raised: Could not load 'dojo.logging.Logger'; > last tried '__package__.js' > FATAL exception raised: Could not load 'dojo.logging.Logger'; > last tried '__package__.js' > F

Re: Tapestry 4.1 startup errors

2007-02-14 Thread Murray Collingwood
James Carman carmanconsulting.com> writes: > Have you tried maven2? It, along with its Jetty launcher for testing, > might help your situation. As for the error you're getting, are you > using tapestry-spring? Thanks James Adding the tapestry-spring.jar file to the other jars solved the proble

Tapestry 4.1 startup errors

2007-02-14 Thread Murray Collingwood
Hi all I'm getting this error: Error: An error occured processing annotation @org.apache.tapestry.annotations.InjectObject(value=spring:userService) of public abstract com.cabs.services.UserService com.cabs.pages.Home.getUserService(): Property 'beanFactory' of is null. I'm getting really frus

What's with the library directory structure?

2007-02-13 Thread Murray Collingwood
Hi all I'm in the midst of upgrading from Tap 4.0 to 4.1. I downloaded the Tapestry 4.1 binaries, however what I found was a directory called 'modules' with subdirectories for a whole bunch of things like, 'backport-util-concurrent', 'commons-beanutils', 'hivemind', 'hivemind-lib', etc etc. I'm

Re: IPropertySelectionModel - what they don't write in the documentation

2007-02-12 Thread Murray Collingwood
scott russell hotmail.com> writes: > > Hi Murray, > > An int to a short is fine, but an Integer doesn't translate to a Short. You > just need to change your methods in your selection model to return Short > objects, rather than Integer objects. > > regards, > Scott > Hi Scott I had tried

IPropertySelectionModel - what they don't write in the documentation

2007-02-12 Thread Murray Collingwood
Hello tapestry experts The API documentation for IPropertySelectionModel is lacking key information. In particular how the initial value is defined. What it should say is stuff like: "To set the initial value of the HTML select element you need to bind a value to this control. The type of valu

Re: Checkbox inside contrib:table (again)

2006-08-10 Thread Murray Collingwood
I didn't realise you could code the @Block outside the table... My mistake. Cheers mc On 10 Aug 2006 at 16:14, [EMAIL PROTECTED] wrote: > On Fri, Aug 11, 2006 at 08:26:51AM +1000, Murray Collingwood wrote: > > When you are using the contrib:Table you specify the columns

Re: Checkbox inside contrib:table (again)

2006-08-10 Thread Murray Collingwood
When you are using the contrib:Table you specify the columns parameter for each column to appear in your table. I think you understand this but you haven't mentioned much detail. So, in Robert's example there are 3 columns defined. By default each column will be populated with data from tha

Re: Contrib:Table problems with layout

2006-08-10 Thread Murray Collingwood
This sounds like an HTML issue. Tapestry components are added into standard HTML, they do not generate any different HTML than you have already specified. For example, you say the contribTable appears at the right of the page, perhaps you are specifying widths on your static tables - maybe yo

Re: Best Practise for Web Application Development

2006-08-08 Thread Murray Collingwood
Go to the source for all web usability information... http://www.useit.com Cheers mc On 8 Aug 2006 at 14:49, Peter Dawn wrote: > hi guys, > > i bring you the ultimate question, Whats the best practise for > tapestry web development? What I am implying is, how do we convince > our boses that

Re: I want my HTML *that* way

2006-08-04 Thread Murray Collingwood
Here's a simple example - an extra where I hadn't intended one. This could easily have been ignored (maybe a warning). org.apache.tapestry.parse.TemplateParseException Closing tag on line 82 is improperly nested with tag on line 3. location: context:/WEB-INF/pages/cart/Viewcart.html, line

RE: Streaming files from Tapestry

2006-07-30 Thread Murray Collingwood
Hi Ezra You asked: > I don't see how it relates to Tapestry. It relates to Tapestry because it appears on your faq. Option: a) Remove it from the faq (pretend people are asking this question, or that they are only misguided fools like myself) b) Fix the faq by providing a recommended soluti

RE: Streaming files from Tapestry

2006-07-28 Thread Murray Collingwood
Hi Ezra I did look at doing this as a work around, however it has one major flaw - it doesn't provide any security. In a CRM system, for example, if the document download link is http://webserver/MyOtherWebContext/images/01.doc then it's not going to take somebody long to realise they ca

RE: Overriding the maximum file upload size

2006-07-27 Thread Murray Collingwood
ilto:[EMAIL PROTECTED] > Sent: Wednesday, July 26, 2006 9:33 PM > To: Tapestry users > Subject: Re: Overriding the maximum file upload size > > It's the default value used by commons-fileupload from jakarta, which > this > functionality is based on. You may want to ask

RE: Streaming files from Tapestry

2006-07-27 Thread Murray Collingwood
at least that was > the case with tap 3. > > Cheers, > detlef > > -Original Message- > From: Murray Collingwood [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 27. Juli 2006 09:49 > To: tapestry users > Subject: Streaming files from Tapestry > > Hi al

Streaming files from Tapestry

2006-07-27 Thread Murray Collingwood
Hi all This faq page http://tapestry.apache.org/tapestry4/faq.html answers a common question people have about how to serve images or other binary files from a Tapestry application. The details are provided under: 2.6. How do I stream a file to the user from Tapestry? The example that f

Re: Overriding the maximum file upload size

2006-07-26 Thread Murray Collingwood
Hi Jesse Thanks for this info. Do you think 10kb is a useful default? This seems very small minded - what can you upload with 10kb Why not make the default limit 10mb? We can at least make it sound as though Tapestry is an industrial strength product ! (Ohhh, wonder if this will gener

Overriding the maximum file upload size

2006-07-26 Thread Murray Collingwood
Hi all I am using Tapestry 4.0.2 In the documentation on the 'Upload' component it mentions a default upload size of 10,000,000 (10 million) and in brackets "10kb". I'm not sure how that works. Which is correct? Assuming all my worst nightmares are coming true and that the limit is 10kb (

contrib:Table column not sorting

2006-07-19 Thread Murray Collingwood
Hi all If the displayed text comes from the current table the sorting is working fine. If however the displayed text comes from an object referenced from a connected table it doesn't work at all. In the following example if my variationText refers to 'option.desc' then the sorting works fi

Re: Table foreach component - Flashing row

2006-07-17 Thread Murray Collingwood
Your data should be ready to display when you enter each for-loop. If not then you are mixing too much logic into your interface. Consider moving the logic back into Java. With your data ready to display you can test your condition at the outset of the for-loop and set the appropriate backg

Re: Table foreach component - Flashing row

2006-07-17 Thread Murray Collingwood
What's the problem? You can test your condition at the beginning of the row, when writing the component, so that you generate something like or I'm sure you've got past this. You mention "when certain text is received", does this mean from user input in the midst of the table row or fro

Re: Navigational Menu

2006-07-17 Thread Murray Collingwood
Upgrade! ? On 18 Jul 2006 at 8:47, Peter Dawn wrote: > tried it, but noo. jscook is not compatible with tap3. looks like > i am gonna have to find a way for krysalis to work. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: DirectLink in TableValue

2006-07-17 Thread Murray Collingwood
I found this example somewhere, can't remember now... (I must keep bookmarking, I must keep bookmarking...) [from A.html] Edit Del [from A.page] That wasn't hard. The question you we

RE: Re: Generic application wide formats

2006-07-17 Thread Murray Collingwood
t very pretty. You could try the following. > > > > > > ognl:new > java.text.SimpleDateFormat(getMessages().getMessage('format_date')) > > > > > Shing > --- Murray Collingwood

Re: Generic application wide formats

2006-07-17 Thread Murray Collingwood
7;)) > > > > > Shing > --- Murray Collingwood <[EMAIL PROTECTED]> > wrote: > > > Hi all > > > > I'm a little new to Tapestry so I may be missing > > something, happy for anybody to point me in > > the right direction. I&

Re: Template header DOCTYPE

2006-07-17 Thread Murray Collingwood
I downloaded the source of these projects just to have a look - I wasn't into running JBoss (fear of the unknown), so I've never seen them run either. I started with this tutorial from John Reynolds: http://weblogs.java.net/blog/johnreynolds/archive/2004/10/tapestry_compon_1.html There's lots

Re: Template header DOCTYPE

2006-07-17 Thread Murray Collingwood
table? > > > > Header 1 > Header 2 > Header 3 > > > > something > to put > somewhere here > > > Data info 1 > Data info M > Data info 3X > > > > Footer > > > > >

Re: Template header DOCTYPE

2006-07-17 Thread Murray Collingwood
For a select control use SelectionModel to pass the options to your component. Then you don't need any @For loop in your html. In your table component you could code your Tapestry on the statement. eg Cheers mc On 17 Jul 2006 at 11:13, Blackwings wrote: > Hi, > > I noticed something i

Re: Navigational Menu

2006-07-17 Thread Murray Collingwood
Dump Krysalis and use JS Cook Menu. It is much easier to customise and also allows better integration with your java code for generation. I tried Kysalis initially but then I wanted to show different options for different users - it was very difficult to customise. I then tried JS Cook Men

Generic application wide formats

2006-07-17 Thread Murray Collingwood
Hi all I'm a little new to Tapestry so I may be missing something, happy for anybody to point me in the right direction. I'm currently running Tapestry 4.0.2 I want to standardise my date format for the entire application to dd/MM/. I decided that the best place to do this while allowin

Re: alternate row colours in foreach

2006-06-29 Thread Murray Collingwood
HI Peter The HTML needs to be almost identical to mineyou will notice in my span there is a parameter called: element="tr" this is the trick that adds the style stuff to the 'tr' tag during rendering. Sounds like you need to remove your 'tr' tag and live with my 'span' tag. Also, if it

Re: alternate row colours in foreach

2006-06-29 Thread Murray Collingwood
Hi Peter I've been struggling with this alternating row thing for the last couple of days and finally cracked it this morning. Here is what I have: [[Test.html]] Action Name Phone Mobile Address Notes 1 George Smith

HTML DTD for Tapestry

2006-06-04 Thread Murray Collingwood
ay solve the problem. I checked in http://jakarta.apache.org/tapestry/dtd/ however there were only DTDs for Tapestry and Script. The Tapestry one I have loaded although I think this only reflects the app.application XML file content. Cheers mc -- Murray Collingwood Focus Computing

Where are the Australian supporters?

2006-06-04 Thread Murray Collingwood
setup correctly. Is there anybody on this list from Brisbane that would like to give me some one-on-one training? Cheers mc -- Murray Collingwood Focus Computing p +61 415 24 26 24 http://www.focus-computing.com.au

Re: Running the Tapestry Tutorial

2006-06-04 Thread Murray Collingwood
Hi folks   I have updated the INFO.txt file that is downloaded with the tapestry-tutorial - would somebody like to review and update this back into the zip file, it may help somebody else following me...   Cheers mc-- Murray CollingwoodFocus Computingp +61 415 24 26 24http://www.focus-computing.com

Re: Running the Tapestry Tutorial

2006-06-02 Thread Murray Collingwood
d found a tools.jar v5.0 in my "Program Files" directory, copied all of the libs from this area into my v5.0 j2se library and it now compiles perfectly. Now I can start the tutorial properly... Cheers mc -- Murray Collingwood Focus Computing p +61 415 24 26 24 http://www.focus-computing.com.au

Re: Running the Tapestry Tutorial

2006-06-02 Thread Murray Collingwood
body....hhheeeellppppp... Cheers mc -- Murray Collingwood Focus Computing p +61 415 24 26 24 http://www.focus-computing.com.au

Re: Running the Tapestry Tutorial

2006-06-02 Thread Murray Collingwood
loaded J2SE 1.5.0_07 yet still this problem remains. Is there something I've forgotten or missed Cheers mc -- Murray Collingwood Focus Computing p +61 415 24 26 24 http://www.focus-computing.com.au

Running the Tapestry Tutorial

2006-06-01 Thread Murray Collingwood
must be missing something basic - somebody please help. Cheers mc -- Murray Collingwood Focus Computing p +61 415 24 26 24 http://www.focus-computing.com.au

IDE selection

2006-06-01 Thread Murray Collingwood
most popular IDE among Tapestry developers? Are there any popular Eclipse add-ons that I should install? TIA mc -- Murray Collingwood Focus Computing p +61 415 24 26 24 http://www.focus-computing.com.au