Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Ajax Double Combo example?

    11 answers - 295 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Are there any examples of how to implement an Ajax enabled double combo
    box? Is there a component that supports this?
    I was hoping for something simple for those of us who are uh,
    ajax-challenged I looked through Tacos and didn't see anything.
    Thanks,
    Mark
  • No.1 | | 465 bytes | |

    in tacos have a look at ajaxevensubmit and hook it to the onchange of your
    combo boxes.

    9/23/06, Mark Helmstetter <helmstetter (AT) gmail (DOT) comwrote:

    Are there any examples of how to implement an Ajax enabled double combo
    box? Is there a component that supports this?

    I was hoping for something simple for those of us who are uh,
    ajax-challenged I looked through Tacos and didn't see anything.

    Thanks,
    Mark
    --
  • No.2 | | 955 bytes | |

    K, I think that got me pointed in the right direction, but I'm still having
    trouble.

    I tried the AjaxEventSubmit example:

    but my listener does not seem to be invoked when the list selection changes.
    Any ideas?

    Thanks,
    mark

    karthik.nar wrote:

    in tacos have a look at ajaxevensubmit and hook it to the onchange of your
    combo boxes.

    9/23/06, Mark Helmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>

    >Are there any examples of how to implement an Ajax enabled double combo
    >box? Is there a component that supports this?
    >>

    >I was hoping for something simple for those of us who are uh,
    >ajax-challenged I looked through Tacos and didn't see anything.
    >>

    >Thanks,
    >Mark
    >>
    >>
  • No.3 | | 1165 bytes | |

    You can do the same thing pretty easily in Tapestry 4.1.

    9/25/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    --
    K, I think that got me pointed in the right direction, but I'm still
    having
    trouble.

    I tried the AjaxEventSubmit example:

    but my listener does not seem to be invoked when the list selection
    changes.
    Any ideas?

    Thanks,
    mark
    >
    >
    >

    karthik.nar wrote:

    in tacos have a look at ajaxevensubmit and hook it to the onchange of
    your
    combo boxes.

    9/23/06, Mark Helmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>

    >Are there any examples of how to implement an Ajax enabled double combo
    >box? Is there a component that supports this?
    >>

    >I was hoping for something simple for those of us who are uh,
    >ajax-challenged I looked through Tacos and didn't see anything.
    >>

    >Thanks,
    >Mark
    >>
    >>

    >
    >
  • No.4 | | 1721 bytes | |

    if you're on 4.1 do as jesse suggests.

    if you're on 4.0 then:

    1. make sure your ajaxeventsubmit is declared BEFRE the combo boxes
    2. make sure you got your event name right - this can be tried out by having
    a simple alert('hello world') to make sure the right even is in fact getting
    generated. usually case sensitivity is where there is an issue - for eg.
    onChange should really be onchange

    hth.

    9/26/06, Jesse Kuhnert <jkuhnert (AT) gmail (DOT) comwrote:

    You can do the same thing pretty easily in Tapestry 4.1.

    9/25/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    --
    K, I think that got me pointed in the right direction, but I'm still
    having
    trouble.

    I tried the AjaxEventSubmit example:

    but my listener does not seem to be invoked when the list selection
    changes.
    Any ideas?

    Thanks,
    mark
    >
    >
    >

    karthik.nar wrote:

    in tacos have a look at ajaxevensubmit and hook it to the onchange of
    your
    combo boxes.

    9/23/06, Mark Helmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>

    >Are there any examples of how to implement an Ajax enabled double

    combo
    >box? Is there a component that supports this?
    >>

    >I was hoping for something simple for those of us who are uh,
    >ajax-challenged I looked through Tacos and didn't see anything.
    >>

    >Thanks,
    >Mark
    >>
    >>

    >
    >
  • No.5 | | 3656 bytes | |

    Thanks for the pointer Jesse. I managed to get my stuff ported over to
    Tapestry 4.1, but I'm still having trouble.

    I basically copied the code from your TimeTracker example and attempted to
    change the Autocompleter to instead be a PropertySelection. Somehow my
    listener is still not getting called. I'm sure there's something simple
    that I'm missing (I hope).

    I've included the code below, thanks again for your help.

    Here's my Java page class:
    public abstract class AjaxTest extends BasePage {

    private static final Log log = LogFactory.getLog(AjaxTest.class);

    public abstract Locale getSelectedProject();

    @Component(id = "projectChoose", bindings = { "model=projectModel",
    "value=selectedProject",
    "", "Change=true",
    "validators=validators:required"})
    public abstract PropertySelection getProjectChoose();

    public IPropertySelectionModel getProjectModel() {
    return new BeanPropertySelectionModel(
    Arrays.asList(Locale.getAvailableLocales()),
    "displayCountry");
    }

    @EventListener(targets = "projectChoose", events = "",
    submitForm = "profileForm")
    public void projectSelected(IRequestCycle cycle, BrowserEvent event) {
    log.debug("");

    }
    }

    and here's my html:
    <body jwcid="@border" title="xxx">
    <form jwcid="profileForm@Form" class="container"
    clientValidationEnabled="true" >
    <span jwcid="projectChoose"/>
    </form>
    </body>

    Jessek wrote:

    You can do the same thing pretty easily in Tapestry 4.1.

    9/25/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>
    >>

    >K, I think that got me pointed in the right direction, but I'm still
    >having
    >trouble.
    >>

    >I tried the AjaxEventSubmit example:
    >
    >>

    >but my listener does not seem to be invoked when the list selection
    >changes.
    >Any ideas?
    >>

    >Thanks,
    >mark
    >>
    >>
    >>

    >karthik.nar wrote:
    >>

    >in tacos have a look at ajaxevensubmit and hook it to the onchange of
    >your
    >combo boxes.
    >>

    >9/23/06, Mark Helmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>

    >>Are there any examples of how to implement an Ajax enabled double

    >combo
    >>box? Is there a component that supports this?
    >>>

    >>I was hoping for something simple for those of us who are uh,
    >>ajax-challenged I looked through Tacos and didn't see anything.
    >>>

    >>Thanks,
    >>Mark
    >>>
    >>>

    >>
    >>

    >--
    >Thanks, Karthik
    >>
    >>
    >>

    >--
    >View this message in context:
    >#a6493297
    >Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>
    >>

    >
    >To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>
    >>
  • No.6 | | 4040 bytes | |

    I believe on a native html select element the proper event to listen for is
    "onchange". That's why I've not hard coded any of the event names into
    Tapestry itselfWayy too much potential for me f-ing things up ;)

    9/26/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    --
    Thanks for the pointer Jesse. I managed to get my stuff ported over to
    Tapestry 4.1, but I'm still having trouble.

    I basically copied the code from your TimeTracker example and attempted to
    change the Autocompleter to instead be a PropertySelection. Somehow my
    listener is still not getting called. I'm sure there's something simple
    that I'm missing (I hope).

    I've included the code below, thanks again for your help.

    Here's my Java page class:
    public abstract class AjaxTest extends BasePage {

    private static final Log log = LogFactory.getLog(AjaxTest.class
    );

    public abstract Locale getSelectedProject();

    @Component(id = "projectChoose", bindings = {
    "model=projectModel",
    "value=selectedProject",
    "",
    "Change=true",
    "validators=validators:required"})
    public abstract PropertySelection getProjectChoose();

    public IPropertySelectionModel getProjectModel() {
    return new BeanPropertySelectionModel(
    Arrays.asList(Locale.getAvailableLocales()),
    "displayCountry");
    }

    @EventListener(targets = "projectChoose", events = "",
    submitForm = "profileForm")
    public void projectSelected(IRequestCycle cycle, BrowserEvent event)
    {
    log.debug("");

    }
    }

    and here's my html:
    <body jwcid="@border" title="xxx">
    <form jwcid="profileForm@Form" class="container"
    clientValidationEnabled="true" >
    <span jwcid="projectChoose"/>
    </form>
    </body>
    --
    Jessek wrote:

    You can do the same thing pretty easily in Tapestry 4.1.

    9/25/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>
    >>

    >K, I think that got me pointed in the right direction, but I'm still
    >having
    >trouble.
    >>

    >I tried the AjaxEventSubmit example:
    >
    >>

    >but my listener does not seem to be invoked when the list selection
    >changes.
    >Any ideas?
    >>

    >Thanks,
    >mark
    >>
    >>
    >>

    >karthik.nar wrote:
    >>

    >in tacos have a look at ajaxevensubmit and hook it to the onchange of
    >your
    >combo boxes.
    >>

    >9/23/06, Mark Helmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>

    >>Are there any examples of how to implement an Ajax enabled double

    >combo
    >>box? Is there a component that supports this?
    >>>

    >>I was hoping for something simple for those of us who are uh,
    >>ajax-challenged I looked through Tacos and didn't see anything.
    >>>

    >>Thanks,
    >>Mark
    >>>
    >>>

    >>
    >>

    >--
    >Thanks, Karthik
    >>
    >>
    >>

    >--
    >View this message in context:
    >>

    #a6493297
    >Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>
    >>

    >
    >To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>
    >>

    >
    >
  • No.7 | | 5857 bytes | |

    Yeah, my bad, I tried that shortly after posting the message and stillno
    luck. And yes, it's all lower case "onchange". :-) Any other ideas?

    Jessek wrote:

    I believe on a native html select element the proper event to listen for
    is
    "onchange". That's why I've not hard coded any of the event names into
    Tapestry itselfWayy too much potential for me f-ing things up ;)

    9/26/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>
    >>

    >Thanks for the pointer Jesse. I managed to get my stuff ported over to
    >Tapestry 4.1, but I'm still having trouble.
    >>

    >I basically copied the code from your TimeTracker example and attempted
    >to
    >change the Autocompleter to instead be a PropertySelection. Somehow my
    >listener is still not getting called. I'm sure there's something simple
    >that I'm missing (I hope).
    >>

    >I've included the code below, thanks again for your help.
    >>

    >Here's my Java page class:
    >public abstract class AjaxTest extends BasePage {
    >>

    >private static final Log log = LogFactory.getLog(AjaxTest.class
    >);
    >>

    >public abstract Locale getSelectedProject();
    >>

    >@Component(id = "projectChoose", bindings = {
    >"model=projectModel",
    >"value=selectedProject",
    >"",
    >"Change=true",
    >"validators=validators:required"})
    >public abstract PropertySelection getProjectChoose();
    >>

    >public IPropertySelectionModel getProjectModel() {
    >return new BeanPropertySelectionModel(
    >Arrays.asList(Locale.getAvailableLocales()),
    >"displayCountry");
    >}
    >>

    >@EventListener(targets = "projectChoose", events = "",
    >submitForm = "profileForm")
    >public void projectSelected(IRequestCycle cycle, BrowserEvent
    >event)
    >{
    >log.debug("");
    >>

    >}
    >}
    >>

    >and here's my html:
    ><body jwcid="@border" title="xxx">
    ><form jwcid="profileForm@Form" class="container"
    >clientValidationEnabled="true" >
    ><span jwcid="projectChoose"/>
    ></form>
    ></body>
    >>
    >>

    >Jessek wrote:
    >>

    >You can do the same thing pretty easily in Tapestry 4.1.
    >>

    >
    >>

    >9/25/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>
    >>>

    >>K, I think that got me pointed in the right direction, but I'm still
    >>having
    >>trouble.
    >>>

    >>I tried the AjaxEventSubmit example:
    >>
    >>>

    >>but my listener does not seem to be invoked when the list selection
    >>changes.
    >>Any ideas?
    >>>

    >>Thanks,
    >>mark
    >>>
    >>>
    >>>

    >>karthik.nar wrote:
    >>>

    >>in tacos have a look at ajaxevensubmit and hook it to the onchange

    >of
    >>your
    >>combo boxes.
    >>>

    >>9/23/06, Mark Helmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>>
    >>>Are there any examples of how to implement an Ajax enabled double

    >>combo
    >>>box? Is there a component that supports this?
    >>>>
    >>>I was hoping for something simple for those of us who are uh,
    >>>ajax-challenged I looked through Tacos and didn't see anything.
    >>>>
    >>>Thanks,
    >>>Mark
    >>>>
    >>>>
    >>>
    >>>

    >>--
    >>Thanks, Karthik
    >>>
    >>>
    >>>

    >>--
    >>View this message in context:
    >>>

    >#a6493297
    >>Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>>
    >>>

    >>
    >>To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >>For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>>
    >>>

    >>
    >>

    >--
    >Jesse Kuhnert
    >Tapestry/Dojo/(and a dash of TestNG), team member/developer
    >>

    >source based consulting work centered around
    >dojo/tapestry/tacos/hivemind.
    >>
    >>
    >>

    >--
    >View this message in context:
    >#a6508199
    >Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>
    >>

    >
    >To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>
    >>
  • No.8 | | 6900 bytes | |

    Yeah, do a view source on your rendered page. You'll find a section towards
    the bottom that attempts to do the event connection on your html select
    list. Do you see any problems in this area?

    If you have FireBug installed you can do a lot more, even type in javascript
    into the console that will be executed against your current pageSo, you
    could in theory manually type in various dojo.event.connect(dojo.byId("your
    rendered element id"), "on<foo>", function(e){alert("The event fired!");});
    to see which one works :)

    9/26/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    --
    Yeah, my bad, I tried that shortly after posting the message and
    stillno
    luck. And yes, it's all lower case "onchange". :-) Any other ideas?
    --
    Jessek wrote:

    I believe on a native html select element the proper event to listen for
    is
    "onchange". That's why I've not hard coded any of the event names into
    Tapestry itselfWayy too much potential for me f-ing things up ;)

    9/26/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>
    >>

    >Thanks for the pointer Jesse. I managed to get my stuff ported over to
    >Tapestry 4.1, but I'm still having trouble.
    >>

    >I basically copied the code from your TimeTracker example and attempted
    >to
    >change the Autocompleter to instead be a PropertySelection. Somehow my
    >listener is still not getting called. I'm sure there's something

    simple
    >that I'm missing (I hope).
    >>

    >I've included the code below, thanks again for your help.
    >>

    >Here's my Java page class:
    >public abstract class AjaxTest extends BasePage {
    >>

    >private static final Log log = LogFactory.getLog(

    AjaxTest.class
    >);
    >>

    >public abstract Locale getSelectedProject();
    >>

    >@Component(id = "projectChoose", bindings = {
    >"model=projectModel",
    >"value=selectedProject",
    >"",
    >"Change=true",
    >"validators=validators:required"})
    >public abstract PropertySelection getProjectChoose();
    >>

    >public IPropertySelectionModel getProjectModel() {
    >return new BeanPropertySelectionModel(
    >Arrays.asList(Locale.getAvailableLocales()),
    >"displayCountry");
    >}
    >>

    >@EventListener(targets = "projectChoose", events =

    "",
    >submitForm = "profileForm")
    >public void projectSelected(IRequestCycle cycle, BrowserEvent
    >event)
    >{
    >log.debug("");
    >>

    >}
    >}
    >>

    >and here's my html:
    ><body jwcid="@border" title="xxx">
    ><form jwcid="profileForm@Form" class="container"
    >clientValidationEnabled="true" >
    ><span jwcid="projectChoose"/>
    ></form>
    ></body>
    >>
    >>

    >Jessek wrote:
    >>

    >You can do the same thing pretty easily in Tapestry 4.1.
    >>

    >
    >>

    >9/25/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>
    >>>

    >>K, I think that got me pointed in the right direction, but I'm

    still
    >>having
    >>trouble.
    >>>

    >>I tried the AjaxEventSubmit example:
    >>
    >>>

    >>but my listener does not seem to be invoked when the list selection
    >>changes.
    >>Any ideas?
    >>>

    >>Thanks,
    >>mark
    >>>
    >>>
    >>>

    >>karthik.nar wrote:
    >>>

    >>in tacos have a look at ajaxevensubmit and hook it to the onchange

    >of
    >>your
    >>combo boxes.
    >>>

    >>9/23/06, Mark Helmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>>
    >>>Are there any examples of how to implement an Ajax enabled double

    >>combo
    >>>box? Is there a component that supports this?
    >>>>
    >>>I was hoping for something simple for those of us who are uh,
    >>>ajax-challenged I looked through Tacos and didn't see

    anything.
    >>>>
    >>>Thanks,
    >>>Mark
    >>>>
    >>>>
    >>>
    >>>

    >>--
    >>Thanks, Karthik
    >>>
    >>>
    >>>

    >>--
    >>View this message in context:
    >>>

    >>

    #a6493297
    >>Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>>
    >>>
    >>>


    >>To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >>For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>>
    >>>

    >>
    >>

    >--
    >Jesse Kuhnert
    >Tapestry/Dojo/(and a dash of TestNG), team member/developer
    >>

    >source based consulting work centered around
    >dojo/tapestry/tacos/hivemind.
    >>
    >>
    >>

    >--
    >View this message in context:
    >>

    #a6508199
    >Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>
    >>

    >
    >To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>
    >>

    >
    >
  • No.9 | | 1868 bytes | |

    I think you just need to use the @Shell component.

    9/26/06, Lutz H <lh.tapestry.list (AT) googlemail (DOT) comwrote:

    I believe if your set the log level for tapestry to "debug", as in
    putting a line like "" in your
    log4j.properties, it will output such information.

    Like
    19:30:56,135 DEBUG BaseComponent:89 - Begin render Home
    19:30:57,807 DEBUG BaseComponent:95 - End render Home

    It would probably be nicer to see the actual time amount then just the
    two logging timestamps I guess you could just modify/overwrite
    BaseComponent.renderComponent to output that.

    Hth,
    Lutz
    >
    >
    >

    9/26/06, Greg.L.Cormier (AT) servicecanada (DOT) gc.ca
    <Greg.L.Cormier (AT) servicecanada (DOT) gc.cawrote:
    Hi. I'm wondering if anyone has done any simple timing of the processing
    for a page?

    I've changed my border slightly so at the start it creates a Date, and
    at the end creates another and determines the difference.

    However, I think this only works out to be the render time of the page
    itself, not the processing time to get all the information for that page
    (eg. slow DB queries).

    Maybe something like this would go in a Servlet method? I'm really
    unsure.

    Anyone have any insight? This way I can work on tuning my application
    and have some hard numbers to see if, on average, they are getting smaller
    or not.

    Thanks,
    Greg

    To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >
    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    --
  • No.10 | | 8856 bytes | |

    boy, do I feel stupid. Well it turns out that I did have javascript
    errors, "dojo is not defined". Somehow I've managed to ignore the
    javascript errors becuase I've been getting extraneous errors lately since I
    started using FoxyProxy.

    Anyhow, it turns out that I didn't have the servlet-mapping for /assets/* in
    my web.xml which was causing the dojo javascript to not be loaded. DUH!

    "No, that's wrong, Cartman. But don't worry. There are no stupid answers,
    just stupid people."

    Jessek wrote:

    Yeah, do a view source on your rendered page. You'll find a section
    towards
    the bottom that attempts to do the event connection on your html select
    list. Do you see any problems in this area?

    If you have FireBug installed you can do a lot more, even type in
    javascript
    into the console that will be executed against your current pageSo, you
    could in theory manually type in various
    dojo.event.connect(dojo.byId("your
    rendered element id"), "on<foo>", function(e){alert("The event
    fired!");});
    to see which one works :)

    9/26/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>
    >>

    >Yeah, my bad, I tried that shortly after posting the message and
    >stillno
    >luck. And yes, it's all lower case "onchange". :-) Any other ideas?
    >>
    >>

    >Jessek wrote:
    >>

    >I believe on a native html select element the proper event to listen
    >for
    >is
    >"onchange". That's why I've not hard coded any of the event names into
    >Tapestry itselfWayy too much potential for me f-ing things up ;)
    >>

    >9/26/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>
    >>>

    >>Thanks for the pointer Jesse. I managed to get my stuff ported over

    >to
    >>Tapestry 4.1, but I'm still having trouble.
    >>>

    >>I basically copied the code from your TimeTracker example and

    >attempted
    >>to
    >>change the Autocompleter to instead be a PropertySelection. Somehow

    >my
    >>listener is still not getting called. I'm sure there's something

    >simple
    >>that I'm missing (I hope).
    >>>

    >>I've included the code below, thanks again for your help.
    >>>

    >>Here's my Java page class:
    >>public abstract class AjaxTest extends BasePage {
    >>>

    >>private static final Log log = LogFactory.getLog(

    >AjaxTest.class
    >>);
    >>>

    >>public abstract Locale getSelectedProject();
    >>>

    >>@Component(id = "projectChoose", bindings = {
    >>"model=projectModel",
    >>"value=selectedProject",
    >>"",
    >>"Change=true",
    >>"validators=validators:required"})
    >>public abstract PropertySelection getProjectChoose();
    >>>

    >>public IPropertySelectionModel getProjectModel() {
    >>return new BeanPropertySelectionModel(
    >>Arrays.asList(Locale.getAvailableLocales()),
    >>"displayCountry");
    >>}
    >>>

    >>@EventListener(targets = "projectChoose", events =

    >"",
    >>submitForm = "profileForm")
    >>public void projectSelected(IRequestCycle cycle, BrowserEvent
    >>event)
    >>{
    >>log.debug("");
    >>>

    >>}
    >>}
    >>>

    >>and here's my html:
    >><body jwcid="@border" title="xxx">
    >><form jwcid="profileForm@Form" class="container"
    >>clientValidationEnabled="true" >
    >><span jwcid="projectChoose"/>
    >></form>
    >></body>
    >>>
    >>>

    >>Jessek wrote:
    >>>

    >>You can do the same thing pretty easily in Tapestry 4.1.
    >>>

    >>
    >>>

    >>9/25/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>>
    >>>>
    >>>K, I think that got me pointed in the right direction, but I'm

    >still
    >>>having
    >>>trouble.
    >>>>
    >>>I tried the AjaxEventSubmit example:
    >>>
    >>>>
    >>>but my listener does not seem to be invoked when the list selection
    >>>changes.
    >>>Any ideas?
    >>>>
    >>>Thanks,
    >>>mark
    >>>>
    >>>>
    >>>>
    >>>karthik.nar wrote:
    >>>>
    >>>in tacos have a look at ajaxevensubmit and hook it to the

    >onchange
    >>of
    >>>your
    >>>combo boxes.
    >>>>
    >>>9/23/06, Mark Helmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>>>
    >>>>Are there any examples of how to implement an Ajax enabled

    >double
    >>>combo
    >>>>box? Is there a component that supports this?
    >>>>>
    >>>>I was hoping for something simple for those of us who are uh,
    >>>>ajax-challenged I looked through Tacos and didn't see

    >anything.
    >>>>>
    >>>>Thanks,
    >>>>Mark
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>--
    >>>Thanks, Karthik
    >>>>
    >>>>
    >>>>
    >>>--
    >>>View this message in context:
    >>>>
    >>>

    >#a6493297
    >>>Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>>>
    >>>>
    >>>>

    >
    >>>To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >>>For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>>>
    >>>>
    >>>
    >>>

    >>--
    >>Jesse Kuhnert
    >>Tapestry/Dojo/(and a dash of TestNG), team member/developer
    >>>

    >>source based consulting work centered around
    >>dojo/tapestry/tacos/hivemind.
    >>>
    >>>
    >>>

    >>--
    >>View this message in context:
    >>>

    >#a6508199
    >>Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>>
    >>>

    >>
    >>To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >>For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>>
    >>>

    >>
    >>

    >--
    >Jesse Kuhnert
    >Tapestry/Dojo/(and a dash of TestNG), team member/developer
    >>

    >source based consulting work centered around
    >dojo/tapestry/tacos/hivemind.
    >>
    >>
    >>

    >--
    >View this message in context:
    >#a6510795
    >Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>
    >>

    >
    >To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>
    >>
  • No.11 | | 9661 bytes | |

    Hah! I'm glad you got it working

    There was no stupidity on your part. It is my own failingIf I'm going to
    make dojo be such an integral part of the framework then I need to make sure
    I'm able to properly report situations where the library may be b0rken by
    something like this with warning messages or similarHopefully I'll get
    that cleaned up soon-ish.

    9/26/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    --
    boy, do I feel stupid. Well it turns out that I did have javascript
    errors, "dojo is not defined". Somehow I've managed to ignore the
    javascript errors becuase I've been getting extraneous errors lately since
    I
    started using FoxyProxy.

    Anyhow, it turns out that I didn't have the servlet-mapping for /assets/*
    in
    my web.xml which was causing the dojo javascript to not be loaded. DUH!

    "No, that's wrong, Cartman. But don't worry. There are no stupid answers,
    just stupid people."
    --
    Jessek wrote:

    Yeah, do a view source on your rendered page. You'll find a section
    towards
    the bottom that attempts to do the event connection on your html select
    list. Do you see any problems in this area?

    If you have FireBug installed you can do a lot more, even type in
    javascript
    into the console that will be executed against your current pageSo,
    you
    could in theory manually type in various
    dojo.event.connect(dojo.byId("your
    rendered element id"), "on<foo>", function(e){alert("The event
    fired!");});
    to see which one works :)

    9/26/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>
    >>

    >Yeah, my bad, I tried that shortly after posting the message and
    >stillno
    >luck. And yes, it's all lower case "onchange". :-) Any other ideas?
    >>
    >>

    >Jessek wrote:
    >>

    >I believe on a native html select element the proper event to listen
    >for
    >is
    >"onchange". That's why I've not hard coded any of the event names

    into
    >Tapestry itselfWayy too much potential for me f-ing things up ;)
    >>

    >9/26/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>
    >>>

    >>Thanks for the pointer Jesse. I managed to get my stuff ported over

    >to
    >>Tapestry 4.1, but I'm still having trouble.
    >>>

    >>I basically copied the code from your TimeTracker example and

    >attempted
    >>to
    >>change the Autocompleter to instead be a PropertySelection. Somehow

    >my
    >>listener is still not getting called. I'm sure there's something

    >simple
    >>that I'm missing (I hope).
    >>>

    >>I've included the code below, thanks again for your help.
    >>>

    >>Here's my Java page class:
    >>public abstract class AjaxTest extends BasePage {
    >>>

    >>private static final Log log = LogFactory.getLog(

    >AjaxTest.class
    >>);
    >>>

    >>public abstract Locale getSelectedProject();
    >>>

    >>@Component(id = "projectChoose", bindings = {
    >>"model=projectModel",
    >>"value=selectedProject",
    >>"",
    >>"Change=true",
    >>"validators=validators:required"})
    >>public abstract PropertySelection getProjectChoose();
    >>>

    >>public IPropertySelectionModel getProjectModel() {
    >>return new BeanPropertySelectionModel(
    >>Arrays.asList(Locale.getAvailableLocales()),
    >>"displayCountry");
    >>}
    >>>

    >>@EventListener(targets = "projectChoose", events =

    >"",
    >>submitForm = "profileForm")
    >>public void projectSelected(IRequestCycle cycle, BrowserEvent
    >>event)
    >>{
    >>log.debug("");
    >>>

    >>}
    >>}
    >>>

    >>and here's my html:
    >><body jwcid="@border" title="xxx">
    >><form jwcid="profileForm@Form" class="container"
    >>clientValidationEnabled="true" >
    >><span jwcid="projectChoose"/>
    >></form>
    >></body>
    >>>
    >>>

    >>Jessek wrote:
    >>>

    >>You can do the same thing pretty easily in Tapestry 4.1.
    >>>

    >>
    >>>

    >>9/25/06, mhelmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>>
    >>>>
    >>>K, I think that got me pointed in the right direction, but I'm

    >still
    >>>having
    >>>trouble.
    >>>>
    >>>I tried the AjaxEventSubmit example:
    >>>
    >>>>
    >>>but my listener does not seem to be invoked when the list

    selection
    >>>changes.
    >>>Any ideas?
    >>>>
    >>>Thanks,
    >>>mark
    >>>>
    >>>>
    >>>>
    >>>karthik.nar wrote:
    >>>>
    >>>in tacos have a look at ajaxevensubmit and hook it to the

    >onchange
    >>of
    >>>your
    >>>combo boxes.
    >>>>
    >>>9/23/06, Mark Helmstetter <helmstetter (AT) gmail (DOT) comwrote:
    >>>>>
    >>>>Are there any examples of how to implement an Ajax enabled

    >double
    >>>combo
    >>>>box? Is there a component that supports this?
    >>>>>
    >>>>I was hoping for something simple for those of us who are uh,
    >>>>ajax-challenged I looked through Tacos and didn't see

    >anything.
    >>>>>
    >>>>Thanks,
    >>>>Mark
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>--
    >>>Thanks, Karthik
    >>>>
    >>>>
    >>>>
    >>>--
    >>>View this message in context:
    >>>>
    >>>

    >>

    #a6493297
    >>>Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>>>
    >>>>
    >>>>

    >
    >>>To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >>>For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>>>
    >>>>
    >>>
    >>>

    >>--
    >>Jesse Kuhnert
    >>Tapestry/Dojo/(and a dash of TestNG), team member/developer
    >>>

    >>source based consulting work centered around
    >>dojo/tapestry/tacos/hivemind.
    >>>
    >>>
    >>>

    >>--
    >>View this message in context:
    >>>

    >>

    #a6508199
    >>Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>>
    >>>
    >>>


    >>To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >>For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>>
    >>>

    >>
    >>

    >--
    >Jesse Kuhnert
    >Tapestry/Dojo/(and a dash of TestNG), team member/developer
    >>

    >source based consulting work centered around
    >dojo/tapestry/tacos/hivemind.
    >>
    >>
    >>

    >--
    >View this message in context:
    >>

    #a6510795
    >Sent from the Tapestry - User mailing list archive at Nabble.com.
    >>
    >>

    >
    >To unsubscribe, e-mail: users-unsubscribe (AT) tapestry (DOT) apache.org
    >For additional commands, e-mail: users-help (AT) tapestry (DOT) apache.org
    >>
    >>

    >
    >

Re: Ajax Double Combo example?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 4 + 3 =
QUESTION ON "Java"

EMSDN.COM