I am developing a web application with wicket 1.5. Now i have a problem.
The target page which should be redirected to includes four different panels(Panel 1,2,3,4). How to get a page instance which has an activated panel 3? Normally the new XXXPage() method will return an page instance with an activated panel 1.
Regards
lancel
Use PageParameters to indicate which panel should be active. This is very similar to the question asked here
Related
I am totally new using Chatbot and I'm creating a chatbot using the Microsoft Bot Framework. Chat window is opened in an iframe.
I want to display a link in the chat message and open the link in the parent window itself (not in a new window or new tab). Is it possible to achieve this?
Otherwise can I automatically redirect to any url in my parent window from chat window?
Your question has 2 answers:
1: Yes, it is possible to change the parent window, or top window, to another URL. (Provided the browser's security mechanism allows it: eg. both pages are hosted on the same domain and no special security restrictions have been added to the iframe)
You can do this using javascript:
window.parent.location.href = '<url to browse to>';
Or html:
Link
2: When you change the URL of the parent page (the page with the iframe), your iframe will no longer be visible, since you are redirecting to a new page.
Since you will therefore close the iframe, and thus the chat window, this might not be what you want to do. My advice would be to use a new tab for links; this not only makes for a better user experience, but will also make it so you don't have to worry about security settings in browsers changing and then breaking your application.
According this Facebook page tab documentation you can update the 'position' of the Tab by calling a http post as follows :
https://graph.facebook.com/v2.5/{pageId}/tabs?access_token={pageToken}
At this endpoint you can update a Page tab's position with the POST request, passing the parameter tab=TAB_NAME&position=TAB_POS.
This has stopped working recently (perhaps since Facebook rolled out page templates for Admins).
I am able to update the custom_name and image for the tab. And I can also see the 'position' attribute for the tab is changed to the new value. However the actual position of the Tab on the page does not change. Earlier calling the above post, would actually move the tab within the list of other tabs.
I am looking for help on what is the new way to change the tab position.
Thanks.
Facebook have acknowledged this as a bug on their platform and are close to deploying a fix : https://developers.facebook.com/bugs/1302804313113666/
I've encountered a .psml page in a portlet app and I don't know how it was created. There exists no physical file for the .psml page. In jetspeed is it possible to create a page via portlet UI, if so how is this achieved ?
Yes you can create a page in JetSpeed through the UI. To do this
Log in using your administrator account.
Click 'edit' (the little pencil icon that shows on each page)
You will see the Page, Folder and Layout configuration on that page.
My understanding is that .psml files are supposed to live inside the pages folder in your Jetspeed home.
Interestingly though, you say your .psml page is inside your app. I am not sure why this would be. If this is the case, perhaps the page was put there by accident?
I wanted to know if I can run a facebook with multiple application tabs all from the same application. E.g. I have a tab welcome located under /welcome of my app as well as the tab contact located under /contact. In facebook application settings I can set the domain path http://example.com/ and the page tab location as http://example.com/welcome ... but I want to use more than one tab on a page with my application <-- is this possible or should I have to create for each application tab a new application?? :-|
Greetings
Denis
Unfortunately no. Currently you can only have one tab per app per Page. If you want to add multiple tabs to a single Page, you'll need to have a separate app for each one.
It is possible to serve different tab content to different Pages from one app by using the profile_id property of the signed_request parameter. Check out the other properties of the signed_request parameter for more ideas about ways you can customize Page tab content on the fly.
Last week we were able to install an FBML application to a Fan Page Tab. Now the Tab will not show up. See screenshot here: http://bugs.developers.facebook.net/attachment.cgi?id=3075
FBML application: http://apps.facebook.com/alice-storefront/
Fan Page Test: http://www.facebook.com/pages/manage/#!/pages/Alice-Sandbox/150177181689663
The FBML application is installed but will not show up on the tab.
We have tried adding other applications to this page with no tabs being created. We have also tried creating new pages and adding the above application to the page with no luck.
I think we may be stuck in purgatory given the developer roadmap outlining that FBML applications will be deprecated "soon" but the switch to iframes for Fan Page tabs is murky (no documentation). See here:
"We will begin supporting IFrames for Page tabs in the next few months. Developers building canvas applications should start using IFrames immediately. By the end of this year, we will no longer allow new FBML applications to be created, so all new canvas applications and Page tabs will have to be based on IFrames and our JavaScript SDK. We will, however, continue to support existing implementations of the older authentication mechanism as well as FBML on Page tabs and applications." - http://developers.facebook.com/blog/post/402
How can we fix this problem?
FBML Tabs are still supported. Are you sure your FBML is working? When I go your FBML app the page is blank. I am wondering if there is just an error in your application that is causing this. Without code or more details I can't tell you any more about why your particular tab isn't working, but I can tell you that FBML tabs still can be created.
I figured out the problem.
This issue is a bug in Facebook. Which as of 10/25/2010 still exists.
It is outlined in their forum: http://forum.developers.facebook.net/viewtopic.php?pid=238976#p238976
Essentially, with the Application Edit setiings the Canvas URL has 2 parts: 1. the default url and 2. an empty textbox below it. That textbox CANNOT BE EMPTY. Once I put a "?" in that textbox, which is the leader of the params string, the tab was finally displayed.
Detailed instructions as per the URL above:
1) Go to your APP Settings;
2) Go to the "Profile" "tab";
3) At "Tab URL" fill with:"?" (without quotes);
4) Save your APP;
5) Go to your "Fan Page Settings";
6) Remove your APP;
7) Go back to your "APP Profile";
8) Click "Add to my Page";
9) Chose you page and click the "Add to Page" button;
10) Go to your "Fan Page" and now it will be avaliable on de "+" button on tab bar.