Re: How to let custom component participate in form submission

2018-11-06 Thread abangkis
Hi chris, thanks for the reply. On Sun, Nov 4, 2018 at 8:19 PM Chris Poulsen wrote: > > With a few exceptions, I would generally say that using @Persist in > components is a smell, instead pass the information as a parameter - Pages > are ultimately the things driving the components, they shoul

Re: How to let custom component participate in form submission

2018-11-04 Thread Chris Poulsen
uld happen in the page). Also if you find yourself needing page life-cycle callbacks in your component (e.g my component should do this on activate or similar, you are doing it wrong) It is hard to come up with something concrete based on the info provided, but I guess that if you realize how form

Re: How to let custom component participate in form submission

2018-11-01 Thread abangkis
. (it's part of page life cycle but not part of component rendering lifecycle?) Tried to implement it using Process Submission example from jumpstart (since it seems that's how you implement a component that contribute the value to form submission process). But still haven't got it w

Re: How to let custom component participate in form submission

2018-11-01 Thread Thiago H. de Paula Figueiredo
object to BeanDisplay while it renders, so this doesn't seem to be a problem with form submission at all, but a problem while rendering the page later. Failure reading parameter 'source' of component common/loan/ApplicationSummary:loanbundleedittabs2.beandisplay_0.loop: Parameter &#x

How to let custom component participate in form submission

2018-11-01 Thread abangkis
Hai guys, still working on my custom component. How do we let our custom component participate in form submission. Apparently there is no onPrepare hook for tapestry custom component. http://tapestry.apache.org/component-rendering.html. I'm reading http://jumpstart.doublenegative.c

Re: [5.4-beta-22] How to abort form submission ?

2014-11-25 Thread Thiago H de Paula Figueiredo
On Mon, 24 Nov 2014 20:52:32 -0200, Muhammad Gelbana wrote: Hello fellow tapestrians... Hi! Is there a way I can abort a form submission on the server side ? The reason I'm asking is that I have a form with numerous submit buttons and sometimes I only need to handle the "Selec

[5.4-beta-22] How to abort form submission ?

2014-11-24 Thread Muhammad Gelbana
Hello fellow tapestrians... Is there a way I can abort a form submission on the server side ? The reason I'm asking is that I have a form with numerous submit buttons and sometimes I only need to handle the "Selected" event for the submit button and abort the rest of the event h

Re: How to trigger form submission manually

2014-11-23 Thread Erich Gormann
OK, I will try. Thanks. Am 21.11.2014 19:21, schrieb Thiago H de Paula Figueiredo: On Fri, 21 Nov 2014 12:09:27 -0200, Erich Gormann wrote: Hi Thiago, Hi! thanks, but no, I'm not using value change events only, but action link events also. You are right, that some lines of js code wil

Re: How to trigger form submission manually

2014-11-21 Thread Thiago H de Paula Figueiredo
On Fri, 21 Nov 2014 12:09:27 -0200, Erich Gormann wrote: Hi Thiago, Hi! thanks, but no, I'm not using value change events only, but action link events also. You are right, that some lines of js code will be sufficient to trigger the submission of the surrounding form, In this case, I

Re: How to trigger form submission manually

2014-11-21 Thread Erich Gormann
Hi Thiago, thanks, but no, I'm not using value change events only, but action link events also. You are right, that some lines of js code will be sufficient to trigger the submission of the surrounding form, but the logic of my event handlers have to be performed BEFORE the form submissio

Re: How to trigger form submission manually

2014-11-21 Thread Thiago H de Paula Figueiredo
On Fri, 21 Nov 2014 11:23:13 -0200, Erich Gormann wrote: Dear all, Hi! So my idea was simple to trigger a from submission manually for instance from within my onValueChanged event handler, which is called automatically from the select field on a value change. The form submission

How to trigger form submission manually

2014-11-21 Thread Erich Gormann
elements already, they are lost after a zone refresh. So my idea was simple to trigger a from submission manually for instance from within my onValueChanged event handler, which is called automatically from the select field on a value change. The form submission seems the only way to update the

jquery events with ajax form submission of kaptcha code

2014-08-11 Thread John
I thought this problem was limited to dialogajaxlink but I see teh same thing now with ajax forms and jquery. The first time the form is used the submit event works, when it is rerendered it doesn't work the next time. In the example below the first time the forgot password process is started b

Re: Close modal dialog backdrop after ajax form submission.

2014-04-09 Thread Geoff Callender
Good idea. I'll add it soon. On 10/04/2014, at 12:15 AM, George Christman wrote: > Worked perfectly thanks. I'm also happy I finally got see see an example of > the addCallBack usage :) I don't recall ever seeing it on Jumpstart, but > might not be a bad example to add. > > > On Wed, Apr 9, 201

Re: Close modal dialog backdrop after ajax form submission.

2014-04-09 Thread George Christman
Worked perfectly thanks. I'm also happy I finally got see see an example of the addCallBack usage :) I don't recall ever seeing it on Jumpstart, but might not be a bad example to add. On Wed, Apr 9, 2014 at 8:53 AM, George Christman wrote: > Thanks Geoff, your absolutely correct. I think this is

Re: Close modal dialog backdrop after ajax form submission.

2014-04-09 Thread George Christman
Thanks Geoff, your absolutely correct. I think this is a more ideal solution. On Tue, Apr 8, 2014 at 8:00 PM, Geoff Callender < geoff.callender.jumpst...@gmail.com> wrote: > Is it wise to have the client-side close the modal before the server-side > has handled the submit? What if there's an err

Re: Close modal dialog backdrop after ajax form submission.

2014-04-08 Thread Geoff Callender
And you'll need hide-modal.js: define(["jquery", "bootstrap/modal"], function($) { // Hides a modal. return function(modalId) { var $modal = $('#' + modalId); if ($modal.length > 0) { $modal.modal('hide'); }

Re: Close modal dialog backdrop after ajax form submission.

2014-04-08 Thread Geoff Callender
Please disregard the answer below. Fat finger syndrome at work... On 09/04/2014, at 9:32 AM, Geoff Callender wrote: > Are you asking how to do this client-side without waiting for a server-side > response? > > If not, then you can do this... > > Add this to ModalContainer.java: > > public vo

Re: Close modal dialog backdrop after ajax form submission.

2014-04-08 Thread Geoff Callender
Is it wise to have the client-side close the modal before the server-side has handled the submit? What if there's an error? If you're happy to wait until onSuccess() server-side, then here's how I do it... Move your afterRender() stuff into ModalContainer and add a hide() method... public clas

Re: Close modal dialog backdrop after ajax form submission.

2014-04-08 Thread George Christman
Thanks Lance, attempting to figure it out now. On Tue, Apr 8, 2014 at 12:32 PM, Lance Java wrote: > I assume you could hook on to one of the clientside events published during > submit / validate > > http://tapestry.apache.org/5.4/coffeescript/events.html > -- George Christman www.CarDaddy.c

Re: Close modal dialog backdrop after ajax form submission.

2014-04-08 Thread Lance Java
I assume you could hook on to one of the clientside events published during submit / validate http://tapestry.apache.org/5.4/coffeescript/events.html

Close modal dialog backdrop after ajax form submission.

2014-04-08 Thread George Christman
Hi guys, I'm using the bootstrap modal component and I have a tapestry ajax form nested within it. When I submit the form I'm looking to close out the modal dialog box assuming no clientside validation errors ocure long with the backdrop. I have it working with the exception of closing out the back

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-10 Thread Bob Harner
Cool, thanks! I'm starting to build up some content for 5.4 documentation updates, and all this goes in there. On Sun, Mar 10, 2013 at 9:36 PM, Steve Eynon wrote: > Yeah, sometimes quick fixes, well, aren't! > > But cool. As you're using Zones I'll mention another trick... > > If you put the eve

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-10 Thread Steve Eynon
Yeah, sometimes quick fixes, well, aren't! But cool. As you're using Zones I'll mention another trick... If you put the event handler on the document, or some parent element that doesn't get updated, then you don't have to re-apply the event handler on every zone / ajax update. e.g. the followin

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-10 Thread Bob Harner
Steve, Yeah, I hadn't gotten around to switching this code to unobtrusive JavaScript yet and was hoping for a quick substitute. Your code did the trick, it works perfectly. Of course, I'll still need to adjust the module to set up a additional event handlers for other events, but I guess I can f

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-10 Thread Steve Eynon
Oh, I see - you have inline javascript in the onchange handler. I don't think that's going to work - you need to wrap the element in T5s core DOM which is defined by RequireJS: http://people.apache.org/~hlship/t5api/coffeescript/t5-core-dom-prototype.html Do this instead: /META-INF/modules/formS

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-10 Thread Lenny Primak
; -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Triggering-a-form-submission-via-JavaScript-in-5-4-alpha2-tp5720381p5720404.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > ---

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-10 Thread Lance Java
You need to fire the "click" event on the submit button, not "submit". -- View this message in context: http://tapestry.1045711.n5.nabble.com/Triggering-a-form-submission-via-JavaScript-in-5-4-alpha2-tp5720381p5720404.html Sent from the Tapestry - User mailing list a

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-10 Thread Bob Harner
Still no progress on this. I forgot to mention that this is with a zone. @Lance: I rendered a submit button (not hidden, for now): and then The JavaScript console shows the 'onchange executing." output but nothing else happens (and no errors). @Steve Tried this.form.fire("submit"), wit

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-09 Thread Steve Eynon
Try this: this.form.fire("submit") I've not tried it, but I was looking at: http://people.apache.org/~hlship/t5api/coffeescript/forms.html Steve. --- "If at first you don't succeed, so much for skydiving!"

Re: Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-09 Thread Lance Java
You could render a hidden submit button and fire the click() event on it -- View this message in context: http://tapestry.1045711.n5.nabble.com/Triggering-a-form-submission-via-JavaScript-in-5-4-alpha2-tp5720381p5720383.html Sent from the Tapestry - User mailing list archive at Nabble.com

Triggering a form submission via JavaScript in 5.4-alpha2

2013-03-09 Thread Bob Harner
Has anyone figured out how to trigger a form submission using JavaScript in Tapestry 5.4? In 5.3 I was able to do this: this.form.fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT) but that does nothing under 5.4. - To unsubscribe

Re: Tree and Form submission to Zone problem

2012-10-25 Thread Nicolas Bouillon
gt; Hi, >>> >>> We have got a problem with the Tree component. >>> >>> In our tree element, we want to have a form included to allow to add a >>> new child to the current element. We have used the p:label attribute >>> to customize the render

Re: Tree and Form submission to Zone problem

2012-10-25 Thread Nicolas Bouillon
d a form >> inside, which must submit in XHR to a zone. >> >> The problem all but the last item on the tree triggers a plain old >> form submission with a full reload. >> The last item trigger a XHR submit but for all the displayed items in >> the tree at the time th

Re: Tree and Form submission to Zone problem

2012-10-25 Thread Nicolas Bouillon
l but the last item on the tree triggers a plain old > form submission with a full reload. > The last item trigger a XHR submit but for all the displayed items in > the tree at the time the page loads (so not taking into account the > dynamically expanded elements). > > If you l

Tree and Form submission to Zone problem

2012-10-22 Thread Nicolas Bouillon
to a zone. The problem all but the last item on the tree triggers a plain old form submission with a full reload. The last item trigger a XHR submit but for all the displayed items in the tree at the time the page loads (so not taking into account the dynamically expanded elements). If you look at

Re: T5.2: How to block UI and disable double click upon form submission?

2012-07-13 Thread Lenny Primak
In the flowlogix tapestry library: http://code.google.com/p/flowlogix/wiki/TapestryLibrary There is. DisableAfterSubmit mixin that can be used to disable a button after form submission. On Jul 13, 2012, at 9:15 AM, David Canteros wrote: > If the form is inside a zone you can try the &q

Re: T5.2: How to block UI and disable double click upon form submission?

2012-07-13 Thread David Canteros
--- David Germán Canteros 2012/7/9 Thiago H de Paula Figueiredo > On Mon, 09 Jul 2012 15:45:15 -0300, wesleywj2 > wrote: > > Hi, >> > > Hi! > > > I wondered how do i block the UI when user click/double click the submit >> button upon form submis

Re: T5.2: How to block UI and disable double click upon form submission?

2012-07-09 Thread Thiago H de Paula Figueiredo
On Mon, 09 Jul 2012 15:45:15 -0300, wesleywj2 wrote: Hi, Hi! I wondered how do i block the UI when user click/double click the submit button upon form submission? The exact same way you'd do it in any HTML and JavaScript webapp. I know you're asking about somethi

Re: T5.2: How to block UI and disable double click upon form submission?

2012-07-09 Thread Lance Java
Geoff has a ClickOnce mixin example in jumpstart http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/creatingmixins1 -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-How-to-block-UI-and-disable-double-click-upon-form-submission-tp5714365p5714370.html

T5.2: How to block UI and disable double click upon form submission?

2012-07-09 Thread wesleywj2
Hi, I wondered how do i block the UI when user click/double click the submit button upon form submission? T5 has any UI block script to help out? please advice -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-How-to-block-UI-and-disable-double-click-upon-form

Re: Avoiding double form submission at server side

2010-12-21 Thread Thiago H. de Paula Figueiredo
On Tue, 21 Dec 2010 14:37:56 -0200, Matias Blasi wrote: Hi! Hi! I was trying with a persistent flag boolean onPrepareForSubmit() { return !this.processing; } Object onSuccess() { this.processing = true; // do stuff this.processing = false; return this; } I was disapointed w

Avoiding double form submission at server side

2010-12-21 Thread Matias Blasi
Hi! I'am researching about the best way to avoid the double form submission at the server side. I was trying with a persistent flag boolean onPrepareForSubmit() { return !this.processing; } Object onSuccess() { this.processing = true; // do stuff this.processing = false; return

Re: Ajax form submission, formfragments and wizards

2010-12-21 Thread Richard Hill
Hi Thiago, Thanks for the info, most helpful. Cheers. On Tue, 2010-12-21 at 12:56 -0200, Thiago H. de Paula Figueiredo wrote: > On Tue, 21 Dec 2010 12:21:05 -0200, Richard Hill > wrote: > > > Hi, > > Hi! > > > I'm trying to build a simple wizard - a 5 step process. I've been > > looking

Re: Ajax form submission, formfragments and wizards

2010-12-21 Thread Thiago H. de Paula Figueiredo
On Tue, 21 Dec 2010 12:21:05 -0200, Richard Hill wrote: Hi, Hi! I'm trying to build a simple wizard - a 5 step process. I've been looking at formfragment - which I think I could use for each step of the process, with the appropriate fragment visible for each step. Do you need to submit

Ajax form submission, formfragments and wizards

2010-12-21 Thread Richard Hill
Hi, I'm trying to build a simple wizard - a 5 step process. I've been looking at formfragment - which I think I could use for each step of the process, with the appropriate fragment visible for each step. But how can I submit the data added to a fragment with Ajax? The submit button triggers a no

Re: Nested Form Submission

2010-11-08 Thread Thiago H. de Paula Figueiredo
On Mon, 08 Nov 2010 23:19:15 -0200, Taha Hafeez wrote: What i want is to create a full CRUD component where in a bean can contain a collection. For a simple collection, I can use a Palette but if the number of fields of the collection object to be displayed are more than one, i need a crud

Re: Nested Form Submission

2010-11-08 Thread Taha Hafeez
Figueiredo < thiag...@gmail.com> wrote: > On Mon, 08 Nov 2010 14:36:37 -0200, LLTYK wrote: > > How about just using form fragments, they let you selectively send parts >> of a form (basically partial form submission like you're talking about). I'm >> guess

Re: Nested Form Submission

2010-11-08 Thread Thiago H. de Paula Figueiredo
On Mon, 08 Nov 2010 14:36:37 -0200, LLTYK wrote: How about just using form fragments, they let you selectively send parts of a form (basically partial form submission like you're talking about). I'm guessing they may work for you (or may not, since it hides the inactive parts o

Re: Nested Form Submission

2010-11-08 Thread LLTYK
How about just using form fragments, they let you selectively send parts of a form (basically partial form submission like you're talking about). I'm guessing they may work for you (or may not, since it hides the inactive parts of the form) but I'm not sure what you are trying

Nested Form Submission

2010-11-07 Thread Taha Hafeez
Hi Being a component based framework, tapestry should have no problem with the "concept" of nested forms even though it is not allowed in HTML. Nesting of components is fundamental to a component based framework and not being able to do so compels you to think outside the concept of components and

Re: Ajax Form submission in T5.0

2010-08-27 Thread Pablo dos Reis
ok! 2010/8/27 Thiago H. de Paula Figueiredo > On Fri, 27 Aug 2010 10:16:22 -0300, Pablo dos Reis > wrote: > > Thank you Thiago, >> > > You're welcome! > > > I can submission by ajax using ActionLink and Zones, >> but I' m try upgrade T5 version before. >> I think it's better, because I would

Re: Ajax Form submission in T5.0

2010-08-27 Thread Thiago H. de Paula Figueiredo
On Fri, 27 Aug 2010 10:16:22 -0300, Pablo dos Reis wrote: Thank you Thiago, You're welcome! I can submission by ajax using ActionLink and Zones, but I' m try upgrade T5 version before. I think it's better, because I would like to use the componente AjaxFormLoop. You can try to get the s

Re: Ajax Form submission in T5.0

2010-08-27 Thread Pablo dos Reis
t; > We are studing the best way to upgrade the tapestry version. >> But while it isn't happens, I want know if there are a way to create a >> form submission using ajax in T5.0. >> > > Have you tried the same way as in 5.1 and 5.2? As far as I can remember, > Zone

Re: Ajax Form submission in T5.0

2010-08-26 Thread Thiago H. de Paula Figueiredo
On Thu, 26 Aug 2010 14:40:53 -0300, Pablo dos Reis wrote: Hi, Hi! I' m using T5.0.10 in my work. That's old . . . :) We are studing the best way to upgrade the tapestry version. But while it isn't happens, I want know if there are a way to create a form submissio

Ajax Form submission in T5.0

2010-08-26 Thread Pablo dos Reis
Hi, I' m using T5.0.10 in my work. We are studing the best way to upgrade the tapestry version. But while it isn't happens, I want know if there are a way to create a form submission using ajax in T5.0. -- Pablo Henrique dos Reis

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-12 Thread Katia Aresti Gonzalez
Thabks for d'acces :) Anyway, I'm happy to know tyou solved your problem, even if i dnd't help a lot in the end .) good luck with your tapestry project 2010/8/12 Josh Canfield > > Thank you very much!!! This is great. > > Now it works! > Great! > > > I'm sorry for badly written question > > N

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-12 Thread Josh Canfield
> Thank you very much!!! This is great. > Now it works! Great! > I'm sorry for badly written question No worries, I'm just lazy and don't want to have to think too hard ;) -- Josh On Aug 12, 2010, at 3:51 AM, Tornn wrote: > Hi Josh! > > Thank you very much!!! This is great. > Now it works

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-12 Thread Tornn
Hi Josh! Thank you very much!!! This is great. Now it works! I'm not sure if this is last issue on my way, but this current issue is solved. Thank you again. p.s. I'm sorry for badly written question. I will try harder to write good questions, which will save community time. 2010/8/12 J

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-12 Thread Tornn
Hi Katia Thank you for you attention. See answers below 12 августа 2010 г. 0:02 пользователь Katia Aresti Gonzalez написал: > I've checkout your code this afternoon in order to make it run. i didn't > have much time, i had thing to do. I uploaded war file for you: http://tasks-journal.googlecode

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-11 Thread Josh Canfield
Hi Karpushin Sergey. >     Don't use ${} notation within bound parameters. This can cause problems in other situations (casts the value to a string). >  The first problem is that tapestry cant automatically restore state > of ActivityJournalItem component. When I receive event onSuccess for > the

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-11 Thread Katia Aresti Gonzalez
I've checkout your code this afternoon in order to make it run. i didn't have much time, i had thing to do. can you tell me all about your development and runtime environment, please ? you are not using maven, are you using jetty to run the project ? tomcat ? do I need to configure something in pa

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-11 Thread Tornn
So.., no one can help to solve this problem? 2010/8/11 Tornn : > Hi Markus! > >  Thank you for your response! >  I tried to do that. But if I add id="something${counter}" where > counter is just a number it stops working at all. >  It renders ok. But buttons do nothing - they cannot submit the

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-10 Thread Tornn
Hi Markus! Thank you for your response! I tried to do that. But if I add id="something${counter}" where counter is just a number it stops working at all. It renders ok. But buttons do nothing - they cannot submit the form. If I generate ${counter} as it Tapestry does ({"", "_0", "_1", ...

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-10 Thread Katia Aresti Gonzalez
i meant to say ... You are redering one component instance "activityJournalItem" in your loop, three times the same component instance. inside this component a component zone with t:id activityAjaxZone. in the end you are rendering the same component all the time... as t:id are uniques 2010

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-10 Thread Katia Aresti Gonzalez
Another person had the same problem (differently and more simple) I copy the mail with a tapestry commiter answer :) Hi! if if call mutliple type my component like : > > > > You have two different instances (objects) of your count component. > > > Now you have one instance being r

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-10 Thread Katia Aresti Gonzalez
Hi, The second problem and I can't find out how to solve it - tapestry rerenders always first component instance ActivityJournalItem. If with loop we rendered 3 times, not depending what button was pressed always exactly first zone is rerendered. I didn't check your code google project, but I had

Re: T5.1 - Problem with form submission and zone rerendering

2010-08-10 Thread Markus Feindler
Each zone in a loop must have a unique id, so you have to create an id for example like this: ${zoneId} private int idcounter; public String getZoneId() { return "randomtext" + idcounter++; } Otherwise only the first zone will be updated. Use id instead of t:id for zones. Hi All! You are

T5.1 - Problem with form submission and zone rerendering

2010-08-10 Thread Tornn
Hi All! You are my last hope. I tried to resolve it by myself, I asked (http://tinyurl.com/2btkmzk) at stackoverflow.com but with no success yet. A little background. I'm very interested in tapestry (and currently considering using it in production) because it looks like very efficient (in all s

Re: Help with Form Submission and OnActivate Handler

2009-12-17 Thread Ashwanth Kumar
Thanks Ma, Its working now! Thanks a lot! - Ashwanth On Wed, Dec 16, 2009 at 9:29 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 16 Dec 2009 13:47:09 -0200, Ashwanth Kumar < > ashwanth.ku...@gmail.com> escreveu: > > > Sorry, >> >> I dont understand. I'm a newbie here.

Re: Help with Form Submission and OnActivate Handler

2009-12-16 Thread Thiago H. de Paula Figueiredo
Em Wed, 16 Dec 2009 13:47:09 -0200, Ashwanth Kumar escreveu: Sorry, I dont understand. I'm a newbie here. So, mind explaining what exactly i've to do? I've onPassivate() with no argument in my page too. Well, I haven't understood your problem, as I never had any problems with Form sub

Re: Help with Form Submission and OnActivate Handler

2009-12-16 Thread Ashwanth Kumar
Sorry, I dont understand. I'm a newbie here. So, mind explaining what exactly i've to do? I've onPassivate() with no argument in my page too. - Ashwanth On Wed, Dec 16, 2009 at 8:56 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 16 Dec 2009 13:08:59 -0200, Ashwanth K

Re: Help with Form Submission and OnActivate Handler

2009-12-16 Thread Thiago H. de Paula Figueiredo
Em Wed, 16 Dec 2009 13:08:59 -0200, Ashwanth Kumar escreveu: Hello, Hi! I've a small doubt! Why is that, when i've a onActivate (Integer) handler in a page, i'm not able to submit the form to the same page? You need to have an onPassivate() to return the pages's activation context. --

Help with Form Submission and OnActivate Handler

2009-12-16 Thread Ashwanth Kumar
Hello, I've a small doubt! Why is that, when i've a onActivate (Integer) handler in a page, i'm not able to submit the form to the same page? Is there any work around for this? - Ashwanth Kumar

Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
iner; @Inject private ComponentResources resources; @Inject private Request request; /** * Component event that triggers form submission; must be the name of REAL JavaScript * event (click, change, blur etc.) */ @Parameter(required=

Re: simulate form submission events without Submit component

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Nov 2009 20:00:22 -0200, Ilya Obshadko escreveu: Finally, I've managed to create generic-purpose mixin that can trigger form submit on any type of event and on any element within t:form component. It works using standard Tapestry mechanisms (similarly to original Submit compon

Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
Finally, I've managed to create generic-purpose mixin that can trigger form submit on any type of event and on any element within t:form component. It works using standard Tapestry mechanisms (similarly to original Submit component), supports multiple submit triggers within single form (analogous t

Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
On Wed, Nov 18, 2009 at 5:59 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 18 Nov 2009 11:22:03 -0200, Ilya Obshadko > escreveu: > > ... anybody? >> > > Thanks! I thought about something similar, but I was hoping that it's possible without such kind of workaround. --

Re: simulate form submission events without Submit component

2009-11-18 Thread Toby Hobson
I do something similar ... in fact I have created a mixin which I call AjaxDelegate ... it basically wires up elements so that a client side event on one component invokes a click event on a hidden submit button Toby 2009/11/18 Thiago H. de Paula Figueiredo > Em Wed, 18 Nov 2009 11:22:03 -0200,

Re: simulate form submission events without Submit component

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Nov 2009 11:22:03 -0200, Ilya Obshadko escreveu: ... anybody? I would add a non-visible submit button (not the Submit component, an ordinary ) and then invoke submit.click(). That's what worked with AJAX submissions for me. -- Thiago H. de Paula Figueiredo Independent Java,

Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
... anybody? On Tue, Nov 17, 2009 at 10:03 PM, Ilya Obshadko wrote: > I have a task that looks quite simple, but still have a problem > accomplishing it. > > Suppose you have a form with Select control, and onChange event on that > control should generate form submission event. &

simulate form submission events without Submit component

2009-11-17 Thread Ilya Obshadko
I have a task that looks quite simple, but still have a problem accomplishing it. Suppose you have a form with Select control, and onChange event on that control should generate form submission event. I've created a simple mixin for that. public class SubmitOnChange { @Environm

Re: Securing a the form submission, but no the page.

2009-09-15 Thread Carl Crowder
Perhaps you could move common stuff into a base class and have two pages - the first form page, and the submission page. Set the action to point at the secure one. There's probably a better way though. Richard Bolkey wrote: Hi all, Been trying to figure out the best way to hook up a means to

Securing a the form submission, but no the page.

2009-09-15 Thread Richard Bolkey
Hi all, Been trying to figure out the best way to hook up a means to secure the action of a form without securing the page itself (weird requirement I know, but alas). Overriding RequestSecurityManager doesn't seem to be the right approach because getBaseUrl() lacks any context other than the act

Best hook to intercept a form submission

2009-09-15 Thread Massimo Lusetti
Which is the best hook where to place code for acting and then firing a form submission without intefere with tapestry.js code? I mean... have you tried to submit a form from javascript when the form has the zone parameter? It is ignored and a full redirect-after-post cycle is done instead of an

Re: Unit test form submission

2009-09-02 Thread Ulrich Stärk
Have a look at the org.apache.tapestry5.IntegrationTests class in src/test/. Uli Sebastian Hennebrueder schrieb: Hello, Ulrich remind me to write a unit test for the patch I provided. https://issues.apache.org/jira/browse/TAP5-832 How to I properly test a form submission to submit no value

Unit test form submission

2009-09-02 Thread Sebastian Hennebrueder
Hello, Ulrich remind me to write a unit test for the patch I provided. https://issues.apache.org/jira/browse/TAP5-832 How to I properly test a form submission to submit no value and to test that the Hidden component throws an exception. Shall I use a PageTester http://tapestry.apache.org

Unit test form submission

2009-09-02 Thread Sebastian HennebrŸüder
Hello, Ulrich remind me to write a unit test for the patch I provided. https://issues.apache.org/jira/browse/TAP5-832 How to I properly test a form submission to submit no value and to test that the Hidden component throws an exception. Shall I use a PageTester http://tapestry.apache.org

Re: [T5] Form submission via POST and problem under HTTPS

2009-03-18 Thread Borut Bolčina
stants.PRODUCTION_MODE) boolean productionMode) { >     if (productionMode) { >     configuration.add(MetaDataConstants.SECURE_PAGE, "true"); >     } else { >     configuration.add(MetaDataConstants.SECURE_PAGE, "false"); >     } >     } > >

Re: [T5] Form submission via POST and problem under HTTPS

2009-03-18 Thread Borut Bolčina
rk. If I put @Secure on my page classes the form submission works under https in production environment. I know 5.1 introduced "configurable" @Secure but using snapshot version is not an option. What is wrong with the above method? Cheers, Borut 2008/11/13 natamah > > Eric, >

Re: specifying a non-Tapestry form submission URL ?

2008-12-14 Thread Ulrich Stärk
See here http://www.localhost.nu/svn/public/tapestry-spring-security-sample/src/main/webapp/LoginPage.tml for an example. Cheers, Uli Jean Luc schrieb: Hello, Is it possible to specify an explicit URL as the action for a form submission? What and why I need it: - I need a login form

specifying a non-Tapestry form submission URL ?

2008-12-14 Thread Jean Luc
Hello, Is it possible to specify an explicit URL as the action for a form submission? What and why I need it: - I need a login form to post directly to j_spring_security_check (because I still see problems integrating T5 and Spring Security 2.0.4, see below) - I cannot use a

Re: [T5] Form submission via POST and problem under HTTPS

2008-11-14 Thread Eric Ma
>> are >> not. You can substitute HttpHelper.isProduction() with some >> relevant code. >> >> There is also a way to secure individual pages by adding the @Secure >> notation but my local testing got >> disturbed when I used this notation. >> >> Hop

Re: [T5] Form submission via POST and problem under HTTPS

2008-11-13 Thread Keith Bottner
secure individual pages by adding the @Secure notation but my local testing got disturbed when I used this notation. Hope this helps. Mahesh. Eric Ma wrote: Running version 5.0.15. Form submission works well in HTTP. Under HTTPS, T5 complains "Error: Forms require that the request m

Re: [T5] Form submission via POST and problem under HTTPS

2008-11-13 Thread natamah
also a way to secure individual pages by adding the @Secure notation but my local testing got disturbed when I used this notation. Hope this helps. Mahesh. Eric Ma wrote: > > Running version 5.0.15. > > Form submission works well in HTTP. Under HTTPS, T5 complains "Error: >

Re: Form submission in Tap5

2008-11-01 Thread Howard Lewis Ship
Tapestry restricts the Form component, and form submissions, to using POST. On Fri, Oct 31, 2008 at 10:58 PM, Vinayak Borkar <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to build a simple GET based form to implement a search box. All > the examples (that I could find) seem to focus on forms us

Form submission in Tap5

2008-10-31 Thread Vinayak Borkar
Hi, I am trying to build a simple GET based form to implement a search box. All the examples (that I could find) seem to focus on forms using POST to create new entities. Is there an example to show simple GET based form requests? Thanks, Vinayak

Re: [T5] Form submission via POST and problem under HTTPS

2008-10-16 Thread Eric Ma
with the HTTP site the form action contains the fully-qualified URL, whereas the HTTPS site does not include the server and app names. Any clues, anyone? Eric Eric Ma wrote: > > Running version 5.0.15. > > Form submission works well in HTTP. Under HTTPS, T5 complains "Er

[T5] Form submission via POST and problem under HTTPS

2008-10-10 Thread Eric Ma
Running version 5.0.15. Form submission works well in HTTP. Under HTTPS, T5 complains "Error: Forms require that the request method be POST and that the t:formdata query parameter have values.". It seems 5.0.15 introduced a feature to block form GET. See https://issues.apache.org/j

T4: Tapestry.onsubmit does not block form submission.

2008-10-02 Thread leonelag
text: http://n2.nabble.com/T4%3A-Tapestry.onsubmit-does-not-block-form-submission.-tp1134914p1134914.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

  1   2   >