Re: Lightbox2 Integration
Thank you! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 17, 2014 at 7:05 PM, Jered Myers jer...@maplewoodsoftware.com wrote: I added the pull request for lightbox2. lightbox2-examples didn't need to be updated. Jered On 07/17/2014 12:27 AM, Martin Grigorov wrote: Hi, Do you want to contribute back ? Please create a Pull Request at with the updates/fixes at https://github.com/wicketstuff/core Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 17, 2014 at 12:14 AM, Jered Myers jer...@maplewoodsoftware.com wrote: The WicketStuff version of the JavaScript file was out of date. After I fixed the JavaScript both the thumbnail and full image displayed. The close image icon still wasn't showing, so I just rolled my own version from http://lokeshdhakar.com/projects/lightbox2/. I think all that needs to be done to fix WicketStuff is to copy down the resource files and to add the data-lightbox attribute to onComponentTag in LightboxLink. Jered On 07/14/2014 10:37 AM, Jered Myers wrote: I am having trouble getting the wicketstuff Lightbox2 plugin integration working. I am using the basic example with image resources at the bottom of https://github.com/wicketstuff/core/wiki/ Lightbox2-Plugin-Integration. The thumbnail displays just fine, but when I click on the thumbnail only the mask for the page shows up and the image is missing. Does anybody have this plugin working? The examples don't seem to work for me either (6.15.0). I tried adding data-lightbox attribute per the ( http://lokeshdhakar.com/projects/lightbox2/) website, but it didn't seem to help. Here is my code where res is an instance of a class that holds the ResourceReferences: add(new LightboxLink(imageLink, res.getFullImage()) { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(data-lightbox, getMarkupId()); } }.add(new Image(imageFile, res.getThumbnail(; - 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: updated Wicket logo
Hi, You can use the logos attached to https://issues.apache.org/jira/browse/WICKET-3341 There is also http://wicket.apache.org/img/logo-bigger.png Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 17, 2014 at 9:04 PM, Christian Wörz ch.wo...@gmail.com wrote: I'm actually building a website and I'd like to use the Wicket logo in it. I've asked The Apache Support and they said that it is perfectly fine, as long as I follow the guidelines. But they said that I have to ask you guys how to get access to updated Apache Wicket logos for my website? Thanks for any help Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: factory method to create the DataGridView in DataTable
https://issues.apache.org/jira/browse/WICKET-5520 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jul 14, 2014 at 10:15 PM, diegomottas diegomot...@hotmail.com wrote: I have the same problem, have you found a solution? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/factory-method-to-create-the-DataGridView-in-DataTable-tp4664458p413.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: Lightbox2 Integration
Can you send a PR for master branch (Wicket 7) too ? git cherry-pick fails to do it automatically :-/ Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 18, 2014 at 9:34 AM, Martin Grigorov mgrigo...@apache.org wrote: Thank you! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 17, 2014 at 7:05 PM, Jered Myers jer...@maplewoodsoftware.com wrote: I added the pull request for lightbox2. lightbox2-examples didn't need to be updated. Jered On 07/17/2014 12:27 AM, Martin Grigorov wrote: Hi, Do you want to contribute back ? Please create a Pull Request at with the updates/fixes at https://github.com/wicketstuff/core Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 17, 2014 at 12:14 AM, Jered Myers jer...@maplewoodsoftware.com wrote: The WicketStuff version of the JavaScript file was out of date. After I fixed the JavaScript both the thumbnail and full image displayed. The close image icon still wasn't showing, so I just rolled my own version from http://lokeshdhakar.com/projects/lightbox2/. I think all that needs to be done to fix WicketStuff is to copy down the resource files and to add the data-lightbox attribute to onComponentTag in LightboxLink. Jered On 07/14/2014 10:37 AM, Jered Myers wrote: I am having trouble getting the wicketstuff Lightbox2 plugin integration working. I am using the basic example with image resources at the bottom of https://github.com/wicketstuff/core/wiki/ Lightbox2-Plugin-Integration. The thumbnail displays just fine, but when I click on the thumbnail only the mask for the page shows up and the image is missing. Does anybody have this plugin working? The examples don't seem to work for me either (6.15.0). I tried adding data-lightbox attribute per the ( http://lokeshdhakar.com/projects/lightbox2/) website, but it didn't seem to help. Here is my code where res is an instance of a class that holds the ResourceReferences: add(new LightboxLink(imageLink, res.getFullImage()) { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(data-lightbox, getMarkupId()); } }.add(new Image(imageFile, res.getThumbnail(; - 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
Page reloads continuously- AjaxLazyLoadPanel ?
Hi, I have upgraded from 6.7.0 to 6.16.0 and now one of my pages continuously reloads. On this page I have AjaxLazyLoadPanel which does not call getLazyLoadComponent method when using 6.16. It does call the constructor and does call getLoadingComponent method. If I remove 6.16 jars and revert back to 6.7 it works fine. I have had a look at the release notes but cant find anything that I may need to do to upgrade. Anyone have any thoughts? Regards Vishal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page reloads continuously- AjaxLazyLoadPanel ?
Hi, Upgrade Wicket version by version to identify in which version the behavior has changed. Check the server logs. Maybe Wicket detects that the page is stale (StalePageException) and re-renders it completely. If nothing helps then create a quickstart and attach it to JIRA and we will take a look. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 18, 2014 at 11:47 AM, Vishal Popat vishal.po...@cipriati.co.uk wrote: Hi, I have upgraded from 6.7.0 to 6.16.0 and now one of my pages continuously reloads. On this page I have AjaxLazyLoadPanel which does not call getLazyLoadComponent method when using 6.16. It does call the constructor and does call getLoadingComponent method. If I remove 6.16 jars and revert back to 6.7 it works fine. I have had a look at the release notes but cant find anything that I may need to do to upgrade. Anyone have any thoughts? Regards Vishal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Ajax update of container listview in a panel
Hello everyone, maybe someone is so kind and explain how to replace / update a panel which contains wicket container via ajax. My LeftToolbarPanel is looking this way (The java class is a simple listview): HTML: wicket:panel wicket:container wicket:id=toolbarleft wicket:container wicket:id=toolbarcomponentleft/ /wicket:container /wicket:panel Java: ... public LeftToolbarPanel() { super(toolbarleftpanel); add(new ListView(toolbarleft, leftComponents) { private static final long serialVersionUID = -8612783439924112109L; @Override protected void populateItem(ListItem item) { item.add((Component) item.getModelObject()); } }); setOutputMarkupId(true); setOutputMarkupPlaceholderTag(true); ... and I want to replace / update it this way (toolbarLeft is the panel which was already rendered before with some other components not being valid anymore): LeftToolbarPanel leftToolbarPanel = new LeftToolbarPanel(); toolbarLeft.replaceWith(leftToolbarPanel); toolbarLeft = leftToolbarPanel; target.add(toolbarLeft); My problem is that the initial rendering is working without any problems I can add components to the toolbar on page reload / browser refresh, but the ajax replacement is failing with this error: Last cause: Failed to handle: wicket:container wicket:id=toolbarcomponentleft/. It might be that no resolver has been registered to handle this special tag. But it also could be that you declared wicket:id=toolbarcomponentleft in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. wicket:container wicket:id=toolbarleft wicket:container wicket:id=toolbarcomponentleft/ /wicket:container Kind regards and thanks in advance Tobias
Re: Page reloads continuously- AjaxLazyLoadPanel ?
Martin Grigorov-4 wrote Upgrade Wicket version by version to identify in which version the behavior has changed. I found the wicket version to be 6.13+. I then removed virtually all code in the page except the AjaxLaxyLoadPanel but was still reloading. I then recalled I have used a customer MountedMapper that I had found here: http://stackoverflow.com/questions/8602489/delete-version-number-in-url And now in the comments I see that someone has also written it does not work for 6.13+. What is the best way to not cache the page and reload a fresh page every time? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Page-reloads-continuously-AjaxLazyLoadPanel-tp471p475.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: Page reloads continuously- AjaxLazyLoadPanel ?
Note that the code at SO has been updated to handle requestHandler instanceof BookmarkableListenerInterfaceRequestHandler too. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 18, 2014 at 4:03 PM, vp143 vishal.po...@cipriati.co.uk wrote: Martin Grigorov-4 wrote Upgrade Wicket version by version to identify in which version the behavior has changed. I found the wicket version to be 6.13+. I then removed virtually all code in the page except the AjaxLaxyLoadPanel but was still reloading. I then recalled I have used a customer MountedMapper that I had found here: http://stackoverflow.com/questions/8602489/delete-version-number-in-url And now in the comments I see that someone has also written it does not work for 6.13+. What is the best way to not cache the page and reload a fresh page every time? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Page-reloads-continuously-AjaxLazyLoadPanel-tp471p475.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 update of container listview in a panel
Hi Tobias, Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 18, 2014 at 2:57 PM, Soloschenko, Tobias tobias.solosche...@rewe-group.com wrote: Hello everyone, maybe someone is so kind and explain how to replace / update a panel which contains wicket container via ajax. My LeftToolbarPanel is looking this way (The java class is a simple listview): Can you confirm that LeftToolbarPanel is a ListView ? It looks to me that it is a Panel. If it is really a ListView then the answer is that you cannot repaint repeater components with AjaxRequestTarget. You need to repaint their parent. HTML: wicket:panel wicket:container wicket:id=toolbarleft wicket:container wicket:id=toolbarcomponentleft/ /wicket:container /wicket:panel Java: ... public LeftToolbarPanel() { super(toolbarleftpanel); add(new ListView(toolbarleft, leftComponents) { private static final long serialVersionUID = -8612783439924112109L; @Override protected void populateItem(ListItem item) { item.add((Component) item.getModelObject()); } }); setOutputMarkupId(true); setOutputMarkupPlaceholderTag(true); ... and I want to replace / update it this way (toolbarLeft is the panel which was already rendered before with some other components not being valid anymore): LeftToolbarPanel leftToolbarPanel = new LeftToolbarPanel(); toolbarLeft.replaceWith(leftToolbarPanel); toolbarLeft = leftToolbarPanel; target.add(toolbarLeft); My problem is that the initial rendering is working without any problems I can add components to the toolbar on page reload / browser refresh, but the ajax replacement is failing with this error: Last cause: Failed to handle: wicket:container wicket:id=toolbarcomponentleft/. It might be that no resolver has been registered to handle this special tag. But it also could be that you declared wicket:id=toolbarcomponentleft in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. wicket:container wicket:id=toolbarleft wicket:container wicket:id=toolbarcomponentleft/ /wicket:container Kind regards and thanks in advance Tobias
Re: Page reloads continuously- AjaxLazyLoadPanel ?
Sorry, I missed the that post. Works fine so far. Many thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Page-reloads-continuously-AjaxLazyLoadPanel-tp471p479.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
Testing Wicket app with JMeter
Hi, I must perform some load test for our application and just found JMeter which seems suit our needs. My problem is that the first step is logging in to the app and can not get JMeter to manage it. I ran a recording script process and everything looked fine but wicket changes a hidden field name (which points to the current form's name) in my login form so the another session gets another name of it. I suspect this is why the login process does not work. There is nothing magical in the login form. Username, pass and lang fields. So I'm wondering if anybody used successfuly JMeter for this kind of testing! TIA., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Testing-Wicket-app-with-JMeter-tp480.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
AW: Ajax update of container listview in a panel
Hi Martin, thanks for the fast answer. The LeftToolbarPanel is a Panel which is added within a page. It contains a ListView with the two container markups. The information in the brackets is wrong. I solved the issue just some minutes ago. I was adding a component to the ListView, but used the wrong id and not toolbarcomponentleft. So everything is working fine. The Panel with the ListView can be replaced without any problems. :-) kind regards Tobias -Ursprüngliche Nachricht- Von: Martin Grigorov [mailto:mgrigo...@apache.org] Gesendet: Freitag, 18. Juli 2014 15:20 An: users@wicket.apache.org Betreff: Re: Ajax update of container listview in a panel [UNSIGNIERT] Hi Tobias, Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 18, 2014 at 2:57 PM, Soloschenko, Tobias tobias.solosche...@rewe-group.com wrote: Hello everyone, maybe someone is so kind and explain how to replace / update a panel which contains wicket container via ajax. My LeftToolbarPanel is looking this way (The java class is a simple listview): Can you confirm that LeftToolbarPanel is a ListView ? It looks to me that it is a Panel. If it is really a ListView then the answer is that you cannot repaint repeater components with AjaxRequestTarget. You need to repaint their parent. HTML: wicket:panel wicket:container wicket:id=toolbarleft wicket:container wicket:id=toolbarcomponentleft/ /wicket:container /wicket:panel Java: ... public LeftToolbarPanel() { super(toolbarleftpanel); add(new ListView(toolbarleft, leftComponents) { private static final long serialVersionUID = -8612783439924112109L; @Override protected void populateItem(ListItem item) { item.add((Component) item.getModelObject()); } }); setOutputMarkupId(true); setOutputMarkupPlaceholderTag(true); ... and I want to replace / update it this way (toolbarLeft is the panel which was already rendered before with some other components not being valid anymore): LeftToolbarPanel leftToolbarPanel = new LeftToolbarPanel(); toolbarLeft.replaceWith(leftToolbarPanel); toolbarLeft = leftToolbarPanel; target.add(toolbarLeft); My problem is that the initial rendering is working without any problems I can add components to the toolbar on page reload / browser refresh, but the ajax replacement is failing with this error: Last cause: Failed to handle: wicket:container wicket:id=toolbarcomponentleft/. It might be that no resolver has been registered to handle this special tag. But it also could be that you declared wicket:id=toolbarcomponentleft in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. wicket:container wicket:id=toolbarleft wicket:container wicket:id=toolbarcomponentleft/ /wicket:container Kind regards and thanks in advance Tobias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validate FormComponent raw input before conversion
Thank you for the replies. You are right. It can be done like this. Though right now it seems that implementing my own rawvalidator would require a comparable amount of effort. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validate-FormComponent-raw-input-before-conversion-tp4666560p483.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: Lightbox2 Integration
Done On 07/18/2014 12:44 AM, Martin Grigorov wrote: Can you send a PR for master branch (Wicket 7) too ? git cherry-pick fails to do it automatically :-/ Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 18, 2014 at 9:34 AM, Martin Grigorov mgrigo...@apache.org wrote: Thank you! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 17, 2014 at 7:05 PM, Jered Myers jer...@maplewoodsoftware.com wrote: I added the pull request for lightbox2. lightbox2-examples didn't need to be updated. Jered On 07/17/2014 12:27 AM, Martin Grigorov wrote: Hi, Do you want to contribute back ? Please create a Pull Request at with the updates/fixes at https://github.com/wicketstuff/core Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 17, 2014 at 12:14 AM, Jered Myers jer...@maplewoodsoftware.com wrote: The WicketStuff version of the JavaScript file was out of date. After I fixed the JavaScript both the thumbnail and full image displayed. The close image icon still wasn't showing, so I just rolled my own version from http://lokeshdhakar.com/projects/lightbox2/. I think all that needs to be done to fix WicketStuff is to copy down the resource files and to add the data-lightbox attribute to onComponentTag in LightboxLink. Jered On 07/14/2014 10:37 AM, Jered Myers wrote: I am having trouble getting the wicketstuff Lightbox2 plugin integration working. I am using the basic example with image resources at the bottom of https://github.com/wicketstuff/core/wiki/ Lightbox2-Plugin-Integration. The thumbnail displays just fine, but when I click on the thumbnail only the mask for the page shows up and the image is missing. Does anybody have this plugin working? The examples don't seem to work for me either (6.15.0). I tried adding data-lightbox attribute per the ( http://lokeshdhakar.com/projects/lightbox2/) website, but it didn't seem to help. Here is my code where res is an instance of a class that holds the ResourceReferences: add(new LightboxLink(imageLink, res.getFullImage()) { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(data-lightbox, getMarkupId()); } }.add(new Image(imageFile, res.getThumbnail(; - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Lightbox2 Integration
Thanks a lot! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 18, 2014 at 6:23 PM, Jered Myers jer...@maplewoodsoftware.com wrote: Done On 07/18/2014 12:44 AM, Martin Grigorov wrote: Can you send a PR for master branch (Wicket 7) too ? git cherry-pick fails to do it automatically :-/ Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jul 18, 2014 at 9:34 AM, Martin Grigorov mgrigo...@apache.org wrote: Thank you! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 17, 2014 at 7:05 PM, Jered Myers jer...@maplewoodsoftware.com wrote: I added the pull request for lightbox2. lightbox2-examples didn't need to be updated. Jered On 07/17/2014 12:27 AM, Martin Grigorov wrote: Hi, Do you want to contribute back ? Please create a Pull Request at with the updates/fixes at https://github.com/wicketstuff/core Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jul 17, 2014 at 12:14 AM, Jered Myers jer...@maplewoodsoftware.com wrote: The WicketStuff version of the JavaScript file was out of date. After I fixed the JavaScript both the thumbnail and full image displayed. The close image icon still wasn't showing, so I just rolled my own version from http://lokeshdhakar.com/projects/lightbox2/. I think all that needs to be done to fix WicketStuff is to copy down the resource files and to add the data-lightbox attribute to onComponentTag in LightboxLink. Jered On 07/14/2014 10:37 AM, Jered Myers wrote: I am having trouble getting the wicketstuff Lightbox2 plugin integration working. I am using the basic example with image resources at the bottom of https://github.com/wicketstuff/core/wiki/ Lightbox2-Plugin-Integration. The thumbnail displays just fine, but when I click on the thumbnail only the mask for the page shows up and the image is missing. Does anybody have this plugin working? The examples don't seem to work for me either (6.15.0). I tried adding data-lightbox attribute per the ( http://lokeshdhakar.com/projects/lightbox2/) website, but it didn't seem to help. Here is my code where res is an instance of a class that holds the ResourceReferences: add(new LightboxLink(imageLink, res.getFullImage()) { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(data-lightbox, getMarkupId()); } }.add(new Image(imageFile, res.getThumbnail(; - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
StringResourceModel with a defaultValue as model
Hi all, is there any way to implement a StringResourceModel which allows to give a defaultValue as model? First I tried to override getDefaultModelAsString() of Label. (is final) Than I tried to implement an extending ModeledDefaultValueStringResourceModel, catching a MissingResourceException on getObject() or load() and retrieving my own ModelString defaultValue, but everthing is final here, too. So, Im not able to achieve this, right now. I would like to do this, because I have a dynamic way of giving buttons a label depending of my Wizard-subclass (have my own SpecialWizardButtonBar). And if a button label is not availabe I want to fallback somewhere, but the default cannot be a StringResourceModel. Can someone help? Or is this a feature request and have to open a ticket? kind regards, nice weekend Patrick
Behavior to modify attributes
I have a third party js library I am applying to my page. I have to mark the fields I want excluded with a particular HTML attribute. So I am implementing a custom behavior to do the work, and I want the behavior to act like it's an opt-in behavior instead of opt-out. So I wrote my behavior to take a set of components in it's constructor and then, I want it to iterate through the text areas and text fields on the components to mark the ones NOT provided wit the opt-out attribute. However, when I add an AttributeModifier to a tag in beforeRender I get an exception: org.apache.wicket.WicketRuntimeException: Cannot modify component hierarchy after render phase has started (page version cant change then anymore) at org.apache.wicket.Component.checkHierarchyChange(Component.java:3595) ~[wicket-core-6.12.0.jar:6.12.0] I could move the code to the bind I suppose, but then user's of my component would have to make sure they added the behavior after ALL components, even the ones that are going to be excluded, have been created. Is there an event between these two? Something the behavior can hook into to do it's work after the construction of the components would be done, but before beforeREnder since that seems to create issues? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Behavior-to-modify-attributes-tp487.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: StringResourceModel with a defaultValue as model
In your Application.properties you add the key key.to.be.good=theValue and you can use the StringResourceModel like that add( new Label(, new StringResourceModel(key.to.be.good, null))); François Meillet Formation Wicket - Développement Wicket Le 18 juil. 2014 à 18:14, Patrick Davids patrick.dav...@nubologic.com a écrit : Hi all, is there any way to implement a StringResourceModel which allows to give a defaultValue as model? First I tried to override getDefaultModelAsString() of Label. (is final) Than I tried to implement an extending ModeledDefaultValueStringResourceModel, catching a MissingResourceException on getObject() or load() and retrieving my own ModelString defaultValue, but everthing is final here, too. So, Im not able to achieve this, right now. I would like to do this, because I have a dynamic way of giving buttons a label depending of my Wizard-subclass (have my own SpecialWizardButtonBar). And if a button label is not availabe I want to fallback somewhere, but the default cannot be a StringResourceModel. Can someone help? Or is this a feature request and have to open a ticket? kind regards, nice weekend PatrickB�CB��[��X��ܚX�KK[XZ[�\�\��][��X��ܚX�P�X��]�\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[�\�\��Z[�X��]�\X�K�ܙ�B�
Re: Testing Wicket app with JMeter
Sandor, I have successfully used JMeter on wicket application with proxy server recording as well as regex pattern on input for next post/get. The first thing I would suggest is to trace your request/response. You can get this info from your browser. Then record your testing and verify you get similar request/response content. Thanks, -Mihir. On Fri, Jul 18, 2014 at 9:34 AM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I must perform some load test for our application and just found JMeter which seems suit our needs. My problem is that the first step is logging in to the app and can not get JMeter to manage it. I ran a recording script process and everything looked fine but wicket changes a hidden field name (which points to the current form's name) in my login form so the another session gets another name of it. I suspect this is why the login process does not work. There is nothing magical in the login form. Username, pass and lang fields. So I'm wondering if anybody used successfuly JMeter for this kind of testing! TIA., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Testing-Wicket-app-with-JMeter-tp480.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: Testing Wicket app with JMeter
Hi there's an article on the wicket wiki On 18 Jul 2014 15:34, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I must perform some load test for our application and just found JMeter which seems suit our needs. My problem is that the first step is logging in to the app and can not get JMeter to manage it. I ran a recording script process and everything looked fine but wicket changes a hidden field name (which points to the current form's name) in my login form so the another session gets another name of it. I suspect this is why the login process does not work. There is nothing magical in the login form. Username, pass and lang fields. So I'm wondering if anybody used successfuly JMeter for this kind of testing! TIA., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Testing-Wicket-app-with-JMeter-tp480.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