Re: autocompleter struts2 onchange parameter not working

2011-11-16 Thread vivek jaiswal
  thanks a lot it's working properly with regards, VIVEK KUMAR JAISWAL From: Martin Gainty To: Struts Users Mailing List Sent: Thursday, 17 November 2011 6:26 AM Subjec

RE: autocompleter struts2 onchange parameter not working

2011-11-16 Thread Martin Gainty
autocompleter contains a mechanism that triggers javascript function when value of monitored list changes e.g. Mit Freundlichen Gruben Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich

Re: Autocompleter allows more characters than maxlength value.

2011-02-04 Thread Dave Newton
Not sure how that's integrated into the Dojo stuff; you'll probably have to dig, w/ the understanding it's an *old* (0.4.3?) version of Dojo. Another reason why the Dojo plugin is deprecated. Dave On Fri, Feb 4, 2011 at 12:14 PM, Bruno wrote: > Hey guys. > > I'm using a auto completer as descri

Re: Autocompleter of Struts 2

2009-04-27 Thread 周建新
check the doc,Tag Reference Parameters Name: resultsLimit Required: false Default: 30 Description: how many results are shown as autocompletion options, set to -1 for unlimited results On 4/27/09, NR031 wrote: > > > Hi, > >I am following the tutorial given > > http://www.roseindia.net/stru

Re: autocompleter bug in forefox3 but not in ie6

2008-07-16 Thread Jeromy Evans
Piotr Dzeviarylin wrote: I Think I find the bug. See here: For the sake of completeness, does your form work in Firefox 2.x? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: autocompleter bug in forefox3 but not in ie6

2008-07-16 Thread Jishnu Viswanath
I am not sure... Struts in turn uses dojo for its Ajax (it was .4) there are lot of issues with dojo and ff3. I am not sure because of this it's failing. Can you tell me what exactly it's the error, if you have firebug installed, tell is there any request in red? Regards, Jishnu Viswanath Softw

Re: Autocompleter tag fails when file tag is added

2008-06-17 Thread Struts Two
I was hoping that someone could tell me why this is happening. I am not looking for a solution on this as I have found a workaround. For a moment I thought the problem may be related to submiting the file when autocompleters submit the form, so I used a form filter to exclude file input but of n

Re: Autocompleter tag issues

2008-06-16 Thread Craftyman
Thanks a lot, i'm just regret we can find easily this information in the documentation. I hope to find a solution to my last problem with s:autocopleter onUpdate statuts and my demo will be good :) 2008/6/16 Struts Two <[EMAIL PROTECTED]>: > Your "id" will be saved in "selectedUserKey". Add this

Re: Autocompleter tag issues

2008-06-16 Thread Struts Two
Your "id" will be saved in "selectedUserKey". Add this property in ur action and you will have the id for the username selected. __ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-n

Re: Autocompleter tag issues

2008-06-16 Thread Craftyman
I have also a problem with the onchange attribute : http://www.mail-archive.com/user@struts.apache.org/msg76830.html May new but more important problem is to save the idvalue after the submit. Indeed i'm just get the value : ... When I submit my form I'm get the userName (listValue) but I wa

Re: Autocompleter tag issues

2008-06-16 Thread Struts Two
Where and how do you listen for the topics. I have currently 4 autocompleter boxes hooked together using notify and listen attributes [though I am using 2.0.11.1, and it seems you are using 2.1.x]. If it is of any help here is my code: On every change being made in my first autocompleter, the

Re: Autocompleter onchange attribute

2008-06-12 Thread Craftyman
Anybody have any idea ? I'm just want to configure my s:autocompleter to allow to when a user select a new value to submit my form automatically Thanks. Cédric 2008/6/10 Craftyman <[EMAIL PROTECTED]>: > I have any errors and i use the s:head theme="ajax"/> in my head section a > the auto search

Re: Autocompleter onchange attribute

2008-06-10 Thread Craftyman
I have any errors and i use the s:head theme="ajax"/> in my head section a the auto search work fine I juste want to add a onchange event whitch submit my form. Before usind the autocompleter tag i have : onchange="javascript:document.getElementById('myForm').submit;" doen't work with autoc

Re: Autocompleter onchange attribute

2008-06-10 Thread Laurie Harper
What do you mean by 'No ajax use'? s:autocomplete is an Ajax tag... Do you have in the head section of your page? Do you get any Javascript errors when you load the page, or when you interact with the autocompleter control? L. Craftyman wrote: Hi, I'm using a s:autocompleter with a local l

Re: autocompleter

2007-09-28 Thread Musachy Barroso
This was just fixed on trunk, see WW-2220. There will be a "keyValue" attribute to set the initial value of the key. The "key" attribute is something else, not related to the autocompleter's "key" musachy On 9/28/07, Giovanni Azua <[EMAIL PROTECTED]> wrote: > Hi Meissa, > > Yep it is possible ...

Re: autocompleter

2007-09-28 Thread Giovanni Azua
Hi Meissa, Yep it is possible ... assuming you provide: then include in the rendering Action associated to this JSP the following two bean property getters: // will provide the default display value that the user sees public String getSomeProperty() { // ... } // will provide the key corre

Re: autocompleter problem

2007-09-10 Thread Musachy Barroso
Use the "resultsLimit" attribute. musachy On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi all, > I'm using the autocompleter tag and I'm little bit troubleshooted by it's > behaviour. > > I have a list the contains more than 100 items. When the page is loaded, > the select box dis

Re: Autocompleter JSON key/value pair to update other list

2007-08-31 Thread Musachy Barroso
See if this helps: http://www.mail-archive.com/user@struts.apache.org/msg61657.html musachy On 8/31/07, peter_smiley <[EMAIL PROTECTED]> wrote: > > Hi, > > Currently I'm using struts 2.0.9 and am trying to use the autocompleter with > a JSON key/value pair as the input for the autocompletion lis

RE: autocompleter part of whole

2007-07-30 Thread Phillip Grenier
I only wanted to return 10 of the 1000 I accoplished it with Or something close to that -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Monday, July 30, 2007 1:22 PM To: Struts Users Mailing List Subject: Re: autocompleter part of whole Do you

Re: autocompleter part of whole

2007-07-30 Thread Musachy Barroso
Do you have the 1000 loaded in the autocompleter already? Or your action returns 1000 and you want to show only 10 (why not returning only 10?)? Or I didn't understand the question :) ? regards musachy On 7/30/07, Phillip Grenier <[EMAIL PROTECTED]> wrote: > say that you wanted to get part of a l

Re: autocompleter works at firefox but broken at IE 6

2007-07-26 Thread 宁波新希望信息技术有限公司 -- 俞宏伟
I found that struts 2 " link two autocompleter" of showcase apps can not work correctly with IE 6, I test both struts 2.0.8 and struts 2.0.9 have same javascript exception. as metioned prior message, the struts live showcase also can not works with IE 6. http://www.planetstruts.org/struts2-showca

Re: autocompleter works at firefox but broken at IE 6

2007-07-25 Thread NHSoft.YHW
>>but I found follow URL works with IE 6: >>http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/ today I found that the URL(http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/)executed failure IE 6 when click Autocompleter 2 of "Link two autocompleter elements.", the IE

Re: autocompleter works at firefox but broken at IE 6

2007-07-17 Thread NHSoft.YHW
deploy showcase apps at tomcat 5.5.17 & JDK1.5.11, when I test "Link two autocompleter elements" example, when click "Autocompleter 2", the same error found at IE 6(Firefox works) but I found follow URL works with IE 6: http://www.planetstruts.org/struts2-showcase/ajax/autocompleter/ :( My Env

Re: Autocompleter onchange

2007-07-14 Thread rrecoba
Musachy, we solved this by adding a white space in the text of the generated json. Now, when the user clicks one of the rendered options, it fires de value changed event is it possible? Musachy Barroso wrote: > > Use the "notifyTopics" attribute. > > musachy > > On 7/13/07, rrecoba <[EMAI

Re: Autocompleter onchange

2007-07-14 Thread rrecoba
Thanks for your answer. I´ve already try with notifytopics, but doesn´t work. The notifyTopic isn´t fired when i select an item, it´s only fired when I change the text of the selected one. Any Idea? Musachy Barroso wrote: > > Use the "notifyTopics" attribute. > > musa

Re: Autocompleter onchange

2007-07-13 Thread Musachy Barroso
Use the "notifyTopics" attribute. musachy On 7/13/07, rrecoba <[EMAIL PROTECTED]> wrote: Hi, I can´t capture the onChange event of an autocompleter. Now I have the autocompleter working, but i need to fill a div from an ajax call when one item is selected in the autocompleter. How can I do th

Re: AutoCompleter doesn't keeps value.

2007-06-25 Thread Musachy Barroso
Oh, ok, I thought that was the generated html :) musachy On 6/25/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Yes. But I'm using dataURL, because I could not deal if autoLayout of ajax componentes, so I'm using the dojo code direct, as you can see in this code: dataURL <=> href and ini

Re: AutoCompleter doesn't keeps value.

2007-06-25 Thread Felipe Rodrigues
Yes. But I'm using dataURL, because I could not deal if autoLayout of ajax componentes, so I'm using the dojo code direct, as you can see in this code: dataURL <=> href and initialValue <=> nameValue Regards, Felipe Musachy Barroso wrote: > > Are you using the href attribute to load the

Re: AutoCompleter doesn't keeps value.

2007-06-25 Thread Felipe Rodrigues
Found it... Looking at Dojo attributes I found initialValue attribute. My bad guys, Thanks anyway. Felipe Felipe Rodrigues wrote: > > Doesn't work even if I set value with "value" or "key" attribute. > So weird. > > Any other suggestion? > > > []'s > > Felipe > > > Felipe Rodrigues wr

Re: AutoCompleter doesn't keeps value.

2007-06-25 Thread Musachy Barroso
Are you using the href attribute to load the values using AJAX? musachy On 6/25/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Doesn't work even if I set value with "value" or "key" attribute. So weird. Any other suggestion? []'s Felipe Felipe Rodrigues wrote: > > No, > > Using keyName

Re: AutoCompleter doesn't keeps value.

2007-06-25 Thread Felipe Rodrigues
Doesn't work even if I set value with "value" or "key" attribute. So weird. Any other suggestion? []'s Felipe Felipe Rodrigues wrote: > > No, > > Using keyName. I'll confirm, but I think I've already tried use value. > > > > > Musachy Barroso wrote: >> >> Are you setting the value wit

Re: AutoCompleter doesn't keeps value.

2007-06-25 Thread Felipe Rodrigues
No, Using keyName. I'll confirm, but I think I've already tried use value. Musachy Barroso wrote: > > Are you setting the value with the "value" attribute? > > musachy > > On 6/25/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: >> >> >> Hi Guys, >> >> This time I'm trying to make a autocom

Re: AutoCompleter doesn't keeps value.

2007-06-25 Thread Musachy Barroso
Are you setting the value with the "value" attribute? musachy On 6/25/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Hi Guys, This time I'm trying to make a autocompleter component keep its value when its property comes populated from action. If I type some value and choose that, this va

Re: autocompleter help

2007-06-24 Thread Musachy Barroso
All you have to do is make sure that the url used to load the second autocompleter returns a JSON that has keys and values, like it is explained here: http://struts.apache.org/2.x/docs/ajax-tags.html musachy On 6/24/07, Pedro Herrera <[EMAIL PROTECTED]> wrote: ok. but How I do this ? I ne

Re: autocompleter help

2007-06-24 Thread Pedro Herrera
ok. but How I do this ? I need an example for the second combo be filled with names and keys too. How I do this with autocomplete? What I need to change in options.ftl ?? I need a complete example Thanks Pedro Musachy Barroso wrote: > > You can linked them if the second one will have i

Re: autocompleter help

2007-06-24 Thread Musachy Barroso
You can linked them if the second one will have its options loaded using ajax. musachy On 6/24/07, Pedro Herrera <[EMAIL PROTECTED]> wrote: yes ... Musachy Barroso wrote: > > Do you want the options on the second autocompleter to be pre-populated > like > in the first one "%{'a','b'}"? > >

Re: autocompleter help

2007-06-24 Thread Pedro Herrera
yes ... Musachy Barroso wrote: > > Do you want the options on the second autocompleter to be pre-populated > like > in the first one "%{'a','b'}"? > > musachy > > On 6/23/07, Pedro Herrera <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> In the struts-showcase is showed an example of autocomplet

Re: autocompleter help

2007-06-24 Thread Musachy Barroso
Do you want the options on the second autocompleter to be pre-populated like in the first one "%{'a','b'}"? musachy On 6/23/07, Pedro Herrera <[EMAIL PROTECTED]> wrote: Hi, In the struts-showcase is showed an example of autocomplete. http://www.planetstruts.org/struts2-showcase/viewSource

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Musachy Barroso
My bad, I didn't noticed it the first time around. I always forget that IE doesn't like that trailing comma, do this: [ <#list vars as var> ["${var}"] <#if var_has_next>, ] musachy On 6/22/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: I found it. :-)) the problem was in my

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Felipe Rodrigues
I found it. :-)) the problem was in my template. The comma in the end of jSon return was crasshing my list. So I fixed only changin to that: [ <#list vars as var> ["${var}"], [""] ] Thanks for your help. Felipe Felipe Rodrigues wrote: > > A strange thing is that ShowCase is working

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Felipe Rodrigues
A strange thing is that ShowCase is working on IE7. Maybe the problem is in my template? [ <#list vars as var> ["${var}", "${var}"], ] How will be this comma in my last line? How could I remove the last comma? Thanks, Felipe Musachy Barroso wrote: > > > > musachy > //I have to

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Musachy Barroso
musachy //I have to install IE 7 and test it, but I've been pushing that :) On 6/22/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: debug-true worked. But the message is not a big thing., at least for me. Doesn't say much. FATAL exception raised: [object Error] FATAL exception raised: [obje

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Felipe Rodrigues
debug-true worked. But the message is not a big thing., at least for me. Doesn't say much. FATAL exception raised: [object Error] FATAL exception raised: [object Error] FATAL exception raised: [object Error] FATAL exception raised: [object Error] But now I've removed loadOnTextChange, and the er

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Musachy Barroso
That's what that attribute is for, can you enable logging on head (debug="true") and submit any logged error, or javascript errors? The ajax tags still need to be tested on IE 7. musachy On 6/22/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Well, Regarding that ShowCase is working on IE7,

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Felipe Rodrigues
Well, Regarding that ShowCase is working on IE7, I suppose the issue is on loadOnTextChange. I'm using that because the list is really big, and I can't bring it in one time. About 35000 records comming from Database. I would like to wait for 2 chars before make the select in Database. How could

Re: autocompleter y multipart/form-data

2007-06-08 Thread Musachy Barroso
You will have to take a look at Dojo's documentation. That form is submitted using dojo.io.bind, and I don't think it supports multiparts musachy On 6/8/07, Nicolás Pace <[EMAIL PROTECTED]> wrote: Hello When I setup my form with encoding=multiaprt/form-data, the autocompleter tag stops workin

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Dale Newfield
On Mon, 16 Apr 2007 11:31:49 -0700 "Adam Ruggles" <[EMAIL PROTECTED]> wrote: >Ok so here is where the white rabbit went. If I add the autocomplete >inside of a hidden div ("display: none;") element and then make it >visible it will not display the icon. If the div is set to be displayed >("di

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Musachy Barroso
I will give it a try tonight and let you know. thanks musachy On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: Ok so here is where the white rabbit went. If I add the autocomplete inside of a hidden div ("display: none;") element and then make it visible it will not display the icon. If t

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Adam Ruggles
Ok so here is where the white rabbit went. If I add the autocomplete inside of a hidden div ("display: none;") element and then make it visible it will not display the icon. If the div is set to be displayed ("display: block;") then it displays fine. After load, if I hide the div and make it

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Musachy Barroso
Follow the white rabbit :) //there could be a bug in the autocompleter anyway musachy On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: The one in the showcase works. Interesting... Musachy Barroso wrote: > 2.0.6? Does the page in showcase for the autocompleter display the arrows > for you

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Adam Ruggles
The one in the showcase works. Interesting... Musachy Barroso wrote: 2.0.6? Does the page in showcase for the autocompleter display the arrows for you? musachy On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: Nope. Still nothing displayed. Musachy Barroso wrote: > it is indeed. Do you

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Musachy Barroso
2.0.6? Does the page in showcase for the autocompleter display the arrows for you? musachy On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: Nope. Still nothing displayed. Musachy Barroso wrote: > it is indeed. Do you see the arrow if you don't specify anything in > "visibleDownArrow"? > >

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Adam Ruggles
Nope. Still nothing displayed. Musachy Barroso wrote: it is indeed. Do you see the arrow if you don't specify anything in "visibleDownArrow"? musachy On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: I'm starting to play with the autocompleter tag but I'm running into one issue. No matte

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Musachy Barroso
it is indeed. Do you see the arrow if you don't specify anything in "visibleDownArrow"? musachy On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: I'm starting to play with the autocompleter tag but I'm running into one issue. No matter what I set showDownArrow to it will never display a dow

Re: autocompleter not working on Firefox 1.5 on Linux

2007-04-12 Thread Musachy Barroso
I would expect that from a *windows* machine ;) musachy On 4/12/07, Rohit Dewan <[EMAIL PROTECTED]> wrote: Hi Musachy, I rebooted my linux machine for an unrelated reason and now cannot reproduce the issue. It is working now. Sorry for the bother. Regards, Rohit -- "Hey you! Would you

Re: autocompleter not working on Firefox 1.5 on Linux

2007-04-12 Thread Rohit Dewan
Hi Musachy, I rebooted my linux machine for an unrelated reason and now cannot reproduce the issue. It is working now. Sorry for the bother. Regards, Rohit

Re: autocompleter not working on Firefox 1.5 on Linux

2007-04-11 Thread Musachy Barroso
Can you give more details on the problem? Any Javascript error? If you set debug="true" on the head tag, does Dojo report any error? I use FF 2 on Linux and the showcase examples work for me. regards musachy On 4/11/07, Rohit Dewan <[EMAIL PROTECTED]> wrote: I have a working autocompleter on F

Re: autocompleter with JSON plugin

2007-04-06 Thread Rohit Dewan
Hi Musachy, That was it. It works now! Especially given that the autocompleter is structured as a key value pair, supporting maps would be a natural fit. Thanks for creating the enhancement request on JIRA. Regards, Rohit On 4/6/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: The autocomplete

Re: autocompleter with JSON plugin

2007-04-06 Thread Musachy Barroso
The autocompleter is expecting the "datasource" to be an array, not a map(or object), so in this case it should be: {"foos": [ ["1", "chance"], ["10", "test"] ] } Although it would be convenient if it would take a map also: https://issues.apache.org/struts/browse/WW-1872

Re: autocompleter tag

2007-03-03 Thread Musachy Barroso
The problem with the label rendering is tracked here: https://issues.apache.org/struts/browse/WW-1602 and will be fixed for 2.0.7. If all you want to do is pass the text entered on the autocompleter to the action to filter the results, you don't need to use a form, that's supported by the autoco

Re: Autocompleter Specifying Label Name Property

2007-01-09 Thread Musachy Barroso
Here is a jira ticket so you can track it: https://issues.apache.org/struts/browse/WW-1633 musachy André Faria wrote: Hi Musachy, Yes, you are right... The necessity is an attribute to specify the name of the "key" field! Could you implement that? Regards, Thank's, André Faria André Far

Re: Autocompleter Specifying Label Name Property

2007-01-09 Thread André Faria
Thank you so much Musachy ... Where can I get the last builds (not official)... I am getting in http://people.apache.org/maven-snapshot-repository/org/apache/struts/ That's right? Musachy Barroso escreveu: I will add a "keyName" attribute, which if not specified will fallback the the current b

Re: Autocompleter Specifying Label Name Property

2007-01-09 Thread Musachy Barroso
I will add a "keyName" attribute, which if not specified will fallback the the current behavior of "${name}Key". That won't make it for 2.0.3. musachy André Faria wrote: Hi Musachy, Yes, you are right... The necessity is an attribute to specify the name of the "key" field? Regards, T

Re: Autocompleter Specifying Label Name Property

2007-01-09 Thread André Faria
Hi Musachy, Yes, you are right... The necessity is an attribute to specify the name of the "key" field! Could you implement that? Regards, Thank's, André Faria André Faria escreveu: Hi Musachy, Yes, you are right... The necessity is an attribute to specify the name of the "key" fi

Re: Autocompleter Specifying Label Name Property

2007-01-09 Thread André Faria
Hi Musachy, Yes, you are right... The necessity is an attribute to specify the name of the "key" field? Regards, Thank's, André Faria Musachy Barroso escreveu: Hi André, Do you mean adding an attribute to specify the name of the "key" field? That can be done. The "label" attribute

Re: Autocompleter Specifying Label Name Property

2007-01-09 Thread Musachy Barroso
Hi André, Do you mean adding an attribute to specify the name of the "key" field? That can be done. The "label" attribute is a different thing, it is the text that is displayed in front of the autocompleter and it is not submitted to the server. regards musachy André Faria wrote: Hi Musach