Re: Refreshing a List view

2008-06-05 Thread Sam Barnum
Ricky, what are you using as the model for your refreshing view? You should be using some sort of detachable model that re-fetches the items for the list from the DB each time. -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On Jun 5, 2008, at 10:32 AM, Ricky wrote: Hi, I

Ajax works in DEVELOPMENT, not in DEPLOYMENT

2008-05-29 Thread Sam Barnum
I'm using an AjaxFormChoiceComponentUpdatingBehavior on a RadioGroup to show/hide a component elsewhere on the page. This works great in development mode. When I push it up to the server, I get nothing, clicking on the various radio buttons doesn't do anything. And unfortunately, the

Re: Ajax works in DEVELOPMENT, not in DEPLOYMENT

2008-05-29 Thread Sam Barnum
Thanks as always, Igor getDebugSettings().setAjaxDebugModeEnabled(true); -igor -Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: RequiredBorder being applied multiple times in ajax calls

2008-05-16 Thread Sam Barnum
Awesome, that works! I forgot that you can always get the request from that ThreadLocal. Thanks a ton Gerolf, this doesn't seem too hacky. -- Sam Barnum 360 Works On May 15, 2008, at 10:58 AM, Gerolf Seitz wrote: On Thu, May 15, 2008 at 6:25 PM, Sam Barnum [EMAIL PROTECTED] wrote

Re: RequiredBorder being applied multiple times in ajax calls

2008-05-15 Thread Sam Barnum
to the WicketAjaxIndicatorAppender. take a look at WicketAjaxIndicatorAppender#renderHead to see how this is solved there. maybe you can do something similar with your RequiredBorder. regards, Gerolf On Thu, May 15, 2008 at 2:58 AM, Sam Barnum [EMAIL PROTECTED] wrote: Using the tips in this PDF http

Re: RequiredBorder being applied multiple times in ajax calls

2008-05-15 Thread Sam Barnum
of digits in the phone number part. Make sure there are 10, then format it as (###) ###- ext. ### -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On May 14, 2008, at 11:06 PM, Matthew Young wrote: Sorry I can't help you with your question. But may I ask where you get

RequiredBorder being applied multiple times in ajax calls

2008-05-14 Thread Sam Barnum
of many issues I've run into when doing this. Thanks, -Sam Barnum

Re: How do I elegantly put feedback per form field?

2008-03-21 Thread Sam Barnum
+1 on the london wicket slides, an excellent (and quick) read. Would love to see more example like this. Guice? -Sam On Mar 20, 2008, at 8:46 AM, James Carman wrote: On 3/20/08, Ned Collyer [EMAIL PROTECTED] wrote: Thanks Craig, Perfect. Super perfect :) Yeah, that's really cool!

Re: Binding component visibility attribute to another form value

2008-02-26 Thread Sam Barnum
is essential. -Sam On Feb 25, 2008, at 7:35 PM, Timo Rantalaiho wrote: On Mon, 25 Feb 2008, Sam Barnum wrote: It seems like writing a custom behavior is the right way to do this, but once I call setVisible(false) on a component the beforeRender() method in my behavior doesn't get called anymore

Re: Swing application and Wicket

2008-02-26 Thread Sam Barnum
Wicket doesn't really include a web services component that I know of, but you can run web services in the same application server using xfire, xerces, or jaxws -Sam On Feb 26, 2008, at 5:46 AM, Martin Makundi wrote: Why you need wicket for? 2008/2/26, Klearhos Klearhou [EMAIL

Re: CompoundModel based on proxies

2008-02-26 Thread Sam Barnum
IntelliJ does a good job of locating String usages of property names when you refactor a property name, which is nice. Not sure if Eclipse/Netbeans do this also. If you use CompoundPropertyModels then wouldn't refactoring your business objects will still silently break code? It seems

Binding component visibility attribute to another form value

2008-02-25 Thread Sam Barnum
behavior gets called, even if the component is invisible. This hardly seems like the right place to put the code, though. Should I always keep the component visible and have my behavior replace all the contents after rendering? -Sam Barnum

Re: CompoundModel based on proxies

2008-02-07 Thread Sam Barnum
. Obviously things get really sticky when you're dealing with CompoundPropertyModels, etc. Best case, of course, would be an addition to the java language that lets you refer to a property in a type-safe way. Is there a JSR for this? -Sam Barnum 360Works On Feb 7, 2008, at 1:50 AM, Maeder

Re: Passing list of POJOs to AutoCompleteTextField?

2008-02-06 Thread Sam Barnum
doing. I wrote my custom renderer that grabs the name field of my POJO for rendering. Of course that is what I'm getting back from getModelObjectAsString(). It's a work-around and I was hoping for a more elegant way of doing this... Michael -Original Message- From: Sam Barnum [mailto

Re: html hotswap

2008-02-05 Thread Sam Barnum
recommend you get the WicketForge IntelliJ plugin as well, it's quite helpful for identifying wicket:id attribtues in your HTML file which don't match a component in your java file. -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On Feb 5, 2008, at 11:32 AM, [EMAIL PROTECTED] wrote

Re: Passing list of POJOs to AutoCompleteTextField?

2008-02-05 Thread Sam Barnum
the user-selected text. I'm probably missing something obvious, but I don't think getModelObject() is it... -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On Feb 5, 2008, at 2:12 PM, Igor Vaynberg wrote: shouldnt the pojo be availble from getmodelobject()? -igor On Jan

Using detachable models in edit pages

2008-02-01 Thread Sam Barnum
: Answer inline. On Jan 31, 2008 8:42 PM, Sam Barnum [EMAIL PROTECTED] wrote: Question on detachable models: You use detachable models in the contact edit page. It seems like this would cause your changes to be lost if the edit process takes more than one request to complete. If you use the no-arg

Re: Article: Introducing Apache Wicket

2008-01-31 Thread Sam Barnum
to this stuff. It seems that for edit pages you want a non-detachable model, which gets serialized to the session. Thanks for taking the time to write this article, and thanks in advance for any clarification on this topic. -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On Jan

Custom components which accept multiple models

2008-01-30 Thread Sam Barnum
I pass both settings objects into the SettingsEditComponent, as pictured above? It seems like it would be harder to have detachable models in this case (I guess I'd just need to override detatchModels()). Or, some other option that I'm missing... Thanks! -- Sam Barnum http://www

image uploads and file locations

2008-01-14 Thread Sam Barnum
the resized versions via wicket, or instead try to save them in a folder which is served directly by my webserver? These won't be in the classes directory, since I don't want them wiped out during redeployment. Thanks in advance, Sam Barnum

Re: Dont refresh webpage on Form Submit

2008-01-10 Thread Sam Barnum
there). -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 On Jan 10, 2008, at 7:14 PM, Haritha Juturu wrote: Hi Everyone, I have a Form object in my wicket page. After the onSubmit() method is called the webpage is refreshed. Is there anyway i can stop the webpage reload after

Re: required for Checkbox

2008-01-08 Thread Sam Barnum
Right, like for an accept terms checkbox after some legalese stuff, for example. On Jan 7, 2008, at 5:09 PM, Kent Tong wrote: Dan Kaplan-3 wrote: But another way to look at it is this: When a checkbox is unchecked, it has a value of unchecked. Therefore, if you setRequired=true on a