Re: Navigating Wicket DataTable's

2009-11-30 Thread Keith Bennett
nt me to a better implementation of it, to add to Igor's suggestion, or otherwise provide any helpful advice? Thanks, Keith Igor Vaynberg wrote: datatable { populateitem(item i) { int col=i.getindex(); int row=i.getparent(Item.class).getindex(); } } -igor On Thu, Nov 26, 2009

Getting an Application Property Without a Component

2009-11-27 Thread Keith Bennett
I'd like to be able to access a property in my application properties file (e.g. MyApplication.properties) during the construction of a table column (implementation of IColumn). IColumn is not a Component, so I don't have a get() method for this. Since I can get an instance of the application ((M

Re: Adding a User Object to the Component Class

2009-11-27 Thread Keith Bennett
ndparent(datatable.class); return table.getmetadata(mykey); } -igor On Thu, Nov 26, 2009 at 11:02 PM, Keith Bennett > wrote: Igor - Thanks for responding. The User solution would work where all components would share the same reference, but I need each table would have its own reference. Al

Re: Can I Suppress Type Conversion Feedback Messages?

2009-11-27 Thread Keith Bennett
in Wicket internals that would make this solution obsolete, inadequate, or otherwise incorrect? Thanks, Keith On Nov 27, 2009, at 1:19 AM, Igor Vaynberg wrote: override convertinput() on that textfield and do not throw a conversion exception -igor On Thu, Nov 26, 2009 at 6:26 PM, Keith Benne

Re: Adding a User Object to the Component Class

2009-11-26 Thread Keith Bennett
that. Thanks, Keith On Nov 27, 2009, at 1:16 AM, Igor Vaynberg wrote: create your own subclass of websession that holds the user and then anywhere within a wicket request you can get to it via: ((MySession)Session.get()).getUser() -igor On Thu, Nov 26, 2009 at 6:20 PM, Keith Bennett > wr

Navigating Wicket DataTable's

2009-11-26 Thread Keith Bennett
Hi, all. I'd like some feedback as to whether my need is already addressed in Wicket, or, if not, if I'm on the right track with some code I've written to address this need. I've been working with a DataTable and need to be able to query it for things like: For a given component: * What

Can I Suppress Type Conversion Feedback Messages?

2009-11-26 Thread Keith Bennett
Hi all... We have a form that has a table, and the table has a column that is populated with TextField's. When there are nonnumeric characters in several of these fields, we get an error message in the feedback panel for each offending field. We'd rather combine them into a single messa

Adding a User Object to the Component Class

2009-11-26 Thread Keith Bennett
All - I'm coding a Wicket table and would like all the components in the table to have access to a specific reference. Another framework I worked with a very long time ago (Vermont Views, I believe) addressed this by providing a user pointer in the class that could be used for any purpose

Test Methods for Querying Component Tree

2009-07-09 Thread Keith Bennett
Hello, all. I am relatively new to Wicket. Sometimes when I write tests I get the Wicket ID wrong, and try to figure out what the right one is. To address this, I wrote some code that gets the component tree, and either returns a List, or a string with the components' id's and classes. It can be

How to Make a Multiselect Drop Down or Check Box List Collapsible?

2009-06-22 Thread Keith Bennett
We would like to have a multiselect component that only takes up a single line on the page when not active. For example, something that looks and behaves like the DropDownChoice, but that allows multiple selection when activated, would be nice. Is there such a thing in Wicket? Thanks, Keith --