onError
Hello All, So I've determined that the reason that my onsubmit appears not to work is because one of my components is throwing an error. I put an onError on my submit button and a callOnError on my form. I'm not sure which is causing the problem. Also, while I've looked at threads, I'm not seeing any exceptions thrown. I'm not seeing anything that tells me what's causing my error and how to fix it. BTW, I've tried putting the code in try catch clauses to no avail because no exception is being thrown. Any advice on how to figure out what the error is would be greatly appreciated. Thanks Lois
onsubmit not firing when you navigate away from tab and back
Hi All, I have a page that has several tabs (tab panels) on it. The landing tab has a report that is filterable. It works fine when you're on the landing tab. If you navigate away from that tab and navigate back, it no longer works. I've determined that for some reason the ajax onsubmit event does not fire when you navigate back towards the page and I'm not sure where to begin looking for the problem. Thanks in advance for your help. Lois
RE: onsubmit not firing when you navigate away from tab and back
Hi Sven, Firstly, thanks for your response. I am indeed running in DEVELOPMENT mode. As per your suggestion, I opened the Ajax debug console. Please note that I got no errors, BUT when the onsubmit fired the first time, I got a full ajax response. The second time (after returning from another panel) the ajax response was empty. This is in fact what it looked like. Lois -Original Message- From: Sven Meier [mailto:] Sent: Monday, December 14, 2015 10:38 AM To: users@wicket.apache.org Subject: Re: onsubmit not firing when you navigate away from tab and back Hi, a quickstart would help to identify the problem. Are you running your application in DEVELOPMENT mode? Then you can check for the errors in the Ajax debug console (it flashes red). Regards Sven On 14.12.2015 16:21, Lois GreeneHernandez wrote: > Hi All, > > I have a page that has several tabs (tab panels) on it. The landing tab has > a report that is filterable. It works fine when you're on the landing tab. > If you navigate away from that tab and navigate back, it no longer works. > > I've determined that for some reason the ajax onsubmit event does not fire > when you navigate back towards the page and I'm not sure where to begin > looking for the problem. > > Thanks in advance for your help. > > Lois > > > - 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
Jsession Test Question
Hi All, Is it possible to write a unit test or a pojo that tests an request url for the presence of a jsessionid? My application Is java/wicket. Our test system is testNG and wicket tester. Thanks Lois
jsession id in url
Hi All, I was tasked with modifying a wicket6/glassfish4 application so that the session id changes as soon as a user logs in. This is to avoid the problem of Session Fixation. I used the replaceSession() method (from the wicket Session class), which does a destroy(); and a bind();. replaceSession(). It seem to do the trick as the session id does indeed change. The problem is that now we see a jsessionid in the url everytime we initially log on. The id goes away after you log in and only appears on the initial launch. My question is, is there a way to ensure that no jessionid appears in the url AND that the session id changes? Any advice would be greatly appreciated. Thanks Lois
RE: jsession id in url
Thanks Martin for your response, I have a question, does this code go into web.xml or sun-web.xml or is there another xml that I need to create. I know that one can have a glassfish.*.xml but we don't have that in our set up. Please advise. Thanks in advance for all of your help. Lois -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Friday, December 04, 2015 1:11 PM To: users@wicket.apache.org Subject: Re: jsession id in url Hi, See the Tomcat 7/8 hint at the bottom. GF4 should support that already. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Dec 4, 2015 at 8:02 PM, Lois GreeneHernandez < lgreenehernan...@knoa.com> wrote: > Actually we're using glassfish 4 and it's a good question, but I don't > know if we configured it to not use jsessionid? I'll research that. > > Thanks for your input. > > Lois > > -Original Message- > From: Sven Meier [mailto:s...@meiers.net] > Sent: Friday, December 04, 2015 12:43 PM > To: users@wicket.apache.org > Subject: Re: jsession id in url > > Hi, > > did you configure Tomcat to not use jsessionid? > > > http://stackoverflow.com/questions/962729/is-it-possible-to-disable-js > essionid-in-tomcat-servlet > > Regards > Sven > > On 04.12.2015 17:03, Lois GreeneHernandez wrote: > > Hi All, > > > > I was tasked with modifying a wicket6/glassfish4 application so that > > the > session id changes as soon as a user logs in. This is to avoid the > problem of Session Fixation. I used the replaceSession() method (from > the wicket Session class), which does a destroy(); and a bind();. > replaceSession(). > It seem to do the trick as the session id does indeed change. The > problem is that now we see a jsessionid in the url everytime we initially log > on. > The id goes away after you log in and only appears on the initial launch. > > > > My question is, is there a way to ensure that no jessionid appears > > in > the url AND that the session id changes? Any advice would be greatly > appreciated. > > > > Thanks > > > > Lois > > > > > > - > 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: jsession id in url
Actually we're using glassfish 4 and it's a good question, but I don't know if we configured it to not use jsessionid? I'll research that. Thanks for your input. Lois -Original Message- From: Sven Meier [mailto:s...@meiers.net] Sent: Friday, December 04, 2015 12:43 PM To: users@wicket.apache.org Subject: Re: jsession id in url Hi, did you configure Tomcat to not use jsessionid? http://stackoverflow.com/questions/962729/is-it-possible-to-disable-jsessionid-in-tomcat-servlet Regards Sven On 04.12.2015 17:03, Lois GreeneHernandez wrote: > Hi All, > > I was tasked with modifying a wicket6/glassfish4 application so that the > session id changes as soon as a user logs in. This is to avoid the problem > of Session Fixation. I used the replaceSession() method (from the wicket > Session class), which does a destroy(); and a bind();. replaceSession(). It > seem to do the trick as the session id does indeed change. The problem is > that now we see a jsessionid in the url everytime we initially log on. The > id goes away after you log in and only appears on the initial launch. > > My question is, is there a way to ensure that no jessionid appears in the url > AND that the session id changes? Any advice would be greatly appreciated. > > Thanks > > Lois > > - 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
multiline Table Headers
Is it possible to have multi line data table headings? Specifically I'd like to do something like this: | Common Heading | columnA | columnB | columnC | Please advise. Thanks Lois
select2choice and scrolling
I have a select2choice component and the select value is often quite large. I'd like to find a way to make that scrollable or visible in some way. Any advice would be greatly appreciated. Thanks Lois
Select2Choice component issues
I need to slightly modify the behavior of a wicket select2Choice dropdown component. When you've selected a choice if the choice is longer than the window, you see your choice truncated with elipses. I'm wondering if its possible to do one of the following: 1) Make the choice scrollable 2) Add a title (e.g. tooltip) to the field with the value of the full choice. Please note that I've attempted to do this through the developer tools in IE and have been mostly unsuccesful as far as scrolling goes. When a manually add a title attribute on the div with the class "select2-drop-mask" in the markup, I'm able to get a title. When I attempt to add that same title in wicket it does not show up. I believe this is because the select2choice is made up of more than one piece of mark up and through wicket there is no way to isolate that one piece of markup. Any advice would be greatly apprecated. Here is my Java wicket code for this component. final FormComponent dictionaryEntryField = form.newSelect2Choice(form, "dictionaryEntry", SimpleAjaxEventHandler.get(), new PropertyModel(dictModelBean, "dictionaryEntry"), new DictTextChoiceProvider(dictModelBeans), 300, new ResourceModel("dictionary.mapping.dictentry.label"), LabeledFormField.LABEL.LEFT); dictionaryEntryField.setRequired(true); dictionaryEntryField.add(new AttributeModifier("title", new Model("Test Title"))); I'm never able to see the mouseover. The following is a section of the markup that is created by wicket. title="Test Title" was added manually through IE developer tools and I'm able to see the title on mouseover. Thanks Lois
Wicked Charts
Hi there, I'm using Wicket Charts. Does anyone know how to refresh an Options object or redraw it? I have a filter on that page that affects a datatable and a chart. I want both components to change when I click submit. I can't refresh the options object as it's not a wicket component. I don't see a redraw method in the Options api doc. I'm sure there's a way around this. Thanks in advance for your help. Thanks Lois
RE: Cannot set select2choice component in wicket tester
Thank you so much. Lois -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, October 01, 2015 11:59 AM To: users@wicket.apache.org Subject: Re: Cannot set select2choice component in wicket tester Hi, Since Select2 is a JavaScript widget usually in WicketTester tests you just need to submit a value for it. FormTester ft = tester.newFormTester("theForm"); ft.setValue("path:to:select2Choice", "selectedOptionValue"); ft.submit(); Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 1, 2015 at 7:44 AM, Lois GreeneHernandez < lgreenehernan...@knoa.com> wrote: > Hello All, > > My form has a select2choice component. I cannot seem to set this > field in my testing unit test. > > Any advice on how to deal with this would be greatly appreciated. > > Thanks > > Lois > >
Cannot set select2choice component in wicket tester
Hello All, My form has a select2choice component. I cannot seem to set this field in my testing unit test. Any advice on how to deal with this would be greatly appreciated. Thanks Lois
Fields in modal window not resetting
Hi All, I have a modal window with two fields and a confirm and cancel button. The fields do not reset after submitting and the data from the previous use is still there. I have tried several things. 1) Refreshing the form on submit 2) form.clearInput(); (also on submit) 3) trying to set the input fields on construction of the form Nothing is working. Any advice is appreciated. I'm posting my code below. Thanks in advance for your help. public abstract class NewMappingRulePanel extends Panel { private static final long serialVersionUID = 1L; private static final Logger log = LoggerFactory.getLogger(NewMappingRulePanel.class); private final ListDictModelBean dictModelBeans; private DictModelBean dictModelBean; public NewMappingRulePanel( final String id, DictModelBean dictModelBean, final Class? extends ConsolePage backPage, ListDictModelBean dictModelBeans ) { super(id, new ModelDictModelBean()); this.dictModelBean = dictModelBean; this.dictModelBeans = dictModelBeans; KnoaFormVoid form = new KnoaForm(form); add(form); final KnoaFeedbackPanel feedbackPanel = new KnoaFeedbackPanel(feedbackPanel); form.add(feedbackPanel); form.TextFieldString, StringaddTextField( starPattern, new PropertyModelString(dictModelBean, starPattern), 25, dictionary.mapping.dictentry.starpattern.label ).setRequired(true); form.add(new Label(dictLabel, ResourceKeyHelper.resourceValue(dictionary.mapping.dictentry.label))); final Select2ChoicePanel select2ChoicePanel = new Select2ChoicePanel(dictionaryEntry, new PropertyModelString(dictModelBean, dictionaryEntry), new DictTextChoiceProvider(dictModelBeans)); form.add(select2ChoicePanel); AjaxFallbackButton button = new AjaxFallbackButton(confirm, new ResourceModel(confirm.label), form) { private static final long serialVersionUID = 1L; ConfirmMessagePanel confirmMessagePanel; @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { NewMappingRulePanel.this.refreshPage(target); findParent(ModalWindow.class).close(target); KnoaPage.refreshComp(target,form); } @Override protected void onError(AjaxRequestTarget target, Form? form) { KnoaPage.refreshComp(target, feedbackPanel); } }; //button.add(new AttributeModifier(onclick, setDirty(true);));//warn on exit button.setOutputMarkupId(true); form.add(button); button = new AjaxFallbackButton(cancel, new ResourceModel(cancel.label), form) { private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { if (target != null) { (findParent(ModalWindow.class)).close(target); } } @Override protected void onError(AjaxRequestTarget target, Form? form) { onSubmit(target, form); } }; button.setDefaultFormProcessing(false); form.add(button); } public DictModelBean getDictModelBean() { return dictModelBean; } public void setDictModelBean(DictModelBean dictModelBean) { this.dictModelBean = dictModelBean; } public abstract void refreshPage(AjaxRequestTarget target); }
Graphing Framework for Wicket
Hi All, I need some recommendations on a graphing framework for wicket. Thanks Lois
RE: Graphing Framework for Wicket
Hi Martin, I looking for a framework or a set of classes that will allow me to create graphs. Thanks Lois -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Monday, June 01, 2015 9:40 AM To: users@wicket.apache.org Subject: Re: Graphing Framework for Wicket Hi, Please give us more details. Do you mean graphics or graphs? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jun 1, 2015 at 4:27 PM, Lois GreeneHernandez lgreenehernan...@knoa.com wrote: Hi All, I need some recommendations on a graphing framework for wicket. Thanks Lois - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AttributeAppender
Is it possible to add an attributeappender for a label within a tabbedpanel? If so, how can I do this. Thanks Lois
RE: AttributeAppender
Hi Martin, Thanks for responding. I should have been more precise. I'm not using the wicket tabbedpanel. I'm using the jquery ui extension. The package is: com.googlecode.wicket.jquery.ui.widget.tabs.TabbedPanel. Thanks Lois -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Friday, April 17, 2015 4:15 PM To: users@wicket.apache.org Subject: Re: AttributeAppender Hi, Yes. Override #newTitle() [1] 1. https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanel.java#L324 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Apr 17, 2015 at 11:07 PM, Lois GreeneHernandez lgreenehernan...@knoa.com wrote: Is it possible to add an attributeappender for a label within a tabbedpanel? If so, how can I do this. Thanks Lois