You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ken in nashua <nh...@hotmail.com> on 2008/04/29 15:39:16 UTC
PropertySelect help... thanks
Folks,
I have rigged up a handler for my property select user interface
<span jwcid="@Insert" value="Items Per Page"/>
<select jwcid="itemsPerPageSelect@PropertySelection"
model="ognl:itemsPerPageModel"
value="ognl:itemsPerPage"
onchange="tapestry.form.refresh(this.form)"
/>
@EventListener(events =
{ "onchange" }, targets =
{ "itemsPerPageSelect" }, submitForm = "galleryForm", async = true)
public void itemsPerPageChangeListener(IRequestCycle cycle)
{
// (events="onchange") Just keep all of your event names in lowercase
// and you'll be ok.
LOG.info("In itemsPerPageChangeListener : ");
}
On select the handler gets invoked nicely...
I am wondering how to get the previous value in order to compare it to the new value.
Does anyone have a hint?
Best regards
Ken in nashua
_________________________________________________________________
Spell a grand slam in this game where word skill meets World Series. Get in the game.
http://club.live.com/word_slugger.aspx?icid=word_slugger_wlhm_admod_april08