Re: Tapestry 5.25 autocomplete not working.

2011-04-07 Thread cablepuff
I found my problem. I had to put a parameter namespace block around it to get it working. I put it inside -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-25-autocomplete-not-working-tp4287751p4290071.html Sent from the Tapestry - User mailing list archive

T5.2 BindingPrefixCycle not thread safe

2011-04-07 Thread David Rees
http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle I notice that using the above code in T5.2 results in arbitrary results now on T5.2 if multiple requests are executing at the same time. It appears that the same CycleBinding ends up being used across requests. It seems that we'

Re: My Multi-file upload problem

2011-04-07 Thread Kalle Korhonen
Specifically for Tapestry, Eclipse and Tomcat: http://tynamo.org/Developing+with+Tomcat+and+Eclipse Kalle On Mon, Apr 4, 2011 at 10:54 PM, Amr Mohamed Mahmoud Hassanien wrote: > Hello there, > >               I am new tapestry, and everytime I read about tapestry I find > introduction says tha

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread Taha Hafeez
Yes, I think so Did you read this http://tapestry.1045711.n5.nabble.com/XHR-isXHR-shortcut-td3353416.html regards Taha On Thu, Apr 7, 2011 at 9:53 PM, joknroll wrote: > I'm starting with selenium now. I was starting wit

RE: Tapestry 5.25 autocomplete not working.

2011-04-07 Thread Guerin Laurent
Have you declare the autocomplete mixin on your textfield ? What say the logs when Tapestry enter into your method ? -Message d'origine- De : cablepuff [mailto:cablep...@gmail.com] Envoyé : jeudi 7 avril 2011 17:18 À : users@tapestry.apache.org Objet : Re: Tapestry 5.25 autocomplete not w

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread joknroll
I'm starting with selenium now. I was starting with testify to inject fake services. I see the @XHR with code.google.com/p/tapestry-addons/ , but I did'nt achieve to import it in my maven project. Do you think it can help me to do Graceful Degradation and continue with testify? -- View this mess

Re: Tapestry 5.25 autocomplete not working.

2011-04-07 Thread cablepuff
so here is my tml file. I follow and add @Log and even put if (LOG.isDebugEnabled()) { LOG.debug("calling loading of frameworks starting with {}", partial); } Are their anything missing? Are their samples i can see. I debug it in firefox, and I don't see any autocomplete css/js in

Re: How to use a BeanEditForm with a bean without knowing the bean class

2011-04-07 Thread Taha Hafeez
How are you specifying it in the template, Just a guess, it has to be model='model' not model='${model}' ... regards Taha On Thu, Apr 7, 2011 at 6:03 PM, selenar wrote: > Hi, > > I have tried to create a model for the bean edit from : > > > > In the java part : > public BeanModel getModel(){

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread Taha Hafeez
Sorry for mis-understanding your question... (Sometimes, my mind is just switched off :)) BTW even htmlUnit is very good, Selenium is very slow... I use PageTester for non-ajax unit testing. You can look at code.google.com/p/tapestry-addons/ I have used selenium for ajax-testing. You will find

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread joknroll
Thank you Paul and Taha, I'll look at the Graceful Degradation. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Testify-SetupRender-launched-instead-of-update-a-zone-tp4288081p4288699.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread Paul Field
Testify cannot run unit tests that rely on javascript - it is not simulating an entire browser. So your tests act more like a browser running with javascript turned off and you can't test AJAX functionality. However you can test that your page degrades well if there is no Javascript :-) You ca

Re: How to use a BeanEditForm with a bean without knowing the bean class

2011-04-07 Thread selenar
Hi, I have tried to create a model for the bean edit from : In the java part : public BeanModel getModel(){ BeanModel model = beanModelSource.createEditModel(objectClass, resources.getContainerMessages()); model.exclude(pkField); return model; } With ob

Re: slow page reload

2011-04-07 Thread Bryan Lewis
Woo-hoo, I found the culprit after you got me thinking about the classpath. The slow web-app project's .classpath had: That causes eclipse to do too much file-system thrashing during the build. For some reason (translation: too embarrassing to describe), several months ago I'd removed the a

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread joknroll
hum, I agree with you,it works :) But my problem concern the usage of tapestry testify to do unit testing on my component. My dummy case is to understand the behavior of unit test with testify to implement it in a bigger project. my dummy.t

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread Taha Hafeez
Ok, What I did was copy your code and it works for me.. So here is the code for you (Although there are a number of things I won't do your way!!) import org.apache.tapestry5.EventConstants; import org.apache.tapestry5.annotations.InjectComponent; import org.apache.tapestry5.annotations.OnEvent;

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread joknroll
Thanks to answer so quickly I tried: t:zone='myZone' instead of t:zone='myZone.clientId' but it changes nothing... For the ajax, if I trust the documentation of tapestry: "Binding the zone parameter will cause the form submission to be handled as an Ajax request that updates the indicated zone.

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread Taha Hafeez
Hi I was replying to "I just wanted to get back and test the new zone and not a entire new component." Yes @SetupRender is not called on a zone update, Are you sure it is an ajax update. Try t:zone='myZone' instead of t:zone='myZone.clientId' regards Taha On Thu, Apr 7, 2011 at 3:42 PM, jokn

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread joknroll
Maybe i'm wrong too , but if the form is linked with a zone, the @SetupRender of the conponent is not called? In my case, the @SetupRender initialize the value of my param "messageChangeWhenSubmit". When I submit, I change the value of this param and update the zone to apply the new value.. so if

Re: Modalbox Integration Example

2011-04-07 Thread Taha Hafeez
Thanks, you are right it will prevent any effect on the browser back button... regards taha On Thu, Apr 7, 2011 at 12:52 PM, Sigbjørn Tvedt wrote: > Hi Taha. > > Thank you for sharing the code. > > If I could suggest a improvement, I would recommend adding onClick="return > false;" to the gener

Re: Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread Taha Hafeez
Correct me if I am wrong but after submit you should be checking the document content that you receive. How does it matter if setupRender() is called ? regards Taha On Thu, Apr 7, 2011 at 3:06 PM, joknroll wrote: > Hi everyone, > I'm a recent user of tapestry, using tapestry 5.2.4 and testify 1

Tapestry Testify - SetupRender launched instead of update a zone

2011-04-07 Thread joknroll
Hi everyone, I'm a recent user of tapestry, using tapestry 5.2.4 and testify 1.0.3 through testNg. I found a lot of good advice on this forum, but now I have to write my own subject :) I want to test a component with this architecture: ${messageChangeWhenSubmit} In this case, t

RE: Tapestry 5.25 autocomplete not working.

2011-04-07 Thread Guerin Laurent
Hi, I have tested this morning with 5.2.5 version ans it work perfectly. Are you sure that your frameworkService method return something ? Try to add @Log on your onProvideCompletionsFromFrameworkName to see what it's happend. -Message d'origine- De : cablepuff [mailto:cablep...@gmail.c

Re: How to use a BeanEditForm with a bean without knowing the bean class

2011-04-07 Thread Alejandro Scandroli
Hi Have a look at this recent thread: http://tapestry.1045711.n5.nabble.com/Generic-beaneditorform-td4267477.html Alejandro. On Thu, Apr 7, 2011 at 9:30 AM, selenar wrote: > Hi, > > Thanks for the answer. > > In the Fetch.java file, I have a function getFetch that returns the object > given in

Re: How to use a BeanEditForm with a bean without knowing the bean class

2011-04-07 Thread selenar
Hi, Thanks for the answer. In the Fetch.java file, I have a function getFetch that returns the object given in the fetch component. The function is called when it is needed. The function: public Object getFetch(){ return current; } and current's declaration: @Property @Persist private

Re: Modalbox Integration Example

2011-04-07 Thread Sigbjørn Tvedt
Hi Taha. Thank you for sharing the code. If I could suggest a improvement, I would recommend adding onClick="return false;" to the generated link. Just change the line writer.element("a", "href", "#", "id", getClientId()); to writer.element("a", "href", "#", "id", getClientId(), "onCl