Re: editable contrib: Table -- java.io.NotSerializableException

2005-07-25 Thread alex
Forgot to tell : I use tapestry -beta 2 , jdk1.5 , eclipse 3.1 Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Some elementary file path questions

2005-07-25 Thread Alan Chandler
I am a newbie to both Java and Tapestry. As I want to learn both I have decided to create my first application using the framework. This will be a family tree application that I will want to make available to my family over the internet (so will require some [limited] security). My setup is li

editable contrib: Table -- java.io.NotSerializableException

2005-07-25 Thread alex
Hi! I have an issue with editable table and don't know if is my mistake... There is a simple editable table which uses a custom comparator.(is one of the examples from the wiki page) I'll post the exception and then the source files. The exception is thrown in class : [SerializableAdaptor ] m

Re: constructors and the initialize method

2005-07-25 Thread nat
Hello! I only now saw your helping replys, because my junk-mail filter almost deleted them :). I almost started to feel ashamed to ask such a stupid question that no one wanted to answer. Thank you for your help, I went for the late-binding version. Attila -- No virus found in this outgoing

RE: Re[2]: Border vs Tiles

2005-07-25 Thread Andrey Tkach
Hello Kevin, Yep, I see. I was pretty new to Tapestry, coming from Struts. The idea was ability to substitute not only one part of the Border component, i.e. have 2 or more tags like this to have login box reusable, for example. Now with growing experience in Tapestry I see it could be solved d

Adding components dynamically

2005-07-25 Thread Henrik
Hi I have a situation where I have a component that will display certain properties for a Section object. In addition it should display a list of items for that Section. The items in the list can be of type MultipleChoiceItem or TrueFalseItem. I would like from my html page to be able to specify t

ChartPage as a component

2005-07-25 Thread Howard Loo
I'm attempting to take the functionality contained in the ChartPage class from the Tapestry Workbench example and encapsulate it into a component instead of a page. (I'm using Tapestry 3.0.3.) My ChartComponent defines a parameter "chartData" of type Vector that contains the data used to generate

Re: Obviously a bug when upgrading from beta2 to beta3 ?solved

2005-07-25 Thread tapestrycn
solved,just get rid of "'" ok - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Fatal bug about "duplicate attributes" exception when upgrading to beta3

2005-07-25 Thread tapestrycn
Hi, In my test.html file, the following javascript snippet can work well: function activeButtons(form){ form.testSubmit.disabled=false; form.cancelSave.disabled=false; } function disableButtons(form){

Obviously there is a bug when upgrading from beta2 to beta3 ?

2005-07-25 Thread tapestrycn
Hi, The following snippet work well in tapestry beta2: .. . However in tapestry beta3,exception thrown as following: org.apache.hivemind.ApplicationRuntimeException [classpath:/com/test/tapestry/component/age/Age.jwc, line 61, column 45] at org.

Re: htmlunit VS jwebunit

2005-07-25 Thread jeff . gunther
Yes, you can use Grinder to perform some basic functional testing. However, Grinder simply cannot mimic the full fidelity of Internet Explorer or Firefox (i.e. when handling JavaScript, CSS, etc). In my opinion, Selenium is more suited for this type of web-based functional testing. Check it ou

Re: htmlunit VS jwebunit

2005-07-25 Thread Konstantin Ignatyev
> Thanks for the info. This does look quite > interesting, although I don't > know Python, so there'd be a bit of a curve there. > There is, but not that bad. J/Python is quite nice language and in case of Jython you do not have to have much of Jython code around: all the functionality can be k

Is there a bug for friendly url encoders?

2005-07-25 Thread tapestrycn
Hi, After configuring hivemind.xml with following: the method activateExternalPage(Object[] parameters, IRequestCycle cycle) is not working now,the problem comes also with beta3. ---

Re: Eclipse .page recognize as XML: Geoff?

2005-07-25 Thread Gregg D Bolinger
Ok, preferences: general -> editors -> file associations I made new associations. So that is that. But still interested in Spindle. :) On 7/25/05, Gregg D Bolinger <[EMAIL PROTECTED]> wrote: > Ok, long story for a simple question. I am a Sheriff at Javaranch.com. > Since mid 2003 we have bee

Re: htmlunit VS jwebunit

2005-07-25 Thread Konstantin Ignatyev
Do not know about Selenium, but Grinder works perfectly for me for functional testing (for example CRUD + Search functionality): 1. I write down test sceleton with TCPProxy http://grinder.sourceforge.net/g3/tcpproxy.html 2. Then change few Jython lines to do what I want, for example I use regexp (R

Eclipse .page recognize as XML: Geoff?

2005-07-25 Thread Gregg D Bolinger
Ok, long story for a simple question. I am a Sheriff at Javaranch.com. Since mid 2003 we have been trying to replace our Perl based UBB software with something running on J2EE. From day 1 I've urged the rest involved to roll our own from scratch. We've tried modifying other

SAXParseException when migrate to digester 1.7

2005-07-25 Thread Nugroho DS
Hi, My Project is use Tapestry 3.0.3 and Jasper Reports 1.0 , The problem is Jasper 1.0 depends on Digester 1.7. When I started my tapestry application, an exception was thrown like this: --- org.apache.tape

Re: htmlunit VS jwebunit

2005-07-25 Thread jeff . gunther
In my opinion, Grinder is more of a performance/load testing tool. However, the combination of Grinder and Selenium make a powerful testing suite. Konstantin Ignatyev <[EMAIL PROTECTED]> wrote on 07/25/2005 07:26:13 PM: > I suggest TheGrinder > (http://grinder.sourceforge.net/), which is very-

Re: htmlunit VS jwebunit

2005-07-25 Thread jeff . gunther
I'd highly recommend that you check out Selenium (http://selenium.thoughtworks.com/index.html). This is the best Open Source tool for functional testing. Since your tests run within Firefox or Internet Explorer, you don't run into the JavaScript limitations of a *unit tool. Kevin Menard <[EMAI

Re: htmlunit VS jwebunit

2005-07-25 Thread Kevin Menard
Konstantin Ignatyev wrote: > I suggest TheGrinder > (http://grinder.sourceforge.net/), which is very-very > nice full-featured wrapper around httpunit. > > Unit testing, black box testing, performance testing - > it does all. Thanks for the info. This does look quite interesting, although I do

Re: htmlunit VS jwebunit

2005-07-25 Thread Pablo Ruggia
I think HTMLUnit is more powerfull. I agree that HtmlUnit is more verbose, but you allways can write util methods to avoid that. You can replace: HtmlSubmitInput button = (HtmlSubmitInput)form.getInputByName("submitbutton"); HtmlPage page2 = (HtmlPage)button.click(); With: HtmlPage page2

Re: htmlunit VS jwebunit

2005-07-25 Thread Konstantin Ignatyev
I suggest TheGrinder (http://grinder.sourceforge.net/), which is very-very nice full-featured wrapper around httpunit. Unit testing, black box testing, performance testing - it does all. --- Kevin Menard <[EMAIL PROTECTED]> wrote: > Well, I hope this doesn't turn out as bad as > hibernate V

Re: Form processing question

2005-07-25 Thread Steven Wisener
I hesitate to use CSS to make up for a framework limitation. Sure it would work, but it just strikes me as wrong. --Steven On 7/25/05, Robert Zeigler <[EMAIL PROTECTED]> wrote: > Ah, then, that /does/ complicate things quite a lot. :) > what about using css to accomplish the trick? > > Name > Or

htmlunit VS jwebunit

2005-07-25 Thread Kevin Menard
Well, I hope this doesn't turn out as bad as hibernate VS cayenne ;-) I'm looking into unit testing my webapp and I'm trying to decide between these two. htmlunit seems to be more full- featured, but also way more verbose (looks like a lot of casting). jwebunit seems simpler to use, but l

Re: Form processing question

2005-07-25 Thread Robert Zeigler
Ah, then, that /does/ complicate things quite a lot. :) what about using css to accomplish the trick? Name Or something like that? If you use absolute positioning, then everything that comes below it will be shifted up as if it wasn't there... the feasibility of this depends a lot on how things a

Re: (off-topic) Another way to solve LazyInitializationException

2005-07-25 Thread Henri Dupre
> How is your solution different lazy=false or Hibernate.initialize()? (i must > confess i read it quite > fast) His solution reconnects automatically. Lazy = false is *very* different. It will load the whole object graph at each access. I'm not sure what initialize does... Henri. -

Re: Form processing question

2005-07-25 Thread Steven Wisener
Well, I simplified my example a bit. There are actually two forms on the page, both with the orderId hidden field. Also the first form isn't always rendered, since it is only available to users with administrative rights. I could certainly accomplish it with some hairy conditional logic. I think a

Re: (off-topic) Another way to solve LazyInitializationException

2005-07-25 Thread Alexandru Popescu
#: by Pablo Ruggia's words the mind was *winged* :# It's ok. But it's not my solution. It's hibernate solution. Hibernate comes with lazy initialization. The patch is to make it work when you have disconnected hibernate session and there are still lazy collections not initialized. I was tal

Re: Form processing question

2005-07-25 Thread Robert Zeigler
can't you just move your form and hidden component? So, instead of: You'd have: It's hard to say without seeing more information about your template, but, you can certainly put the form and hidden tags wherever they make the most sense on the page, and keep the rest of the form componen

Form processing question

2005-07-25 Thread Steven Wisener
My problem seems pretty simple. I've got an order/line item type situation. The order page links to the line item listing page with a DirectLink with the orderId as a parameter. The line item listing page has a form for editing each line item (with a ListEdit component). The line item form remembe

Re: (off-topic) Another way to solve LazyInitializationException

2005-07-25 Thread Pablo Ruggia
It's ok. But it's not my solution. It's hibernate solution. Hibernate comes with lazy initialization. The patch is to make it work when you have disconnected hibernate session and there are still lazy collections not initialized. On 7/25/05, Alexandru Popescu <[EMAIL PROTECTED]> wrote: > > #:

Re: (off-topic) Another way to solve LazyInitializationException

2005-07-25 Thread Alexandru Popescu
#: by Pablo Ruggia's words the mind was *winged* :# lazy = false is not a really solution. If you set lazy to false, hibernate always load the collections. You don't get LazyInitializationException, but you read database more than you have to. Hibernate.initialize() does the job. But you have

spring+tapestry

2005-07-25 Thread Lorenzo De Vito
What's the main difference between the couples hivemind-tapestry and spring-tapestry for solution in web-based application for business ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: IDEA project files

2005-07-25 Thread Ahmed Mohombe
I just want to let those interested to know that I've uploaded some IDEA project files to Tapastry's wiki, to help those of us who prefer an IDE other than the one Tapestry developers use (*cough* Eclipse *cough*). I'll try to keep these files updated with every tapestry release: http://wiki.apac

Re: (off-topic) Another way to solve LazyInitializationException

2005-07-25 Thread Pablo Ruggia
lazy = false is not a really solution. If you set lazy to false, hibernate always load the collections. You don't get LazyInitializationException, but you read database more than you have to. Hibernate.initialize() does the job. But you have to do it manually whenever you know that you may be w

RE: Strange exception in Tapestry 4.0 beta 2

2005-07-25 Thread Jeff Lubetkin
Thanks Howard. I had considered this and thought I had eliminated all traces of Tapestry 3.0. At some point, however, either Eclipse or Maven had squirreled away some .class files that seemed to have the old IPage signature. Deleting them has eliminated the problem. jeff -Original Message-

Re: Accessing the Visit object in a component

2005-07-25 Thread Howard Lewis Ship
In Tapestry 4.0: @InjectState("visit") // or public abstract Visit getVisit(); A more realistic example: @InjectState("registrationData") public abstract RegistrationData getData(); On 7/24/05, Nick Westgate <[EMAIL PROTECTED]> wrote: > Edward Scanzano yahoo.com> writes: > > > > > Hi all, >

Re: IDEA project files

2005-07-25 Thread Konstantin Ignatyev
Cool! --- Marcus Brito <[EMAIL PROTECTED]> wrote: > I just want to let those interested to know that > I've uploaded some IDEA project > files to Tapastry's wiki, to help those of us who > prefer an IDE other than the > one Tapestry developers use (*cough* Eclipse > *cough*). I'll try to keep t

IDEA project files

2005-07-25 Thread Marcus Brito
I just want to let those interested to know that I've uploaded some IDEA project files to Tapastry's wiki, to help those of us who prefer an IDE other than the one Tapestry developers use (*cough* Eclipse *cough*). I'll try to keep these files updated with every tapestry release: http://wiki.apach

Re: Tapestry, Eclipse, Spindle

2005-07-25 Thread Aleksandr Kravets
Got it. Thanks! Geoff Longman wrote: Aleksandr, Your question prompted me to do some checking. Spindle ships with docs you need but the latest build seems to be broken as the docs do not appear in Eclipse. I have added a bug. http://sourceforge.net/tracker/index.php?func=detail&aid=1244740&gr

Re: Testing TP4: @InjectObject problems

2005-07-25 Thread Chris Nelson
Hmm, I'm using the @InjectObject to inject spring beans and it's working great. Are you using the tapestry-spring.jar file from that sourceforge project referenced on the wiki? That's what I'm doing. Just dropped it in and it worked as advertised. --- Dennis Cieplik <[EMAIL PROTECTED]> wrote:

Re: Tapestry, Eclipse, Spindle

2005-07-25 Thread Geoff Longman
Aleksandr, Your question prompted me to do some checking. Spindle ships with docs you need but the latest build seems to be broken as the docs do not appear in Eclipse. I have added a bug. http://sourceforge.net/tracker/index.php?func=detail&aid=1244740&group_id=50321&atid=459328 the bug report

XTiles supprt for tapestry 4.0

2005-07-25 Thread Shalini Seth
Hi, I wanted to know if the Xtiles works with Tapestry 4. I did come across a thread that involved hacking some tapestry code. Is there a solution that invloves not changing tapestry? Thanks Shalini - To unsubscribe, e-mail:

Re: Strange exception in Tapestry 4.0 beta 2

2005-07-25 Thread Howard Lewis Ship
This smells of version conflict; make triple sure that you don't have Tapestry 3.x jars in the classpath. On 7/25/05, Jeff Lubetkin <[EMAIL PROTECTED]> wrote: > I'm trying to upgrade a small Tapestry 3.0.3 app to 4.0. My Home page > renders, but I'm now getting a very strange error on submission

Tapestry, Eclipse, Spindle

2005-07-25 Thread Aleksandr Kravets
Hi guys, Did anybody use Tapestry in Eclipse with Spindle? I can't build the simplest project :( What's the procedure to use Spindle? Is there a tutorial? thanks, Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: (off-topic) Another way to solve LazyInitializationException

2005-07-25 Thread Alexandru Popescu
#: by Pablo Ruggia's words the mind was *winged* :# I know, it has to be much more configurable. But hibernate user lists or forums are just so unfriendly. Every once I post a question about lazy initialization, they kind of get ungry. On 7/25/05, Henri Dupre <[EMAIL PROTECTED]> wrote: That'

Re: Do I need a 'portal' component?

2005-07-25 Thread Tapestry
Hi there Tapestry 4 has native (!) JSR 168 support. If you hadn't had a look at the spec, you better do, because I think all your requirements are fullfilled there. See e.g. http://developers.sun.com/prodtech/portalserver/reference/techart/jsr168/. Tapestry portlet pages are here: http://jaka

Re: (off-topic) Another way to solve LazyInitializationException

2005-07-25 Thread Pablo Ruggia
I know, it has to be much more configurable. But hibernate user lists or forums are just so unfriendly. Every once I post a question about lazy initialization, they kind of get ungry. On 7/25/05, Henri Dupre <[EMAIL PROTECTED]> wrote: > > That's a nice solution that hibernate patch... But I don

Re: (off-topic) Another way to solve LazyInitializationException

2005-07-25 Thread Henri Dupre
That's a nice solution that hibernate patch... But I don't feel confortable patching hibernate... Have you submitted your solution to the Hibernate JIRA? This behavior should be customizable through the hibernate configuration. Thanks, Henri.

Strange exception in Tapestry 4.0 beta 2

2005-07-25 Thread Jeff Lubetkin
I'm trying to upgrade a small Tapestry 3.0.3 app to 4.0. My Home page renders, but I'm now getting a very strange error on submission of my form: "Failure enhancing class com.zillow.web.pages.SearchResults: Unable to add method void finishLoad(org.apache.tapestry.IRequestCycle, org.apache.tapestr

Re: component packaging

2005-07-25 Thread Marcus Brito
Kevin Menard servprise.com> writes: > What do you propose should happen when two JARs set the same Tapestry- > Component-Library value? Hmm, that would be tricky. How about loading only the first one found, and issue warnings about any duplicate namespaces? A second option would be to detect th

RE: Tapestry4 contrib:Table format & sort

2005-07-25 Thread Joe Goldwasser
Hi, Thanks again for your assistance, it's invaluable... I implemented some dynamic tables which was rather easy using your comments. They render as expected, however I'm having an issue with sorting. I get an error when sorting because the tableView's source can't be evaluated properly. Here

Re: component packaging

2005-07-25 Thread Kevin Menard
On Jul 25, 2005, at 12:06 PM, Marcus Brito wrote: At runtime, Tapestry would load all MANIFEST.MF files, and check if any of them contains Tapestry-Component-Library attributes, and automatically add any libraries found to the current application. What do you propose should happen when tw

Re: component packaging

2005-07-25 Thread Robert Zeigler
Well... you /can/ upload components, download components, comment on them, and rate them at tassel... (http://equalitylearning.org/Tassel/app). There was a big discussion on this very topic not so long ago (~2 weeks?). You might also check out the tacos project on sourceforge. From the discussio

Testing TP4: @InjectObject problems

2005-07-25 Thread Dennis Cieplik
Hi! I'm evaluating TP4. Looks great! But I ran into a problem with the @InjectObject annotation. I could access the spring context via: So the setup of spring seems to be working. But I need to access it in the component/page class like: @InjectObject("spring:AssetDAO") public abstract AssetDA

Re: component packaging

2005-07-25 Thread Marcus Brito
Yunfeng Hou yahoo.com> writes: > At runtime, the tapestry servlet will create a context > class loader with all these archives included, and all > pages or components created by the servlet can have > the correct classpath. -1 to more classloader tricks. These component jars could be loaded from

Re: component packaging

2005-07-25 Thread Yunfeng Hou
Howard, Is that possible for us to have a site as http://eclipse-plugins.2y.net/eclipse/index.jsp, which will allow us upload componets, download them, comment on them, rate them. I believe that will encourage more people to participate in this great project. As every one knows the power of ta

Re: How do I create a javascript link?

2005-07-25 Thread Chris Chiappone
Awesome, Thanks!! On 7/25/05, Nick Westgate <[EMAIL PROTECTED]> wrote: > Hi Chris. > > Check out the contrib PopupLinkRenderer. > You can supply one of these to GenericLink etc. > > name="patientListLinkRenderer"> > > expression="'top=100,left=100,width=330,height=400,scro

Re: component packaging

2005-07-25 Thread Yunfeng Hou
That is right, I think these kind of packaging can affect us at dev time and run time. At dev time, we do not need add each library into tapestry.application, what we need is to put the archives into a well known directory, say, WEB-INF/components, or being configured as servlet parameter. Spindle

Re: How do I create a javascript link?

2005-07-25 Thread Nick Westgate
Hi Chris. Check out the contrib PopupLinkRenderer. You can supply one of these to GenericLink etc. Cheers, Nick. Chris Chiappone wrote: I basically need a GenericLink using a javascrip function: How do I get 'MyPageName' as

Re: How do I create a javascript link?

2005-07-25 Thread Chris Chiappone
Should have been more clear. Basically 'MyPageName' is the page I want the link to go to. On 7/25/05, Chris Chiappone <[EMAIL PROTECTED]> wrote: > I basically need a GenericLink using a javascrip function: > > > > How do I get 'MyPageName' as the parameter? > > -- > ~chris > -- ~chris --

Re: component packaging

2005-07-25 Thread Nick Westgate
Some kind of auto-discovery via the classloader you mean? Anything to help these tools would be great. I think greater ease of component sharing and Trails powered RAD would propel Tapestry into the market position it deserves. Cheers, Nick. Howard Lewis Ship wrote: Actually, he was making so

Re: Null model for a PackageSelection component?

2005-07-25 Thread Steven Wisener
Okay, I think I've figured it out. Since model is an "in" parameter, it is only valid during the render of the component. Looks like I'll have to access the model through an exposed property of the page rather than trying to access it through the component in my script file. --Steven On 7/25/05,

How do I create a javascript link?

2005-07-25 Thread Chris Chiappone
I basically need a GenericLink using a javascrip function: How do I get 'MyPageName' as the parameter? -- ~chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Null model for a PackageSelection component?

2005-07-25 Thread Steven Wisener
Using Tapestry 3.0.3, I'm trying to access the model property of a PackageSelection component in a script specification, but the PackageSelection is always returning null for its model. If I add a couple of OGNL debug statements to my page: Component is: Model is: I get: Component is: [EMAIL P

Re: component packaging

2005-07-25 Thread Howard Lewis Ship
Actually, he was making some suggestions to go beyond what Tapestry provides today, some of which would be useful to tools like Spindle and Palette, or even to distro communities like Tacos. On 7/25/05, Nick Westgate <[EMAIL PROTECTED]> wrote: > Hi. > > Howard's book "Tapestry In Action" explains

Re: component packaging

2005-07-25 Thread Nick Westgate
Hi. Howard's book "Tapestry In Action" explains how to do this in chapter 6.9 "Packaging components into libraries". Components are (1) packaged in a jar, (2) specified in a ".library" file, (3) included in the classpath and configured in the ".application" file, just like the contrib library (b

[ANNOUNCE] Tapestry 4.0-beta-3

2005-07-25 Thread Howard Lewis Ship
The third beta release of Tapestry 4.0 is now available. Tapestry is a component based web application framework that provides lots of functionality with minimal Java coding, and creates an environment that supports high levels of reuse. This is another a bug fix release, building on the beta-2 rel

component packaging

2005-07-25 Thread Yunfeng Hou
I am thinking about that if Tapestry could have a consistent component packaging mechanism, which will ease the development, the usage and tools such as spindle. Here's what I thought. 1. components should be packaged into a jar file, or, may be we can name it as tapestry archive(tar) :-) 2. compo

How to encode query parameters to friendly url.?

2005-07-25 Thread tapestrycn
Thank you Eli Doran ,It's working now. But could you tell me how to attach parameters for encoders including external,direct and extension service encoders? thank you tapestrycn - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: Different location for pages and page specifications

2005-07-25 Thread Enrico Donelli
For components it is the same See http://www.t-deli.com/ (thanks Mind Bridge!) "Collect pages using Ant" An Ant task that automatically updates your .application or .library files with the pages and components defined under a particular location. It allows you to create your pages in a folder

Re: Different location for pages and page specifications

2005-07-25 Thread Olasoji Ajayi
Does this mean that the only way to change the default location of a page is to put it in the application specification file? is there no way to use some pattern matching, for example in the case where you have over a hundred pages. and how about components? - Original Message - From:

Re: Different location for pages and page specifications

2005-07-25 Thread Enrico Donelli
Yes, simply give the location in the .application file. As an example: and the specification is searched in WEB-INF/pages/ dir Hope this helps. Enrico On 25/07/05, Aleksej <[EMAIL PROTECTED]> wrote: > Is there any way to change default location of pages and components > descriptions? > For e

Naming strategy for page files

2005-07-25 Thread Aleksej
By default Page specification file must be with *.page extenstion, but because it is XML file, I would be nice to have it extension as XML, something like Home.page.xml or like this. In *.application file there is a way to link page name with page specification, but how tapestry will know what tem

Do I need a 'portal' component?

2005-07-25 Thread Michael van Oers
Hi, I have been researching Tapestry for use in our project. We allow users to design a website using buildingblocks we provide (like portlets). We would like to use Tapestry for this project, but have a technical problem...(I have not used Tapestry before). We want to design our blocks as port

Re: How to configure my own url ServiceEndoder implementions?

2005-07-25 Thread Eli Doran
First, you have declared 2 encoders for the page service and 2 for the external service. Each "id" needs to be unique. Either use the version or the but not both. Second, the version you used won't work because the standard tapestry page/external service encoder needs to have the service nam