postback

JSF: initial request and postback request?

こ雲淡風輕ζ 提交于 2021-02-17 09:38:12
问题 Please take a look at this below line of code in JSF <h:inputText id="name" value="#{customer.name}" /> Quote from java.sun.com: For an initial request of the page containing this tag, the JavaServer Faces implementation evaluates the #{customer.name} expression during the render response phase of the lifecycle. During this phase, the expression merely accesses the value of name from the customer bean, as is done in immediate evaluation. For a postback request, the JavaServer Faces

JSF: initial request and postback request?

扶醉桌前 提交于 2021-02-17 09:38:01
问题 Please take a look at this below line of code in JSF <h:inputText id="name" value="#{customer.name}" /> Quote from java.sun.com: For an initial request of the page containing this tag, the JavaServer Faces implementation evaluates the #{customer.name} expression during the render response phase of the lifecycle. During this phase, the expression merely accesses the value of name from the customer bean, as is done in immediate evaluation. For a postback request, the JavaServer Faces

Preventing ModalPopupExtender from closing during/after PostBack

折月煮酒 提交于 2021-02-07 19:19:16
问题 How do I prevent my asp:ModalPopupExtender from closing after or during a postback to the server?? Here is my code: JAVASCRIPT // Confirm popup Ok button function OnOk() { $('#confirmPopup').hide(); ClickSaveButton(); // does a postback ShowGridPopup(); } ASP.NET AJAX <asp:ModalPopupExtender BehaviorID="confirmPopup" ID="confirmPopup" runat="server" TargetControlID="butConfirm" PopupControlID="ConfirmView" BackgroundCssClass="modalBackground" OnOkScript="OnOk();" OnCancelScript="OnCancel();"

Preventing ModalPopupExtender from closing during/after PostBack

可紊 提交于 2021-02-07 19:19:01
问题 How do I prevent my asp:ModalPopupExtender from closing after or during a postback to the server?? Here is my code: JAVASCRIPT // Confirm popup Ok button function OnOk() { $('#confirmPopup').hide(); ClickSaveButton(); // does a postback ShowGridPopup(); } ASP.NET AJAX <asp:ModalPopupExtender BehaviorID="confirmPopup" ID="confirmPopup" runat="server" TargetControlID="butConfirm" PopupControlID="ConfirmView" BackgroundCssClass="modalBackground" OnOkScript="OnOk();" OnCancelScript="OnCancel();"

Back button doesn't cause postback to a controller action in MVC

落爺英雄遲暮 提交于 2021-02-07 07:11:04
问题 When I click the back button in IE10 or Chrome on Win7, it does not hit my break point in my MVC controller. The Network tab in IE developer's tools shows it had a 304 not modified and Fiddler doesn't capture the request. I was expecting the post back, so I could do work in my controller. In my case, the bug is: Sign in make sure you are on the default page click the browser back button on the top left you'll now be back to the login screen sign in with your same credentials again when you do

Back button doesn't cause postback to a controller action in MVC

穿精又带淫゛_ 提交于 2021-02-07 07:10:39
问题 When I click the back button in IE10 or Chrome on Win7, it does not hit my break point in my MVC controller. The Network tab in IE developer's tools shows it had a 304 not modified and Fiddler doesn't capture the request. I was expecting the post back, so I could do work in my controller. In my case, the bug is: Sign in make sure you are on the default page click the browser back button on the top left you'll now be back to the login screen sign in with your same credentials again when you do

Why does a react onClick event append a question mark to my url?

这一生的挚爱 提交于 2021-02-06 10:18:37
问题 For some reason my onClick handlers are adding an empty query param to my url when I click them. I was able to fix the issue by adding event.preventDefault to my event handlers but I would like to better understand what actually happened and if this was the correct solution. For context the code below is a simple component to test out some OAuth 2 functionality. The onClick handlers just trigger a reflux action. You'll see I've added e.preventDefault() to all of them. Without that fix,

Why does a react onClick event append a question mark to my url?

邮差的信 提交于 2021-02-06 10:15:46
问题 For some reason my onClick handlers are adding an empty query param to my url when I click them. I was able to fix the issue by adding event.preventDefault to my event handlers but I would like to better understand what actually happened and if this was the correct solution. For context the code below is a simple component to test out some OAuth 2 functionality. The onClick handlers just trigger a reflux action. You'll see I've added e.preventDefault() to all of them. Without that fix,

Page Load being called before Button Event in .net

你说的曾经没有我的故事 提交于 2021-01-28 01:50:47
问题 I have the following code: protected void Page_Load(object sender, EventArgs e) { //get questions List<Question> questions = Question.GetQuestionsForTesting(); //for each question foreach (Question currQuestion in questions) { //display the questionAnswer control QuestionAnswer newControl = (QuestionAnswer)LoadControl("~/Account/QuestionAnswer.ascx"); newControl.newQuestion = currQuestion; questionAnswerPanel.Controls.Add(newControl); } } protected void submitAnswers_Click(object sender,

Purpose of PostBackUrl in <asp:Button>

北城余情 提交于 2021-01-27 22:24:14
问题 What's the purpose of using PostBackUrl ? Let's say I have a button which is in Cart.aspx : <asp:Button ID="btnContinue" runat="server" Text="Continue Shopping" PostBackUrl="~/Order.aspx" CssClass="btn" /> That means that I will be redirectd to Order.aspx , rather than staying on original Cart.aspx . Here are my two questions: I also have a TextBox in Cart.aspx . When I click the button , the value of the TextBox will be posted back to Order.aspx rather than original Cart.aspx . Now I think