Re: FineUploader implementation?

2015-01-03 Thread Ray Nicholus
I’ll chime in as I’ve been maintaining Fine Uploader since mid-2012, and my employer uses it in a few of our products, each of which also use Tapestry. Our setup is fairly simple.  We register a servlet to handle any requests from Fine Uploader (such as the upload and delete requests for traditi

Re: onValidate get list of fields containing validation errors.

2012-10-01 Thread Ray Nicholus
You can't override any methods in that class as it has a final modifier. On Mon, Oct 1, 2012 at 8:18 AM, George Christman wrote: > Hi Lance, I'm seeing the following compiling error "cannot inherit from > final > ValidationTrackerImpl". Any thoughts? > > > > -- > View this message in context: > h

Re: Confirm mixin with form validation errors

2012-09-17 Thread Ray Nicholus
You should be using the on function instead of bind, in jquery 1.7+ On Sep 17, 2012 5:41 AM, "Taha Siddiqi" wrote: > Hi > > You are using tapestry-jquery and trying to access a prototype library > method. Try bind instead of observe > > regards > Taha > > On Sep 17, 2012, at 4:00 PM, ZKN __ wrote

Re: Ajax Upload for Tapestry

2012-09-15 Thread Ray Nicholus
igating the page source I found > this: > > > style="display:inline;color:transparent;background:transparent;border:0;height:1px;width:1px;" > id="uploads" type="text"> > > src="/readers-page/assets/tapestry/5.1

Re: Ajax Upload for Tapestry

2012-09-11 Thread Ray Nicholus
s: > > > style="display:inline;color:transparent;background:transparent;border:0;height:1px;width:1px;" > id="uploads" type="text"> > > src="/readers-page/assets/tapestry/5.1.0.5/spacer.gif"/> > > >

Re: Ajax Upload for Tapestry

2012-09-09 Thread Ray Nicholus
2. The only other option is for the upload library to set a more specific the content type based on the file extension. Even in this case you would need to formally identify the file server-side, since there is no guarantee that this type is correct. 3. You'll have to provide more details, such

Re: Flash file upload

2012-08-28 Thread Ray Nicholus
+1 ;-) On Tue, Aug 28, 2012 at 9:23 AM, Lance Java wrote: > Taha has blogged about integrating valums/file-uploader with tapestry > > http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/ > https://github.com/valums/file-uploader > > > > -- > View this message in context: > http://tapest

Re: javascript component questions

2012-08-20 Thread Ray Nicholus
What is the problem with passing "a lot" of parameters into your javascript in afterRender()? Maybe I'm just not sure what your specific question is. You have several ways to pick up such values in your javascript, such as: 1. Pass them in afterRender using JavascriptSupport. 2. Hardcode

Re: Appropriate use of ProgressiveDisplay?

2012-08-17 Thread Ray Nicholus
The best approach here was probably not to copy the source of ProgressiveDisplay and make some odd modifications to it. You haven't described a specific case you need to account for here. If, for example, you wanted to display some sort of a waiting modal box, you could show it after a button is p

Re: combining scripts

2012-08-15 Thread Ray Nicholus
...you will need the context prefix though. On Wed, Aug 15, 2012 at 10:29 PM, Ray Nicholus wrote: > Try using getUnlocalizedAsset on AssetSource instead. > > > On Wed, Aug 15, 2012 at 10:25 PM, Ray Nicholus wrote: > >> So what do you mean, specifically, by "not working

Re: combining scripts

2012-08-15 Thread Ray Nicholus
Try using getUnlocalizedAsset on AssetSource instead. On Wed, Aug 15, 2012 at 10:25 PM, Ray Nicholus wrote: > So what do you mean, specifically, by "not working"? > > > On Wed, Aug 15, 2012 at 9:50 PM, Angelo C. wrote: > >> i tried without

Re: combining scripts

2012-08-15 Thread Ray Nicholus
So what do you mean, specifically, by "not working"? On Wed, Aug 15, 2012 at 9:50 PM, Angelo C. wrote: > i tried without context as well: > > ret.add(assetSource.getContextAsset("/js/jquery-1.7.1.js", null)); > > also this: > > ret.add(assetSource.getContextAsset("js/jquery-1.7.1.js", null)); >

Re: combining scripts

2012-08-15 Thread Ray Nicholus
Problem: you're calling getContextAsset, and also including the context prefix in your path. On Wed, Aug 15, 2012 at 7:45 PM, Angelo C. wrote: > Hi, > > got the point, so I'm trying to add a js stack, but seems not getting the > location right: > > this is what I did with Import: > > @Import(lib

Re: combining scripts

2012-08-15 Thread Ray Nicholus
See the javascript stacks section in the javascript doc page http://tapestry.apache.org/javascript.html On Aug 15, 2012 9:45 AM, "Angelo C." wrote: > Hi, > Thanks for the quick response, as the program come from old version of > Tapestry 5, we use only @Import, what 's the difference between > Ja

Re: combining scripts

2012-08-15 Thread Ray Nicholus
As stated in the documentation, this only combines scripts in a JavascriptStack. On Wed, Aug 15, 2012 at 9:32 AM, Angelo C. wrote: > Hi, > > I set this: > > configuration.add("tapestry.combine-scripts", "true"); > > and use @Import(library to include scripts, > > but i can see the scripts not c

Re: ajaxformloop with File upload

2012-08-15 Thread Ray Nicholus
The tapestry upload component is fine for single file uploads, in some cases. However, for apps that allow a user to upload n number of files, it is the wrong tool IMHO. Check out the file-uploader javascript project on github. tapestry5-jquery has also wrapped this library into a tapestry compo

Re: T5: standard validator for decimal numbers with 2 digits?

2012-08-14 Thread Ray Nicholus
Either contribute a Validator and/or write some javascript. On Tue, Aug 14, 2012 at 12:50 PM, Dmitriy Vsekhvalnov < dvsekhval...@gmail.com> wrote: > Hi everybody, > > stupidly, but can't find it: Can i have input field for double values, > which restricts up to 2 digits after point? > > Thanks

Re: loading order of javascripts

2012-08-13 Thread Ray Nicholus
te: > On Sun, 12 Aug 2012 22:12:52 -0300, Ray Nicholus > wrote: > > Jquery should really be part of a JavascriptStack. in fact, it should >> probably be its own stack. You can add any jquery plugins and >> stylesheets to this stack as well. >> > > Hasn&#x

Re: loading order of javascripts

2012-08-12 Thread Ray Nicholus
... I realize that doesn't answer your question though. Have a look at http://tapestry.1045711.n5.nabble.com/Inheritance-and-the-order-of-loaded-JS-td5714430.html On Aug 12, 2012 8:12 PM, "Ray Nicholus" wrote: > Jquery should really be part of a JavascriptStack. in fact, it

Re: loading order of javascripts

2012-08-12 Thread Ray Nicholus
Jquery should really be part of a JavascriptStack. in fact, it should probably be its own stack. You can add any jquery plugins and stylesheets to this stack as well. On Aug 12, 2012 7:51 PM, "Angelo C." wrote: > Hi, > > I have this order of loading: > > @Import(library = {"context:/js/jquery-1

Re: calling some functions from javascript

2012-08-12 Thread Ray Nicholus
For starters, your "action" method should be renamed to onAction. I'm still not quite sure what you are trying to do here. It seems like you are providing a generic example, instead of the actual code you are struggling with. On Sun, Aug 12, 2012 at 7:51 AM, Angelo C. wrote: > Hi, > > I got so

Re: calling some functions from javascript

2012-08-12 Thread Ray Nicholus
...providing some actual code would be helpful as well On Aug 12, 2012 6:51 AM, "Ray Nicholus" wrote: > What are you trying to do exactly? i think you are using terms here > incorrectly, which is making your question very hard to understand. So, > Javascript, tml, and java sp

Re: calling some functions from javascript

2012-08-12 Thread Ray Nicholus
What are you trying to do exactly? i think you are using terms here incorrectly, which is making your question very hard to understand. So, Javascript, tml, and java specifics aside, what are you trying to do? On Aug 12, 2012 5:08 AM, "Angelo C." wrote: > Hi, > > I got a page class, and in the t

Re: Tapestry5 vs Vaadin

2012-08-11 Thread Ray Nicholus
Very little logic should exist in your component classes. That's what services are for. You can use selenium to test your client side. Geb is a nice tool to investigate. On Aug 11, 2012 7:01 PM, "Angelo C." wrote: > Hi Taha, > > I agree with almost all except the testability, maybe it's my fa

Re: Using subfolders of component folder

2012-08-10 Thread Ray Nicholus
You certainly do not need to create a new library mapping for each subfolderSounds like you are missing some basic concepts. Take a look at http://tapestry.apache.org/component-libraries.html. On Fri, Aug 10, 2012 at 1:55 PM, StroncieruM wrote: > I may not be so clear, I know how to include on

Re: Problem building Tapestry 5.3.4 using Gradle

2012-08-09 Thread Ray Nicholus
You are using gradlew, correct? If not, you should be, instead of whatever local copy of gradle you have installed. On Thu, Aug 9, 2012 at 8:51 AM, Shing Hing Man wrote: > > > Hi, > I have checked out Tapestry 5.3.4 using > git clone https://git-wip-us.apache.org/repos/asf/tapestry

Re: Iterating a map in template

2012-08-02 Thread Ray Nicholus
I don't understand. Your loop source and value are both the same type? The way you have this setup, it won't work. You should consider setting your source to the keyset of the map, and provide properties in your class that return the value based on the current key. On Thu, Aug 2, 2012 at 7:40 P

Re: a zone containing a loop, containing eventlinks

2012-07-24 Thread Ray Nicholus
same > problem. > > Thx > > Manu > > 2012/7/20 Ray Nicholus > > > As usual, I posted when I should have spent a couple more minutes > thinking > > about the problem. Please disregard. > > > > On Fri, Jul 20, 2012 at 9:28 AM, Ray Nicholus &

Re: a zone containing a loop, containing eventlinks

2012-07-20 Thread Ray Nicholus
As usual, I posted when I should have spent a couple more minutes thinking about the problem. Please disregard. On Fri, Jul 20, 2012 at 9:28 AM, Ray Nicholus wrote: > I have a zone on a parent component. This zone contains a loop. The loop > references another component, which

a zone containing a loop, containing eventlinks

2012-07-20 Thread Ray Nicholus
I have a zone on a parent component. This zone contains a loop. The loop references another component, which itself contains a loop. This final loop creates eventlinks which reference the zone on the parent component. When one of these eventlinks are triggered, the zone on the parent component

Re: AJAX Events

2012-06-26 Thread Ray Nicholus
Have a look at the RequestParameter annotation. On Tue, Jun 26, 2012 at 11:05 AM, Gep wrote: > Sorry to dig out this post, but I'm having the exact same issue. > > After having a look at : > http://samroyale.blogspot.fr/2009/11/controlling-ajax-in-tapestry.html I > tried to use this trick, but I

Re: exception in IE on ajax request

2012-06-26 Thread Ray Nicholus
Thanks for the info. I have added my votes to these cases. On Tue, Jun 26, 2012 at 1:40 AM, Jochen Berger wrote: > Oh, I should have continued reading, sorry. Then, it's most likely also > TAP5-1882/TAP5-1907. > > Am 26.06.2012 05:58, schrieb Ray Nicholus: > >> Changing

Re: exception in IE on ajax request

2012-06-25 Thread Ray Nicholus
out(null).map(this.rebuildURLIfIE).value(); ...seems to fix the issue for me locally. I did not do any extensive testing though, but it seems simple enough. On Mon, Jun 25, 2012 at 10:23 PM, Ray Nicholus wrote: > I would never even open IE if I had the choice. The javascript console > lo

Re: exception in IE on ajax request

2012-06-25 Thread Ray Nicholus
I would never even open IE if I had the choice. The javascript console looks like someone's high school project. It turns out that IE's exception message was, as usual, misleading. I should also mention that I was getting the same exception message when tapestry attempted to execute consolefn.ca

exception in IE on ajax request

2012-06-25 Thread Ray Nicholus
I'm seeing the following javascript exception in IE only when the ajaxRequest function is called in tapestry.js: Object doesn't support property or method 'call' I've confirmed that successHandler is not null, and call appears to be available as a native function. as one would expect. Any idea

bridging jQuery and Prototype custom events

2012-06-24 Thread Ray Nicholus
When we switched over to jQuery from Prototype in our Tapestry app, we found that we were still tied to Prototype for a few reasons: 1. We had lots of existing Prototype javascript code. 2. We needed to fire and observe Tapestry js custom events, even in our new jQuery code. 3. We have

Re: FindBugs and the @Inject annotation on global fields

2012-06-08 Thread Ray Nicholus
I'd hate to use such an annotation on every single instance. Instead, I'd love to filter out warnings based on annotation (in this case, Inject), but FB doesn't allow this in their filter files. On Fri, Jun 8, 2012 at 11:39 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri,

Re: FindBugs and the @Inject annotation on global fields

2012-06-08 Thread Ray Nicholus
The filter files do not allow you to filter by annotation. On Fri, Jun 8, 2012 at 11:11 AM, Lance Java wrote: > Not really a tapestry question but I'm in a good mood ;) > > The findbugs maven plugin accepts an "excludeFilterFile" configuration > parameter. This file can contain rules that you wis

FindBugs and the @Inject annotation on global fields

2012-06-08 Thread Ray Nicholus
Is anyone using FindBugs in a T5 project? If so, have you managed to find a way to suppress the NPE warnings when dereferencing an injected field? This doesn't appear to be possible, which makes FB useless in a T5 app, for the most part. It's not clear that any other static analysis tools provid

Re: overriding a service implementation...

2012-06-07 Thread Ray Nicholus
mentation, but in your case, you'll just ignore it. > > This can be tricky if there are other decorations on the service. > > On Thu, Jun 7, 2012 at 4:55 PM, Ray Nicholus wrote: > > I'm pulling in a library that also uses T5, and in it's "module" cla

overriding a service implementation...

2012-06-07 Thread Ray Nicholus
I'm pulling in a library that also uses T5, and in it's "module" class, it contains the following method: @ServiceId (Symbols.SOME_SYMBOL) public static Something buildThisThing(SomeObj someObj) { .. } In the library, this service is injected into the constructor of ano

Re: "This could be because its template file could not be located"

2012-06-05 Thread Ray Nicholus
7;s always the last thing you check, isn't it. On Tue, Jun 5, 2012 at 4:47 PM, Howard Lewis Ship wrote: > See my notes in an adjacent thread. > > On Tue, Jun 5, 2012 at 1:51 PM, Ray Nicholus wrote: > > I'm starting a new T5 project, and am having some difficulty. For &g

"This could be because its template file could not be located"

2012-06-05 Thread Ray Nicholus
I'm starting a new T5 project, and am having some difficulty. For example, if I put my tml files alongside my java classes (com.mycompany.myproj.pages), when I startup my app, and navigate to a page, tapestry tells me that it cannot find the template file. If I then move the template file into my

Re: Tapestry 5 email validator rules are not correct

2012-05-18 Thread Ray Nicholus
"john.smith(comment)@ > example.com", "john(comment).sm...@example.com", and "joh(comment) > n.sm...@example.com" are all equivalent to "john.sm...@example.com" > International characters above U+007F are permitted by RFC 6531, though > mail sy

Tapestry 5 email validator rules are not correct

2012-05-18 Thread Ray Nicholus
Examples of currently allowed (and invalid) addresses: accent char - ép...@example.com '+' in domain - test@foo+example.com '/' in domain - test@example/com wrapped in single quotes - 'f...@example.com' wrapped in double quotes - "f...@example.com" Is there currently a case in JIRA to a

Re: prevent multiple form submits

2012-01-09 Thread Ray Nicholus
Submitted JIRA case 2787 w/ code. On Mon, Nov 21, 2011 at 8:21 PM, hongdengdao wrote: > great !! > thanks for sharing!! > > > On 2011年11月22日 06:59, Lenny Primak wrote: > >> I just did a quick test with form/zone/clientValidations and the mixin >> works correctly. >> >> On Nov 21, 2011, at 5:45

Re: prevent multiple form submits

2011-11-21 Thread Ray Nicholus
Thiago or Howard:Is there any chance Tapestry will natively prevent multiple form submissions in a future version? On Mon, Nov 21, 2011 at 4:59 PM, Lenny Primak wrote: > I just did a quick test with form/zone/clientValidations and the mixin > works correctly. > > On Nov 21, 2011, at 5:45 PM, Len

Re: prevent multiple form submits

2011-11-21 Thread Ray Nicholus
ny Primak wrote: > Multiple submits are allowed in the mixin. Perhaps I am misunderstood your > us case. > > > > On Nov 21, 2011, at 4:51 PM, Ray Nicholus wrote: > > > Looks interesting, and I do think a mixin is a good way to go here. > > However, I'm tryi

Re: prevent multiple form submits

2011-11-21 Thread Ray Nicholus
er natively, not naively. On Mon, Nov 21, 2011 at 3:51 PM, Ray Nicholus wrote: > Looks interesting, and I do think a mixin is a good way to go here. > However, I'm trying to think of a case where multiple submits would be > permissible. If there is no such case, perhaps it woul

Re: prevent multiple form submits

2011-11-21 Thread Ray Nicholus
gle.com/p/flowlogix/ > > > > On Nov 21, 2011, at 4:07 PM, Ray Nicholus wrote: > > > >> I'm sure I am not the first one to encounter this problem, and before I > go > >> about re-inventing the wheel, I wanted to se

prevent multiple form submits

2011-11-21 Thread Ray Nicholus
I'm sure I am not the first one to encounter this problem, and before I go about re-inventing the wheel, I wanted to see if this is something that has already been elegantly solved in the tapestry circle. Anyone?

Lost parameter binding after zone update

2011-11-05 Thread Ray Nicholus
I posted on this before and thought I had resolved it, but I'm seeing it again. When I update a zone by returning a MultiZoneUpdate from an event handler (via an ajax call), one of the components re-rendered as a result of the update has a parameter that is no longer bound. The zone update occurs

Re: setupRender not called on some components

2011-10-14 Thread Ray Nicholus
No idea where "compassion" came from. I meant to say that I noticed situations where setupRender is never called. On Fri, Oct 14, 2011 at 9:35 AM, Ray Nicholus wrote: > We are using T5.3 beta 19. Within the last few days, I > noticed compassion where setupRender is never calle

setupRender not called on some components

2011-10-14 Thread Ray Nicholus
We are using T5.3 beta 19. Within the last few days, I noticed compassion where setupRender is never called on a rendering component. This does not happen with all components. It seems like this happens on the affected components almost every time. Occasionally, setupRender IS called on these c

Re: parameter binding lost

2011-09-29 Thread Ray Nicholus
n/m, it turns out there was another, non-tapestry-related cause for the problem I am seeing On Thu, Sep 29, 2011 at 8:27 AM, Ray Nicholus wrote: > I have a component with two levels of embedded components, like so: > > > > > > > > > > &

parameter binding lost

2011-09-29 Thread Ray Nicholus
I have a component with two levels of embedded components, like so: In component 1, I declare a static String with the property annotation. That property is passed to component 2, and component 2 passes it on to component 3. So, the property in component 3 is bound to t

modifying the List of error messages in ValidationTracker

2011-09-23 Thread Ray Nicholus
I'm trying to figure out a way to clear the list of error messages in ValidationTracker without also clearing the state of the field tracker. I am attempting to create an aggregate of error messages for fields with the same name in the ValidationTracker. So far, I'm not seeing a way to accomplish

Re: firing FORM_PROCESS_SUBMIT_EVENT, but form is not submitted

2011-08-25 Thread Ray Nicholus
I fixed it by setting the zone param on the form to an empty zone. No idea why I have to do that, but apparently I do. On Thu, Aug 25, 2011 at 10:44 AM, Ray Nicholus wrote: > I've confirmed that the following line of code in my js is executed: > > $(spe

firing FORM_PROCESS_SUBMIT_EVENT, but form is not submitted

2011-08-25 Thread Ray Nicholus
I've confirmed that the following line of code in my js is executed: $(spec.formId).fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT); I've also confirmed that $(spec.formId) is the correct form element, and the form element exists. However, this line does NOT submit my form. Any idea what might cause t

Re: Jumping to a new page

2011-08-17 Thread Ray Nicholus
Instead of a page for the confirm dialog, why not use an eventlink w/ a "confirm" mixin? On Wed, Aug 17, 2011 at 12:05 AM, ixcoatl wrote: > Everything worked as you said, t:pagelink instead of t:actionlink, and > @InjectPage instead of @Inject. > > The silly part is that I had used both techniqu

Re: MultiZoneUpdate to JSON

2011-08-15 Thread Ray Nicholus
va > > > On Mon, Aug 15, 2011 at 8:08 PM, Ray Nicholus wrote: > > How can I take a MZU instance and convert it to JSON? I know that, > > somewhere, somehow, a MZU is converted to a JSON Object with a key of > > "zones" but I can't figure o

MultiZoneUpdate to JSON

2011-08-15 Thread Ray Nicholus
How can I take a MZU instance and convert it to JSON? I know that, somewhere, somehow, a MZU is converted to a JSON Object with a key of "zones" but I can't figure out how or where. Can someone point me in the right direction?

submit form (via linksubmit button) on enter key

2011-08-08 Thread Ray Nicholus
It looks like, by default, hitting the enter key while on the last textfield in a form does not trigger linksubmit. Is there any (simple) way to make this happen? I'm sure there is a way to do this w/ js, but I'm wondering if there is a dirt-simple way to make this happen that I am simply not awa

Re: t-prevent-submission

2011-07-14 Thread Ray Nicholus
of coordination that needs to happen to make it all behave > nicely but it can be done. > > Kalle > > > On Thu, Jul 14, 2011 at 2:25 PM, Ray Nicholus wrote: > > doh! > > > > On Thu, Jul 14, 2011 at 4:16 PM, Thiago H. de Paula Figueiredo < > > thiag...@g

Re: t-prevent-submission

2011-07-14 Thread Ray Nicholus
doh! On Thu, Jul 14, 2011 at 4:16 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 14 Jul 2011 18:08:50 -0300, Ray Nicholus > wrote: > > My upload component is not actually in a zone. Rather, it is in a form, >> and the form has a zone paramet

Re: t-prevent-submission

2011-07-14 Thread Ray Nicholus
x-upload-for-tapestry/ if you > want ajax-based uploads. > > Robert > > On Jul 14, 2011, at 7/143:44 PM , Ray Nicholus wrote: > > > It looks like there is some issue with the update component and zone > updates > > involving a form. When I comment out the upload com

Re: t-prevent-submission

2011-07-14 Thread Ray Nicholus
It looks like there is some issue with the update component and zone updates involving a form. When I comment out the upload component (which I am using in my form), I can submit again. On Thu, Jul 14, 2011 at 2:41 PM, Ray Nicholus wrote: > This seems to prevent submission of the form tho

Re: t-prevent-submission

2011-07-14 Thread Ray Nicholus
e the normal form submission via ajax. > > Robert > > On Jul 14, 2011, at 7/142:33 PM , Ray Nicholus wrote: > > > Why is tapestry adding this class to my form? It only seems to happen > when > > add a zone param to the form. > > > ---

t-prevent-submission

2011-07-14 Thread Ray Nicholus
Why is tapestry adding this class to my form? It only seems to happen when add a zone param to the form.

Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-07-14 Thread Ray Nicholus
1 at 10:57 AM, Mark wrote: > On Thu, Jul 14, 2011 at 8:16 AM, Ray Nicholus wrote: > > It turns out that my encoder is not the problem. In fact, this appears > to > > be an issue with Tapestry. I was not using the id from Hibernate and I > > verified beforehand that my en

Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-07-14 Thread Ray Nicholus
with them again. > > Mark > > On Wed, Jul 13, 2011 at 11:59 AM, Ray Nicholus > wrote: > > Anyone? I'm returning a new unpersisted entity from my addrow listener, > > modifying it in the UI, then clicking submit. Ajaxformloop never > attempts > > to

Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-07-13 Thread Ray Nicholus
Anyone? I'm returning a new unpersisted entity from my addrow listener, modifying it in the UI, then clicking submit. Ajaxformloop never attempts to update the values server-side for this new row. On Tue, Jul 12, 2011 at 7:27 PM, Ray Nicholus wrote: > Note that I am using a cust

ajaxformloop: syncValue is never called for added rows on form submit

2011-07-12 Thread Ray Nicholus
Note that I am using a custom value encoder. When I click submit, the values in the rows that were rendered during form load are synced, resulting in calls to getValue of my value encoder, but this does not happen for rows added via the addrow event.

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
Yet another issue: syncValue in ajaxformloop is never called on form submit for rows that have been added after the form renders. Everything seems to work ok for original rows. On Tue, Jul 12, 2011 at 6:01 PM, Ray Nicholus wrote: > Sorry, I figured it out. I haven't played with cust

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
>> So you can do exactly what you proposed, just make sure to override the > >> default value encoder with a custom implementation. It could be a > really > >> simple implementation that just returns the string representation of the > >> object's index in you

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
implementation. It could be a really > simple implementation that just returns the string representation of the > object's index in your list of objects. > > Robert > > On Jul 12, 2011, at 7/124:36 PM , Ray Nicholus wrote: > > > Can't I simply maintain

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
sted > entities (don't know if you're using hibernate or not, but... sounds like > it). > > Robert > > On Jul 12, 2011, at 7/124:08 PM , Ray Nicholus wrote: > > > Nevermind, I'm ditching ajaxformloop - too many shortcomings/problems. > This &

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
one, the ajaxformloops addRow event requires the server side to create a new row and commit it to the DB, which is a bit difficult to do before obtaining input from the user regarding the values of the form elements in the row. On Tue, Jul 12, 2011 at 3:22 PM, Ray Nicholus wrote: > In my ajaxformloo

how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
In my ajaxformloop, I specify an clientId for each of my selects. I am working around an issue/shortcoming in Tapesty regarding zone updates in a form loop. To do this, I must be able to specify the IDs of my form elements. For one particular element, in each row of the form loop, I specify a cl

Re: updating a zone inside of an ajaxformloop

2011-07-12 Thread Ray Nicholus
When the select in your loopZone reloads after the zone update, it uses purchaseRequest to determine it's value. However, after the loop has already executed, purchaseRequest, which you persist, points to the last purchaseRequest instant enountered by the ajaxformloop. Correct? On Tue, Jul 12, 2

Re: updating a zone inside of an ajaxformloop

2011-07-12 Thread Ray Nicholus
Unless I'm missing something, it looks like this will have the same problem I've been battling. After the loop executes and the zone is updated, the purchaseRequest, in this case, will always be the last purchaseRequest encountered by the loop. Please correct me if I am incorrect. At this time,

Re: updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
s correctly. On Mon, Jul 11, 2011 at 2:19 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Mon, 11 Jul 2011 15:54:02 -0300, Ray Nicholus > wrote: > > Note: I just noticed that the select component page for the select element >> includes an example th

Re: updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
@gmail.com> wrote: > >> On Mon, 11 Jul 2011 15:34:58 -0300, Ray Nicholus >> wrote: >> >> No, indeed it looks like I cannot use a submit button here. Surely I >>> can't be the first person who wanted to update a select via a zone update >>> insi

Re: updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
(the one inside the zone) is updated, changes I make to the selection in that select are ignored unless I submit and then choose an option in that select. On Mon, Jul 11, 2011 at 1:45 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Mon, 11 Jul 2011 15:34:58 -0300, R

Re: updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
No, indeed it looks like I cannot use a submit button here. Surely I can't be the first person who wanted to update a select via a zone update inside of a loop. Isn't there a straightforward way to make this happen? On Mon, Jul 11, 2011 at 1:16 PM, Ray Nicholus wrote: > Eh, it m

Re: updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
which only refreshes a zone inside the loop, the > > current loop value(currentSetting in our case) is null as the decoding > using > > value-encoder does not happen without a submission. > > > > regards > > Taha > > > > > > On Mon, Jul 11, 2011 at 10

Re: updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
Eh, it may be because I'm not updating the correct currentSetting object. The behavior I want to support is fairly simple, but seems to be quite complex to get working in Tapestry, unless I'm missing something. On Mon, Jul 11, 2011 at 1:12 PM, Ray Nicholus wrote: > It sounds like

Re: updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
bmission. > > regards > Taha > > > On Mon, Jul 11, 2011 at 10:37 PM, Ray Nicholus > wrote: > > > I'm not sure what variable you are talking about. Do you mean > > "currentSetting"? There is no "currentSettings" variable. If so, > >

Re: updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
ring ajax update. In case it is not, then you have > to > keep the variable in session so that you can use it across multiple > requests. > > regards > Taha > > > On Mon, Jul 11, 2011 at 10:17 PM, Ray Nicholus > wrote: > > > Hello Taha, > > > > I gu

Re: updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
I'm also not quite sure how I can set a unique ID to my zone and then retrieve this zone id in the previous select. On Mon, Jul 11, 2011 at 11:45 AM, George Christman wrote: > I think your going to want to set a unique id for your > fileMetadataSelectZone > Zone example > > and your going to nee

Re: updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
I do not need to persist the "currentSettings" variable? On Mon, Jul 11, 2011 at 11:45 AM, George Christman wrote: > I think your going to want to set a unique id for your > fileMetadataSelectZone > Zone example > > and your going to need to persist autoImportFileMetadataModel selectModel. > > -

Re: updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
t; regards > Taha > > On Mon, Jul 11, 2011 at 9:19 PM, Ray Nicholus wrote: > > > Here is a fragment of some template code inside of a tapestry form: > > > > source="existingSettings" > > value="currentSetting"> > > > &g

updating a zone inside of an ajaxformloop

2011-07-11 Thread Ray Nicholus
Here is a fragment of some template code inside of a tapestry form: .. As soon as I add the zone parameter to the 1st select & reload, I get a NPE when I attempt to change the value in the 1st select. It claims that the currentSe

Re: updating a zone on form submit

2011-06-01 Thread Ray Nicholus
works now. thanks! On Wed, Jun 1, 2011 at 9:32 AM, Ray Nicholus wrote: > > > : > onchange="$('addToLightboxForm').fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT);" > value="selectedLightboxName" label="literal:Add

Re: updating a zone on form submit

2011-06-01 Thread Ray Nicholus
, dragan.sahpas...@gmail.com < dragan.sahpas...@gmail.com> wrote: > It works good for me. > Paste the entire code here. > > Cheers, > Dragan Sahpaski > > > > On Wed, Jun 1, 2011 at 4:22 PM, Ray Nicholus wrote: > > > This is causing all sorts of other odd issues. Firs

Re: updating a zone on form submit

2011-06-01 Thread Ray Nicholus
it in a submit element like this: > > onchange="$('formId').fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT);" > > > Cheers, > Dragan Sahpaski > > > > On Wed, Jun 1, 2011 at 4:04 PM, Ray Nicholus wrote: > > > Thanks for the info. Where exactly do

Re: updating a zone on form submit

2011-06-01 Thread Ray Nicholus
Thanks for the info. Where exactly do I put the javascript dragon listed? On Wed, Jun 1, 2011 at 9:02 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 01 Jun 2011 10:51:09 -0300, Ray Nicholus > wrote: > > I guess I'm not sure what zone I need to

Re: updating a zone on form submit

2011-06-01 Thread Ray Nicholus
parameter of form to a proper > zone value > > Regards > Taha > > Sent from my iPhone > > On Jun 1, 2011, at 7:09 PM, Ray Nicholus wrote: > > > Any idea how I can do this? When I return a MultiZoneUpdate from my > submit > > handler, I get

updating a zone on form submit

2011-06-01 Thread Ray Nicholus
Any idea how I can do this? When I return a MultiZoneUpdate from my submit handler, I get the following exception: Return type org.apache.tapestry5.ajax.MultiZoneUpdate can not be handled.

how can I clear the page context?

2011-05-20 Thread Ray Nicholus
...so that the context is not included after the page initially loads when I, say, refresh the page via the browser's refresh button? In other words, how can I load a page with context parameters once and then discard them so subsequent refreshes oft hat page do not use these parameters?

  1   2   >