Re: how to wrap tapestry.services.FactoryServices?

2006-11-24 Thread Francesco Degrassi
The following snippet of tapestry.services.xml (from Tapestry-framework-4.1.jar) suggests that to override the factory services you should add services with the same ID of the ones you want to override to the configuration point tapestry.services.ApplicationServices. Maybe an interceptor is more

Adding rows with javascript

2006-11-24 Thread jiju
Hi All, I have created a contact table(each row contains a Textfield) from a collection using forEach loop now i have added one more contact using javascript submit the form but the new contact is not getting added to the collection but still i can MODIFY the existing contacts anybody know

2nd try: ajax updating components inside a For

2006-11-24 Thread Ron Piterman
Hi all, I have a simple For loop which iterates over some object. the objects are all rendered to DirectLinks. When a DirectLink-listener is called, the clicked Item should change to edit view and render a Form instead of the Link. When the form is submitted, the item should render again to the

Re: Adding rows with javascript

2006-11-24 Thread Karthik N
tapestry is not aware of your new form fields. if you use firebug you'll find that these fields don't figure in the hidden field that tapestry uses to keep track of its meta-info used for render/rewind. one way to solve this problem is to use Tacos and make an Ajax call. another way is to look

Re: Adding rows with javascript

2006-11-24 Thread jiju
Tacos Ajax call seems a good solution, but these hidden fields also needed to be updated using updateComponents ? and one more query, is HTTPRequest available in page class ? karthik.nar wrote: tapestry is not aware of your new form fields. if you use firebug you'll find that these

Re: Adding rows with javascript

2006-11-24 Thread Karthik N
On 11/24/06, jiju [EMAIL PROTECTED] wrote: Tacos Ajax call seems a good solution, but these hidden fields also needed to be updated using updateComponents ? No need and one more query, is HTTPRequest available in page class ? get it through the cycle in the listener

Re: Adding rows with javascript

2006-11-24 Thread Andrea Chiumenti
If you are looking for an edit grid I'm developing one @ www.jfly.org. You'll find it into the svn. Since I'm alone and working on another project I'm on it on my spare time. Anyway I think I'll have an alpha version in the next week, after I'll solve some problems with MSIE hell. Kiuma On

Dynamic Working with Tapestry...

2006-11-24 Thread Skorpien126
Hi... I´ve another Post, describing the same problem. In my eyes it is one the things which should be solved more than one times. So I will give a whole describtion about what I want. OK... i have ca 30 tables each one, holding information about 1 product. Lets say one table holds information of

Re: MultipleComponents Submit

2006-11-24 Thread Skorpien126
Ahh damn... my fault. I thought the they mean the standart contrib-libary. I´ll check it out. Thanks... ^^ Dennis Sinelnikov wrote: Did you get Tapestry-Prop library? -Dennis Skorpien126 wrote: I´m not sure if I can add Components dynamicly. I try to add several SubComponents with a

Re: Dynamic Working with Tapestry...

2006-11-24 Thread Ron Piterman
There are some approaches to that problem, one approach would be to use the parameter binding for that: The component gets a paraemter from its container, and is responsible to update the parameter. Say you have a property on your page/container component: public Data getData() {...} public

Re: how to wrap tapestry.services.FactoryServices?

2006-11-24 Thread Ron Piterman
I don't get exactly what you want to do by wrapping. You can replace an implementation of a service by providing another implementation, but then the old one will not exist in the registry anymore. But it sounds more what you need is to intercept the services - take a look at hivemind

deploying .war file on tomcat

2006-11-24 Thread MattHouston
Hi everybody, I'm developping an application using Tapestry with Eclipse. I use Tomcat inside Eclipse to test my application. Now I wants to launch the project directly in tomcat using a .war file. When I launch the application, I have the following error (HTTP500), concerning libraries

Re: Dynamic Working with Tapestry...

2006-11-24 Thread Ron Piterman
If I get this right, there is some kind of iteration over objects inside the form component. When the form is submitted, the iteration will be performed again, this one updating the values. then you add an action binding to the submit, and persist the whole list of obejcts which were updated:

Autocompleter character encoding

2006-11-24 Thread Istvan Szucs
Hello! Am i newbie, and i have a question. Please help me. I use the tacos autocompleter component, in my web-app. The autocompelter source is a POJO (with two property, id and name). If i put some character on the page, the autocpleter send the search request to the page, and the request string

Re: How to active a page in @EventListener method?

2006-11-24 Thread Ron Piterman
don't know either, but have you tried getRequestCycle().activate( page )? Cheers, Ron Jun Tsai wrote: hi,all I find the eventListener can't active a page.such as @EventListener(elements = {PriceTypeField0,PriceTypeField1,PriceTypeField2}, events = onclick) public IPage doSomething(){

Re: how to wrap tapestry.services.FactoryServices?

2006-11-24 Thread Francesco Degrassi
Actually, as i understand it, if you contribute to tapestry.services.ApplicationServices, you can override a specific service used by tapestry with your own and still have in the registry the original provided by tapestry. e.g.: I want to override Home service so it uses my own HomeServiceWrapper

Re: how to wrap tapestry.services.FactoryServices?

2006-11-24 Thread Ron Piterman
Yes, thats probably a good way to do the wrapping... Cheers, Ron Francesco Degrassi wrote: Actually, as i understand it, if you contribute to tapestry.services.ApplicationServices, you can override a specific service used by tapestry with your own and still have in the registry the original

Re: Adding rows with javascript

2006-11-24 Thread Andrea Chiumenti
You are wrong using tables ;P try to replace the whole table or better a div that contains it, and not the row (tables are evil). On 11/24/06, jiju [EMAIL PROTECTED] wrote: Hi , I tried to create addRows using tacos:AjaxDirectLink, but that html table is not getting updated. if i will change

Re: tapestry-testng 1.0.0 SNAPSHOT source code

2006-11-24 Thread Stefan Esterer
hi, a small little example how to use tapestry-testng would be really great! i would help if I get one running... thx for your great work stefon KEGan wrote: Hi, Anyone knows where I can get the source code for tapestry-testng-1.0.0-20060919.184624-2.zip ?? This is the lastest release

Which Tapestry version to use ?

2006-11-24 Thread Cyrille37
Hello, Since 3 days I'm discovering Tapestry and some other frameworks (Spring2, Acegi, Hibernate3). Now I would like to start a first project for learning and practicing. So it's time for me to choose the Tapestry version I'll use for that project and then for the future real life project.

Re: Which Tapestry version to use ?

2006-11-24 Thread Daniel Tabuenca
How critical is your project? 4.1 is fairly stable and I would use it if it's not a very critical project. If you aren't going to be using Ajax features then perhaps it's better to stick with 4.0.2. On 11/24/06, Cyrille37 [EMAIL PROTECTED] wrote: Hello, Since 3 days I'm discovering Tapestry and

Re: Which Tapestry version to use ?

2006-11-24 Thread Andrea Chiumenti
And if you need Ajax and stable version go with Tapestry-4.0.2 + Tacos( http://tacos.sf.net) On 11/24/06, Daniel Tabuenca [EMAIL PROTECTED] wrote: How critical is your project? 4.1 is fairly stable and I would use it if it's not a very critical project. If you aren't going to be using Ajax

Re: Which Tapestry version to use ?

2006-11-24 Thread Cyrille37
Thanks for your help. Seems Ajax to be the difference... I thinks not at all ;o) I think I'll run with Tapestry 4.0.2 By the way, do you know open source project done with Tapestry 4.0.x ? I would like to have a look on a bigger project's structure than an tutorial/example. Cyrille

Re: Which Tapestry version to use ?

2006-11-24 Thread Andrea Chiumenti
Get tacos demo On 11/24/06, Cyrille37 [EMAIL PROTECTED] wrote: Thanks for your help. Seems Ajax to be the difference... I thinks not at all ;o) I think I'll run with Tapestry 4.0.2 By the way, do you know open source project done with Tapestry 4.0.x ? I would like to have a look on a bigger

Re: deploying .war file on tomcat

2006-11-24 Thread Ron Piterman
I know this from jboss, but may be it also applies to tomcat: Check if TOMCAT_HOME is pointing to the same installation of tomcat you acatually use. Cheers, Ron MattHouston wrote: Hi everybody, I'm developping an application using Tapestry with Eclipse. I use Tomcat inside Eclipse to test

Form Rewinding - losing component values !

2006-11-24 Thread sunilmanu
Hello Everyone, I have a FORM with some editor fields and an Image gallery implemented thr' Abstract component. When the user selects the Image, we do a reload of page. This causes losing Data in all the input fields. Since these are all part of same form I cannot group components into a Form

Re: Form Rewinding - losing component values !

2006-11-24 Thread Sam Gendler
If I understand you correctly, you have some input fields which aren't actually part of the form that gets submitted when the user clicks on the image? If that is the case, presumably you need to copy the values back out of the hidden fields and into your input fields when the page reloads. If

Re: AJAX and Internet Explorer

2006-11-24 Thread Sam Gendler
Interesting. I've seen this exact same behaviour in a little test app I wrote. In my case, I used a MultiplePropertySelection with a renderer that renders the component as a multiple select box. I get correctly sized select boxes, but the labels are all empty. I never bothered to investigate

@EventListener inside of a component

2006-11-24 Thread Mark Reynolds
I am trying to create a reusuable component that encapsulates the functionality of two related PropertySelection components. I placed an @EventListerner annotation on a method inside of my component class. public abstract class MySelection extends BaseComponent { @EventListener(events =

Re: @EventListener inside of a component

2006-11-24 Thread Mark Reynolds
After looking at this some more, it seems to me that listener methods can't be in components (that is, if a component is contained within another component, the container won't get the event, the page will). I think I was wrong about DirectLink and Submit. In any case, I put my @EventListener on

Re: @EventListener inside of a component

2006-11-24 Thread Jesse Kuhnert
No, it may very well be a bug. I wouldn't be surprised at least. I'm still busy trying to refactor/etc the For component to work under these dynamic conditions a little more friendlier but if a bug is filed I will have a much better chance of remembering. (whereas emails to this list are only

Updated component loses it's @EventListener

2006-11-24 Thread Mark Reynolds
Here is my latest issue: I am trying to use @EventListener to handle cascading dependencies in PropertySelections. Imagine three PropertySelections in a form, representing countries, regions, and cities respectively. When the user selects a country, the regions list is populated with appropriate