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={make}",
 emptyOptionName: "Select model"
 });
 result is then 
 new AjaxJspTag.Select(
 {
 baseUrl: "http://127.0.0.1:8080/cars/FillCarModels";,
 source: "make",
 onCreate: initProgress,
 onComplete: resetProgress,
 onFailure: reportError,
 target: "model",
 parameters: "make={make}",
 emptyOptionName: "Select model"
 });
 then, form contains:
     Značka:
     --
     Škoda
     Hyunday
     Kia
     Toyota
 Model
     Select model
 Still not working ...
 On Tue 03/03/09 14:45 , Mileidys Gonzalez Prieto
mileidys.gonza...@i-frontier.net sent:
  baseUrl: "${contextPath}/FillCarModels", 
 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, k...@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:  
 >     ${pageContext.request.contextPath} 
 >      Značka: 
 >      -- 
 >      Škoda 
 >      Hyunday 
 >      Kia 
 >      Toyota 
 >      Select model 
 >  ... 
 >  /cars/FillCarModel returns XML file with models for make. 
 >  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. 
 >  In html is generated to: 
 >  new AjaxJspTag.Select( 
 >  { 
 >  baseUrl: "${contextPath}/FillCarModels", 
 >  source: "make", 
 >  onCreate: initProgress, 
 >  onComplete: resetProgress, 
 >  onFailure: reportError, 
 >  target: "model", 
 >  parameters: "make={make}", 
 >  emptyOptionName: "Select model" 
 >  }); 
 >  Where can be problem? looks that something is not initialized ...

 >   Thanks, Jiri
 >  On Mon 02/03/09 02:47 , Mileidys Gonzalez Prieto
 > mileidys.gonza...@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.
 >  > 
 >  > 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:
 >  > 
 >  >      model.setList(service.getData1());
 >  > 
 >  > my struts.xml looks like this (note that I am using spring and
I
 > am hitting
 >  > the same action 'class' (demoAction):
 >  > 
 >  >                
 >  > method="execute">
 >  >  jsp/output.jsp
 >  >  jsp/error.jsp
 >  >  
 >  >  
 >  >  jsp/second.jsp
 >  >  jsp/error.jsp
 >  >  
 >  > 
 >  > in my output jsp I have:
 >  > 
 >  > .....
 >  > 
 >  >     
 >  > listValue="entry.desc"  name="selection.listCode"
 >  >     onchange="javascript:load_second_list();return
 >  > false;">
 >  >  
 >  > 
 >  >  
 >  >  
 >  >      
 >  >     
 >  > theme="ajax"
 >  >     listenTopics="load_second_list" formId="demo"/>
 >  >  
 >  >  
 >  > 
 >  > 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)

 >  > 
 >  > 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). 
 >  > 
 >  > 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?
 >  > 
 >  > Thanks,
 >  > 
 >  > 99-L Blue 
 > 
 >
---------------------------------------------------------------------
 >  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org [3]
[1]
 >  For additional commands, e-mail: user-h...@struts.apache.org [4]
[2]
 > 
 > 
 > Links:
 > ------
 > [1] user-unsubscr...@struts.apache.org [5]
 > [2] user-h...@struts.apache.org [6]

---------------------------------------------------------------------
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org [7]
 For additional commands, e-mail: user-h...@struts.apache.org [8]


Links:
------
[1] mailto:k...@chalu.cz
[2] mailto:mileidys.gonza...@i-frontier.net
[3] mailto:user-unsubscr...@struts.apache.org
[4] mailto:user-h...@struts.apache.org
[5] mailto:user-unsubscr...@struts.apache.org
[6] mailto:user-h...@struts.apache.org
[7] mailto:user-unsubscr...@struts.apache.org
[8] mailto:user-h...@struts.apache.org

Reply via email to