Thanks for looking into this.  Here's my ugly hack to get around the problem:

DropDownChoice elevationSelect = new DropDownChoice("elevationSelect") {

        private float oldElevation = 0.0f;

        public List getChoices() {
            return ((HwddcState)
        protected boolean wantOnSelectionChangedNotifications() {
            // The following is a hack to be able to record the
            // change from the old version.  Unfortunately, the old
            // version is not available by the time
            // onSelectionChanged is called, so it needs to be saved
            // here.
            HwddcState hwddcState = (HwddcState) parent.getModelObject();
            oldElevation = hwddcState.getPpiImageParams().getElevation();

            return true;

        protected void onSelectionChanged(final Object newSelection) {
            HwddcState hwddcState = (HwddcState) parent.getModelObject();

            final float oldElevation = this.oldElevation;
            ((PpiPage) getPage()).recordChange(new Change() {
                    public void undo() {

            ((PpiPage) getPage()).updateMapImages();
elevationSelect.setChoiceRenderer(new ElevationChoiceRenderer());
boundModel.bind(elevationSelect, "ppiImageParams.elevation");

View this message in context:
Sent from the Wicket - User forum at

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Wicket-user mailing list

Reply via email to