Re: MathML in wicket

2008-08-07 Thread mdossing

Update -

After some reading i realised that wicket was overwriting my utf-8 header. I
managed to get it to work by changing
getResponse().setContentType(text/html); to
getResponse().setContentType(utf-8); There are now a number of display
errors, but certainly nothing unfixable.

Regards,
Martin



Brill Pappin wrote:
 
 Check the char encoding... it might actually be working properly but  
 somewhere along the line the wrong encoding is being used.
 
 - Brill
 
 On 6-Aug-08, at 1:51 PM, mdossing wrote:
 

 Hi,

 I am undergoing a project that involves outputting MathML to wicket  
 pages.

 I use a custom label that outputs my string directly in to a body  
 tag so
 that it isn't escaped. The problem comes when I change the page to  
 be of the
 type xhtml with the following code:

public final String getMarkupType() {
return xhtml;
}

protected final void configureResponse() {
super.configureResponse();
getResponse().setContentType(text/html);
}

 With some example mathml of:
 math xmlns=http://www.w3.org/1998/Math/MathML;
  xmlns:mml=http://www.w3.org/1998/Math/MathML;
   mrow
  mrow
 mrow/
 mo#x2061;/mo
 mfenced separators=,
mrow
   mrow/
   mo#x2061;/mo
   mfenced separators=,
  miX/mi
   /mfenced
/mrow
 /mfenced
  /mrow
  mo=/mo
  mo#x2205;/mo
   /mrow
 /math

 Ran in a normal xhtml page i get something along the lines of ((X))  
 = ∅ but
 instead wicket throws out∅   =  0  and longer mathml just  
 throws out
 more random characters.

 Any help would be appreciated,
 Martin
 -- 
 View this message in context:
 http://www.nabble.com/MathML-in-wicket-tp18856345p18856345.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/MathML-in-wicket-tp18856345p18870915.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



MathML in wicket

2008-08-06 Thread mdossing

Hi,

I am undergoing a project that involves outputting MathML to wicket pages.

I use a custom label that outputs my string directly in to a body tag so
that it isn't escaped. The problem comes when I change the page to be of the
type xhtml with the following code:

public final String getMarkupType() {
return xhtml;
}

protected final void configureResponse() {
super.configureResponse();
getResponse().setContentType(text/html);
}

With some example mathml of:
math xmlns=http://www.w3.org/1998/Math/MathML;
  xmlns:mml=http://www.w3.org/1998/Math/MathML;
   mrow
  mrow
 mrow/
 mo#x2061;/mo
 mfenced separators=,
mrow
   mrow/
   mo#x2061;/mo
   mfenced separators=,
  miX/mi
   /mfenced
/mrow
 /mfenced
  /mrow
  mo=/mo
  mo#x2205;/mo
   /mrow
/math

Ran in a normal xhtml page i get something along the lines of ((X)) = ∅ but
instead wicket throws out∅   =  0  and longer mathml just throws out
more random characters.

Any help would be appreciated,
Martin
-- 
View this message in context: 
http://www.nabble.com/MathML-in-wicket-tp18856345p18856345.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MathML in wicket

2008-08-06 Thread Brill Pappin
Check the char encoding... it might actually be working properly but  
somewhere along the line the wrong encoding is being used.


- Brill

On 6-Aug-08, at 1:51 PM, mdossing wrote:



Hi,

I am undergoing a project that involves outputting MathML to wicket  
pages.


I use a custom label that outputs my string directly in to a body  
tag so
that it isn't escaped. The problem comes when I change the page to  
be of the

type xhtml with the following code:

   public final String getMarkupType() {
   return xhtml;
   }

   protected final void configureResponse() {
   super.configureResponse();
   getResponse().setContentType(text/html);
   }

With some example mathml of:
math xmlns=http://www.w3.org/1998/Math/MathML;
 xmlns:mml=http://www.w3.org/1998/Math/MathML;
  mrow
 mrow
mrow/
mo#x2061;/mo
mfenced separators=,
   mrow
  mrow/
  mo#x2061;/mo
  mfenced separators=,
 miX/mi
  /mfenced
   /mrow
/mfenced
 /mrow
 mo=/mo
 mo#x2205;/mo
  /mrow
/math

Ran in a normal xhtml page i get something along the lines of ((X))  
= ∅ but
instead wicket throws out∅   =  0  and longer mathml just  
throws out

more random characters.

Any help would be appreciated,
Martin
--
View this message in context: 
http://www.nabble.com/MathML-in-wicket-tp18856345p18856345.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]