Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 39767 invoked from network); 4 Mar 2009 09:36:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 09:36:49 -0000 Received: (qmail 71455 invoked by uid 500); 4 Mar 2009 09:36:40 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 71437 invoked by uid 500); 4 Mar 2009 09:36:39 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 71426 invoked by uid 99); 4 Mar 2009 09:36:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 01:36:39 -0800 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,URIBL_RHS_DOB X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.31.49.63] (HELO listonos.core.ignum.cz) (217.31.49.63) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 09:36:32 +0000 Received: from localhost (localhost [127.0.0.1]) by listonos.core.ignum.cz (Postfix) with ESMTP id 793301CF for ; Wed, 4 Mar 2009 10:36:13 +0100 (CET) MIME-Version: 1.0 X-Mailer: AtMail PHP 5.4 Message-ID: <2362.1236159373@chalu.cz> To: "Struts Users Mailing List" Reply-To: konf@chalu.cz Content-Type: multipart/alternative; boundary="=_f3f18cb166db2c0b9fd744c959c11746" X-Origin: 80.95.122.97 X-Atmail-Account: konf@chalu.cz Date: Wed, 4 Mar 2009 10:36:13 +0100 Subject: Re: Struts Ajax Newbie From: konf@chalu.cz X-Virus-Checked: Checked by ClamAV on apache.org --=_f3f18cb166db2c0b9fd744c959c11746 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Hi, I relpaced in by javascript instead of ajaxtag, but generated by ajaxtag: new AjaxJspTag.Select( { baseUrl: "http:///FillCarModels", source: "make", onCreate: initProgress, onComplete: resetProgress, onFailure: reportError, target: "model", parameters: "make=3D{make}", emptyOptionName: "Select model" }); result is then=20 new AjaxJspTag.Select( { baseUrl: "http://127.0.0.1:8080/cars/FillCarModels", source: "make", onCreate: initProgress, onComplete: resetProgress, onFailure: reportError, target: "model", parameters: "make=3D{make}", emptyOptionName: "Select model" }); then, form contains: Zna=C4=8Dka: -- =C5=A0koda Hyunday Kia Toyota Model Select model Still not working ... On Tue 03/03/09 14:45 , Mileidys Gonzalez Prieto mileidys.gonzalez@i-frontier.net sent: baseUrl: "${contextPath}/FillCarModels",=20 for me looks like the url is not the real url... can y send the piece of code where u call the ajaxtags? On Tue, 2009-03-03 at 10:37 +0100, konf@chalu.cz [1] wrote: > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; > }Hallo, it is not really for this forum, but thread is already here. > I have following problem with ajaxtags, described in ajaxtags forum, > but maybe it is not visited often. For javascript sources and function > - it is the same if it is included in html head or body. > I have form in included tiles template, which has: =20 > ${pageContext.request.contextPath}=20 > Zna=C4=8Dka:=20 > --=20 > =C5=A0koda=20 > Hyunday=20 > Kia=20 > Toyota=20 > Select model=20 > ...=20 > /cars/FillCarModel returns XML file with models for make.=20 > But using this not works, base URL is not called (there is some log > messages, which are not in log). If I will use hard codded path to > baseUrl, then init method of this servlet is called, but neither > doGet or doPost.=20 > In html is generated to:=20 > new AjaxJspTag.Select(=20 > {=20 > baseUrl: "${contextPath}/FillCarModels",=20 > source: "make",=20 > onCreate: initProgress,=20 > onComplete: resetProgress,=20 > onFailure: reportError,=20 > target: "model",=20 > parameters: "make=3D{make}",=20 > emptyOptionName: "Select model"=20 > });=20 > Where can be problem? looks that something is not initialized ... > Thanks, Jiri > On Mon 02/03/09 02:47 , Mileidys Gonzalez Prieto > mileidys.gonzalez@i-frontier.net [2] sent: > Well, for to do actions like that in my code I'm using AjaxTags. > http://ajaxtags.sourceforge.net/ > Is really easy to use... > On Sun, 2009-03-01 at 15:47 -0800, chumbobumbo wrote: > > This is probably so basic - I'll put my flame proof suit just in > case. > >=20 > > I have a 2 combos and (yes ;-) I would like the second one to be > loaded > > depending on what's been chosen in the first one, so in my action > execute > > method I have: > >=20 > > model.setList(service.getData1()); > >=20 > > my struts.xml looks like this (note that I am using spring and I > am hitting > > the same action 'class' (demoAction): > >=20 > > =20 > > method=3D"execute"> > > jsp/output.jsp > > jsp/error.jsp > > =20 > > =20 > > jsp/second.jsp > > jsp/error.jsp > > =20 > >=20 > > in my output jsp I have: > >=20 > > ..... > >=20 > > =20 > > listValue=3D"entry.desc" name=3D"selection.listCode" > > onchange=3D"javascript:load_second_list();return > > false;"> > > =20 > >=20 > > =20 > > =20 > > =20 > > =20 > > theme=3D"ajax" > > listenTopics=3D"load_second_list" formId=3D"demo"/> > > =20 > > =20 > >=20 > > that's all fine and dandy, but when I call loadSecond.action I > find that my > > model is re-initialised anew (i.e. as the action is marked > 'prototype' in > > spring config, the data for the first combo is no longer there) > >=20 > > obviously I need data in the 1st combo to be available in the > resulting > > page, as the user should be allowed to change the first selection > (that > > would in turn relaod the second combo again).=20 > >=20 > > Is there a way to serialize/cache the data that was retrieved in > the first > > call so that it is available in the subsequent call other than > putting it in > > the session? > >=20 > > Thanks, > >=20 > > 99-L Blue=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org [3] [1] > For additional commands, e-mail: user-help@struts.apache.org [4] [2] >=20 >=20 > Links: > ------ > [1] user-unsubscribe@struts.apache.org [5] > [2] user-help@struts.apache.org [6] --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org [7] For additional commands, e-mail: user-help@struts.apache.org [8] Links: ------ [1] mailto:konf@chalu.cz [2] mailto:mileidys.gonzalez@i-frontier.net [3] mailto:user-unsubscribe@struts.apache.org [4] mailto:user-help@struts.apache.org [5] mailto:user-unsubscribe@struts.apache.org [6] mailto:user-help@struts.apache.org [7] mailto:user-unsubscribe@struts.apache.org [8] mailto:user-help@struts.apache.org --=_f3f18cb166db2c0b9fd744c959c11746--