Announcement Announcement Module
Collapse
No announcement yet.
Embedd fb likebox social plugin produce "fb" for element "fb:like-box" is not bound Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment


    • #3
      Alright. Thanks Stefan it solves my problem.

      Comment

      Working...
      X