AttibuteModifier question

2011-04-06 Thread drf
Just as one can use component.add(new AttributeModifier(class, new Model())); to modify the css class for a component, is there a way to either 1. get the existing class value, 2. or alternativly to append a class to the existing css classes set for that component, rather than replacing the

Re: AttributeModifier question

2011-04-06 Thread drf
Looks like I've found the answer - AttributeAppendor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AttributeModifier-question-tp3429987p3429998.html Sent from the Users forum mailing list archive at Nabble.com.

Re: AttibuteModifier question

2011-04-06 Thread vineet semwal
for 1) you can get that in oncomponenttag for 2) use attribute appender On Wed, Apr 6, 2011 at 11:56 AM, drf davidrfi...@gmail.com wrote: Just as one can use component.add(new AttributeModifier(class, new Model())); to modify the css class for a component, is there a way to either 1. get

Re: AttibuteModifier question

2011-04-06 Thread Robert Dahlström
If you're outside of the onComponentTag you can do: String cssClass = component.getMarkupAttributes().getString(class); Regards Robert On 04/06/2011 08:36 AM, Wilhelmsen Tor Iver wrote: 1. get the existing class value, Only when parsing the markup in onComponentTag(). - Tor Iver

Re: AttibuteModifier question

2011-04-06 Thread Ernesto Reinaldo Barreiro
use AttributeAppender? Ernesto On Wed, Apr 6, 2011 at 8:26 AM, drf davidrfi...@gmail.com wrote: Just as one can use component.add(new AttributeModifier(class, new Model())); to modify the css class for a component, is there a way to either 1. get the existing class value, 2. or

Wiquery experiences

2011-04-06 Thread haiko
Hi, We are thinking of using wiquery for a project. We are interested in the experiences of people using it. Does wiquery work in the major browsers (IE7, IE8, IE9, FF3 and Chrome)? Are there any complications when different versions of jquery are used on other places in the HTML? What

Re: Wiquery experiences

2011-04-06 Thread Maarten Billemont
Unless WiQuery has matured a *lot* lately and the code has been cleaned up significantly, I can't recommend it, personally. Writing what should be JavaScript in your wicket Java code is quite out-of-place, and generally all you need to do is place your code where it belongs, in a .js or your

Re: dynamic child in container

2011-04-06 Thread kamiseq
hi again, so I really dont understand how to set hings up but I tried this yesterday around midnight :] so please forgive me ... let me explain again I have simple webpage *DashboardPage* (1) body a wicket:id=editwicket:message key=/w:m/a /body then I created a panel with a form

Re: Ajax onTimer() method not called when running from embedded Jetty

2011-04-06 Thread Marek Šabo
Hi, thank you, it helped. If that does not bother you, could you please elaborate a little bit? Reqards, Marek On 04/05/2011 08:37 PM, Martin Grigorov wrote: you should set init-param org.apache.wicket.protocol.http.WicketFilter.FILTER_MAPPING_PARAM with value == the one you would put in

Re: Ajax onTimer() method not called when running from embedded Jetty

2011-04-06 Thread Martin Grigorov
WicketFilter needs to know the filter path it listens at. By default it extracts this information from web.xml but since you don't use web.xml you need to let Wicket know explicitly. The sequence is: 1) WicketFilter.FILTER_MAPPING_PARAM 2) @ServletFilter's initParams (when Servlet 3.0 API is used

Re: Ajax onTimer() method not called when running from embedded Jetty

2011-04-06 Thread Marek Šabo
Thank you for explanation. On 04/06/2011 02:01 PM, Martin Grigorov wrote: WicketFilter needs to know the filter path it listens at. By default it extracts this information from web.xml but since you don't use web.xml you need to let Wicket know explicitly. The sequence is: 1)

Re: load list view when scroll

2011-04-06 Thread Flori
Hello Michael, Thank you for your fast response. I still didn't manage to solve the problem. I attached the code to see exactly the design and to explain better: I have this ListView attached to a scroll (getBatchNumbers() is a model that will return number of batches = total number of

Re: Fwd: wicket 1.5-rc2 and aggregate jar for osgi

2011-04-06 Thread Daniele Dellafiore
I'd really like to start my wicket app in a osgi (karaf) container. My app uses also wicket-spring. What is the best way to do that now, with wichet 1.5 rc3? Thanls. On Wed, Mar 16, 2011 at 2:25 PM, Michael O'Cleirigh michael.ocleir...@rivulet.ca wrote: Hello, The way releases have been

Re: Fwd: wicket 1.5-rc2 and aggregate jar for osgi

2011-04-06 Thread Martin Grigorov
See RC1 o.a.w:wicket:pom.xml You'll need to create your own project that will combine the all needed .jars as we did in RC1. On Wed, Apr 6, 2011 at 2:51 PM, Daniele Dellafiore dani...@dellafiore.netwrote: I'd really like to start my wicket app in a osgi (karaf) container. My app uses also

Re: Pre-Select CheckBox in CheckBoxMultipleChoice?

2011-04-06 Thread Martin Grigorov
(03:10:56 PM) pedrosans_: Hi, my reply in the users mailing list got rejected again :S (03:11:47 PM) pedrosans_: can someone reply Alexander for me? (03:12:00 PM) pedrosans_: thread: Pre-Select CheckBox in CheckBoxMultipleChoice? (03:12:12 PM) pedrosans_: my reply: It is important to notify model

Re: Fwd: wicket 1.5-rc2 and aggregate jar for osgi

2011-04-06 Thread Daniele Dellafiore
mmm, can't really understand. Anyway, I wanted to add that the point here is to deploy a jar on karaf, not a war. To be honest, the real advantage is to deploy a small jar on karaf that is far better than a heavy war on a jee container. My idea is to have karaf with all the wicket, spring and

Re: Fwd: wicket 1.5-rc2 and aggregate jar for osgi

2011-04-06 Thread Martin Grigorov
I'm not an OSGi user but here is what I'll do. 1) create a new Maven project with packaging type 'pom' 2) combine all wicket jars in one (uber-jar) there are several approaches here: 1) maven-shade-plugin 2) the way we did it in RC1 with maven-dependency-plugin: see

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-06 Thread James Carman
As the voting stands right now, it looks like option 2 is the winner (I counted Matthew as +1 for option 1 even though he didn't really cast a vote, but his response indicated support for option 1): Option 1: 4 +1s Option 2: 6 +1s This isn't an official vote, per se, but it is an informative

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-06 Thread mbosteels . dns
+1 for 2nd option -Original Message- From: Igor Vaynberg igor.vaynb...@gmail.com Date: Tue, 5 Apr 2011 11:46:40 To: users@wicket.apache.org Reply-To: users@wicket.apache.org Subject: Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true) +1 for option 2 -igor On Fri, Apr

Re: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-06 Thread Matthew Pennington
On 06/04/2011 16:53, James Carman wrote: As the voting stands right now, it looks like option 2 is the winner (I counted Matthew as +1 for option 1 even though he didn't really cast a vote, but his response indicated support for option 1): I was convinced by Igor's comments to change my mind if

Re: Fwd: wicket 1.5-rc2 and aggregate jar for osgi

2011-04-06 Thread Daniele Dellafiore
yes the idea is not to have the huber jar, it's all about this, is the main feature :) some guys in the felix maling list suggested me that's actually possible and supported, it's called WAB, that's a war without /lib (a partially reverse recursive achronim for A Better War)

Re: Wiquery experiences

2011-04-06 Thread Bruno Borges
Most of the things you want to do with jQuery, you don't need a library for. I totally agree with Maarten Bruno Borges www.brunoborges.com.br +55 21 76727099 The glory of great men should always be measured by the means they have used to acquire it. - Francois de La Rochefoucauld On Wed,

Re: Wiquery experiences

2011-04-06 Thread msj121
I both agree and disagree with the aforementioned comments. I don't think anyone would disagree that writing javascript from wicket or using a decorator to write javascript is wrong. In fact quite often I may not know the id of an object until run-time and I may want the javascript to run on a

How to know what RadioGroup was selected?

2011-04-06 Thread Paolo
I implemented this example in my application https://cwiki.apache.org/WICKET/using-radiogroups.html But, how I can know what radio button of radiogroup the user selected? This is a part of the html code: span wicket:id=group input wicket:id=1 type=radio/

Re: How to know what RadioGroup was selected?

2011-04-06 Thread James Carman
What is the value of myInt? That should tell you which one was selected. On Wed, Apr 6, 2011 at 10:15 PM, Paolo irresistible...@gmail.com wrote: I implemented this example in my application https://cwiki.apache.org/WICKET/using-radiogroups.html But, how I can know what radio button of

Re: How to know what RadioGroup was selected?

2011-04-06 Thread Paolo
Alle giovedì 07 aprile 2011, James Carman ha scritto: What is the value of myInt? That should tell you which one was selected. On Wed, Apr 6, 2011 at 10:15 PM, Paolo irresistible...@gmail.com wrote: I implemented this example in my application

[ANNOUNCE] Wicketopia 0.9.2 Released...

2011-04-06 Thread James Carman
Wicketopia is a Rapid Application Development (RAD) library for Wicket. The documentation is available at: http://wicketopia.sourceforge.net The official release will be available in the main maven repository shortly, but you can download it via SVN (and run the example application) by doing:

Re: How to know what RadioGroup was selected?

2011-04-06 Thread James Carman
On Wed, Apr 6, 2011 at 10:28 PM, Paolo irresistible...@gmail.com wrote: Great!! You was very fast to reply! And I solved my problem with: System.out.println (Tipo pagamento:+bean.getMyInt()); Thank you very much!!! No problem. That's what Wicket is all about, models. Your RadioGroup edits