Re: How to determine previous value in select after user change

2010-08-27 Thread Igor Vaynberg
class mydropdown extends dropdown { private object last; protected void updatemodel() { last=getmodelobject(); super.updatemodel(); } -igor On Thu, Aug 26, 2010 at 6:39 PM, Steve Mactaggart st...@whitesquaresoft.com wrote: Hi All, I'm not sure if there is a wicket way to do this, or if I

Question about Wicket and generics

2010-08-27 Thread Mike Dee
Coming up to speed in Wicket and see some things that I don't know how to interpret regarding generics. First, I have a form subclass that looks like this: private class MyForm extends Form Eclipse shows the following warning: Form is a raw type. References to generic type FormT

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
Also noticed in prior messages with similar topic that someone suggested using Void (FormVoid). Never knew there was a Void keyword (capital V). Is this a recommended technique for Form (ie. FormVoid)? -- View this message in context:

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
On Fri, Aug 27, 2010 at 8:37 AM, Mike Dee mdichiapp...@cardeatech.com wrote: I'd like to try and understand this.  What could T possibly be? It would be whatever your form is editing. But isn't TextField implying text (or a string).  Would TextFieldInteger make sense (haven't tried it yet)?

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
On Fri, Aug 27, 2010 at 8:40 AM, Mike Dee mdichiapp...@cardeatech.com wrote: Also noticed in prior messages with similar topic that someone suggested using Void (FormVoid).  Never knew there was a Void keyword (capital V). Is this a recommended technique for  Form (ie. FormVoid)? It's

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
Makes sense. What is the recommended practice when a form is not tied to a class that encapsulates the model? For example, picture a login screen that simply capture username and password strings. -- View this message in context:

Re: EXception handling in Wicket

2010-08-27 Thread arunarapole
Thank you for replay i am very glad you have sent me the sample code thank you so much My problem is i have to handle SQLException and only message to be display in hidden field same webpage do u have any idea regarding this Aruna On Thu, Aug 26, 2010 at 10:14 PM, Nitnatsnok [via Apache

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
You could use Void for that or just use the built-in login form support that comes with Wicket! :) On Fri, Aug 27, 2010 at 8:58 AM, Mike Dee mdichiapp...@cardeatech.com wrote: Makes sense.  What is the recommended practice when a form is not tied to a class that encapsulates the model?  For

autocomplete for AjaxEditableLabel

2010-08-27 Thread Patrick Petermair
Hi! Is there a way to enable autocomplete for AjaxEditableLabel (just like AutoCompleteTextField)? I was going through AutoCompleteTextField as a reference and wrote my own behavior for autocompletion. The new behavior works perfectly for a TextField, but not for AjaxEditableLabel. Any

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
Great, didn't know there was a built in LoginForm. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-about-Wicket-and-generics-tp2341004p2341060.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: exception when last tab of AjaxTabbedPanel is removed

2010-08-27 Thread Pedro Santos
I think it is fixed: https://issues.apache.org/jira/browse/WICKET-2828 On Thu, Aug 26, 2010 at 5:50 PM, Clément Tamisier clement.tamis...@gmail.com wrote: Hi, I am using wicket 1.4.6 and AjaxTabbedPanel class. I add and remove tabs dynamically. I have an exception when i remove the last

Wicket UI Architect / guru needed (Silicon Valley)

2010-08-27 Thread Jennifer Loesch
Wicket UI Architect/Developer Our Client, a well-known IT company in Silicon Valley, has decided to use Wicket to develop an advanced advertising platform that will ultimately be utilized by video-streaming companies?the Verizons and Comcasts as well as Hollywood and Netflix type firms. Our

Re: Question about Wicket and generics

2010-08-27 Thread James Carman
On Fri, Aug 27, 2010 at 11:41 AM, Mike Dee mdichiapp...@cardeatech.com wrote: In my experience, there are lots of other situations too.  For example, we have lots of forms for doing searches.  The form gathers the search criteria.  Maybe it would make sense to have a SearchFormCriteria class,

Re: Question about Wicket and generics

2010-08-27 Thread Igor Vaynberg
i have written plenty forms and about 99% of them have FormVoid. models on the form are just not that useful, its the fields that care. -igor On Fri, Aug 27, 2010 at 5:45 AM, James Carman ja...@carmanconsulting.com wrote: On Fri, Aug 27, 2010 at 8:40 AM, Mike Dee mdichiapp...@cardeatech.com

Re: Question about Wicket and generics

2010-08-27 Thread Igor Vaynberg
just offering the other side of the coin...i didnt say we were going to yank the generics from the Form, chill :) -igor On Fri, Aug 27, 2010 at 8:38 AM, James Carman ja...@carmanconsulting.com wrote: On Fri, Aug 27, 2010 at 11:34 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i have

Re: Question about Wicket and generics

2010-08-27 Thread Mike Dee
Trying to understand if there is a pattern here or at least a common way advanced Wicket users program. I can see case where the Form may represent an item in the database and it makes sense to have a corresponding model. Is that a Wicket pattern? This would kind of be like the EJB in J2EE,

Re: Wicket UI Architect / guru needed (Silicon Valley)

2010-08-27 Thread Peter Ertl
Jennifer, is remote work an option? Best regards Peter Ertl P.S.: Are you German? Your name looks like you are. I live in Germany. Am 27.08.2010 um 18:10 schrieb Jennifer Loesch: Wicket UI Architect/Developer Our Client, a well-known IT company in Silicon Valley, has decided to use

Re: Wicket UI Architect / guru needed (Silicon Valley)

2010-08-27 Thread Jennifer Loesch
Hi Peter, Quite possibly, are you authorized to work in the US? To answer your question, yes, on my father's side. Jennifer Loesch Technical Recruiter Albin Engineering Services Inc. 3350 Scott Blvd, Suite 27 Santa Clara, CA 95054 ph : 408-733-AESI (2374) x37 fax : 408-739-AESI (2374)

RE: Question about Wicket and generics

2010-08-27 Thread Stefan Lindner
You are right james, in opposite to Igor, our forms have FormVoid in about 1% oft hem. Stefan -Ursprüngliche Nachricht- Von: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] Im Auftrag von James Carman Gesendet: Freitag, 27. August 2010 17:38 An:

Re: Wicket UI Architect / guru needed (Silicon Valley)

2010-08-27 Thread Peter Ertl
Sorry for my recent posting! Didn't want to post into the group :-) Please excuse! Cheers Peter Am 27.08.2010 um 20:27 schrieb Jennifer Loesch: Hi Peter, Quite possibly, are you authorized to work in the US? To answer your question, yes, on my father's side. Jennifer Loesch

RE: Question about Wicket and generics

2010-08-27 Thread Mike Dee
Does that mean that somewhere (probably internal to Wicket), there is some place that does something like this: X x = MyFormX; Still having difficulty seeing a case where it is useful to have a situation that with not FormVoid. Would like to hear about such a situation. -- View this

How to refresh ListView on ModalWindow

2010-08-27 Thread zoran
Hi, I have a list of products containing a link that should show a user comments on each product in a modal window. I created a ModalWindow containing a Panel. I send a list containing comments to this panel. I'm using a ListView to show this comments e.g: ListView eachComment=new

Re: How to determine previous value in select after user change

2010-08-27 Thread Steve Mactaggart
That would work I guess, but I don't think it makes sense to build that logic into the dropdown, this is a function for the model, so I guess if there are no existing ways to do it i'll have to look at writing a ChangeTrackedModel or the like to wrap existing models in to manage the change. What