RE: HttpsRequestCycleProcessor Configuration

2010-07-27 Thread Russell Simpkins
> My problem is not specific to wicket but I'm hoping that someone in the > community has fought this battle before and is willing to lend a helping > hand. I am using the HttpsRequestCycleProcessor and I only have the > @RequireHttps annotation on one page, the registration page. I have apache

RE: Dropdownchoice selection to trigger change of form

2010-07-06 Thread Russell Simpkins
I think you are neglecting to do any changes in your "onupdate()" method. When onupdate is called, the user should have selected a vehicle, which would populate "selectedVehicle" - you need to then populate your other dropdown menu or whatever else you wanted to populate before you addOrReplace

RE: How to support multiple themes in Wicket application.

2010-06-15 Thread Russell Simpkins
> I would like to support multiple themes in Wicket application like> > Wordpress, Drupal. Could you please give me suggestion? I would make sure that every element has "class" set. I would also recommend always setting component.setMarkupId(String id) for your components so that you can style

RE: radiochoice values

2010-06-11 Thread Russell Simpkins
hMap; import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.apache.wicket.markup.html.form.ChoiceRenderer; /** * This class will let you use a HashMap as an IModel for your * DropDownChoice. *  * @author mailto:russellsimpk...@hotmail.com";>Russell Sim

RE: Can I develop without recompiling/restarting after every change?

2010-06-06 Thread Russell Simpkins
hotmail just destroyed my last post. I apologize. I will try one more time to share my source import org.mortbay.jetty.Connector;import org.mortbay.jetty.Server;import org.mortbay.jetty.bio.SocketConnector;import org.mortbay.jetty.webapp.WebAppContext;import org.mortbay.jetty.webapp.WebInfConf

RE: Can I develop without recompiling/restarting after every change?

2010-06-06 Thread Russell Simpkins
I have to thank Martijn for pointing out the Start.java file. I am trying hard not to beat myself up for not using this sooner. I have not gone through the works just yet to move my HTML files to another location. I've left them in with the class files. So, for eclipse love in this situation,

RE: how to implement multiple forms on a single page

2010-06-03 Thread Russell Simpkins
Thanks for the response - after further digging I discovered the error was one of my own creation. > From: igor.vaynb...@gmail.com > Date: Wed, 2 Jun 2010 20:07:51 -0700 > Subject: Re: how to implement multiple forms on a single page > To: users@wicket.apache.org > > you should be able to have

how to implement multiple forms on a single page

2010-06-02 Thread Russell Simpkins
All, I've been looking around the wiki and the mailing list, but can't seem to figure out what I'm doing wrong, or if I am even allowed to do multiple forms on one page with wicket. I'm using 1.4.8 and I would like to have three forms. Each of the forms work, but I noticed that one of my forms

RE: WebMarkupContainer Ajax update problem

2009-09-03 Thread Russell Simpkins
Have you tried: content..add(new SimpleAttributeModifier("style", "background-image=url(...)")); I haven't done this, but you might also be able to do: content.add(new SimpleAttributeModifier("class", "new-class-name")); > Date: Fri, 4 Sep 2009 01:57:36 +0300 > Subject: WebMarkupContainer Ajax up

RE: how to monitor session memory usage

2009-08-15 Thread Russell Simpkins
Try this program, its free and very well written: http://www.eclipse.org/mat/ You can configure to take heap dumps a couple of different ways. I haven't done any profiling in a while, but I googled and found this article for you. http://www.eclipse.org/articles/Article-TPTP-Profiling-Tool/tptpPr

RE: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-14 Thread Russell Simpkins
Errors like those are caused when the hibernate session is closed too soon. https://www.hibernate.org/43.html Russ > Subject: Re: CORRECT portlet+spring+hibernate configuration (Two options, > what's right?) > From: g...@aguilardelgado.com > To: users@wicket.apache.org > Date: Fri, 14 Aug 2009 1

RE: JS libraries with Wicket

2009-08-13 Thread Russell Simpkins
Eyal, There was a post just today to this url: http://www.dzone.com/links/wicket_tutorial_yui_autocomplete_using_json_and_a.html Russ > From: egola...@gmail.com > Date: Thu, 13 Aug 2009 17:22:48 +0300 > Subject: JS libraries with Wicket > To: users@wicket.apache.org > > There was once a nice e

RE: Ajax based filling of form

2009-08-13 Thread Russell Simpkins
I believe this is a variable reference issue. // instead of this isbnField.add(new AjaxFormComponentUpdatingBehavior("onchange") {...@override protected void onUpdate(final AjaxRequestTarget target) {try {book = bookRetriever.getBook(isbnField.getInput()); // try this@overrideprotected vo

RE: wiki link

2009-08-13 Thread Russell Simpkins
ication I mean the little apps that are passed around > in facebook? > > 2009/8/13 Russell Simpkins : > > > > Sorry, the link should be > > http://cwiki.apache.org/WICKET/adding-facebook-connect.html > > > >> From: russellsimpk...@hotmail.com > >> To:

wiki link

2009-08-12 Thread Russell Simpkins
Sorry, the link should be http://cwiki.apache.org/WICKET/adding-facebook-connect.html > From: russellsimpk...@hotmail.com > To: users@wicket.apache.org > Subject: RE: Ajax based filling of form > Date: Wed, 12 Aug 2009 21:12:38 -0400 > > > All, > I'm still green with Wicket and even greener on

RE: Ajax based filling of form

2009-08-12 Thread Russell Simpkins
All, I'm still green with Wicket and even greener on Facebook, so I had a hard time adding Facebook connect to my wicket app. I think this is due in large part to Facebook changing so often. Any ways, I have written up a new page for anyone else trying to do Facebook connect with Wicket. If I g

RE: Prevent Wicket from creating a new user session while user clicks back button

2009-08-12 Thread Russell Simpkins
You can't prevent a new session from being created, but I'm thinking you still have session data after you logged them out, so don't forget to invalidate the session. e.g. HttpSession session = ((ServletWebRequest) getPage().getRequest()).getHttpServletRequest().getSession()session.invalidate(

RE: submit a form using ajax

2009-08-11 Thread Russell Simpkins
I haven't done this, but if I were trying to post every 30 seconds, i would use the setInterval ( expression, interval ) function. One way to add javascript in your form is to implement: protected IAjaxCallDecorator getAjaxCallDecorator(). I think the suggestion was to look at the code in ajaxs

RE: Output to input stream for streaming?

2009-08-10 Thread Russell Simpkins
it would wait > until the source is really depleted? > > ** > Martin > > 2009/8/10 Russell Simpkins : > > > > Yes. That is exactly the point i was trying to make erik. > > > >> Date: Mon, 10 Aug 2009 14:30:59 +0200 > >> From: e.vanoos...@grons.

RE: Output to input stream for streaming?

2009-08-10 Thread Russell Simpkins
7;t expect anyone > writing the output once the servlet finished. > > Regards, > Erik. > > > Russell Simpkins wrote: > > Its not that anything is missing per se, but if you run your output writer > > in a separate thread, then the rest of your processing is

RE: Output to input stream for streaming?

2009-08-10 Thread Russell Simpkins
om > To: users@wicket.apache.org > > Well well.. I do not understand why it is not possible, in principle. > The input is there. The output is there... what's missing? > > ** > Martin > > 2009/8/10 Russell Simpkins : > > > > Martin, > > >

RE: Output to input stream for streaming?

2009-08-10 Thread Russell Simpkins
Martin, I don't think you can do this in a thread because that lets the HttpServletResponse end and close your ServletOutputStream. Russ > Date: Mon, 10 Aug 2009 14:49:58 +0300 > Subject: Output to input stream for streaming? > From: martin.maku...@koodaripalvelut.com > To: users@wicket.apache

RE: jetty hot deployment

2009-08-09 Thread Russell Simpkins
What do you use for a dev environment? I tried to get that working in a jboss env with no luck. JavaRebel sounded pretty cool. I was bummed it didn't work. Russ > Date: Sun, 9 Aug 2009 09:17:06 -0700 > Subject: Re: jetty hot deployment > From: siber...@si

RE: Handle file uploads in Behavior and respond using AjaxRequestTarget

2009-08-05 Thread Russell Simpkins
i've done this with php and ajax. the form posts, using target, to a hidden iframe. the response rendered back to the iframe is javascript. The only thing the iframe renders is javascript. In your page you have javascript functions for the onSuccess() or onFailure() that are specific to th

RE: Problem with Required component message

2009-08-02 Thread Russell Simpkins
Martin, I did this by creating a properties file MyPanel.properties and then setting creditCardForm.ccNumber.Required=Please enter your credit card number. Did you try setting form.componentId.Required? Or even panel.form.componentId.Required Russ > Date: Sun, 2 Aug 2009 12:19:40 +0300 > Subject:

RE: Spring and Wicket - is it worth it?

2009-07-23 Thread Russell Simpkins
> On Wed, Jul 22, 2009 at 8:40 PM, Dane Laverty wrote: > > Due to the fact that nearly every substantial sample Wicket app is > > Spring-based, I imagine that there's something awesome about using Spring. > > In fact, Wicket is what has finally gotten me to start learning Spring. > > > > I think

RE: Save CSS/StyleSheet in Database ?

2009-07-22 Thread Russell Simpkins
I have not done this myself, but I think you might get what you want using the SimpleAttributeModifier. Say you were doing a css style: Date: Wed, 22 Jul 2009 05:12:45 -0700 > From: farhan.ba...@ymail.com > Subject: Re: Save CSS/StyleSheet in Database ? > To: users@wicket.apache.org > > Thanks

RE: Redirect fails wicketTest in rc7 - is there a workaround?

2009-07-19 Thread Russell Simpkins
Martin, If you need the button to submit to do some logic, you can add a call decorator to do your redirect with javascript e.g. protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() {public CharSequence decorateScript(CharSequence script) {

RE: Redirect fails wicketTest in rc7 - is there a workaround?

2009-07-19 Thread Russell Simpkins
Martin, Your button should just be an external like. I don't think you are supposed to be redirecting to an external url per the wiki guidelines here http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html, its this text on the bottom of the page: Note that if you jus

RE: HashMap.Entry not serializable?

2009-07-18 Thread Russell Simpkins
the case of Entry ,it's implemented in Map implementations like hashmap . > the class which implements Entry there isn't Serializable. > > > regards, > Vineet Semwal > > > > > On Sat, Jul 18, 2009 at 5:22 PM, Russell Simpkins < > russellsimpk...@hotmail.com>

RE: What already redirecting error?

2009-07-18 Thread Russell Simpkins
Martin, You could try setting step debugging on your IDE and step through your code. However, this type of error is not specific to wicket. Just the other day I was securing my site with Acegi and caused this to happen when I secured all pages, including my login.htm page - so, when Acegi notic

RE: HashMap.Entry not serializable?

2009-07-18 Thread Russell Simpkins
hashMap.entrySet returns a Set If you look at the javadocs, Set does not extend Serializable: public interface Setextends Collection All Superinterfaces:Collection, Iterable > Date: Sat, 18 Jul 2009 13:06:32 +0300 > Subject: HashMap.Entry not serializab

RE: error(validatable)

2009-07-18 Thread Russell Simpkins
Kenneth, I over rode onError when I used the ComponentFeedbackPanel - when learning Wicket, I discovered that I had no idea my form errored out unless I did the following for my form. In this instance, I'm using the AjaxButton. I think the key is to add your feedback component to the target.

RE: Background-Thread blocking Wicket-App

2009-07-17 Thread Russell Simpkins
Running a thread should not block the entire application - are you using connection pooling with more than one max active connection? Maybe you should send the code you use to kick off the thread. If you have any code that is synchronized on a shared resource, that might block others. Russ >

RE: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server

2009-07-17 Thread Russell Simpkins
Actually, "If" you sub domain your apps, then they can all be ROOT.war e.g. app1.myhost.com vs myhost.com/app1 - look at doing virtual hosts in tomcat if interested. Russ > Date: Fri, 17 Jul 2009 13:29:35 +0800 > Subject: Re: Not working AjaxFormSubmitBehavior in Tomcat behind HTTP Server > Fro

RE: Validation component feedback in table column

2009-07-17 Thread Russell Simpkins
Use the ComponentFeedbackPanel, ccFeedback = new ComponentFeedbackPanel("ccNumberError",ccNumber); ccFeedback.setOutputMarkupId(true); addOrReplace(ccFeedback);then you can do this: From: rinoc...@live.se To: users@wicket.apache.org Subject: Validation component feedback in table column Date: F

RE: Odd behavior

2009-07-14 Thread Russell Simpkins
t; > its not a reference to a string, its a reference to a string *array*, > notice the [ in the beginning. can happen if you add the same key > twice to the valuemap - it will create an array. > > -igor > > On Mon, Jul 13, 2009 at 7:43 PM, Russell > Simpkins wrote: >

Odd behavior

2009-07-13 Thread Russell Simpkins
All, Every now and then my for ends up displaying [Ljava.lang.String;@7cd46bea instead of displaying my string value. There is no rhyme or reason, just going back and forth through my application and eventually I see that value dumped out in lieu of my actual string value. ValueMap properti

RE: AjaxUpdate FeedbackPanel And window.open popup

2009-07-12 Thread Russell Simpkins
You could over-ride getAjaxCallDecorator() on your AjaxButton. e.g. protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { public CharSequence decorateScript(CharSequence script) { return "window.open('http://www.google.com','newwindow');" + script; }};} >

RE: Radio button question

2009-07-06 Thread Russell Simpkins
> From: igor.vaynb...@gmail.com > Date: Mon, 6 Jul 2009 19:10:22 -0700 > Subject: Re: Radio button question > To: users@wicket.apache.org > > the example of radiogroup in wicket-examples/component reference > demonstrates a radio group with a variable amount of radios. > > -igor > Igor, Thank

Radio button question

2009-07-06 Thread Russell Simpkins
All, I want to display a radio button of options with an associated image e.g. And have those values driven from my Model. I feel caught somewhere between RadioGroup and RadioList but I'm not sure how to pull this off because RadioGroup documentation seems to suggest that I have to have wicket:

RE: Wicket behind proxy (AJP)

2009-07-02 Thread Russell Simpkins
> From: jcar...@carmanconsulting.com > Date: Thu, 2 Jul 2009 14:43:59 -0400 > Subject: Re: Wicket behind proxy (AJP) > To: users@wicket.apache.org > > I don't think ProxyPass supports the "/" path, does it? At least, it didn't > back when I wanted to set my site up like that. What I had to do w