Re: "cancel" mode of submit component is not submit to server

2011-09-05 Thread Taha Hafeez
Hi Yohan, I prefer to use my own cancel button(using get instead of post) inspired(read copied/cheated/learnt) from the chenillekit's button. @Import(library = "cancel-form.js") public class Cancel implements ClientElement { /** * JavaScript id to be used. If id is not supplied, it will be

Re: "cancel" mode of submit component is not submit to server

2011-09-05 Thread Steve Eynon
Yay! I'm happy I'm not the only one who's noticed this! [T5.3-beta-1] Submit buttons with t:mode="cancel" do not submit the form http://tapestry.markmail.org/message/5yrkjtm2nfevear5 I to, would like someone in the know to confirm whether this is desired behaviour (I'm thinking it's not, but then

Re: Is it possible to perform form submit after being redirected via a loginform?

2011-09-05 Thread Joakim Olsson
You got it right. Then I would have to save all request parameters and re-populate the form when the user gets back to the page. My problem-case is when the session has terminated due to inactivity and then the bean in the session is lost as well. Maybe it's not possible in that case. Thanks, Joa

Re: "cancel" mode of submit component is not submit to server

2011-09-05 Thread Yohan Yudanara
oo sorry, I forgot to mention. I'm using Tapestry 5.2.6 On Tue, Sep 6, 2011 at 11:13 AM, Yohan Yudanara wrote: > Hi.. > > I want to use submit button which can bypass client validation. > Having read this documentation: > http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/c

"cancel" mode of submit component is not submit to server

2011-09-05 Thread Yohan Yudanara
Hi.. I want to use submit button which can bypass client validation. Having read this documentation: http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/Submit.html, I was trying to use Submit component with mode="cancel" like this:

Re: [t5.2.6]Generating zones within a loop, then updating some of them

2011-09-05 Thread Taha Hafeez
Hi Muhammad You can use ZoneUpdater for that. http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html So in your select you will have and Object onColumnUpdate(int widthIndex){ ... return columnZone.getBody(); } Object onRowUpdate(int heightIndex){ return rowZone.getB

Re: [ANN] exanpe-t5-lib : new Tapestry 5 library

2011-09-05 Thread Taha Hafeez
Cool !! Thanks for sharing. 2011/9/6 François Facon : > Very Nice work. > Felicitations. > François > > 2011/9/5 Muhammad Gelbana : >> Congrats !! >> >> Magnificent components, I love many of them :) >> >> On Mon, Sep 5, 2011 at 8:43 PM, Guerin Laurent wrote: >> >>> Hi everyone! >>> >>> >>> >>> W

Re: Is it possible to perform form submit after being redirected via a loginform?

2011-09-05 Thread nillehammer
Did I get it right? The user enters data into a form and submits. If he were logged in, you would forward to success page. But not being logged in you would like to do a round trip via login page and after sucessfull login forward to success page? You could store the values entered by the user in

Is it possible to perform form submit after being redirected via a loginform?

2011-09-05 Thread Joakim Olsson
Hi, I have a ComponentRequestFilter for handling access to pages in my application and if the user is not logged in I store the requested page (actually I store PageRenderRequestParameters or ComponentEventRequestParameters) in ApplicationStateManager and send the user to the requested page after

Re: How to inject a mock into a tapestry service?

2011-09-05 Thread Ernesto Arroyo
In case someone else is in this same problem, thanks to Igor for the solution: PD: the test is still without content, only the scheleton, but it works! I have a lot of work now, I do not manage very well with mocks :o) package .biz; import static org.easymock.EasyMock.createMock; import

Re: redirect-after-post messes with my StreamResponse

2011-09-05 Thread Martin Strand
In the log you posted, messages are being logged from an "onSubmit" method, but the code you posted has an "onSuccess" method with no logging statements. Are you sure the code you posted is ever reached? Can you put a breakpoint in your onSuccess method and see if it is being invoked? On M

Re: [ANN] exanpe-t5-lib : new Tapestry 5 library

2011-09-05 Thread François Facon
Very Nice work. Felicitations. François 2011/9/5 Muhammad Gelbana : > Congrats !! > > Magnificent components, I love many of them :) > > On Mon, Sep 5, 2011 at 8:43 PM, Guerin Laurent wrote: > >> Hi everyone! >> >> >> >> We are pleased to announce you the release 1.0.0 of our Tapestry 5 Library: >

Re: [ANN] exanpe-t5-lib : new Tapestry 5 library

2011-09-05 Thread Muhammad Gelbana
Congrats !! Magnificent components, I love many of them :) On Mon, Sep 5, 2011 at 8:43 PM, Guerin Laurent wrote: > Hi everyone! > > > > We are pleased to announce you the release 1.0.0 of our Tapestry 5 Library: > exanpe-t5-lib. > > > > This library aims to provide a full set of components ready

[ANN] exanpe-t5-lib : new Tapestry 5 library

2011-09-05 Thread Guerin Laurent
Hi everyone! We are pleased to announce you the release 1.0.0 of our Tapestry 5 Library: exanpe-t5-lib. This library aims to provide a full set of components ready for use and easy to integrate in any web application, as well as providing a new skin for some of the most popular Tapestry 5 nat

RE: Tapestry Testify with Tapestry 5.3 [I]

2011-09-05 Thread Paul Field
Classification: For internal use only Interesting - I tried rebuilding Testify against T5.3 over the weekend and it built fine (all tests passed). If it's simple to send me a patch so I can see what you changed, that would be great. If not, I will try to work it out from the zip you sent. Best

Re: StreamResponse and inPlace Grid question

2011-09-05 Thread cqasker
Thanks Joost, interesting, I will try your workaround as well and take a look at your proposed workaround. This should indeed save me a ton of time. -- View this message in context: http://tapestry.1045711.n5.nabble.com/StreamResponse-and-inPlace-Grid-question-tp4760076p4771433.html Sent from the

Re: StreamResponse and inPlace Grid question

2011-09-05 Thread cqasker
Thanks Taha -- I'll make a self running example to see if I can reproduce it. Been a little busy lately but I should have it sometime this week. Thanks again for taking a look. -- View this message in context: http://tapestry.1045711.n5.nabble.com/StreamResponse-and-inPlace-Grid-question-tp47600

Re: Eid Mubarak

2011-09-05 Thread Muhammad Gelbana
I just came from my vacation yesterday and saw this mail just now. It's nice from you to such this mail :) Eid Mubarak :)[?] On Wed, Aug 31, 2011 at 9:59 AM, nillehammer < tapestry.nilleham...@winfonet.eu> wrote: > And bon appetit ;-)) > > - > http://www.winfonet.eu > -- > View this message

Re: [t5.2.6]Generating zones within a loop, then updating some of them

2011-09-05 Thread Muhammad Gelbana
Sorry I forgot one more thing... Assuming a column will be updated due to a select value is changed, each cell in this column should have a specific attribute in it, changed to the new value of the select field. And the same story with rows. Each cell about to update in a row, needs to have a spe

[t5.2.6]Generating zones within a loop, then updating some of them

2011-09-05 Thread Muhammad Gelbana
Hi All, I've been trying to do this for some time now but nothing worked. I searched through this list and I still can't figure it out !! Here is my case, I draw a table using dimensions provided in the page activation context. So I can't predict how many rows or columns I may have. Each header i

Re: redirect-after-post messes with my StreamResponse

2011-09-05 Thread Taha Hafeez
Hi As the example that you have shared works for me, your issue may have something to do with your build setup. If you can create a sample webapp with this example and share it, I would try to troubleshoot it for you. On Mon, Sep 5, 2011 at 5:31 PM, hese <1024h...@gmail.com> wrote: > > nope, i

Re: [5.2.6] Advising the PageLoader Service

2011-09-05 Thread Steve Eynon
The following should list all services that you're able to advise (I just tried it on T5.3 but saw no ComponentAssemblerSource): @Advise @Match("*") public static void siteKeyPageCache(MethodAdviceReceiver receiver) { System.err.println(receiver.getInterface().getName()); } If you really

Re: redirect-after-post messes with my StreamResponse

2011-09-05 Thread hese
nope, i moved the class to another package, (util) and tried and that didn't work too. Same error. I guess I'll just go with returning the file during the reload. Thank you all for your help!! Really appreciate it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/redi

Re: [5.2.6] Advising the PageLoader Service

2011-09-05 Thread Thiago H. de Paula Figueiredo
On Mon, 05 Sep 2011 06:58:59 -0300, jack wrote: Hi All, Hi! I'm trying to advise the PageLoader service because we have some custom page caching requirements. It won't work. First, it's an internal service, so you shouldn't rely on it at all. Second, and most important, PageLoader just

Re: [5.2.6] Advising the PageLoader Service

2011-09-05 Thread jack
Hi Jens, Thanks for your suggestions but the caching I'm referring to is the inbuilt cache Tapestry uses for the ComponentAssemblers. Currently (or in 5.2.6) it caches these ComponentAssemblers based on classname and Locale. I need to cache these based on classname, locale and another-key. T

Tap question on SO

2011-09-05 Thread Richard Hill
Hi Chaps, Opportunity to promote T5 a bit: http://stackoverflow.com/questions/7306707/how-to-expose-an-api-to-a-tapestry-web-application - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands

Re: [5.2.6] Advising the PageLoader Service

2011-09-05 Thread Jens Breitenstein
Hi Jack! I wonder what kind of page data you want to cache which is not provideable by a service? a) why not using a spring singleton or a plain java static? b) You can bind a service implementation (without interface) in your app module and inject it to your page if you're not using a spri

Re: Form elements inside a component

2011-09-05 Thread Taha Hafeez
Hi You have to provide an encoder parameter for the loop as the loop is inside a form and PopupItem does not have a default encoder. On Mon, Sep 5, 2011 at 4:14 PM, bhorvat wrote: > Anyone? > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Form-elements-inside-a-com

Re: Form elements inside a component

2011-09-05 Thread bhorvat
Anyone? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Form-elements-inside-a-component-tp4749774p4770017.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

[5.2.6] Advising the PageLoader Service

2011-09-05 Thread jack
Hi All, I'm trying to advise the PageLoader service because we have some custom page caching requirements. I've tried the following but it doesn't seem to get invoked. Is it even possible to advise this service? If so can anyone tell me what I'm doing wrong? @Advise(serviceInterface = Com

Re: How to inject a mock into a tapestry service?

2011-09-05 Thread Igor Drobiazko
Check out the TestUtils [1] class. It used to create services for tests. Here is an example: IOrganizationDAO da0 = newMock(IOrganizationDAO.class); IPacoService service = TestUtils.create(IPacoService.class, "orgDao", dao); [1] https://builds.apache.org/job/tapestry-trunk-freestyle/javadoc/org/

Re: How to inject a mock into a tapestry service?

2011-09-05 Thread Ernesto Arroyo
Thanks, Yes it should be easy in "plain Java) but,... As far as I do not provide a constructor, Java will provide a default one for me. Because the default constructor will not create the dependency because is a private variable of the class I suposse Tapestry is doing an enhancement in the class