Validating a Number using a Validator
Hi All, Basic question but have not got an answer to it. I want to validate a field to accept only numbers and provide a validation message. Is there a NumericValidator I checked NumberValidator but don't see how I can use it..it says its deprecated. TextFieldLong yearOfExpiry = new TextFieldLong(yearExpired); I guess the validator should check if it is of the right type(data type) ..i.e Numeric.. Or should I build a CustomValidator? If I have to would there be an example of how this can be built? Look at the Wicket Code base? Thanks guys Niv
Re: Validating a Number using a Validator
See org.apache.wicket.validation.validator.NumberValidator.MinimumValidator for example. In your custom validator's onValidate() you need to check that validatable.getValue() is an instance of Number. On Wed, Feb 23, 2011 at 10:34 AM, Nivedan Nadaraj shravann...@gmail.comwrote: Hi All, Basic question but have not got an answer to it. I want to validate a field to accept only numbers and provide a validation message. Is there a NumericValidator I checked NumberValidator but don't see how I can use it..it says its deprecated. TextFieldLong yearOfExpiry = new TextFieldLong(yearExpired); I guess the validator should check if it is of the right type(data type) ..i.e Numeric.. Or should I build a CustomValidator? If I have to would there be an example of how this can be built? Look at the Wicket Code base? Thanks guys Niv
Re: Validating a Number using a Validator
Thanks Martin, So I do have to build a CustomValidator that is established. I would have thought this was a basic one that would be off the shelf.No worries thank you for the time, will look at the NumberValidator.MinimumValidator implementation. Cheers Niv -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validating-a-Number-using-a-Validator-tp3320671p3320691.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validating a Number using a Validator
You can use: TextFieldLong yearOfExpiry = new TextFieldLong(yearExpired, Long.class); 2011/2/23 nivs shravann...@gmail.com Thanks Martin, So I do have to build a CustomValidator that is established. I would have thought this was a basic one that would be off the shelf.No worries thank you for the time, will look at the NumberValidator.MinimumValidator implementation. Cheers Niv -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validating-a-Number-using-a-Validator-tp3320671p3320691.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- BUQUET Fabrice
How to show pdf ByteArrayResouce in browser
I have class which generates pdf report. The report is generated as stream as I donot want to save the file in server. I need to show the pdf in the browser. But the link provided to this dynamically generated pdf opens a new window and asks for saving the file. How to open the pdf in new window? My piece of code: IResourceStream stream1 = new ByteArrayResource(application/pdf, stream.toByteArray()).getResourceStream(); getRequestCycle().setRequestTarget(new ResourceStreamRequestTarget(stream1).setFileName(eFile.pdf)); The stream here is the stream to which the pdf is written. I also tried the following code. But this gives null pointer exception getRequestCycle().setRequestTarget(new RedirectRequestTarget(urlFor(new ResourceStreamRequestTarget(stream1).setFileName(eFile.pdf)).toString())); Any help will be great. Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-show-pdf-ByteArrayResouce-in-browser-tp3320759p3320759.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to show pdf ByteArrayResouce in browser
Hi; The browser must have the capability to render PDF, mostly via a plugin. I noticed google chrome browser renders pdf without any plugin installed. So i suggest you test with chrome first. There is an adobe plugin, that enables internet explorer to be able to render pdf once the plugin has been installed. Lastly, there is a project here -http://www.icepdf.org/ (i have never used it though) that can help in this area. Kind regards. Josh.
Re: How to show pdf ByteArrayResouce in browser
Thanks for the reply... I was able to render the pdf in browser with the following piece of code: ResourceStreamRequestTarget target = new ResourceStreamRequestTarget(null){ @Override public void detach(RequestCycle requestCycle) { // TODO Auto-generated method stub } @Override public void respond(RequestCycle requestCycle) { try{ OutputStream out = requestCycle.getResponse().getOutputStream(); out.write(stream.toByteArray()); out.flush(); stream.close(); } catch(Exception e){ e.printStackTrace(); } } }; getRequestCycle().setRequestTarget(target.setFileName(eFile.pdf)); But now the problem is that the file name I set in the last line doesnot work. It renders as ClassName.pdf Any suggestions??? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-show-pdf-ByteArrayResouce-in-browser-tp3320759p3321003.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Session optimization
Hi! Is there a way to swap sessions onto disk with jetty if they are idle for n.n. minutes? It is under investigation, but we suspect that we have many idle users logged in with large session size. So, while they are doing nothing, their session could be pushed onto disk. Is there a setting or utility or way to achieve this? We are using wicket+jetty. Simply shortening session destroy timeout is not an option. ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Adding Title or AltText to CheckBoxMultipleChoice
Is it possible to add a Title or an AltText attribute to a CheckBoxMultipleChoice? (for the tip window) Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-Title-or-AltText-to-CheckBoxMultipleChoice-tp3321054p3321054.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Different styles in different windows on same application
Hi. We have a use case where we have one Wicket application that has multiple styles (passed in through a page-parameter). These styles are put on the session and we have different css, html and properties based on those styles. This works as long as the user doesn't try to open 2 different styles in the same browser. Tab1 http://foo.bar/app/style/theme1 Tab2 http://foo.bar/app/style/theme1 As soon as you go back to tab1 and do something, the style changes. Is there a way to do this without putting the style on the session, but still be able to use the style and variation logic in Wicket? I was looking at setting something on a model that is passed around all to pages. But I can't figure out how to make this work with the resourceloading. Thijs - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Caused by: java.lang.OutOfMemoryError at sun.misc.Unsafe.allocateMemory(Native Method)
this out of memory I did not see in Catalina.out and in Jconsole JVM is fine at that time. It did not create any dump because JVM not crashes. I saw the error in PegaRule.log that application log while they importing the rule at time they got below mentioned error. Thanks Max -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Caused-by-java-lang-OutOfMemoryError-at-sun-misc-Unsafe-allocateMemory-Native-Method-tp3319788p3321124.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding Title or AltText to CheckBoxMultipleChoice
Am 23.02.2011 15:16, schrieb eugenebalt: Is it possible to add a Title or an AltText attribute to a CheckBoxMultipleChoice? (for the tip window) Thanks Did you try an AttributeModifier? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding Title or AltText to CheckBoxMultipleChoice
Yes, we tried AttributeModifier and it's not working. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-Title-or-AltText-to-CheckBoxMultipleChoice-tp3321054p3321193.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket pages created by guice
OK, I managed to fix the problem. And here`s how: I used to have Form class injected in page, then Dao class injected in form, then hibernate session injected in dao class and that session was the one causing WicketNotSerializableException. But, when I create the form with new, it all goes away. While this will work, I still think it would be more... well, neat to have components injected on page. Some things you may look at IComponentInitalizationListener -- http://wicket.apache.org/apidocs/1.4/org/apache/wicket/application/IComponentInitializationListener.html IComponentInstantiationListener -- http://wicket.apache.org/apidocs/1.4/org/apache/wicket/application/IComponentInstantiationListener.html If your really wanting to use Guice/Spring have you considered using a panel/component and implementing your own provider/factory for the component? I'ts almost always harder to do this sort of thing with a Page. On Tue, Feb 22, 2011 at 3:20 PM, Dan Griffin dangri...@gmail.com mailto:dangri...@gmail.com wrote: Thanks, that does offer more flexibility, but it hasn`t solved my problem yet. Guicier and wicket-guice both return objects with wicket, not guice proxy when I say something like setResponse(HomePage.class). If I inject my page object and say, for example, setResponse(injectedPage) it works fine, but I can`t stick to that course throughout my application, because Application.getHome() returns Class? extends Page. By the way, the application doesn`t crash, it only throws org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: com.google.inject.InjectorImpl$4 and then it continues doing whatever it was doing. I found that similar issue was raised before http://osdir.com/ml/users-wicket.apache.org/2009-06/msg01059.html, if it was resolved I would be happy to know. :) Take a look at http://code.google.com/p/jolira-tools/wiki/guicier http://code.google.com/p/jolira-tools/wiki/guicierThere is an extended integration with Guice. On Mon, Feb 21, 2011 at 5:16 PM, Dan Griffindangri...@gmail.com mailto:dangri...@gmail.com wrote: Sorry for spamming, but I remembered another thing I would like to ask related to this. The reason why I need to inject a page is because I would like to use guice AOP feature to wrap an interceptor around wicket pages. If you can recommend another way to do that , it would be helpful as well. I did a quick scan through wicket documentation, but couldn`t find anything useful. Maybe I missed something? Време: 21.02.2011. 13:31, Dan Griffin пише: Hi all, I have guice integrated in my wicket app, and it worked fine until I tried to inject a page, when I received java.lang.IllegalArgumentException: Protected method: checkHierarchyChange(Lorg/apache/wicket/Component;) Now, I assume this is because of guice integration pitfall https://cwiki.apache.org/WICKET/guice-integration-pitfall.html, as I clearly cannot use interfaces here, but the proposed solution (with deprecated protected no-arg constructor) doesn`t help me here. Any idea how to get around this? Thanks in advance, Dan
Re: CheckBoxMultipleChoice.getInput() = NULL after switch to AjaxSubmit
Hi Kikiya, thanks a lot for the reply. Can you provide details on what you did? For everyone else reading this. Maybe the original post wasn't worded very well, but here's the issue: When I'm doing Form onSubmit(), CheckBoxMultipleChoice.getInput() returns correct results. However, in any Ajax code, CheckBoxMultipleChoice.getInput() returns NULL. This is only a problem with the CheckBoxMultipleChoice, not with any other fields. I talked with co-workers and we think it's because the top-level CheckBoxMultipleChoice isn't propagating the Input changes to the lower-level checkboxes. But on the Form onSubmit(), everything gets mapped correctly, and the whole checkbox group gives the right inputs on getInput(). Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckBoxMultipleChoice-getInput-NULL-after-switch-to-AjaxSubmit-tp3317829p3321248.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckBoxMultipleChoice.getInput() = NULL after switch to AjaxSubmit
Just a thought - have you looked at the difference between AjaxFormChoiceComponentUpdatingBehavior and AjaxFormComponentUpdatingBehavior? (I know you mentioned upload, but perhaps there is a clue in there...) -- Jim Pinkham On Wed, Feb 23, 2011 at 10:57 AM, eugenebalt eugeneb...@yahoo.com wrote: Hi Kikiya, thanks a lot for the reply. Can you provide details on what you did? For everyone else reading this. Maybe the original post wasn't worded very well, but here's the issue: When I'm doing Form onSubmit(), CheckBoxMultipleChoice.getInput() returns correct results. However, in any Ajax code, CheckBoxMultipleChoice.getInput() returns NULL. This is only a problem with the CheckBoxMultipleChoice, not with any other fields. I talked with co-workers and we think it's because the top-level CheckBoxMultipleChoice isn't propagating the Input changes to the lower-level checkboxes. But on the Form onSubmit(), everything gets mapped correctly, and the whole checkbox group gives the right inputs on getInput(). Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckBoxMultipleChoice-getInput-NULL-after-switch-to-AjaxSubmit-tp3317829p3321248.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding Title or AltText to CheckBoxMultipleChoice
Our code is as follows. It's not working for us. Thanks a lot CheckBoxMultipleChoice appsCheckBox = new CheckBoxMultipleChoice(apps, appList).setPrefix(li).setSuffix(/li); appsCheckBox.add(new AttributeModifier(title,true, new Model() { @Override public Serializable getObject() { return Test; } })); --- -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-Title-or-AltText-to-CheckBoxMultipleChoice-tp3321054p3321319.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax Back Button
What are the current plans for deploying the code as discussed by Igor in https://issues.apache.org/jira/browse/WICKET-271 first pass on a very basic but working ajax history -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Back-Button-tp1880255p3321344.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Default session timezone
Hi, I am using Wicket 1.5 RC1. I want to set a default timezone for client sessions so I added the following line at the end of my CustomSession constructor: getClientInfo().getProperties().setTimeZone(TimeZone.getTimeZone(GMT)); Doing this coupled with getGatherExtendedBrowserInfo() == true however yields a null exception. Some analysis: In WebSession#getClientInfo(), there is no clientInfo yet and getGatherExtendedBrowserInfo() is true so a redirect is attempted. The line IRequestHandler activeRequestHandler = requestCycle.getActiveRequestHandler(); produces activeRequestHandler == null. Since there is no request handler, the following line String url = requestCycle.urlFor(activeRequestHandler).toString(); gives a null exception as urlFor returns null. If getGatherExtendedBrowserInfo() == false, the default timezone set in the Session constructor works fine. Is this the correct way to set a default time zone? Thank you Bertrand Guay-Paquet - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckBoxMultipleChoice.getInput() = NULL after switch to AjaxSubmit
Yes, I've tried both the first one and the second one with onclick/onchange. The problem is still happening. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckBoxMultipleChoice-getInput-NULL-after-switch-to-AjaxSubmit-tp3317829p3321391.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TreeTabel and file download
Hello Martin, thanks for your reply! You mean override newLink method in DefaultAbstractTree? See DownloadLink. On Fri, Dec 31, 2010 at 3:19 AM, Anton Bessonovexe...@googlemail.comwrote: Hello list, I'm trying to implement small file browser and I use TreeTable. PropertyTreeColumn shows file names and I can get (newCell - getTreeTable().getTreeState().isNodeSelected(node)) java.io.File. Now, I'm need force to download file after click on the file name. Any suggestions? Thanks, Anton - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding Title or AltText to CheckBoxMultipleChoice
Hi, I don't think you may customize the tags as the input generation is hard-coded: // Add checkbox element buffer.append(input name=\).append(getInputName()).append(\).append( type=\checkbox\).append( (isSelected(choice, index, selected) ? checked=\checked\ : )).append( (isEnabledInHierarchy() !isDisabled(choice, index, selected) ? : disabled=\disabled\)).append( value=\).append(id).append( \ id=\).append(idAttr).append(\/); Regards - nothing is impossible -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-Title-or-AltText-to-CheckBoxMultipleChoice-tp3321054p3321468.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Different styles in different windows on same application
what about: class MyPage extends WebPage { public String getVariation() { return getPageParameters().get(style); } } ? On Wed, Feb 23, 2011 at 4:25 PM, Thijs vonk.th...@gmail.com wrote: Hi. We have a use case where we have one Wicket application that has multiple styles (passed in through a page-parameter). These styles are put on the session and we have different css, html and properties based on those styles. This works as long as the user doesn't try to open 2 different styles in the same browser. Tab1 http://foo.bar/app/style/theme1 Tab2 http://foo.bar/app/style/theme1 As soon as you go back to tab1 and do something, the style changes. Is there a way to do this without putting the style on the session, but still be able to use the style and variation logic in Wicket? I was looking at setting something on a model that is passed around all to pages. But I can't figure out how to make this work with the resourceloading. Thijs - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax Back Button
This is planned for Wicket 1.5+ On Wed, Feb 23, 2011 at 6:44 PM, shetc sh...@bellsouth.net wrote: What are the current plans for deploying the code as discussed by Igor in https://issues.apache.org/jira/browse/WICKET-271 first pass on a very basic but working ajax history -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Back-Button-tp1880255p3321344.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Default session timezone
Please create a quickstart and attach it to a ticket. On Wed, Feb 23, 2011 at 6:47 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, I am using Wicket 1.5 RC1. I want to set a default timezone for client sessions so I added the following line at the end of my CustomSession constructor: getClientInfo().getProperties().setTimeZone(TimeZone.getTimeZone(GMT)); Doing this coupled with getGatherExtendedBrowserInfo() == true however yields a null exception. Some analysis: In WebSession#getClientInfo(), there is no clientInfo yet and getGatherExtendedBrowserInfo() is true so a redirect is attempted. The line IRequestHandler activeRequestHandler = requestCycle.getActiveRequestHandler(); produces activeRequestHandler == null. Since there is no request handler, the following line String url = requestCycle.urlFor(activeRequestHandler).toString(); gives a null exception as urlFor returns null. If getGatherExtendedBrowserInfo() == false, the default timezone set in the Session constructor works fine. Is this the correct way to set a default time zone? Thank you Bertrand Guay-Paquet - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TreeTabel and file download
On Wed, Feb 23, 2011 at 8:01 PM, Anton Bessonov exe...@googlemail.comwrote: Hello Martin, thanks for your reply! You mean override newLink method in DefaultAbstractTree? No, Probably you'll have to create custom TreeColumn that uses DownloadLink instead of Label (as PropertyTreeColumn does). See DownloadLink. On Fri, Dec 31, 2010 at 3:19 AM, Anton Bessonovexe...@googlemail.com wrote: Hello list, I'm trying to implement small file browser and I use TreeTable. PropertyTreeColumn shows file names and I can get (newCell - getTreeTable().getTreeState().isNodeSelected(node)) java.io.File. Now, I'm need force to download file after click on the file name. Any suggestions? Thanks, Anton - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax Back Button
Thx Martin! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Back-Button-tp1880255p3321584.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Select All Non-Disabled Items in CheckBoxMultipleChoice
I don't understand this answer. Can you expand? When creating the CheckBoxMultipleChoice for the very first time, I override isDisabled(...). But this is different, I have the Select All button on which I am defining Ajax Updating Behavior. How do I get access to CheckBoxMultipleChoice.isDisabled(..) from there? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Select-All-Non-Disabled-Items-in-CheckBoxMultipleChoice-tp3319897p3321635.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Default session timezone
I created issue WICKET-3477. I first wanted to confirm that my approach was the right one. On 23/02/2011 2:20 PM, Martin Grigorov wrote: Please create a quickstart and attach it to a ticket. On Wed, Feb 23, 2011 at 6:47 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, I am using Wicket 1.5 RC1. I want to set a default timezone for client sessions so I added the following line at the end of my CustomSession constructor: getClientInfo().getProperties().setTimeZone(TimeZone.getTimeZone(GMT)); Doing this coupled with getGatherExtendedBrowserInfo() == true however yields a null exception. Some analysis: In WebSession#getClientInfo(), there is no clientInfo yet and getGatherExtendedBrowserInfo() is true so a redirect is attempted. The line IRequestHandler activeRequestHandler = requestCycle.getActiveRequestHandler(); produces activeRequestHandler == null. Since there is no request handler, the following line String url = requestCycle.urlFor(activeRequestHandler).toString(); gives a null exception as urlFor returns null. If getGatherExtendedBrowserInfo() == false, the default timezone set in the Session constructor works fine. Is this the correct way to set a default time zone? Thank you Bertrand Guay-Paquet - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding Title or AltText to CheckBoxMultipleChoice
Maybe it is possible to be more verbose on suffix and prefix. Maybe add the alt and title to the li element. Cheers Mike Hi, I don't think you may customize the tags as the input generation is hard-coded: // Add checkbox element buffer.append(input name=\).append(getInputName()).append(\).append( type=\checkbox\).append( (isSelected(choice, index, selected) ? checked=\checked\ : )).append( (isEnabledInHierarchy() !isDisabled(choice, index, selected) ? : disabled=\disabled\)).append( value=\).append(id).append( \ id=\).append(idAttr).append(\/); Regards - nothing is impossible - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org