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

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: Ajax works in DEVELOPMENT, not in DEPLOYMENT

2008-05-29 Thread Sam Barnum
I may have been mis-diagnosing the cause of the problem. A total re- build and redeploy of the application seems to have fixed the issue. Sorry about the false alarm :( On May 29, 2008, at 9:10 PM, Sam Barnum wrote: I'm using an AjaxFormChoiceComponentUpdatingBehavior on a RadioGro

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 hand

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

Re: RequiredBorder being applied multiple times in ajax calls

2008-05-15 Thread Sam Barnum
e extension * Count the number 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 quest

Re: RequiredBorder being applied multiple times in ajax calls

2008-05-15 Thread Sam Barnum
lar issue happened 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:

RequiredBorder being applied multiple times in ajax calls

2008-05-14 Thread Sam Barnum
n- ajax actions? It seems like this is one 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-20 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: 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 tha

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 PROTECTED]

Re: Binding component visibility attribute to another form value

2008-02-26 Thread Sam Barnum
ts 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 call

Binding component visibility attribute to another form value

2008-02-25 Thread Sam Barnum
dd(new TextField("myTextField")); It seems like the isTemporary() method in my 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
though they're just Strings. 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 Bar

Re: Passing list of POJOs to AutoCompleteTextField?

2008-02-06 Thread Sam Barnum
tly what I wound up 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 Mes

Re: html hotswap

2008-02-05 Thread Sam Barnum
Oops, I think this is fixed in the latest version of IntelliJ Check "Settings / Compiler". There's an option for "Deploy web applications to server after compilation" On Feb 5, 2008, at 3:58 PM, Sam Barnum wrote: I use IntelliJ for wicket development, and for

Re: Passing list of POJOs to AutoCompleteTextField?

2008-02-05 Thread Sam Barnum
ng matches 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 getmodelobjec

Re: html hotswap

2008-02-05 Thread Sam Barnum
ly 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, <[E

Using detachable models in edit pages

2008-02-01 Thread Sam Barnum
wrote: 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

Re: Article: Introducing Apache Wicket

2008-01-31 Thread Sam Barnum
ew 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

Custom components which accept multiple models

2008-01-30 Thread Sam Barnum
ith the boolean method, which is overkill). Or, should 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

image uploads and file locations

2008-01-14 Thread Sam Barnum
ion? Should I serve 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. Thank

Re: Dont refresh webpage on Form Submit

2008-01-10 Thread Sam Barnum
You might be thinking of an onsubmit javascript that returns false. ... You could add the onsubmit attribute dynamically, and it could presumably call wicket with some sort of ajax behavior (still haven't gone there). -- Sam Barnum 360 Works http://www.360works.com 415.865.0952 O

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 o