Re: Wicket 1.5 Page Expired in JMeter
My next step to solve this problem was to run some tests with The Grinder Load Testing Tool. A nice tool, but I got the same problem than in JMeter - Page Expired! I use the Cookie Manager and tried also URL Rewriting (attaching the jsessionid to each url) but without success. The problem occurs when changing the page inside my application (setResponsePage). I tested a Wicket application without page change, but with panel exchanges - no problem! rawe -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Page-Expired-in-JMeter-tp4661732p4661769.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
Wicket 1.5 Page Expired in JMeter
I'm using Wicket 1.5.8 and tried to use JMeter for loading tests. My problem is that it records well but when running the recorded scenario I get a page expired response. It occurs also when I run only one thread one time. Yes, I use HTTP Cookie Manager and delete session after each run. I know the Apache JMeter/Wicket Page and did some research about this topic, but I got no answer what the problem is. Maybe I can get some help or hints here!? Thanks! rawe -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Page-Expired-in-JMeter-tp4661732.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: Forms marked as multipart do not work with ajax and IE9
We had the same problem with IE9 Our solution. Set the starting page markup to: meta http-equiv=X-UA-Compatible content=IE=edge/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Forms-marked-as-multipart-do-not-work-with-ajax-and-IE9-tp3502174p4606081.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
404 error using Wicket 1.5.4 and Websphere 6.1
Hi, after updating from Wicket 1.4 to 1.5.4 I get a 404 error when doing a form submit. I get this error when calling a SubmitLink or a normal page submit. It's working in Tomcat 6, but not with Websphere 6.1 My Log output is empty - no error log ! The only message is (german): Error 404: Berichteter Fehler: 404 I already contacted our IBM support but they say it's an application problem (Wicket problem) They say that the root is a HTTP Statuscode 302 found I have absolutly no idea what could be the problem! The same application was/is running without problems under Wicket 1.4.18 on Websphere 6.1 and Tomcat5 and also under Wicket 1.5.4 on Tomcat6. But not with Wicket 1.5.4 and Websphere 6.1 Do you have any hints? Thanks in advance Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/404-error-using-Wicket-1-5-4-and-Websphere-6-1-tp4548356p4548356.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: 404 error using Wicket 1.5.4 and Websphere 6.1
What I see in Firebug on tab network, when running the application under tomcat is: /POST page?9-3.IFormSubmitListener-frmOrderDetail 302 Moved Temporarily localhost:8080 0 127.0.0.1:8080/ Normally I get a status of 200. That's why Websphere can't find the page : 302 Moved Temporarily Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/404-error-using-Wicket-1-5-4-and-Websphere-6-1-tp4548356p4548554.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: 404 error using Wicket 1.5.4 and Websphere 6.1
Yes, also when a redirect is a normal operation it seems that Websphere 6.1 cannot handle it. see also the known problem with glassfish: https://issues.apache.org/jira/browse/WICKET-2732 https://issues.apache.org/jira/browse/WICKET-2732 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/404-error-using-Wicket-1-5-4-and-Websphere-6-1-tp4548356p4548678.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: 404 error using Wicket 1.5.4 and Websphere 6.1
Yes, I think the problem could be the servlet-api version. WAS 6.1 is running with servlet-api 2.4, so I won't install a wicket 1.5 application on it! Thanks for your help! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/404-error-using-Wicket-1-5-4-and-Websphere-6-1-tp4548356p4548975.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: Markup not found when upgrading from 1.4.18 to 1.5
Hi, you wrote / ... you should pass the form as parent container of the fragment instance. / The problem is that I have multiple fragments within my form. And if I pass the form as parent container for each fragment I get an ... child already exists... exception. That's why I'm inserted additional div tags before each fragment which works fine in Wicket 1.4 /div wicket:id=contentFragment1 / wicket:fragment wicket:id=orderFragment1 fieldset .../fieldset /wicket:fragment/ When I try to embed the fragment in my div /div wicket:id=contentFragment1 ...here fragment ... /div/ I get the exception: /Close tag not found for tag: div wicket:id=contentFragment1. For OrderFragment1 Components only raw markup is allow in between the tags but not other Wicket Component / I'm without an idea :-( ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Markup-not-found-when-upgrading-from-1-4-18-to-1-5-tp4431186p4437937.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: Markup not found when upgrading from 1.4.18 to 1.5
Thanks for your hints, Martin! Now I found the solution. Two changes I had to do: *1)* The difference now is, that the parent component passed to the fragment must be the exact parent. e.g. I used the same fragments for display and edit mode. I passed the page as parentComponent to fragment. /new Fragment(id, markupId, parentComponent);/ But in edit mode there was also a form component in the page. So in Wicket 1.5 I have to pass the form as parentComponent to the fragment In Wicket 1.4 it worked also with the page as parentComponent! *2)* second change is in the markup: In Wicket 1.4 I did: /div wicket:id=contentFragment1 / wicket:fragment wicket:id=orderFragment1/ In Wicket 1.5 it's now: /wicket:container wicket:id=containerFragment1/wicket:container wicket:fragment wicket:id=orderFragment1/ ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Markup-not-found-when-upgrading-from-1-4-18-to-1-5-tp4431186p4438539.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
Markup not found when upgrading from 1.4.18 to 1.5
I changed my app from wicket 1.4.18 to 1.5.4 Now I get a MarkupNotFound Exception. In 1.4. the app was running without warnings/errors Does somebody have a hint? I'm using a form within a page. The form has a fragment child. *MarkupCode*: /div wicket:id=contentFragment1/ wicket:fragment wicket:id=orderFragment1 fieldset ... /fieldset /wicket:fragment / *JavaCode:* f/orm.add(new OrderFragment1(contentFragment1)); public class OrderFragment1 extends AbstractOrderFragment1 { public OrderFragment1(String id) { super(id, orderFragment1, OrderDetailPagePartEdit.this, orderWrkBean); ... }/ * The exception:* /Last cause: No Markup found for Fragment orderFragment1 in providing markup container [Page class = com.dachser.uitrosend.order.OrderDetailPagePartEdit, id = 21, render count = 1] Root cause: org.apache.wicket.markup.MarkupNotFoundException: No Markup found for Fragment orderFragment1 in providing markup container [Page class = com.dachser.uitrosend.order.OrderDetailPagePartEdit, id = 21, render count = 1] at org.apache.wicket.markup.html.panel.FragmentMarkupSourcingStrategy.getMarkup(FragmentMarkupSourcingStrategy.java:143) at org.apache.wicket.markup.html.panel.FragmentMarkupSourcingStrategy.onComponentTagBody(FragmentMarkupSourcingStrategy.java:74) at org.apache.wicket.Component.internalRenderComponent(Component.java:2528) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1576) at org.apache.wicket.Component.internalRender(Component.java:2358) ... / Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Markup-not-found-when-upgrading-from-1-4-18-to-1-5-tp4431186p4431186.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: Markup not found when upgrading from 1.4.18 to 1.5
Martin, do you mean something like ?? / div wicket:id=contentFragment1/ wicket:child wicket:fragment wicket:id=orderFragment1 fieldset ... /fieldset /wicket:fragment /wicket:child / Doesn't work! But normally I don't need a child tag due I don't include markup from a subclass My fragment class is extended from an AbstractFragment class which extends Fragment I' m using just one markup file. Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Markup-not-found-when-upgrading-from-1-4-18-to-1-5-tp4431186p4431304.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
WiQuery 1.5.4 and Wicket 1.5.4 Problem
Hi, I changed my WiQuery version from 1.5M2 to 1.5.4 I'm running Wicket 1.5.4. I had no problem running my application with tomcat when using Wiquery 1.5M2. Now after I changed to Wiquery 1.5.4 my tomcat (5.0) fails starting with following error: java.lang.ClassCastException: org.odlabs.wiquery.ui.listener.WiQueryUIInitializer at org.odlabs.wiquery.core.WiQueryInitializer.addInitializer(WiQueryInitializer.java:158) at org.odlabs.wiquery.core.WiQueryInitializer.load(WiQueryInitializer.java:146) at org.odlabs.wiquery.core.WiQueryInitializer.retrieveAndCallInitializers(WiQueryInitializer.java:121) at org.odlabs.wiquery.core.WiQueryInitializer.init(WiQueryInitializer.java:73) at org.apache.wicket.Application.callInitializers(Application.java:605) Does somebody now what's the problem? Thanks in advance -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WiQuery-1-5-4-and-Wicket-1-5-4-Problem-tp4413486p4413486.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: WiQuery 1.5.4 and Wicket 1.5.4 Problem
Yes, this was the right hint! I included also the same version (1.5.4) of wiquery-jquery-ui and wiquery-core jar files in WEB-INF/lib but I didn't delte the old versions of 1.5-M2 It's running now! Thank you! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WiQuery-1-5-4-and-Wicket-1-5-4-Problem-tp4413486p4413856.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 in form returns always error but textfield has a value
Here are some code snippets. When clicking on a tree node I validate the form.. If no errors I update the form component models. The class MyMutableTreeNode extends DefaultMutableTreeNode. Each node references an own panel component. getNodeEntryDetail() returns the panel referenced by the node. Where is the difference to a SubmitLink call. If calling SubmitLink validation works fine and input values of the textfields in panel are filled. When calling validate() programmatic the input values are null. ?? ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validating-in-form-returns-always-error-but-textfield-has-a-value-tp3912361p3914396.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: Using SubmitLink as a tree node ?
Hi Martin, thank you! This was the helping hint! works perfectly! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-SubmitLink-as-a-tree-node-tp3914407p3914691.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 in form returns always error but textfield has a value
Yes, I'm using the form default setting (DefaultFormProcessing = true). But for form processing you have to use a submit button or a SubmitLink or you can call the form validate() method programmatic. See also Wicket API Doc of Form: ( http://wicket.apache.org/apidocs/1.4/org/apache/wicket/markup/html/form/Form.html Wicket API Doc ) /If you want you can call validate() to execute form validation, hasError() to find out whether validate() resulted in validation errors, and updateFormComponentModels() to update the models of nested form components./ the first two are working perfect, but not the programmatic way. Nevertheless I found a solution for my problem. I'm using a SubmitLink in my LinkTree component. For that I had to override the newLink() method of LinkTree. see also the thread: http://apache-wicket.1842946.n4.nabble.com/Using-SubmitLink-as-a-tree-node-tc3914407.html SubmitLink in BaseTree Thanks for your hints! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validating-in-form-returns-always-error-but-textfield-has-a-value-tp3912361p3914717.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 in form returns always error but textfield has a value
Got it ! Thank you! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validating-in-form-returns-always-error-but-textfield-has-a-value-tp3912361p3914841.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
Validating in form returns always error but textfield has a value
I'm using a LinkTree and to each node a panel is referenced. Both is embedded in a form component. The panels have textfields. When using a submit button or a SubmitLink the input of the textfields is valid and then also validation is valid. But: My intension is also to validate the form each time the node is changed. So I'm using the method form.validate() directly. But the textfields have all null input! -- validation error also when there is a value inside textfield. Why the (raw)input is not recognized (the textfield model is ok) ? what I'm doing wrong. How can I solve this problem? thank you for hints! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validating-in-form-returns-always-error-but-textfield-has-a-value-tp3912361p3912361.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 in form returns always error but textfield has a value
Yes, each time I change the node the form is submitted. The textfields in the panel are initialized via PropertyModel and are set to required. When I want to change the node I call validate() but the rawInput of textfields is null. -- form.hasError() is always true, but there are values in the textfields. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validating-in-form-returns-always-error-but-textfield-has-a-value-tp3912361p3912457.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
Selenium Problem
I'm trying to do functional tests using Selenium IDE. I did getDebugSettings().setOutputComponentPath(true); to solve the problem with dynamic ids. see also: http://www.inforw.de/content/doku.php/blog/300 It works for most actions in my application, but after recording the usage of DropDownChoice components the test run crashes with an error (input not found) See log output below. The component selPredef, which is a DropDowChoice is not resolved to wicketpath, but still using an ID. Why?? # [info] Executing: |click | //input[@wicketpath='tabs_panel_lnkTermsAdmin_dlgPlaceHolderTerms_content_form_btnSave'] | | # [info] Executing: |click | //span[@wicketpath='tabs_panel_lnkCountriesAdmin_lblCountries'] | | # [info] Executing: |click | //input[@wicketpath='tabs_panel_lnkCountriesAdmin_dlgPlaceHolderCountries_content_form_pnlCheckLabelListDatas_listOfCheckLabels_25_cols_27_chkValue'] | | # [info] Executing: |click | //div[@id='newselPredef10da']/input | | # [error] Element //div[@id='newselPredef10da']/input not found Is there a solution for my problem ? Thanks for any hints! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Selenium-Problem-tp3514063p3514063.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: Selenium Problem
Thank you for your hint! It's working if I explecitly set the ID to DropDownChoice component foo.setMarkupId(fooId); Thanks! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Selenium-Problem-tp3514063p3514214.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: Problem using dynamic select with optgroups and Firefox
see solution in http://apache-wicket.1842946.n4.nabble.com/Dynamic-Select-and-SelectOptions-tp1872483p3310381.html It's also working with firefox. My problem before was just a javascript failure. greetings Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-using-dynamic-select-with-optgroups-and-Firefox-tp3310846p3489766.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
Problem get selected value using dynamic select with optgroup
I'm using the select component due to realizing a dynamic optgroup and option list. It works rather fine but my problem is to get the selected value. I tried to use an ajax behavior (AjaxComponentUpdatingBehavior, OnChangeBehavior) but the onUpdate methode is never called -- doesn't work! Maybe there is a solution for my problem!? What I'm doing wrong? My code: Select select = new Select(selectId); select.add(new ListView(optGroups, myList) { @Override protected void populateItem(ListItem item) { MyBean myBean = (MyBean) item.getModelObject(); item.add(new OptGroup(optGroup, myBean.getName(), myBean.getList())); } }); add(select); class OptGroup extends SelectOption { String label; ListMyBean2 list; public OptGroup(String id, String label, ListMyBean2 list) { super(id); this.label = label; this.list = list; init(); } @SuppressWarnings(unchecked) private void init() { this.add(new ListView(grpOptions, list) { @Override protected void populateItem(ListItem item) { MyBean2 myBean2 = (MyBean2) item.getModelObject(); item.add(new CustomSelectOption(grpOption, myBean2.getName())); } }); } protected void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, optgroup); Select select = (Select) findParent(Select.class); if (select == null) { throw new WicketRuntimeException( OptGroup component [ + getPath() + ] cannot find its parent Select. All OptGroup components must be a child of or below in the hierarchy of a Select component.); } tag.put(label, label); } } public class CustomSelectOption extends SelectOption { @SuppressWarnings(unchecked) public CustomSelectOption(String id, String displayValue) { super(id, new Model(displayValue)); } protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { replaceComponentTagBody(markupStream, openTag, getDefaultModelObjectAsString()); } } I tried this, but it doesn't work: select.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { System.out.println(Update ajax); // @todo updating model } }); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-get-selected-value-using-dynamic-select-with-optgroup-tp3318883p3318883.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: Dynamic Select and SelectOptions
The solution is to nest the ListViews: Markup: select wicket:id=selectId wicket:container wicket:id=optGroups optgroup wicket:id=optGroup wicket:container wicket:id=options option wicket:id=option/option /wicket:container /optgroup /wicket:container /select Code: Select select = new Select(selectId); select.add(new ListView(optGroups, transList) { @Override protected void populateItem(ListItem item) { MyBean myBean = (MyBean) item.getModelObject(); item.add(new OptGroup(optGroup, myBean.getName(), MyBean.getList())); } }); add(select); class OptGroup extends SelectOption { String label; ListMyBean2 list; public OptGroup(String id, String label, ListMyBean2 list) { super(id); this.label = label; this.list = list; init(); } @SuppressWarnings(unchecked) private void init() { this.add(new ListView(options, list) { @Override protected void populateItem(ListItem item) { MyBean2 myBean2 = (MyBean2) item.getModelObject(); item.add(new CustomSelectOption(option, myBean2.getName())); } }); } protected void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, optgroup); Select select = (Select) findParent(Select.class); if (select == null) { throw new WicketRuntimeException( OptGroup component [ + getPath() + ] cannot find its parent Select. All OptGroup components must be a child of or below in the hierarchy of a Select component.); } tag.put(label, label); } } public class CustomSelectOption extends SelectOption { @SuppressWarnings(unchecked) public CustomSelectOption(String id, String displayValue) { super(id, new Model(displayValue)); } protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { replaceComponentTagBody(markupStream, openTag, getDefaultModelObjectAsString()); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Select-and-SelectOptions-tp1872483p3310381.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: Dynamic Select and SelectOptions
It's working fine with IE, safari, Chrome, Opera but not with Firefox (FF) The optgroup closing tag is set wrong. The options are not enclosed in the optgroup tags. Firebug shows following rendering optgroup label=German Cars wicket:id=optGroup/optgroup option value=3:popupsPane:selectId:optGroups:1:optGroup:grpOptions:0:grpOption wicket:id=grpOptionAudi/option option value=3:popupsPane:selectId:optGroups:1:optGroup:grpOptions:0:grpOption wicket:id=grpOptionOpel/option Thank's for hints! ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Select-and-SelectOptions-tp1872483p3310785.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
Problem using dynamic select with optgroups and Firefox
Problem or bug in Firefox when using a dynamic wicket select component. Firefox can't handle ListView and right placing of optgroup tags! Please See following thread: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Select-and-SelectOptions-tc1872483.html#a3310381 http://apache-wicket.1842946.n4.nabble.com/Dynamic-Select-and-SelectOptions-tc1872483.html#a3310381 Would be glad if there are any solutions for this problem! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-using-dynamic-select-with-optgroups-and-Firefox-tp3310846p3310846.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: Problem using dynamic select with optgroups and Firefox
Yes, when just using a list of options a dropdownchoice ist the best way! But in my case I need a dynamic select with optgoups and dynamic options. My problem is solved now. I found a css error in my code. The solution works fine now also with firfox! ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problem-using-dynamic-select-with-optgroups-and-Firefox-tp3310846p3310941.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: Dynamic Select and SelectOptions
Hi, good solution, but how does it work using a ListView ?? I tried: Select select = new Select(selectId); select.add(new ListView(selGrpId, list) { OptGroup optGrp = null; @Override protected void populateItem(ListItem item) { MyBean bean = (DachGroupSelectBoxBean) item.getModelObject(); if (grpSelBean.getType() == NONE) item.add(new CustomSelectOption(option, bean.getName())); else if (grpSelBean.getType() == PARENT) item.add(optGrp = new OptGroup(optGroup, bean.getName())); else if (grpSelBean.getType() == CHILD) optGrp.add(new CustomSelectOption(grpOption, bean.getName())); } } ); add(select); Markup: select wicket:id=selectId div wicket:id=selGrpId option wicket:id=option/ optgroup wicket:id=optGroup option wicket:id=grpOptionDummyText/option /optgroup /div /select Error message: WicketMessage: Unable to find component with id 'optGroup' in [MarkupContainer [Component id = 0]]. This means that you declared wicket:id=optGroup in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. What I'm doing wrong? Some hints? Thanks! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Select-and-SelectOptions-tp1872483p3309097.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: DatePicker configuration isn't always working
Yes, I solved it! When displaying the calendar the first time it's mandatory to call its clear method (Clears the selected dates in the current calendar widget and sets the calendar to the current month and year. ) My solution: @Override protected String getAdditionalJavascript() { if (additionalJavascript == null) additionalJavascript = ; StringBuilder sb = new StringBuilder(); sb.append(${calendar}.addRenderer(\6/10\, ${calendar}.renderBodyCellRestricted);); sb.append(${calendar}.clear();); additionalJavascript += sb.toString(); return additionalJavascript; } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-configuration-isn-t-always-working-tp1878188p2250089.html Sent from the Wicket - User 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: Renderer does not work when DatePicker is initially displayed
Here is the solution: Just use calendar's clear method: e.g. @Override protected String getAdditionalJavascript() { if (additionalJavascript == null) additionalJavascript = ; additionalJavascript += ${calendar}.addWeekdayRenderer(1, ${calendar}.renderOutOfBoundsDate);; // disable sundays additionalJavascript += ${calendar}.addWeekdayRenderer(7, ${calendar}.renderOutOfBoundsDate);; // disable saturdays additionalJavascript += ${calendar}.clear();; //Clears the selected dates in the current calendar widget and sets the calendar to the current month and year. return additionalJavascript; } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Renderer-does-not-work-when-DatePicker-is-initially-displayed-tp2243041p2250097.html Sent from the Wicket - User 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 can override calendar formatting at initialization using DatePicker? getAdditionalJavascript not always working...
Yes, I solved it! When displaying the calendar the first time it's mandatory to call its clear method (Clears the selected dates in the current calendar widget and sets the calendar to the current month and year. ) My solution: @Override protected String getAdditionalJavascript() { if (additionalJavascript == null) additionalJavascript = ; StringBuilder sb = new StringBuilder(); sb.append(${calendar}.addRenderer(\6/10\, ${calendar}.renderBodyCellRestricted);); sb.append(${calendar}.clear();); additionalJavascript += sb.toString(); return additionalJavascript; } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-can-override-calendar-formatting-at-initialization-using-DatePicker-getAdditionalJavascript-not--tp1880352p2250102.html Sent from the Wicket - User 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: DatePicker configuration isn't always working
Did you already solve your problem? I got the same problem. Thanks for any help! Ralph Weyers -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-configuration-isn-t-always-working-tp1878188p2247457.html Sent from the Wicket - User 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
Closing modalWindow outside the dialog window by mouse click
Maybe a solution was already posted, I didn't find an answer ! I want to close a modal window just by mouse click outside the modal window (dialog). I tried some javascript code: var win = window.Wicket.Window; if (typeof(win.current) != undefined) { win.current.close(); } Problem is: 1.) The modal window just opens one time. - I can 't open the modal window anymore with: btnModalDlg = new AjaxButton(btnModalDlg) { @Override public void onSubmit(AjaxRequestTarget target, Form? form) { modalWin.show(target); } }; 2.)And the modal window also closes when cklicking on it. But I need the close behaviour just when clicking outside the dialog. Is there any solution ? Thanks for any help! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Closing-modalWindow-outside-the-dialog-window-by-mouse-click-tp2245910p2245910.html Sent from the Wicket - User 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 can override calendar formatting at initialization using DatePicker? getAdditionalJavascript not always working...
I got the same problem! Did you solve it already? If yes, I would be glad to get some help! I just disabled the weekend days in DatePicker by overriding the method @Override protected String getAdditionalJavascript() { additionalJavascript += ${calendar}.addWeekdayRenderer(1, ${calendar}.renderOutOfBoundsDate);; // disable sundays additionalJavascript += ${calendar}.addWeekdayRenderer(7, ${calendar}.renderOutOfBoundsDate);; // disable saturdays return additionalJavascript; } It works, but not when displaying the DatePicker first time. Just after I did some action in it. (e.g. changing the month) Thank you! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-can-override-calendar-formatting-at-initialization-using-DatePicker-getAdditionalJavascript-not--tp1880352p2243002.html Sent from the Wicket - User 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
Renderer does not work when datePicker is initially displayed
I`m using a renderer to work with the OutOfBoundsDate, but it doesn't work when the DatePicker is initially displayed. When I do some action in the DatePicker (e.g. change the month) the OutOfBoundsDate is correctly rendered (here sundays and saturdays are disabled) e.g. I disable the weekend days, so I override the method getAdditionalJavascript(): @Override protected String getAdditionalJavascript() { if (additionalJavascript == null) additionalJavascript = ; additionalJavascript += ${calendar}.addWeekdayRenderer(1, ${calendar}.renderOutOfBoundsDate);; // disable sundays additionalJavascript += ${calendar}.addWeekdayRenderer(7, ${calendar}.renderOutOfBoundsDate);; // disable saturdays return additionalJavascript; } Thanks for any help! rawe -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Renderer-does-not-work-when-datePicker-is-initially-displayed-tp2243041p2243041.html Sent from the Wicket - User 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