Re: facebook like iframe in wicket
As far as I can guess your iframe has nothing to do with the velocity issue. The velocity error occurs, if the global library cannot be found. Nevertheless, that error is not crucial and should rather considered as a warning. See https://issues.apache.org/jira/browse/VELOCITY-86 for more information. iframe src=$fblikesrc scrolling=no frameborder=0 style=border: none; overflow: hidden; width: 450px; height: 80px; allowTransparency=true/iframe I tried something like that but faced Error using VM library : VM_global_library.vm and got stuck. I am new to velocity but I feel it can provide the answer to my problem. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3544934.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: facebook like iframe in wicket
whatver component writes that out should take a imodelstory and use it to put the right thing into the like url -igor On Sat, May 21, 2011 at 3:33 AM, labano10 okuneislabo2...@gmail.com wrote: I want to incorporate the facebook like button in my wicket application page. The page is a story page which displays different stories based on what story the user clicked on in the previous page. Basically, the page is rendered with one story every time. Based on the facebook implementation of the like button: iframe src=http://www.facebook.com/plugins/like.php?app_id=219924774692113amp;href=http%3A%2F%2Fapps.facebook.com%2Fmyappname%2F%3Fref%3Dbookmarksamp;send=trueamp;layout=standardamp;width=450amp;show_faces=trueamp;action=likeamp;colorscheme=lightamp;font=verdanaamp;height=80; scrolling=no frameborder=0 style=border: none; overflow: hidden; width: 450px; height: 80px; allowTransparency=true/iframe How do I go about making each like mapped to each of the stories?? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3540423.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: facebook like iframe in wicket
@Igor, my main problem actually is updating the src attribute of the iframe at run time because that's what facebook uses to construct the like button. The href part(within src) constitutes of the url of the page being liked with escapes(%3A for : and %2F for /). I want to update especially this part at run time. How do I do it in wicket. I am currently checking out the wicket velocity see if it can help. Do you have any other idea, sorry I may not have been clear initially. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3544892.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: facebook like iframe in wicket
how are you outputting it now? -igor On Mon, May 23, 2011 at 11:27 AM, labano10 okuneislabo2...@gmail.com wrote: @Igor, my main problem actually is updating the src attribute of the iframe at run time because that's what facebook uses to construct the like button. The href part(within src) constitutes of the url of the page being liked with escapes(%3A for : and %2F for /). I want to update especially this part at run time. How do I do it in wicket. I am currently checking out the wicket velocity see if it can help. Do you have any other idea, sorry I may not have been clear initially. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3544892.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: facebook like iframe in wicket
iframe src=$fblikesrc scrolling=no frameborder=0 style=border: none; overflow: hidden; width: 450px; height: 80px; allowTransparency=true/iframe I tried something like that but faced Error using VM library : VM_global_library.vm and got stuck. I am new to velocity but I feel it can provide the answer to my problem. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3544934.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: facebook like iframe in wicket
What is the best way of replacing the href part with the url of the story page every time I launch it (in wicket)? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3545002.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: facebook like iframe in wicket
oncomponenttag(tag) { tag.put(onclick, value); } -igor On Mon, May 23, 2011 at 12:59 PM, labano10 okuneislabo2...@gmail.com wrote: What is the best way of replacing the href part with the url of the story page every time I launch it (in wicket)? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3545002.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
facebook like iframe in wicket
I want to incorporate the facebook like button in my wicket application page. The page is a story page which displays different stories based on what story the user clicked on in the previous page. Basically, the page is rendered with one story every time. Based on the facebook implementation of the like button: iframe src=http://www.facebook.com/plugins/like.php?app_id=219924774692113amp;href=http%3A%2F%2Fapps.facebook.com%2Fmyappname%2F%3Fref%3Dbookmarksamp;send=trueamp;layout=standardamp;width=450amp;show_faces=trueamp;action=likeamp;colorscheme=lightamp;font=verdanaamp;height=80; scrolling=no frameborder=0 style=border: none; overflow: hidden; width: 450px; height: 80px; allowTransparency=true/iframe How do I go about making each like mapped to each of the stories?? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/facebook-like-iframe-in-wicket-tp3540423p3540423.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org