[CLOSED] Validation Broken

  1. #1

    [CLOSED] Validation Broken

    Hello,

    As of revision 702 the validation is now broken:

    Example.aspx:
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    <script runat="server">
        protected void btnTest_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                lblTest.Text = txtTest.Text;
            }
        }
    </script>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" />
            <ext:ScriptManager ID="ScriptManager2" runat="server" StateProvider="PostBack" />
            <ext:TextField ID="txtTest" runat="server" MaxLength="255" Text="Word" />
            <asp:RequiredFieldValidator ID="rfvTest" runat="server" ControlToValidate="txtTest" ErrorMessage="Text is required" Display="Dynamic">!</asp:RequiredFieldValidator>
            <ext:Button ID="btnTest" runat="server" AutoPostBack="True" CausesValidation="True" &#111;nclick="btnTest_Click" Text="Submit" />
            <ext:Label ID="lblTest" runat="server" Text="Waiting ..." />
        </form>
    </body>
    </html>
    Replication steps:

    1. Load page, type "Test" into txtTest
    2. Click submit, nothing

    Also, notice I set the Text="Word" on the textfield, does not load on first view.

    Cheers,
    Timothy
  2. #2

    RE: [CLOSED] Validation Broken

    Hi Timothy,

    We had a merge problem and one of the .js files got corrupted. we're fixing right now and should be committing momentarily. You might run into many errors with #702. It would be best to roll back to #701 if you're in a pinch.


    Once commit complete, I'll test your example to confirm everything has been fixed.*


    I apologize for the*inconvenience.


    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] Validation Broken

    Hi Timothy,

    Please SVN update. The coolite-core.js file has been straightened back out.*


    I tested your sample above and it appears to work properly with latest (#703) build.


    Hope this helps.


    Geoffrey McGill
    Founder

Similar Threads

  1. Client Side Validation and Validation Status
    By speddi in forum 1.x Help
    Replies: 8
    Last Post: Nov 03, 2011, 11:24 AM
  2. Replies: 3
    Last Post: Jul 11, 2011, 9:43 AM
  3. [CLOSED] MVC Example Broken?
    By paulc in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 07, 2011, 8:33 AM
  4. Replies: 6
    Last Post: Aug 25, 2008, 4:25 PM
  5. Replies: 4
    Last Post: Jul 05, 2008, 2:14 AM

Posting Permissions