Re: Ajax Requirement

2007-02-28 Thread robin bajaj

Another good online example using JWP
http://www.learntechnology.net/content/ajax/ajax_select_alter.jsp

On 2/28/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote:


Thanks for the reply.

Can you please tell me which cookbook example which you are referring.

I went through showcase.war, there was doubleselect which was closest to
my
requirement, but, it doesn't hit the server for change in master select.
But, in my case I want some sql query to be executed to find the result of
child select.

Is there any similar example anywhere which I can refer?

Thanks
siva

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 7:52 PM
To: Struts Users Mailing List
Subject: Re: Ajax Requirement

JWP doesn't offer ready-made components such as this (yet!!), but it
*does* make developing them very simple (and without you having to code
Javascript usually)... this particular case is actually one of our
cookbook examples, so I suppose you could in fact say it offer this
particular item :)

Frank

Musachy Barroso wrote:
> If you are using the "autocompleter" tag, this is done already, and
> there is
> an example on showcase. If not, you will have to do everything my hand,
for
> which I would recommend using a framework that already has it, like
> AjaxTags, not sure if Java Web Parts has something like this also,
Frank?
>
> regards
> musachy
>
> On 2/27/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>>
>>
>> I am new to Struts 2. I have following requirement on Ajax. Can
somebody
>> explain me how to implement this requirement?
>>
>>
>>
>> There is form in which there are 2 selects. One is a master select and
>> other
>> is child select whose values changes based on master select. I want to
>> implement in Ajax. This is similar to having 2 selects one with Country
>> and
>> other with states. Based on selection of Country, values in state
select
>> changes.  There are also other fields in the form which will be
submitted
>> when all the fields are entered properly.
>>
>>
>>
>> Thanks
>>
>> siva
>>
>>
>
>

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
  (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!




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




RE: Ajax Requirement

2007-02-28 Thread Frank W. Zammetti
I was referring to the JWP cookbook actually :)

JWP, short for Java Web Parts, can be found here:

http://javawebparts.sourceforge.net

The part you will be most interested in for this is APT, the AjaxParts
Taglib:

http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html

The cookbook, where APT is used to do a dynamic double-select as you
describe is here:

http://sourceforge.net/project/showfiles.php?group_id=140728&package_id=167877

Frank


-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

On Wed, February 28, 2007 3:11 am, Siva Gurusamy wrote:
> Thanks for the reply.
>
> Can you please tell me which cookbook example which you are referring.
>
> I went through showcase.war, there was doubleselect which was closest to
> my
> requirement, but, it doesn't hit the server for change in master select.
> But, in my case I want some sql query to be executed to find the result of
> child select.
>
> Is there any similar example anywhere which I can refer?
>
> Thanks
> siva
>
> -Original Message-
> From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 27, 2007 7:52 PM
> To: Struts Users Mailing List
> Subject: Re: Ajax Requirement
>
> JWP doesn't offer ready-made components such as this (yet!!), but it
> *does* make developing them very simple (and without you having to code
> Javascript usually)... this particular case is actually one of our
> cookbook examples, so I suppose you could in fact say it offer this
> particular item :)
>
> Frank
>
> Musachy Barroso wrote:
>> If you are using the "autocompleter" tag, this is done already, and
>> there is
>> an example on showcase. If not, you will have to do everything my hand,
> for
>> which I would recommend using a framework that already has it, like
>> AjaxTags, not sure if Java Web Parts has something like this also,
>> Frank?
>>
>> regards
>> musachy
>>
>> On 2/27/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi,
>>>
>>>
>>>
>>> I am new to Struts 2. I have following requirement on Ajax. Can
>>> somebody
>>> explain me how to implement this requirement?
>>>
>>>
>>>
>>> There is form in which there are 2 selects. One is a master select and
>>> other
>>> is child select whose values changes based on master select. I want to
>>> implement in Ajax. This is similar to having 2 selects one with Country
>>> and
>>> other with states. Based on selection of Country, values in state
>>> select
>>> changes.  There are also other fields in the form which will be
>>> submitted
>>> when all the fields are entered properly.
>>>
>>>
>>>
>>> Thanks
>>>
>>> siva
>>>
>>>
>>
>>
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM/Yahoo: fzammetti
> MSN: [EMAIL PROTECTED]
> Author of "Practical Ajax Projects With Java Technology"
>   (2006, Apress, ISBN 1-59059-695-1)
> Java Web Parts - http://javawebparts.sourceforge.net
>   Supplying the wheel, so you don't have to reinvent it!
>
>
>
>
> -
> 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]



Re: Ajax Requirement

2007-02-28 Thread Musachy Barroso

In the ajax section(in showcase), look for the Autocompleter Tag. Also here:

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

musachy

On 2/28/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote:


Thanks for the reply.

Can you please tell me which cookbook example which you are referring.

I went through showcase.war, there was doubleselect which was closest to
my
requirement, but, it doesn't hit the server for change in master select.
But, in my case I want some sql query to be executed to find the result of
child select.

Is there any similar example anywhere which I can refer?

Thanks
siva

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 7:52 PM
To: Struts Users Mailing List
Subject: Re: Ajax Requirement

JWP doesn't offer ready-made components such as this (yet!!), but it
*does* make developing them very simple (and without you having to code
Javascript usually)... this particular case is actually one of our
cookbook examples, so I suppose you could in fact say it offer this
particular item :)

Frank

Musachy Barroso wrote:
> If you are using the "autocompleter" tag, this is done already, and
> there is
> an example on showcase. If not, you will have to do everything my hand,
for
> which I would recommend using a framework that already has it, like
> AjaxTags, not sure if Java Web Parts has something like this also,
Frank?
>
> regards
> musachy
>
> On 2/27/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>>
>>
>> I am new to Struts 2. I have following requirement on Ajax. Can
somebody
>> explain me how to implement this requirement?
>>
>>
>>
>> There is form in which there are 2 selects. One is a master select and
>> other
>> is child select whose values changes based on master select. I want to
>> implement in Ajax. This is similar to having 2 selects one with Country
>> and
>> other with states. Based on selection of Country, values in state
select
>> changes.  There are also other fields in the form which will be
submitted
>> when all the fields are entered properly.
>>
>>
>>
>> Thanks
>>
>> siva
>>
>>
>
>

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
  (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!




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





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


RE: Ajax Requirement

2007-02-28 Thread Siva Gurusamy
Thanks for the reply.

Can you please tell me which cookbook example which you are referring.

I went through showcase.war, there was doubleselect which was closest to my
requirement, but, it doesn't hit the server for change in master select.
But, in my case I want some sql query to be executed to find the result of
child select. 

Is there any similar example anywhere which I can refer?

Thanks
siva

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 27, 2007 7:52 PM
To: Struts Users Mailing List
Subject: Re: Ajax Requirement

JWP doesn't offer ready-made components such as this (yet!!), but it 
*does* make developing them very simple (and without you having to code 
Javascript usually)... this particular case is actually one of our 
cookbook examples, so I suppose you could in fact say it offer this 
particular item :)

Frank

Musachy Barroso wrote:
> If you are using the "autocompleter" tag, this is done already, and 
> there is
> an example on showcase. If not, you will have to do everything my hand,
for
> which I would recommend using a framework that already has it, like
> AjaxTags, not sure if Java Web Parts has something like this also, Frank?
> 
> regards
> musachy
> 
> On 2/27/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>>
>>
>> I am new to Struts 2. I have following requirement on Ajax. Can somebody
>> explain me how to implement this requirement?
>>
>>
>>
>> There is form in which there are 2 selects. One is a master select and
>> other
>> is child select whose values changes based on master select. I want to
>> implement in Ajax. This is similar to having 2 selects one with Country
>> and
>> other with states. Based on selection of Country, values in state select
>> changes.  There are also other fields in the form which will be submitted
>> when all the fields are entered properly.
>>
>>
>>
>> Thanks
>>
>> siva
>>
>>
> 
> 

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
  (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!




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



Re: Ajax Requirement

2007-02-27 Thread Frank W. Zammetti
JWP doesn't offer ready-made components such as this (yet!!), but it 
*does* make developing them very simple (and without you having to code 
Javascript usually)... this particular case is actually one of our 
cookbook examples, so I suppose you could in fact say it offer this 
particular item :)


Frank

Musachy Barroso wrote:
If you are using the "autocompleter" tag, this is done already, and 
there is

an example on showcase. If not, you will have to do everything my hand, for
which I would recommend using a framework that already has it, like
AjaxTags, not sure if Java Web Parts has something like this also, Frank?

regards
musachy

On 2/27/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote:


Hi,



I am new to Struts 2. I have following requirement on Ajax. Can somebody
explain me how to implement this requirement?



There is form in which there are 2 selects. One is a master select and
other
is child select whose values changes based on master select. I want to
implement in Ajax. This is similar to having 2 selects one with Country
and
other with states. Based on selection of Country, values in state select
changes.  There are also other fields in the form which will be submitted
when all the fields are entered properly.



Thanks

siva







--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

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



Re: Ajax Requirement

2007-02-27 Thread Musachy Barroso

If you are using the "autocompleter" tag, this is done already, and there is
an example on showcase. If not, you will have to do everything my hand, for
which I would recommend using a framework that already has it, like
AjaxTags, not sure if Java Web Parts has something like this also, Frank?

regards
musachy

On 2/27/07, Siva Gurusamy <[EMAIL PROTECTED]> wrote:


Hi,



I am new to Struts 2. I have following requirement on Ajax. Can somebody
explain me how to implement this requirement?



There is form in which there are 2 selects. One is a master select and
other
is child select whose values changes based on master select. I want to
implement in Ajax. This is similar to having 2 selects one with Country
and
other with states. Based on selection of Country, values in state select
changes.  There are also other fields in the form which will be submitted
when all the fields are entered properly.



Thanks

siva





--
"Hey you! Would you help me to carry the stone?" Pink Floyd