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 update
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 was put a
All,
I want to display a radio button of options with an associated image e.g.
input type=radio name=selectone value=1img src=img_vala.gif
..input type=radio name=selectone value=2img src=img_valb.gif
..input type=radio name=selectone value=3img src=img_valc.gif ..
And have those values driven
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 you -
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; }};}
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
Thanks Igor.
I was using add() to add properties that were already set - if I really wanted
to do that, I think I should be using put() instead.
Russ
From: igor.vaynb...@gmail.com
Date: Mon, 13 Jul 2009 20:43:56 -0700
Subject: Re: Odd behavior
To: users@wicket.apache.org
its not a
Use the ComponentFeedbackPanel,
ccFeedback = new ComponentFeedbackPanel(ccNumberError,ccNumber);
ccFeedback.setOutputMarkupId(true);
addOrReplace(ccFeedback);then you can do this:
input wicket:id=ccNumber value= class= type=text /
span wicket:id=ccNumberError/span
From: rinoc...@live.se
To:
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
From:
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
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.
hashMap.entrySet returns a SetMap.Entry 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
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
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 wrote:
hashMap.entrySet returns a Set If you look at the javadocs, Set
does not extend
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
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) {
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:
link rel=stylesheet type=text/css href=css/standard.css
wicket:id=userStyles:/
Then in your javacode you can have:
userCss.add(new
On Wed, Jul 22, 2009 at 8:40 PM, Dane Lavertydanelave...@gmail.com 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.
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:
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
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:
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:
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 russellsimpk...@hotmail.com:
Martin,
I don't think you can do this in a thread because that lets
depleted?
**
Martin
2009/8/10 Russell Simpkins russellsimpk...@hotmail.com:
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.nl
To: users@wicket.apache.org
Subject: Re: Output to input stream for streaming
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
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)
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
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
in facebook?
2009/8/13 Russell Simpkins russellsimpk...@hotmail.com:
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
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
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
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
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.
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
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 as
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,
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.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 HashMapString,String as an IModel for
your * DropDownChoice. * * @author a
href=mailto:russellsimpk...@hotmail.com;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 on
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 to
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
41 matches
Mail list logo