Hi All, 

I am trying to set wantOnSelectionChangedNotifications on a dropdown choice, 
when i do that it does the roundtrip but i am getting null value for the 
newSelection, 
any ideas why , i am using wicket 1.2.1

Pasting the code snippen below.


DropDownChoice promotionType = new 
DropDownChoice("promotionType",promotion_Types, new PromotionTypeRenderer())
{
     protected void onSelectionChanged(final Object newSelection)
     {
          System.out.println(newSelection);
    }

    protected boolean wantOnSelectionChangedNotifications()
    {
        return true;
    }
};
add(promotionType);


HTML 

<select wicket:id="promotionType" id="promotionType" name="promotionType" 
onchange="">
<option>option-1</option>
<option>option-2</option>
</select>


Regards
Dipu
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to