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
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
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
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
;
>>>> 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.
>>>>
>>>
>>>
>>
>>
>
>
--
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
;
>
> 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
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
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
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
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
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
se"
> autoComplete="true" searchType="startstring" />
>
> If I visit AutocompleteField.action?city=cle I get the following:
>
>
{"json":["CLEARFIELD","CLEARWATER","CLEBURNE","CLEMMONS","CLERMONT&qu
--- 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
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]
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
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
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
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
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
I need to show a
>> >> > default
>> >> > value to the user.
>> >> >
>> >> > For example, in the JSON list :
>> >> >
>> >> > [
>> >> > ["Alabama","AL"],
>> >> &
to show a
>> >> > default
>> >> > value to the user.
>> >> >
>> >> > For example, in the JSON list :
>> >> >
>> >> > [
>> >> > ["Alabama","AL"],
>> >> > ["Alask
.0.8 and I need to show a
>> > default
>> > value to the user.
>> >
>> > For example, in the JSON list :
>> >
>> > [
>> > ["Alabama","AL"],
>> > ["Alaska","AK"],
>> >
"],
>> > ["Alaska","AK"],
>> > ["American Samoa","AS"],
>> > ...
>> >
>> > I need to show by default 'AS(id) - Am
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
ot;],
>> > ["Alaska","AK"],
>> > ["American Samoa","AS"],
>> > ...
>> >
>> > I need to show by default 'AS(id) - American Samoa' . How I do this ?
>> >
>> >
>>
;> > value to the user.
>> >
>> > For example, in the JSON list :
>> >
>> > [
>> > ["Alabama","AL"],
>> > ["Alaska","AK"],
>> > ["American Samoa","AS"],
&
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
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
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.
--
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()
{
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
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
--- 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
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
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/
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
--- 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.
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
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
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
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
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?
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
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
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
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/
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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", "
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
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
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
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
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
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]
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
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
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
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
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
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
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
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
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
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
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
82 matches
Mail list logo