Where to put custom validator properties file within JAR so Wicket finds it?

2008-09-22 Thread Justin Morgan - Logic Sector
I have a Maven project that builds a JAR file called mf-wicket- extensions.jar. I've created a class called DisallowedContentValidator.java that's built as part of the JAR. I'd like to add a DisallowedContentValidator.properties file that's automatically found when the validator validates

Re: Dynamic PageExpiredPage

2008-09-22 Thread Justin Morgan - Logic Sector
Create a custom Wicket session subclass that holds your portal: public class MySession extends WebSession { private Portal _portal; public MySession(Request request) { super(request); LOGGER.debug(Instantiated); _portal = new Portal(); } public Portal

Re: How to create a cacheable image resource for a image file?

2008-06-24 Thread Justin Morgan - Logic Sector
of suggestions here: http://www.nabble.com/Image-from-resource-outside-tomcat-container-to17276444.html#a17276444 -- Jeremy Thomerson http://www.wickettraining.com On Mon, Jun 23, 2008 at 7:04 PM, Justin Morgan - Logic Sector [EMAIL PROTECTED] wrote: In my web app there are a bunch of static image

How to create a cacheable image resource for a image file?

2008-06-23 Thread Justin Morgan - Logic Sector
In my web app there are a bunch of static image files that live outside the WAR in various places on the host's file system (also outside the purview of the httpd server too). To serve up these images within my Wicket app, I've been reading their bytes via a File object and returning

How to tell when a page transition occurs?

2008-06-22 Thread Justin Morgan - Logic Sector
Hopefully a simple problem for the group... What's the best way to be notified when the application transitions from one page to another? Does the application object receive any Wicket messages like onPageTransition() or anything like that? I ask because--in my application--when the user

Re: How to tell when a page transition occurs?

2008-06-22 Thread Justin Morgan - Logic Sector
are the one performing the transition from A to B you can commit yourself, no? -igor On Sun, Jun 22, 2008 at 12:02 AM, Justin Morgan - Logic Sector [EMAIL PROTECTED] wrote: Hopefully a simple problem for the group... What's the best way to be notified when the application transitions from one page

Re: Quick question regarding TabbedPanel and forms

2008-05-22 Thread Justin Morgan - Logic Sector
has to be submitted/validated before tabs can be switched. -igor On Wed, May 21, 2008 at 9:51 PM, Justin Morgan - Logic Sector [EMAIL PROTECTED] wrote: Hi all, I'm running into an issue with my TabbedPanel. Currently I have a TabbedPanel containing two tabs. Each tab panel contains a form

Quick question regarding TabbedPanel and forms

2008-05-21 Thread Justin Morgan - Logic Sector
Hi all, I'm running into an issue with my TabbedPanel. Currently I have a TabbedPanel containing two tabs. Each tab panel contains a form. Here's my problem scenario: 1. User clicks on a tab to view it (which is really just a link with fancy CSS styling) 2. User enters text in

Bug in order of rendered links within wicket:head ?

2008-03-25 Thread Justin Morgan - Logic Sector
I'm having an issue with links to CSS files in Wicket 1.3.1. The problem is the ordering of the links in the rendered HTML. The page inheritance hierarchy goes like this: AbstractMasterPage -- AbstractStaticTextPage -- StaticTextPage However, the list of links brought in via the

Re: Bug in order of rendered links within wicket:head ?

2008-03-25 Thread Justin Morgan - Logic Sector
/ link href=css/AbstractStaticTextPage.css type=text/ css rel=stylesheet/ /head This results in parent-CSS overriding child-CSS, which is wrong. Thanks again for any help! On Mar 25, 2008, at 1:19 AM, Justin Morgan - Logic Sector wrote: I'm having an issue with links to CSS files in Wicket

Any Wicket way to submit 2 forms with 1 submit button?

2008-03-07 Thread Justin Morgan - Logic Sector
Here's a problem that other people may have encountered. Hopefully there's a Wicket way to solve it. The scenario... I have two forms on my Contact Us page. There is a login form at the top of the page with a submit button. There's also the contact form at the bottom of the same page,

Re: How to remove a page from Wicket's back button memory?

2007-09-12 Thread Justin Morgan (Logic Sector)
) at com.logicsector.web.page.SecuredExamplePage.init (SecuredExamplePage.java:64) ... 30 more On Sep 12, 2007, at 12:59 AM, Johan Compagner wrote: page.getPageMap().remove(page) johan On 9/12/07, Justin Morgan (Logic Sector) [EMAIL PROTECTED] wrote: Hi, Okay, another newbie question. :) I have some

(Matej?) Re: How to remove a page from Wicket's back button memory?

2007-09-12 Thread Justin Morgan (Logic Sector)
did fix that today or is fixing it right now. johan On 9/12/07, Justin Morgan (Logic Sector) [EMAIL PROTECTED] wrote: Thanks, I tried that but I get an exception in the Wicket 1.3 snapshot I'm using. Is there a known bug in the remove(Page) method? Or maybe I'm simply using it wrong

How to remove a page from Wicket's back button memory?

2007-09-11 Thread Justin Morgan (Logic Sector)
Hi, Okay, another newbie question. :) I have some secured pages that require a user login. The main page (unsecured) has direct links to these secured pages. If the user tries to access one of these secured pages without being logged in, I throw a restartresponseexception that takes

Re: Given a Page subclass and its PageParameters, how to determine the URL string?

2007-08-17 Thread Justin Morgan (Logic Sector)
) s.append( : ).append( port ); s.append( pagePath ); final URL clickbackPageUrl = new URL( s.toString() ); return clickbackPageUrl.toString(); } } -Original Message- From: Justin Morgan (Logic Sector) [mailto:[EMAIL PROTECTED] Sent: 16 August 2007 17:23 To: users

Re: Still need a little help putting hyperlinks in a CheckBox's label

2007-08-13 Thread Justin Morgan (Logic Sector)
)); input type=checkbox wicket:id=cb/label wicket:id=labelagree to the a wicket:id=termsterms of use/a and a wicket:id=policysubmission policy/a/label -igor On 8/10/07, Justin Morgan (Logic Sector) [EMAIL PROTECTED] wrote: Hi, I asked this question before but didn't really understand