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:
org.a
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
s
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:
http://www.nabble.com/Weird-DatePicker--
Much thanks... works like a charm.
igor.vaynberg wrote:
>
> class InverseBooleanModel implements imodel
> private final imodel delegate;
>
> public inversebooleanmodel(imodeldelegate) {
> this.delegate=delegate; }
> public boolean getobject() {
> return !delegate;
> }
> public v
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) {
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:
>
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 t
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
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 tre
y orion-web.xml
changes 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 wrote:
>>
>> Hello,
>>
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 ser
especially if you skip validation by
> setDefaultFormProcessing(false) on your ajaxsubmitlink
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
> On Mon, Feb 23, 2009 at 11:17 AM, mallet wrote:
>
>>
>> Hello, I have been trying for some time to figure this o
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 Aja
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 the
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
};");
}
@Override
protected void onUpdate(AjaxRequestTarget ajaxRequestTarget) {
//Required to override this function
}
});
mallet wrote:
>
> I tried as you suggested, but it gives me the 404 error in IE again. The
> bro
ere.
I'll try some other 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]
te the enter key to call
the same function as when I 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
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:
ht
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 i
20 matches
Mail list logo