Please reopen WICKET-2631

2010-06-17 Thread Erik van Oosten

Hello,

Someone with sufficient rights, please reopen WICKET-2631
I attached a quickstart that demonstrates the problem in Wicket 1.4.9.

Regards,
Erik.


--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/




Re: Please reopen WICKET-2631

2010-06-17 Thread Erik van Oosten


Please ignore this message. It works fine. I just forgot to remove 
wicket tags from the output. A simple 
getMarkupSettings().setStripWicketTags(true); did the trick.


Regards,
Erik.


Op 17-06-10 09:17, Erik van Oosten schreef:

Hello,

Someone with sufficient rights, please reopen WICKET-2631
I attached a quickstart that demonstrates the problem in Wicket 1.4.9.

Regards,
Erik.




--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/




Integration of Jplayer and Wicket

2010-06-17 Thread drobson

Hi,

Im trying to integrate Jplayer and wicket to allow me to create a MP3
playing component in wicket. But I seem to be running into a problems with
the way I access MP3 files. The HTML and Javascript  generated by wicket at
runtime seems to be right but I get a Javascript error Not allowed to load
local resource. If I simply take the generated code and create a html file
from it the MP3 file plays and I get no JS error. 

Your help would be much appreciated. 

Java/Wicket


public class DisplayMP3 extends WebPage
{
public DisplayMP3()
{

}


@Override
public void renderHead(HtmlHeaderContainer container) 
{
final ResourceReference jPlayer2 =
  new ResourceReference(DisplayMP3.class,jquery.min.js);

final ResourceReference jPlayer =
  new 
ResourceReference(DisplayMP3.class,jquery.jplayer.min.js);




container.getHeaderResponse().renderJavascriptReference(jPlayer2); 

container.getHeaderResponse().renderJavascriptReference(jPlayer); 

String js = 
$(document).ready(function(){$(\#jpId\).jPlayer({ ready:
function () {  +
this.element.jPlayer(\setFile\, 
\C:/Documents and
Settings/drobson/My
Documents/workspace/OrangeTest/context/WEB-INF/music/Honeytrap.mp3\);
this.play();}})});;

container.getHeaderResponse().renderJavascript(js, null);

}

}

HTML
-

html
wicket:head
/wicket:head
body
  div id=jpId/div
/body
/html


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Integration-of-Jplayer-and-Wicket-tp2259121p2259121.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.


Re: Integration of Jplayer and Wicket

2010-06-17 Thread Jeremy Thomerson
I don't know, but I suspect it's a security issue.  If you save your HTML to
a plain file on the file system, then it is a local resource, and it can
access other local files.  But, coming from a webserver, it is not allowed
to play local files.

Just a guess.

On Thu, Jun 17, 2010 at 11:26 AM, drobson drob...@gammatelecom.com wrote:


 Hi,

 Im trying to integrate Jplayer and wicket to allow me to create a MP3
 playing component in wicket. But I seem to be running into a problems with
 the way I access MP3 files. The HTML and Javascript  generated by wicket at
 runtime seems to be right but I get a Javascript error Not allowed to load
 local resource. If I simply take the generated code and create a html file
 from it the MP3 file plays and I get no JS error.

 Your help would be much appreciated.

 Java/Wicket
 

 public class DisplayMP3 extends WebPage
 {
public DisplayMP3()
{

}


@Override
public void renderHead(HtmlHeaderContainer container)
{
final ResourceReference jPlayer2 =
  new
 ResourceReference(DisplayMP3.class,jquery.min.js);

final ResourceReference jPlayer =
  new
 ResourceReference(DisplayMP3.class,jquery.jplayer.min.js);




  container.getHeaderResponse().renderJavascriptReference(jPlayer2);

  container.getHeaderResponse().renderJavascriptReference(jPlayer);

String js =
 $(document).ready(function(){$(\#jpId\).jPlayer({ ready:
 function () {  +
this.element.jPlayer(\setFile\,
 \C:/Documents and
 Settings/drobson/My
 Documents/workspace/OrangeTest/context/WEB-INF/music/Honeytrap.mp3\);
 this.play();}})});;

container.getHeaderResponse().renderJavascript(js, null);

}

 }

 HTML
 -

 html
 wicket:head
 /wicket:head
 body
  div id=jpId/div
 /body
 /html


 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Integration-of-Jplayer-and-Wicket-tp2259121p2259121.html
 Sent from the Wicket - Dev mailing list archive at Nabble.com.




-- 
Jeremy Thomerson
http://www.wickettraining.com