Re: DropDownChoice.setNullValid

2012-11-23 Thread Paul BorČ™
Are you confusing nullValid w/ nullAllowed? ~ Thank you, Paul Bors On Nov 14, 2012, at 5:43 PM, Nick Pratt wrote: > As a followup - if you dont pass the null in the choices list, then it > works as expected. > > > On Wed, Nov 14, 2012 at 5:35 PM, Nick Pratt wrote: > >> public List choice

Re: DropDownChoice.setNullValid

2012-11-14 Thread Nick Pratt
As a followup - if you dont pass the null in the choices list, then it works as expected. On Wed, Nov 14, 2012 at 5:35 PM, Nick Pratt wrote: > public List choices = Arrays.asList(null,"RENDER","ENABLE"); > DropDownChoice defaultPerm = new DropDownChoice<>( "perm", > permModel, choices ); > defa

DropDownChoice.setNullValid

2012-11-14 Thread Nick Pratt
public List choices = Arrays.asList(null,"RENDER","ENABLE"); DropDownChoice defaultPerm = new DropDownChoice<>( "perm", permModel, choices ); defaultPerm.setNullValid( true ); When this renders, I see a select box with 4 options - 2 blanks, and the two text options. I expected to only see three -