Results 1 to 3 of 3

Thread: Embedd fb likebox social plugin produce "fb" for element "fb:like-box" is not bound

  1. #1
    Join Date
    Apr 2010
    Posts
    16

    Default Embedd fb likebox social plugin produce "fb" for element "fb:like-box" is not bound

    Hi,

    I would like to embed like box social plugin into one of the roo generated .jspx page but it prompt me error when i browse to the page :

    Error :

    /WEB-INF/views/joinfacebook/likeapage.jspx(3,234) The prefix "fb" for element "fb:like-box" is not bound.


    Code Snippet :


    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <div xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" xmlns:util="urn:jsptagdir:/WEB-INF/tags/util" version="2.0">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <jsp:output omit-xml-declaration="yes"/>
      <spring:message code="label_createuseraccount_index" htmlEscape="false" var="title"/>
      <util:panel id="title" title="${title}">
        <spring:message code="application_name" htmlEscape="false" var="app_name"/>
        <h3>
          <spring:message arguments="${app_name}" code="welcome_titlepane"/>
        </h3>
        
        
        	<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/#!/pages/DBestBar/190947600951893" width="292" show_faces="true" stream="false" header="true"></fb:like-box>
        
      </util:panel>
    </div>

    Would be great if anyone could help.

    Thanks.

    Regards,

    Cyril

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    The jspx documents are following XML standards so any new namespace you wish to use needs to be declared within the document. The clue is the create a new xmlns:fb="..." declaration in the div tag as seen at the beginning of your example.
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  3. #3
    Join Date
    Apr 2010
    Posts
    16

    Default

    Alright. Thanks Stefan it solves my problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •