Listview containing links not working, when created through AJAX update
I have an application which worked in Wicket 1.5.x, but something seems to be broken, after updating to 6.1.1. I have a table listing machines on the left side. When an item is clicked, I update a table on the right using AJAX. This updated table contains a lot of AjaxLinks, but none of the them works. Clicking them triggers nothing. Nothing happens in my Firebug console. Looking at the ajax-response in Firebug, I see no header-contribution element in the response. I would expect, to see lines like this, in the header-contribution of the ajax-response, but nothing: Wicket.Ajax.ajax({u:./?3-4.IBehaviorListener.0-tabs-panel-list-computerli st.table-computerlist.table_body-computerlist.table.row-0-computerlist.table .row.link,e:click,c:idcd1});; Is this a bug, or have I missed something while upgrading from 1.5. til 6.1.1? Best regards Ais
SubmitLink and popup window
Hi everybody, I have a page where a user inputs a number of values. The user them clicks on a calculate button, and the form is submitted. I would now like to display the calculated result in a popup page. Since SubmitLink does not support PopupSettings - I was wondering if anybody here have tried doing this before? I have seen a previous post, where Igor suggests the following: class popperupper extends abstractbehavior implements iheadercontributor { // some logic to only output the script once } button { onsubmit() { TextField tf=; String value=tf.getModelObject(); add(new popperupper()); }} I must however admit, I'm not quite following the example :-$ Med venlig hilsen/Best regards Anders Sørensen
Re: SubmitLink and popup window
Hi Jeremy, What a simple solution. If you just knew what I have tried. Many, many thanks. Med venlig hilsen/Best regards Anders Sørensen On Thu, Mar 4, 2010 at 9:35 AM, Jeremy Thomerson jer...@wickettraining.comwrote: Simply add target=_results in your form tag. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Mar 4, 2010 at 8:09 AM, Anders Sørensen aisz...@gmail.com wrote: Hi everybody, I have a page where a user inputs a number of values. The user them clicks on a calculate button, and the form is submitted. I would now like to display the calculated result in a popup page. Since SubmitLink does not support PopupSettings - I was wondering if anybody here have tried doing this before? I have seen a previous post, where Igor suggests the following: class popperupper extends abstractbehavior implements iheadercontributor { // some logic to only output the script once } button { onsubmit() { TextField tf=; String value=tf.getModelObject(); add(new popperupper()); }} I must however admit, I'm not quite following the example :-$ Med venlig hilsen/Best regards Anders Sørensen
Submitlink and show popup page
Hi everybody, I have a page where a user inputs a number of values. The user them clicks on a calculate button, and the form is submitted. I would now like to display the calculated result in a popup page. Since SubmitLink does not support PopupSettings - I was wondering if anybody here have tried doing this before? I have seen a previous post, where Igor suggests the following: class popperupper extends abstractbehavior implements iheadercontributor { // some logic to only output the script once } button { onsubmit() { TextField tf=; String value=tf.getModelObject(); add(new popperupper()); }} I must however admit, I'm not quite following the example :-$ Med venlig hilsen/Best regards Anders Sørensen
Re: applet in wicket .. exception thrown ...
Try enabled logging on your webserver - that way you can see, where it tries to retrieve the class files from. It's a bit hard helping you, since I don't know the structure of your app, but I have an application running with multiple applets included, and it works fine with Wicket - as long, as the setup is correct. On Wed, Dec 16, 2009 at 11:27 AM, Shamil shaena...@gmail.com wrote: i need to add an applet to wicket.. and this is what i did... i wrote an applet and complied it.. i copied the class file of this applet and inserted it in to the webapp folder . and i inserted this in my HTML file... applet code=HelloWorld.class width=150 height=25 / but still i get a class not found exception , why is that how do i resolve it ??? any clue ?? -- Med venlig hilsen/Best regards Anders Sørensen
Problems with displaying modal window
Hello everybody. I have a webpage under development where I use modal windows. This has so fare not caused any problems - but now I get an error on one of my pages. I have just added the modal window capability to the page - so this has not worked before. When I click the button I get the following errors in Firefox (and the pages just reloads) Line 1: Error: undefined entity Source File: Line: 1, Column: 61 Source Code: div xmlns=http://www.w3.org/1999/xhtml;bINFO: /bUsingnbsp;XMLHttpRequest nbsp;transport/ (here there is a green error under nbsp;) Line 2: Error: uncaught exception: [Exception... Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML] nsresult: 0x80004003 (NS_ERROR_INVALID_POINTER) location: JS frame :: http://localhost:8080/resources/org.apache.wicket .ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js :: anonymous :: line 64 data: no] My guess to why I get this error is, that my page is defined as: ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1 plus MathML 2.0//EN http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd; html xmlns=http://www.w3.org/1999/xhtml; The reason for this is, that I display MathML on the page. The modal window however does not contain MathML - it's just regular html. Environment: Wicket 1.4.3 JDK 1.6.0_17 Firefox 3.5.5 Does anybody have any input on this? -- Med venlig hilsen/Best regards Anders Sørensen
Problems with displaying modal window
Hello everybody. I have a webpage under development where I use modal windows. This has so fare not caused any problems - but now I get an error on one of my pages. I have just added the modal window capability to the page - so this has not worked before. When I click the button I get the following errors in Firefox (and the pages just reloads) Line 1: Error: undefined entity Source File: Line: 1, Column: 61 Source Code: div xmlns=http://www.w3.org/1999/xhtml;bINFO: /bUsingnbsp;XMLHttpRequestnbsp;transport/ (here there is a green error under nbsp;) Line 2: Error: uncaught exception: [Exception... Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML] nsresult: 0x80004003 (NS_ERROR_INVALID_POINTER) location: JS frame :: http://localhost:8080/resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js:: anonymous :: line 64 data: no] My guess to why I get this error is, that my page is defined as: ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1 plus MathML 2.0//EN http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd; html xmlns=http://www.w3.org/1999/xhtml; The reason for this is, that I display MathML on the page. The modal window however does not contain MathML - it's just regular html. Environment: Wicket 1.4.3 JDK 1.6.0_16 Firefox 3.5.4 Does anybody have any input on this? -- Med venlig hilsen/Best regards Anders Sørensen