Re: CheckBoxMultipleChoice Question

2009-04-13 Thread Matthew Hanlon
Check and make sure that the model for the CheckBoxMultipleChoice is getting set properly and the model is loading the data. I do a similar thing, but with CheckGroup and Check: Form form = new Form("user-form", new CompoundPropertyModel(userModel)); add(form); form.add(new RequiredTextField("fir

Re: AppleTV!

2009-04-07 Thread Matthew Hanlon
Very cool! I am an AppleTV hobbyist myself. Do you have a blog post or something regarding the steps you took to do this? I'd be curious to check it out! -Matt. On Mon, Apr 6, 2009 at 23:55, Igor Vaynberg wrote: > thats pretty freaking cool :) > > -igor > > On Mon, Apr 6, 2009 at 8:52 PM, Joh

Re: LDM with Generics for DropDownChoice

2009-02-24 Thread Matthew Hanlon
I've always handled the typing problem with DropDownChoice and my list models by "just ignoring it" and not applying type parameters to the DropDownChoice. This is because if I use the same IModel> for a ListView, then I get an error in the ListView's constructor. Is there a good solution for both

Re: FeedbackMessage of Level "Error", isInfo() returns True

2009-02-17 Thread Matthew Hanlon
The javadoc on isInfo() says "Gets whether the current level is INFO or up." So, since the info level is above the error level, isInfo() returns true for error messages. So, since info is a less granular level than error, a feedback message using error("foo") is at the error level and the info le

Re: URL Mapping (Beginner)

2009-02-09 Thread Matthew Hanlon
You can use PackageRequestTargetUrlCodingStrategy to mount an entire package. E.g., if you have a package com.company.pages with classes Page1, Page2, etc., you can mount the package mount(new PackageRequestTargetUrlCodingStrategy("/pages", PackageName.forClass(Page1.class))). This will mount you

Re: Focus on component

2009-01-29 Thread Matthew Hanlon
You can write a behaviour for it so it will be more reusable. The following is based on http://cwiki.apache.org/WICKET/request-focus-on-a-specific-form-component.html and works for both regular and ajax requests. private final class MyLink extends AjaxFallbackLink { public void onClick

Re: setEnabled() adds markup. Another way of disabling a link?

2009-01-16 Thread Matthew Hanlon
Check out AbstractLink#setBeforeDisabledLink() and AbstractLink#setAfterDisabledLink(). I believe you can set the markup you want to appear there. This defaults to . Or just go directly to AbstractLink#disableLink() and get the behaviour you want there. I think you can also do it application wid

Re: ModalWindow width as %

2009-01-09 Thread Matthew Hanlon
If I'm correct, the modal window uses js to determine the resizing in px. If you want it to resize in % of screen, you'd probably have to override modal.js to determine the appropriate % to set the window width. However, if you want the window to be some percentage wide, you don't really want it r

Re: strange 404 error

2008-12-17 Thread Matthew Hanlon
Right, I guess it's not correct to say it's a just a Jetty thing. there's a way to suppress jsessionid in tomcat as well, but I don't know how. On Wed, Dec 17, 2008 at 2:42 PM, Adriano dos Santos Fernandes < adrian...@uol.com.br> wrote: > Matthew Hanlon wrot

Re: strange 404 error

2008-12-17 Thread Matthew Hanlon
This is a Jetty thing... One way to fix it is to suppress the jsessionid in the url. Jetty allows you to suppress the jsessionid in the url as a context parameters in the web.xml or webdefault.xml. Note, if the user does not have cookies enabled this will cause problems. In your web.xml:

Re: Case sensitivity and PackageRequestTargetUrlCodingStrategy

2008-12-16 Thread Matthew Hanlon
do, just commit it. If > not, you could ask for it or create a patch on the JIRA: > http://wicketstuff.org/jira/secure/BrowseProject.jspa?id=10020 > > If you need help, let us know. > > > > On Tue, Dec 16, 2008 at 3:37 PM, Matthew Hanlon > wrote: > > > I just rea

Re: Case sensitivity and PackageRequestTargetUrlCodingStrategy

2008-12-16 Thread Matthew Hanlon
I just realized that gmail wasn't replying to the list. Sorry. For posterity... On Tue, Dec 16, 2008 at 3:34 PM, Matthew Hanlon wrote: > Below is the updated CaseInsensitiveClassResolver I implemented per your > suggestions. It uses MatchingResources from wicketstuff annotation.

Case sensitivity and PackageRequestTargetUrlCodingStrategy

2008-12-11 Thread Matthew Hanlon
I am looking for some feedback any may have on this: Let's say I've mounted a package "com.company.package" using PackageRequestTargetUrlCodingStrategy on "/foo." So I have several pages, /foo/Bar, /foo/Baz, etc. Now, I want my page mounts to be case-insensitive in the case that a user has caps loc

Re: Make FeedbackMessages#add(FeedbackMessage) public?

2008-11-24 Thread Matthew Hanlon
h. > > -igor > > On Fri, Nov 21, 2008 at 2:26 PM, Matthew Hanlon <[EMAIL PROTECTED]> wrote: >> Greetings! >> Is there any reason why FeedbackMessages#add(FeedbackMessage) is package >> private? I'd like to be able to just stick a FeedbackMessage directly i

Make FeedbackMessages#add(FeedbackMessage) public?

2008-11-21 Thread Matthew Hanlon
Greetings! Is there any reason why FeedbackMessages#add(FeedbackMessage) is package private? I'd like to be able to just stick a FeedbackMessage directly in my Session rather than having to call add(Component, String, int), info(...), error(...), warn(...), fatal(...) or debug(...). Alternatively

Re: ModalWindow PageCreator Bug?

2008-07-14 Thread Matthew Hanlon
uld be fixed in trunk. > > Did the broken revision made it to 1.4m3? > > > > -Matej > > > > On Mon, Jul 14, 2008 at 7:31 PM, Matthew Hanlon <[EMAIL PROTECTED]> > wrote: > >> I just updated my 1.4 SNAPSHOT to revision 676639 and I've starte

ModalWindow PageCreator Bug?

2008-07-14 Thread Matthew Hanlon
I just updated my 1.4 SNAPSHOT to revision 676639 and I've started noticing an error in ModalWindow when using ModalWindow.PageCreator. It looks like the setPageCreator method is calling setContent(empty) after setting the page creator, which in turn sets the page creator to null. >From ModalWind

Re: Obtaining full URLs behind a proxy

2008-06-29 Thread Matthew Hanlon
ree. Thanks for the help! Regards, Matthew. On Sat, Jun 28, 2008 at 1:52 AM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: > true, as you write it's actually the proxy that fuddles it up.. > > Timo Rantalaiho wrote: > >> On Fri, 27 Jun 2008, Matthew

Re: Obtaining full URLs behind a proxy

2008-06-27 Thread Matthew Hanlon
z Wael < [EMAIL PROTECTED]> wrote: > Which proxy are it? apache2 httpd? > > Matthew Hanlon wrote: > >> Hmm. I on further thought, "Referer" is not the proper header to use. >> Something more like this instead: >> >> public String getUrl(MyR

Re: Obtaining full URLs behind a proxy

2008-06-27 Thread Matthew Hanlon
StringBuffer url = new StringBuffer(); url.append("http:// ").append(host).append(context).append("/").append(urn); return url.toString(); } On Fri, Jun 27, 2008 at 9:58 AM, Matthew Hanlon <[EMAIL PROTECTED]> wrote: > I was having a problem

Obtaining full URLs behind a proxy

2008-06-27 Thread Matthew Hanlon
I was having a problem getting the full url of a page or resource after deploying my application behind a proxy. I was previously doing the following: public String getUrl(MyResource res) { PageParameters params = new PageParameters(); params.put(Constants.MY_RESOURCE, res.getId()); WebRequestCyc

Re: ValueMap, NullSafeKeyComparator and WicketNotSerializableException

2008-06-12 Thread Matthew Hanlon
Sorry, forgot to mention that I'm using wicket 1.4-SNAPSHOT, rev 667063. On Thu, Jun 12, 2008 at 4:18 PM, Matthew Hanlon <[EMAIL PROTECTED]> wrote: > I'm getting a WicketNotSerializableException on a couple of my pages. The > field that seems to be not serializable appear

ValueMap, NullSafeKeyComparator and WicketNotSerializableException

2008-06-12 Thread Matthew Hanlon
I'm getting a WicketNotSerializableException on a couple of my pages. The field that seems to be not serializable appears to be a Wicket class, org.apache.wicket.util.value.ValueMap$NullSafeKeyComparator. Any suggestions? I saw a posting on the list earlier today that I though may have something

Re: Wicket Session and non-Wicket Servlet

2008-06-04 Thread Matthew Hanlon
ould see it work the way you want. > > ________ > > From: Matthew Hanlon [mailto:[EMAIL PROTECTED] > Sent: Tue 6/3/2008 6:18 PM > To: users@wicket.apache.org > Subject: Re: Wicket Session and non-Wicket Servlet > > > > > > > Check o

Re: Wicket Session and non-Wicket Servlet

2008-06-03 Thread Matthew Hanlon
> > Check out the api for WicketSessionFilter, it will tell you how to make the > session available for non wicket servlets. > > > http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/protocol/http/servlet/WicketSessionFilter.html > Yeah, that's how I had my filter and serv