Problems with displaying modal window

2009-11-02 Thread Anders Sørensen
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:
http://www.w3.org/1999/xhtml";>INFO:
Using XMLHttpRequest transporthttp://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:


http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd";>
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


Problems with displaying modal window

2009-11-03 Thread Anders Sørensen
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:
http://www.w3.org/1999/xhtml";>INFO:
Using XMLHttpRequest transporthttp://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:


http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd";>
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


Problems with displaying modal window

2009-12-07 Thread Anders Sørensen
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:
http://www.w3.org/1999/xhtml";>INFO:
Using XMLHttpRequest&
nbsp;transporthttp://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:


http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd";>
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


Re: applet in wicket .. exception thrown ...

2009-12-16 Thread Anders Sørensen
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  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...
>
> 
>
> 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


Submitlink and show popup page

2010-03-01 Thread Anders Sørensen
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 popup window

2010-03-04 Thread Anders Sørensen
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

2010-03-04 Thread Anders Sørensen
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
wrote:

> 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  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
> >
>


Listview containing links not working, when created through AJAX update

2012-10-09 Thread Anders Sørensen
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