Re: Fun with Enums - suggestion wanted for edit subset of enum types (netmask)

2013-11-03 Thread Chris Mylonas
Thanks Jens, that sounds handy. Between Thiago's and your response I'll be able to build something when I get around to it today/tomorrow. Have a good week Tappers Chris On Thu, Oct 31, 2013 at 10:15 PM, mailingl...@j-b-s.de wrote: > Well, the values shown solely depends on your model. Just fi

Re: Fun with Enums - suggestion wanted for edit subset of enum types (netmask)

2013-10-31 Thread mailingl...@j-b-s.de
Well, the values shown solely depends on your model. Just filter / sort it accordingly? By default Tapestry adds all enum values to options (see EnumSelectModel). Unfortunately you can not derive from EnumSelectModel, so I would try to start from AbstractSelectModel copy and paste a few lines fr

Re: Fun with Enums - suggestion wanted for edit subset of enum types (netmask)

2013-10-31 Thread Thiago H de Paula Figueiredo
On Thu, 31 Oct 2013 08:51:34 -0200, Chris Mylonas wrote: Hi Tapestry Users! Hi! How would I go about doing this (displaying certain enum values from the type)? Just like the way you'd do with any other Java class: pass a SelectModel to it, probably using the SelectModelFactory service

Fun with Enums - suggestion wanted for edit subset of enum types (netmask)

2013-10-31 Thread Chris Mylonas
Hi Tapestry Users! I am positive we've all had fun with enums (and netmasks) at some point!!! I got through the afternoon accomplishing my page rendering *[1] I now have my entity class with an enum saved. It is a netmask for an ip address. So if an IP address belongs in a /24 subnet, I'd like t