Using AjaxLink onClick method to retrieve and alter components

2009-02-23 Thread mallet
Hello, I have been trying for some time to figure this out but no luck. Some other posts suggest using a submit rather than an AjaxLink, but that will not work for me. Here is my scenario: I have two ListChoice objects on my page, one with several items in it and the other blank. I have an

Re: Using AjaxLink onClick method to retrieve and alter components

2009-02-23 Thread mallet
://www.wickettraining.com On Mon, Feb 23, 2009 at 11:17 AM, mallet ryanlahue...@gmail.com wrote: Hello, I have been trying for some time to figure this out but no luck. Some other posts suggest using a submit rather than an AjaxLink, but that will not work for me. Here is my scenario: I

Migration from servlet to filter always serves WebApplication.getHomePage() when I click on links

2009-03-02 Thread mallet
Hello, I am using 1.3 and a servlet for Wicket in my web.xml, which I've pasted below. I am trying to change to using a Filter instead, which I also pasted below, but I get a weird behavior -- my WebApp.getHomePage() is served every time I click on a link. The links work fine when I use the

Re: Migration from servlet to filter always serves WebApplication.getHomePage() when I click on links

2009-03-02 Thread mallet
to take, but this is not a wicket issue. igor.vaynberg wrote: try with /* mapping and see if it works you are not running this on websphere are you? -igor On Mon, Mar 2, 2009 at 2:12 PM, mallet ryanlahue...@gmail.com wrote: Hello, I am using 1.3 and a servlet for Wicket in my

IE7 ignores AjaxButton onSubmit when I use the keyboard enter key

2008-10-29 Thread mallet
I have a ModalWindow containing a class extending Panel. On the Panel I have a class extending Form. The Form contains a custom AjaxButton which overrides protected void onSubmit(AjaxRequestTarget target, Form? form). When I click this button it retrieves text from a PasswordField and validates

Re: IE7 ignores AjaxButton onSubmit when I use the keyboard enter key

2008-10-29 Thread mallet
FYI, I did try some of the suggestions in here but to no avail: http://www.nabble.com/Form-Enter-Key-Problem-td14408121.html Also I have investigated using some custom JavaScript manipulate IE, but I would like to avoid a messy solution like that if possible. -- View this message in context:

Re: IE7 ignores AjaxButton onSubmit when I use the keyboard enter key

2008-10-29 Thread mallet
press the AjaxButton with my mouse? igor.vaynberg wrote: easiest thing is to simply disable the enter key on the textfield by override onkeydown -igor On Wed, Oct 29, 2008 at 1:04 PM, mallet [EMAIL PROTECTED] wrote: I have a ModalWindow containing a class extending Panel

Re: IE7 ignores AjaxButton onSubmit when I use the keyboard enter key

2008-10-29 Thread mallet
things and get back if I find a solution. igor.vaynberg wrote: if (wicketKeyCode(event) == 13) { document.getelementbyid('myajaxbuttonsid').onclick(); } -igor On Wed, Oct 29, 2008 at 2:34 PM, mallet [EMAIL PROTECTED] wrote: Igor, Thanks for your reply. Here's what I did

Re: IE7 ignores AjaxButton onSubmit when I use the keyboard enter key

2008-10-30 Thread mallet
} }); mallet wrote: I tried as you suggested, but it gives me the 404 error in IE again. The browser bar in the 404 window has these parameters in it, after I typed asdfasdf and hit enter: ?pnList%3A0%3Aorders%3A0%3ApasswordModal%3Acontent%3Aform%3Apassword=asdfasdf I can put an alert('hi

How do I remove duplicate FeedbackMessages from a FeedbackPanel?

2008-10-31 Thread mallet
I have a page that does the same validations to multiple fields. I would like only one error message to display There were one or more errors found when validating fields. Here's what I did: FeedbackPanel feedback = new FeedbackPanel(feedback, new IFeedbackMessageFilter() { public

Re: How do I remove duplicate FeedbackMessages from a FeedbackPanel?

2008-10-31 Thread mallet
Perhaps my post was premature... it seems there is in fact a getFeedbackMessages method in FeedbackPanel, but for some reason my IDE does not see it. I'm guessing these FeedbackMessages are put in the Session first, and then separately put on the panel, so the accept method is being run after

[SOLVED] TreeTable header div automatically resizes its width infinitely large

2009-03-26 Thread mallet
Before I finished posting this question I figured out the solution to my problem, but because it was tricky to figure out I thought I would post this anyway in case somebody else runs into the same issue. == I created an editable

Re: ResourceReferences not working as expected

2009-04-13 Thread mallet
Thanks for the responses. Jeremy: That's really strange... when I put the ResourceReference inside the image constructor it did work for the png image. I still not having any luck getting my javascript and .swf files to load, but I will continue trying. Igor: I made sure the IDE is copying all

Re: ResourceReferences not working as expected

2009-04-13 Thread mallet
Igor, you were right after all. There was an IDE exclusion on of my script's dependent files so it was not being copied over, causing my script to crash and appear not to be working. I thought I had verified they were all making it over but I missed one. Sincerest apologies for taking up your

Re: Retrieving/serializing the javascript for an AjaxLink

2009-04-14 Thread mallet
Figured it out Basically no need to use AjaxLink since I have to construct the javascript redirect manually. I ended up doing this: chart.setOnClick(window.location=' + RequestCycle.get().urlFor(new CarPage(make, model, year)) + '); mallet wrote: I am trying to embed javascript links

Re: Reversing checkbox behavior or negating a property model expression

2009-04-24 Thread mallet
Well I got an Overridden PropertyModel to give me the behavior I want, but it seems kind of dangerous. Hoping there's a better way to accomplish this. public class NegativePropertyModel extends PropertyModel { public NegativePropertyModel(final Object modelObject, final String expression)

Re: Reversing checkbox behavior or negating a property model expression

2009-04-24 Thread mallet
Much thanks... works like a charm. igor.vaynberg wrote: class InverseBooleanModel implements imodelboolean private final imodelboolean delegate; public inversebooleanmodel(imodelbooleandelegate) { this.delegate=delegate; } public boolean getobject() { return !delegate; }

Re: Weird DatePicker / DateTextField off by one hour

2009-05-04 Thread mallet
I'm using 1.4 RC2. It was a daylight savings time issue... but one in my IDE's JRE rather than in Wicket. I patched it up and things are behaving as expected now. Thanks for the additional info about the timezone issue. -- View this message in context:

Re: conditional form validators (nested forms issue)

2009-05-22 Thread mallet
Check out this: http://cwiki.apache.org/WICKET/conditional-validation.html We frequently override the isRequired method of individual fields on a form so that they are only required in the event that a specific button was clicked, or a specific class of button. For instance, you could tag your

Re: date format with datepicker

2009-05-22 Thread mallet
Look at this constructor in the javadocs: http://people.apache.org/~tobrien/wicket/apidocs/org/apache/wicket/extensions/markup/html/form/DateTextField.html DateTextField(java.lang.String id, IModel model, java.lang.String datePattern) the pattern is SimpleDateFormat, e.g. something like: