ExecuteWithParams not working in welcome page - jsf

I have build an application using ADF & JDev 11.1.2.3.0,
When user performs a successful log-in he is redirected to the welcome-page of my application (lets say Page1). In Page1 I have some buttons that execute ExecuteWithParams operations. When I click in them nothing happens. It seems like no click was made. If I refresh the page and click again everything works fine.
Does anyone know why does this happen?

Are you running the jspx file directly?
Try running the page from the task-flow - basically right click the page in the diagram and choose run.

Related

click of a submit button on any website using Google extension

On the click of a submit button on any website eg. Amazon, I want a .html to be triggered using google extension. please let me know if it is possible.
You can indeed execute scripts on (almost) any page using content scripts that can manipulate the DOM, allowing you to add an onsubmit event listener to a form (more reliable than onclick on a button as it is fired however the form is submitted - e.g. hitting ENTER).
What exactly do you mean you "want a .html to be triggered"? Triggered in what way? If you want to open another tab when this happens, you can do this using message passing to tell your background page to do this for you using the chrome.tab.create API method.

WrkTaskIP.aspx Task Page Change Redirect URL

I have a workflow with customised task forms so clicking on a workflow task opens up the task page WrkTaskIP.aspx with an InfoPath form hosted within it.
The task form has a submit button which submits to the hosting environment to complete the task and the page by default will then redirect to the WrkStat.aspx page to display the status of the workflow after submitting the task.
However I would like to be able to change this default redirection to another URL which I would normally do by modifying the &Source parameter in the URL however this time I have no control over this.
Is there any way to achieve the redirection to another URL in this situation?
(That does not involve a global change to a _layout form)
Any help would be much appreciated.
I got around this problem by having a task form change view to a "Task Completed" screen on submit which then includes a link to the place they should be redirected to.
Since I already have found a way to get hyperlinks to open in the same window, it nearly has the same effect as what I was originally after.
The customers were actually happy with this because it confirmed to the user that they had completed the task rather than just redirecting after clicking submit.

facebook login view does not have any option to close it

I'm facing a strange problem here, i have used a sample code of graph api's (reallylongaddress-iPhone-Facebook-Graph-API-59e6399, Created by , https://github.com/reallylongaddress/iPhone-Facebook-Graph-API) which was available on github. And i faced these problems:-
1) I'm having a share button of my own , when i click on it to login to fb a white view (or popup ) apears for almost 5 seconds and it appears evry time when i click on share button to share something on my facebook wall, even if i'm logged in . I reduced this problem to only one time.
2) The second and main problem now i'm facing is that on login it doesn't have any close button on it , and user must have to login ,other wise the application will not continue. Can i place a close button on this fb login web view?
NOTE:I have also used the fbconnect earlier but i dont wanna use publish dialog box ,, which shows user a dialog box and then user can press on "pulish" or "skip" button. instead i want that what ever the user wants to share on wall can be shared on just one tap on a button. That is why i have used this sample code, but it also has these two problems i have specified above.
Please help me with these 2 problems above or suggest me any other alternative option which does not have the "publish.stream" dialog box.
Thanks
In this condition Facebook controller are called by UINavigationController.
Finally i solved the problem and placed a close button on the login view. and on tab of this button i closed the login web view

Browser navigation, back button issue

I want to know how you guys deal with back button issues in your web applications.
I can not forbid users to click back button on their browser, but when they hit it, the page code doesn't run. So writing in page_load() makes no sense.
I have searched online and found this link: Disabling Back button on the browser. It does not work for me. Any idea?
There is no way to disable the back button. You can try to open your page/form in a new window so there would be nothing to navigate back to
Normally, If I have a critical or lengthy form, I tend to maintain a dirty-flag and if the user starts entering something, the dirty-flag gets set and on save or submit it gets reset. You can use unload/beforeunload javascript event to see if the dirty-flag is set and ask for confirmation.

Focus is not going inside EventHandler

I had created a simple web part with one label, and one button. I wnat that when i click the button the label content will change.
But when i debugg i found that the focus is not going inside the Button Click Event function.
When i click the button the debugger will again start with page load.
Is there any Autofocus for Button.
Please help me to resolve my problem.
Thanks :)
I think that you're confused about what happens on the client (within the browser) and what happens on the server (in your ASP.NET code).
Most events on server-side controls, like the ASP.NET button, are handled server-side, through a mechanism called postback. The generated code on the browser causes a form submit to the Web server, where the page and its controls are re-created. The form data is parsed and the button control generates (in your case) a Click event for your server-side code. This code regenerates a new HTML page which will replace the old one.
Fortunately for you in this case, the ASP.NET button has a property "OnClientClick" where you can insert JavaScript code to do whatever you want (like change the label text) directly in the browser.
See MSDN for the docs on the property and an example of using both Click and OnClientClick.
Note that this is not related to SharePoint, this is a pure ASP.NET issue.

Resources