Re: [S2] autocompler + ajax in 2.0.11

2007-11-16 Thread Stefano Greco

I think in the URL

http://struts.apache.org/2.x/docs/ajax-tags.html

say how work in 2.1
but I suppose Ajax should work since 2.0

Stefano


- Original Message - 
From: Dave Newton [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, November 16, 2007 3:43 PM
Subject: RE: [S2] autocompler + ajax in 2.0.11



Ajax has been working for quite awhile in S2.0, it's
just better in 2.1.

d.

--- Hernandez, David [EMAIL PROTECTED]
wrote:



Does it work at all? I thought no ajax tags would
work until version 2.1
. . . 


-Original Message-
From: Stefano Greco [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 16, 2007 9:08 AM

To: user@struts.apache.org
Subject: [S2] autocompler + ajax in 2.0.11

Hi,
I'm using autocompler with ajax theme
as in this example:

html
head
   ...
s:head theme=ajax/
..
/head
body
s:form ...
s:url id=getTeams
value=/getTeams.action/
s:autocompleter name=team
key=label.team
href=%{getTeams}
   theme=ajax autoComplete=true
loadOnTextChange=true
   loadMinimumCount=3
showDownArrow=false /
/s:form
/body
/html


If I put theme=ajax as attribute of autocompleter
tag as the example
the label is not visible in HTML rendered.

I I dont use the attribute theme in the tag
autocomplet it doesnt work
very well especially for the attribute 
loadOnTextChange=true

loadMinimumCount=3 showDownArrow=false
that aren't rendered in HTML result.

I think it's a BUG?
Or it's a my mystake?





-

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]

- - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - -

This message is intended only for the personal and
confidential use of the designated recipient(s)
named above.  If you are not the intended recipient
of this message you are hereby notified that any
review, dissemination, distribution or copying of
this message is strictly prohibited.  This
communication is for information purposes only and
should not be regarded as an offer to sell or as a
solicitation of an offer to buy any financial
product, an official confirmation of any
transaction, or as an official statement of Lehman
Brothers.  Email transmission cannot be guaranteed
to be secure or error-free.  Therefore, we do not
represent that this information is complete or
accurate and it should not be relied upon as such. 
All information is subject to change without notice.



IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax
matters contained within this communication
(including any attachments) is not intended or
written to be used and cannot be used for the
purpose of (i) avoiding U.S. tax related penalties
or (ii) promoting, marketing or recommending to
another party any transaction or matter addressed
herein.





-

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[S2] autocompler + ajax in 2.0.11

2007-11-16 Thread Stefano Greco

Hi,
I'm using autocompler with ajax theme
as in this example:

html
   head
  ...
   s:head theme=ajax/
   ..
   /head
   body
   s:form ...
   s:url id=getTeams value=/getTeams.action/
   s:autocompleter name=team key=label.team href=%{getTeams}
  theme=ajax autoComplete=true loadOnTextChange=true
  loadMinimumCount=3 showDownArrow=false /
   /s:form
   /body
/html


If I put theme=ajax as attribute of autocompleter tag as the example
the label is not visible in HTML rendered.

I I dont use the attribute theme in the tag autocomplet
it doesnt work very well especially for the attribute
loadOnTextChange=true loadMinimumCount=3 showDownArrow=false
that aren't rendered in HTML result.

I think it's a BUG?
Or it's a my mystake?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:

struts
   package name=default extends=struts-default
   ...
   ...
   ...
   action name=sampleAJAX
   result/sampleAJAX.jsp/result
   /action

   action name=JSONList
   result/ajax/JSONList.js/result
   /action

   /package

/struts



The file JSONList.js has taken from showcase app example
and it is put in the directory ajax in the web content root.


The file sampleAJAX.jsp is:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
http://www.w3.org/TR/html4/loose.dtd;

%@ page contentType=text/html;charset=windows-1252%
%@ taglib uri=/struts-tags prefix=s%
html
 head
   meta http-equiv=Content-Type content=text/html; 
charset=windows-1252/

   titlesampleAJAX/title
   s:head theme=ajax/
 /head
 body

   s:form action=doSearch
   s:url id=jsonList value=/JSONList.action/
   s:autocompleter href=%{jsonList} cssStyle=width: 200px; 
autoComplete=true/

   /s:form

 /body
/html


Now running but the list in autocompleter doesn't appear.

Why? What's my mistake?


Thank you in advance
Stefano


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[S2] menu

2007-05-16 Thread Stefano Greco

Hello,
there is a way to have menu
using tags in Struts2
or we must use external tags libraries?

Thanks
Stefano



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]