Re: [S2] autocompleter action extension

2008-06-29 Thread Pierre Goupil
You're absolutely right ! I'll stick to the .xhtml extension, as I have no need for .html. Thanks ! Pierre 2008/6/26 Laurie Harper <[EMAIL PROTECTED]>: > My guess is that using an action extension of .html creates a conflict with > the Dojo template resources, which are .html files. If you loo

Re: [S2] autocompleter action extension

2008-06-26 Thread Laurie Harper
My guess is that using an action extension of .html creates a conflict with the Dojo template resources, which are .html files. If you look at your access logs (or use Firebug to see what XHR requests are being made during page rendering), you'll see what I mean. The easiest thing to do is pic

[S2] autocompleter action extension

2008-06-25 Thread Pierre Goupil
Hello all, I would like my S2 project to be mapped to .html actions, so I have set this up : - struts.action.extension=html in my struts.properties - in my xwork-default.xml - in my struts-default.xml. Please note that for the two last ones, I have simply added the property to the original f

S2: autocompleter + action

2007-11-14 Thread Stefano Greco
Hi, I have a problem. I'm trying to use autocompleter reading list from an action using the attribute href. As the example in the showcase i make this: File struts.xml like: ... ... ... /sampleAJAX.jsp /ajax/JSONList.js

Re: [S2] Autocompleter initial value and key

2007-09-19 Thread Pedro Herrera
; >>>> Hi, I need to set an initial value and key for an autocompleter. How >>>> can id do this? I can set the initial value, but can´t never set the >>>> initial key. >>>> >>>> Thanks a lot. >>>> >>> >>> >> >> > > --

Re: [S2] Autocompleter initial value and key

2007-08-22 Thread rrecoba
t; >> Thanks. >> >> >> rrecoba wrote: >>> >>> Hi, I need to set an initial value and key for an autocompleter. How can >>> id do this? I can set the initial value, but can´t never set the initial >>> key. >>> >>> Thank

Re: [S2] Autocompleter initial value and key

2007-08-21 Thread Pedro Herrera
; > > rrecoba wrote: >> >> Hi, I need to set an initial value and key for an autocompleter. How can >> id do this? I can set the initial value, but can´t never set the initial >> key. >> >> Thanks a lot. >> > > -- View this message

Re: [S2] Autocompleter initial value and key

2007-08-21 Thread rrecoba
but can´t never set the initial > key. > > Thanks a lot. > -- View this message in context: http://www.nabble.com/-S2--Autocompleter-initial-value-and-key-tf4291467.html#a12264510 Sent from the Struts - User mailing list

[S2] Autocompleter initial value and key

2007-08-18 Thread rrecoba
Hi, I need to set an initial value and key for an autocompleter. How can id do this? I can set the initial value, but can´t never set the initial key. Thanks a lot. -- View this message in context: http://www.nabble.com/-S2--Autocompleter-initial-value-and-key-tf4291467.html#a12216974 Sent

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
n, which was the name of the Map in my action: json -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11770551 Sent from the Struts - User ma

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
xecute() throws Exception { PersonDAO dao = new PersonDAO(); if(!isEmpty(city)) { json = dao.getCities(city); } return SUCCESS; } -- View this message in context: http://www.nabble.com/-S2--Autocompleter

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
If so, the docs should be changed, > otherwise I could see that being an issue. > > d. > It would appear it works in 2.0.7 (which is why I upgraded to the latest: 2.0.8): http://www.nabble.com/s.autocompleter-with-JSON-Plugin-tf3418364.html#a9529727 -- View this message in conte

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread Musachy Barroso
se" > autoComplete="true" searchType="startstring" /> > > If I visit AutocompleteField.action?city=cle I get the following: > > {"json":["CLEARFIELD","CLEARWATER","CLEBURNE","CLEMMONS","CLERMONT&qu

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread Dave Newton
--- chengas123 <[EMAIL PROTECTED]> wrote: > Is my JSON not formatted properly? http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-autocompleterTag Has the Ajax tag been updated to use JSON from the JSON result type? If so, the docs should be changed, otherwise I could see that being an is

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
ot;,"CLEMMONS","CLERMONT","CLEVELAND"]} > > Thanks, > Ben > http://www.benmccann.com benmccann.com > -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11766335 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] Autocompleter with JSON plugin

2007-07-24 Thread chengas123
More specifically I have: chengas123 wrote: > > Yep, I do. > > > Roberto Nunnari wrote: >> >> Do you have the tag? It won't work without that. >> > > -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-p

[S2] Autocompleter ajax template missing header and footer

2007-07-24 Thread Max Pimm
Hi, in 2.0.8 the ajax template (template/ajax/autocompleter.ftl) is missing the controlheader and footer. I noticed this when i wanted to generate a label for my autocompleter text field. The autocompleter tag accepted the label attribute but did not create the html label element. I have add

Re: [S2] Autocompleter with JSON plugin

2007-07-23 Thread chengas123
Yep, I do. Roberto Nunnari wrote: > > Do you have the tag? It won't work without that. > -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11754924 Sent from the Struts - User mailing list archive

Re: [S2] Autocompleter with JSON plugin

2007-07-23 Thread Roberto Nunnari
Do you have the tag? It won't work without that. chengas123 wrote: Hi, I'm having trouble getting the autocompleter working. When I type in the box, nothing happens. I am using Struts 2.0.8 with JSON plugin 0.15. The relevant lines from my JSP are: autoComplete="true" searchType="st

[S2] Autocompleter with JSON plugin

2007-07-23 Thread chengas123
t;:["CLEARFIELD","CLEARWATER","CLEBURNE","CLEMMONS","CLERMONT","CLEVELAND"]} Thanks, Ben http://www.benmccann.com benmccann.com -- View this message in context: http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.ht

Re: [S2] autocompleter, predefining initial value

2007-07-13 Thread Toni Lyytikäinen
I need to show a >> >> > default >> >> > value to the user. >> >> > >> >> > For example, in the JSON list : >> >> > >> >> > [ >> >> > ["Alabama","AL"], >> >> &

Re: [S2] autocompleter, predefining initial value

2007-07-13 Thread Pedro Herrera
to show a >> >> > default >> >> > value to the user. >> >> > >> >> > For example, in the JSON list : >> >> > >> >> > [ >> >> > ["Alabama","AL"], >> >> > ["Alask

Re: [S2] autocompleter, predefining initial value

2007-07-13 Thread Toni Lyytikäinen
.0.8 and I need to show a >> > default >> > value to the user. >> > >> > For example, in the JSON list : >> > >> > [ >> > ["Alabama","AL"], >> > ["Alaska","AK"], >> >

Re: [S2] autocompleter, predefining initial value

2007-07-13 Thread Pedro Herrera
"], >> > ["Alaska","AK"], >> > ["American Samoa","AS"], >> > ... >> > >> > I need to show by default 'AS(id) - Am

Re: [S2] autocompleter, predefining initial value

2007-07-12 Thread Pedro Herrera
e: >> >> > >> >> > >> >> > I´m using autocompleter tag with Struts 2.0.8 and I need to show a >> >> > default >> >> > value to the user. >> >> > >> >> > For example, in the JSON li

Re: [S2] autocompleter, predefining initial value

2007-07-12 Thread Toni Lyytikäinen
ot;], >> > ["Alaska","AK"], >> > ["American Samoa","AS"], >> > ... >> > >> > I need to show by default 'AS(id) - American Samoa' . How I do this ? >> > >> > >>

Re: [S2] autocompleter, predefining initial value

2007-07-12 Thread Pedro Herrera
;> > value to the user. >> > >> > For example, in the JSON list : >> > >> > [ >> > ["Alabama","AL"], >> > ["Alaska","AK"], >> > ["American Samoa","AS"], &

Re: [S2] autocompleter, predefining initial value

2007-07-12 Thread Toni Lyytikäinen
value to the user. > > For example, in the JSON list : > > [ > ["Alabama","AL"], > ["Alaska","AK"], > ["American Samoa","AS"], > ... > > I need to show by default 'AS(id) - American Samo

Re: [S2] autocompleter, predefining initial value

2007-07-12 Thread Toni Lyytikäinen
uot;Alabama","AL"], ["Alaska","AK"], ["American Samoa","AS"], ... I need to show by default 'AS(id) - American Samoa' . How I do this ? Herrera -- View this message in context: http://www.nabble.com/-S2--autoc

[S2] autocompleter, predefining initial value

2007-07-12 Thread Pedro Herrera
efault 'AS(id) - American Samoa' . How I do this ? Herrera -- View this message in context: http://www.nabble.com/-S2--autocompleter%2C-predefining-initial-value-tf4067166.html#a11556982 Sent from the Struts - User mailing list archive at Nabble.com. --

Re: S2: Autocompleter and focus

2007-05-02 Thread Musachy Barroso
There are 3 input for each autocompleter, the one with the value, and the one with the key are hidden, so setting the focus on them won't work, you need to use the visible one. regards musachy On 5/2/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: var TEAM_LOOKUP = 2; function onbodyload() {

Re: S2: Autocompleter and focus

2007-05-02 Thread Scott Nesbitt
var TEAM_LOOKUP = 2; function onbodyload() { var f = document.getElementById('mainForm'); var t = f.elements[TEAM_LOOKUP]; t.value = parent.originalValue; t.focus(); // this does not work! why? } Scott --- jdmr <[EMAIL PROTECTED]> wrote: > > Would you mind posting the onload s

Re: S2: Autocompleter and focus

2007-04-27 Thread jdmr
Would you mind posting the onload script? I'm having trouble with it... Thanks... David M. Scott Nesbitt wrote: > > > I am having trouble setting the focus on an > autocompleter field. > > When I print out all the fields in my overlay, I see > three for the sports team autocompleter: > > sp

Re: [S2] Autocompleter FATAL exception raised: [object Error]?

2007-04-27 Thread Dave Newton
--- wolverine my <[EMAIL PROTECTED]> wrote: > when entered > http://localhost:8080/test/AjaxTest.action, it > produced the following: > > {"options":[["a","b","c"]]} AFAIK the documentation at: http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-autocompleterTag is still correct for the

[S2] Autocompleter FATAL exception raised: [object Error]?

2007-04-26 Thread wolverine my
Hi! I have the following JSP with AJAX tag and the debug is true: <%@ taglib prefix="s" uri="/struts-tags" %> AJAX the struts.xml looks like the following: and here is my action class: package com.dummy.test.ajax; public class AjaxTest extends ActionS

Re: [S2] Autocompleter and JSON list

2007-04-26 Thread Musachy Barroso
Yes, you might want to use the JSON plugin: http://cwiki.apache.org/S2PLUGINS/json-plugin.html musachy On 4/26/07, wolverine my <[EMAIL PROTECTED]> wrote: In my action class, what is the way to format my the values into JSON string? Do I need to construct the string in JSON format? On 4/26/

Re: [S2] Autocompleter and JSON list

2007-04-26 Thread wolverine my
In my action class, what is the way to format my the values into JSON string? Do I need to construct the string in JSON format? On 4/26/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- wolverine my <[EMAIL PROTECTED]> wrote: > Now, to return the list dynamically (e.g. read from > the database), I

Re: [S2] Autocompleter and JSON list

2007-04-26 Thread Dave Newton
--- wolverine my <[EMAIL PROTECTED]> wrote: > Now, to return the list dynamically (e.g. read from > the database), I will have to retrieve the values > from the database, Yeah. > [...] store it in the session You don't need to store it in session. d.

[S2] Autocompleter and JSON list

2007-04-25 Thread wolverine my
Hi! Based on Struts showcase, I have tried the below AJAX tags: and the JSONList action simply return the hardcoded contents of /ajax/JSONList.js: [ ["Alabama","AL"], ["Alaska","AK"], ... ["Wyoming","WY"] ] Now, to return the list dynamically (e.g. read from the database

Re: S2: Autocompleter and focus

2007-04-19 Thread Aridany Ramirez
Hello, i´m testing s:autocompleter (struts 2.0.6), but is not working, dojo is showing an error, is not finding the file "struts/struts.js". Any ideas?? Thanks. 2007/4/19, Musachy Barroso <[EMAIL PROTECTED]>: IMO you might get better help on the Dojo forum. You should also check Dojo's code

Re: S2: Autocompleter and focus

2007-04-19 Thread Musachy Barroso
IMO you might get better help on the Dojo forum. You should also check Dojo's code for ComboBox as I know they are hooking listeners to the focus events. Another suggestion is to try what you are doing on a simple page using Dojo's widget, without Struts, that way you will know if it is a Dojo o

Re: S2: Autocompleter and focus

2007-04-19 Thread Scott Nesbitt
I do use the visible, nameless one to hold the value. However, though I can set the value on it, it ignores my request for focus(). So are you are saying I should ask this in the Dojo area? Thanks, Scott --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > One has the ${name} you entered in the

Re: S2: Autocompleter and focus

2007-04-18 Thread Musachy Barroso
One has the ${name} you entered in the name attribute, and it will have the value entered on the visible input. The one with the name ${name}Key has the key for the selected value, and the visible one (the one with no name) is for typing. Why not use the visible one as the one holding the value?

S2: Autocompleter and focus

2007-04-18 Thread Scott Nesbitt
I am having trouble setting the focus on an autocompleter field. When I print out all the fields in my overlay, I see three for the sports team autocompleter: sportsTeam sportsTeamKey (one with no name) (why does it have no name?) Here is how it is declared: In my onbodyload() function

Re: S2: Autocompleter strange behavior

2007-04-10 Thread Musachy Barroso
No, the comma should not be a problem. I can't debug it right now, I will late you know later. In the meantime creating a Jira ticket would ensure I don't forget it :) musachy On 4/10/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: Yes, the JSON looks good. For the 3, 4, backspace 3 it returns

Re: S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt
Yes, the JSON looks good. For the 3, 4, backspace 3 it returns the identical data: [ ["NCAA BKBL ATLANTIC 10 CONF-EAST"], ["NCAA BKBL ATLANTIC COAST CONF"], ["NCAA BKBL BIG 10 CONF"], ["NCAA BKBL BIG 12 CONF"], ["NCAA BKBL BIG EAST CONF"], ["NCAA B

Re: S2: Autocompleter strange behavior

2007-04-10 Thread Musachy Barroso
Looks right, and is it returning data for all of them? musachy On 4/10/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: Well, because loadMinimumCount is set to 2 it does not fire with one char. Here are the requests for strings of length 2, 3, 4, then backspace to 3 from fiddler. GET /enames2/

Re: S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt
Well, because loadMinimumCount is set to 2 it does not fire with one char. Here are the requests for strings of length 2, 3, 4, then backspace to 3 from fiddler. GET /enames2/html/LookupOrgs.action?org=nc HTTP/1.1 GET /enames2/html/LookupOrgs.action?org=nca HTTP/1.1 GET /enames2/html/LookupOrgs.

S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt
I am using the autocompleter tag like this: When I type a two-char string in the text box it works fine: six items in the dropdown. However, when I add another char there is nothing in the dropdown. When I add a fourth char I get six items again. When I backspace to three chars

Re: S2: Autocompleter strange behavior

2007-04-10 Thread Musachy Barroso
Can you post the url that its using for 1,2,3,4 characters? You can use FireBug for that, they should be something like http://../LookupOrgs.action?org=ab http://../LookupOrgs.action?org=abc ... regards musachy On 4/10/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote: I am using the auto

Re: [S2] [s2] autocompleter

2007-02-22 Thread Musachy Barroso
thanks >> Ron >> >> > > -- View this message in context: http://www.nabble.com/-s2--autocompleter-tf3271959.html#a9098391 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e

Re: [S2] [s2] autocompleter

2007-02-22 Thread Ron Chan
there´re several examples about that. > > Herrera > > > > Ron Chan wrote: >> >> where can I set the font of the dropdown list for the autocompleter? >> >> thanks >> Ron >> >> > > -- View this message in context: http://www

Re: [S2] [s2] autocompleter

2007-02-22 Thread Pedro Herrera
look at struts2-showcase.war , there´re several examples about that. Herrera Ron Chan wrote: > > where can I set the font of the dropdown list for the autocompleter? > > thanks > Ron > > -- View this message in context: http://www.nabble.com/-s2--autocompleter-tf

[s2] autocompleter

2007-02-22 Thread Ron Chan
where can I set the font of the dropdown list for the autocompleter? thanks Ron -- View this message in context: http://www.nabble.com/-s2--autocompleter-tf3271959.html#a9097345 Sent from the Struts - User mailing list archive at Nabble.com

Re: [S2] - autocompleter requires 'list' even if href is defined

2007-01-10 Thread Don Brown
It has now. Don On 1/10/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: We moved from xdoclet to annotation-based tld generation. In that process a bug was introduced on the autocompleter, here is a ticket with the patch https://issues.apache.org/struts/browse/WW-1611 It hasn't been applied ye

Re: [S2] - autocompleter requires 'list' even if href is defined

2007-01-10 Thread Musachy Barroso
We moved from xdoclet to annotation-based tld generation. In that process a bug was introduced on the autocompleter, here is a ticket with the patch https://issues.apache.org/struts/browse/WW-1611 It hasn't been applied yet. musachy Dariusz Wojtas wrote: Hi, This is something recent as abo

[S2] - autocompleter requires 'list' even if href is defined

2007-01-10 Thread Dariusz Wojtas
Hi, This is something recent as about a week ago therew as no such problem. Now autocompleter complains if there is no 'list' param set for it. If I set it to some dummy value than it seems to work. I remember there was some issue about that a few days ago in JIRA but can't find it. I am running

Re: [S2] autocompleter, predefining initial value

2007-01-01 Thread Musachy Barroso
I logged WW-1589 (https://issues.apache.org/struts/browse/WW-1589) with a patch for the resubmit problem. regards musachy Dariusz Wojtas wrote: Hey! Your fix works as you said. Under both IE and Opera. There are still the issues described in my previous mail (resubmit of stacked autocompleter

Re: [S2] autocompleter, predefining initial value

2006-12-31 Thread Dariusz Wojtas
Hey! Your fix works as you said. Under both IE and Opera. There are still the issues described in my previous mail (resubmit of stacked autocompleters on all browsers, dropdown problem on Opera), but the things that you just fixed - do work as expected. I just had to refresh/clear cache in IE and

Re: [S2] autocompleter, predefining initial value

2006-12-31 Thread Musachy Barroso
With the "Object error" and the encoding problem out of the way I will start looking at other problems next year :) regards musachy Dariusz Wojtas wrote: Hi Musachy, I have just built new S2 (after tag 2.0.2), made sure that the old JAR files are replaced and restarted it. If something is fix

Re: [S2] autocompleter, predefining initial value

2006-12-31 Thread Musachy Barroso
That was quick! The change is on head already. musachy Musachy Barroso wrote: Sorry for the false news :). The issue was closed but it seems like it hasn't been committed yet. https://issues.apache.org/struts/browse/WW-1583 regards musachy Dariusz Wojtas wrote: Hi Musachy, I have just bui

Re: [S2] autocompleter, predefining initial value

2006-12-31 Thread Musachy Barroso
Sorry for the false news :). The issue was closed but it seems like it hasn't been committed yet. https://issues.apache.org/struts/browse/WW-1583 regards musachy Dariusz Wojtas wrote: Hi Musachy, I have just built new S2 (after tag 2.0.2), made sure that the old JAR files are replaced and res

Re: [S2] autocompleter, predefining initial value

2006-12-31 Thread Dariusz Wojtas
Hi Musachy, I have just built new S2 (after tag 2.0.2), made sure that the old JAR files are replaced and restarted it. If something is fixed - great, but it still misbehaves under IE and Opera. There is also some issue common to all browsers (including FF): *) If I have 3 stacked autocompleters

Re: [S2] autocompleter, predefining initial value

2006-12-31 Thread Musachy Barroso
Both problems should now be fixed on IE 6. regards musachy Musachy Barroso wrote: I will fix it so it ignores that null value. UTF-8 works. regards musachy Dariusz Wojtas wrote: I am not really sure if it worked before, both autcompleter and my code do evolve ;) I was always using JSP with U

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
I will fix it so it ignores that null value. UTF-8 works. regards musachy Dariusz Wojtas wrote: I am not really sure if it worked before, both autcompleter and my code do evolve ;) I was always using JSP with UTF-8 encoding to generate my options. Is UTF-8 a problem here? You mean [ ["A", "

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
I am not really sure if it worked before, both autcompleter and my code do evolve ;) I was always using JSP with UTF-8 encoding to generate my options. Is UTF-8 a problem here? You mean [ ["A", "B"] , ] is problematical for IE, but [ ["A", "B"] ] will work? Should I change something in the

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
This is what I found so far, there are 2 problems, one is that when there is a json array like: [ ["A", "B"] , ] IE puts a null object in the array. That one is easy to fix. The other problem is that using freemaker, like in showcase to render the json array, the charset of the response is se

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
showcase, just built ans started on tomcat 5.5.17 1) Firefox Everything seems to work. About the preloaded aurocompletes at the bottom: Yes, the value is preloaded but entering and leaving the "Autocompleter 1" makes it clear on blur. But filtering of "Autocompleter 2" works as expected, even whe

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
Is showcase working for you? On IE I'm getting a "Error: System error: -1072896658". Some people have had the same problem due to encoding issues. The error message is really explicit :) musachy Dariusz Wojtas wrote: On 12/28/06, Martin Gainty <[EMAIL PROTECTED]> wrote: can we see the autoCo

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
On 12/28/06, Martin Gainty <[EMAIL PROTECTED]> wrote: can we see the autoCompleter code any relevant JS (setBeforeLoading,setAfterLoading) ok, the last question made me check the code again. I found an error in my code - an artefact from the yesterdays autocompleter usage. formId="kalku

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Martin Gainty
nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: "Dariusz Wojtas" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, December 28, 2006 10:26 AM Subject: Re: [S2]

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
Hi, These are excerpts from my JSP page: And the direct dependent autocompleter: Values "AUDI" and 354 are axactly the same as one of the pairs returned by the JSON list. The 'disappear' behaviour happens on Firefox 2. I have 3 autocompleters in chain

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
Dariusz Wojtas wrote: But If I open such page [the same values preloaded] and just click somewhere in that autocompleter [no changes] and leave the field - the value is lost. Some event is generated that causes fresh reload of the field. Submitted form shows both properties empty. Are you usi

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
Hi Musachy, I tried as you advised. Works, no more exceptions and the values are set as expected. But there is still some little problem with preloading. Now I have properties private String carMaker = "AUDI"; private Integer carMakerKey = 354; with hardcoded initial value, just for test. I

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
I forgot to mention the postfix was "_selected" before, from the Dojo widget, I changed it to "Key" to make it less cryptic, and it won't change anymore. musachy Musachy Barroso wrote: Hi Dariusz I need to update the documentation with this info, the thing is that for each autocompleter, st

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Musachy Barroso
Hi Dariusz I need to update the documentation with this info, the thing is that for each autocompleter, struts will create 2 fields, one for the text entered, with the name "${name}" and another for the key, with the name "${name}Key", we need both to "remember" the values if there is a valid

Re: [S2] autocompleter, predefining initial value

2006-12-28 Thread Dariusz Wojtas
Hello, I am very happy with the changes being made. They really seem to help - on Firefox 2 :) I can see much better propagation of events in cascaded autocompleters, predefining seems to work on the simple test case that I made. But there are still problems, some of them seem to be very new. I

Re: [S2] autocompleter, predefining initial value

2006-12-27 Thread Musachy Barroso
I attached a patch to WW-1562 to fix some of the things you requested. regards musachy Dariusz Wojtas wrote: I would leave the current behaviour as the default. When there is small amount of data (up to hundreds of entries) it may give the end user feeling of a faster response. If there is more

Re: [S2] autocompleter, predefining initial value

2006-12-17 Thread Dariusz Wojtas
I would leave the current behaviour as the default. When there is small amount of data (up to hundreds of entries) it may give the end user feeling of a faster response. If there is more data then the developer should make use the the new feature. The info about reloading is a great news :) Thank

Re: [S2] autocompleter, predefining initial value

2006-12-17 Thread Musachy Barroso
Making the autocompleter reload its content while typing was easier than expected :). Do you think it would be better to have that behavior , or the current one, by default? musachy Dariusz Wojtas wrote: Hi, I am using Struts 2.0.2, trunk. I have an action (/listy/kodyPocztowe) that returns

Re: [S2] autocompleter, predefining initial value

2006-12-15 Thread Musachy Barroso
The initial value can be set with "value" if you are setting the options with "list". If the values are loaded dynamically, then the initial value cannot be set, this is something that could be done, but I wasn't sure that it was a good idea, cause maybe the value was not one of the possible op

[S2] autocompleter, predefining initial value

2006-12-15 Thread Dariusz Wojtas
Hi, I am using Struts 2.0.2, trunk. I have an action (/listy/kodyPocztowe) that returns postal codes [id, name] and another action that server a form (form points to the same action back). How to define the initial value in the autocompleter field? Even if I submit the form and it reloads with