You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/09/21 21:41:37 UTC
[jira] Closed: (TAPESTRY-649) ValidField component creates javascript referencing handle_invalid_field() method that no longer exists
[ http://issues.apache.org/jira/browse/TAPESTRY-649?page=all ]
Howard M. Lewis Ship closed TAPESTRY-649:
-----------------------------------------
Fix Version: 4.0
Resolution: Fixed
Wrote a test application to verify that these now work properly, and that contrib:ValidationTextField, DateField, NumericField still work. Surprisingly, they do!
> ValidField component creates javascript referencing handle_invalid_field() method that no longer exists
> -------------------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-649
> URL: http://issues.apache.org/jira/browse/TAPESTRY-649
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Environment: Linux,jetty
> Reporter: Dan Adams
> Assignee: Howard M. Lewis Ship
> Fix For: 4.0
>
> Here is the html output from the <body>. I have a @FormBorder component
> which includes a form that encloses the actual form inputs. The handle_invalid_field() function does not get created.
> <script type="text/javascript"
> src="/app?digest=b4909c59529064c46eb8843b65911500&path=%2Forg%
> 2Fapache%2Ftapestry%2Fform%2FForm.js&service=asset"></script>
> <script type="text/javascript"><!--
> function validate_name(event)
> {
> var field = document.Form.name;
> if (field.value.length == 0)
> {
> handle_invalid_field(event, field, "You must enter a value for Name.");
> return;
> }
> }
> // --></script>
> <div class="page">
> <div class="maindiv">
> <div class="topnav">
> <div class="globalnav"><span class="links"><a href="#">Contact Us</a| <a href="#">Sitemap</a| <a href="#">Search</a| <a href="#">Join Us</a></span></div>
> <div class="logo"><a href="#"><img src="images/logo_ulifeline.gif" width="219" height="52" alt="" border="0" /></a></div>
> <div class="mitmed"><img src="images/logo_mitmed.gif" width="139" height="21" alt="" /></div>
> <img src="images/topwave.png" width="798" height="60" alt="" class="bottomwave" />
> </div>
> <div class="c-content">
> <div class="leftcol">
> <p class="navbutton"><a href="#" class="button">Log Out</a></p>
> <!-- <div class="stylebuttonout"><div class="stylebuttonin"><a href="#">Log Out</a></div></div-->
> <div class="leftnav">
> <table class="navigation" cellpadding="0" cellspacing="0">
> <tr><td><a href="/app?component=%24AdminBorder.%24DirectLink&page=admin%2FAddSpecialty&service=direct">Ulifeline Administrator Home</a></td></tr>
> <tr><td><a href="/app?component=%24AdminBorder.%24DirectLink_0&page=admin%2FAddSpecialty&service=direct" id="nav_specialties">Specialties</a></td></tr>
> </table>
> </div>
> </div>
> <div class="contentarea">
> <h1 id="pagetitle">Add Specialty</h1>
> <form method="post" action="/app" name="Form" id="Form">
> <div><input type="hidden" name="formids" value="Hidden,Hidden_0,name,Checkbox,Submit"/>
> <input type="hidden" name="component" value="formBorder.$Form"/>
> <input type="hidden" name="page" value="admin/AddSpecialty"/>
> <input type="hidden" name="service" value="direct"/>
> <input type="hidden" name="submitmode" value=""/>
> <input type="hidden" name="Hidden" value="0"/>
> <input type="hidden" name="Hidden_0" value="0"/>
> </div>
> <table class="form">
> <tr>
> <th><label for="name">Name</label></th>
> <td><input type="text" name="name" id="name"/></td>
> </tr>
> <tr>
> <th>Active</th>
> <td><input type="checkbox" name="Checkbox" id="Checkbox"/></td>
> </tr>
> </table>
> <div class="formsubmit">
> <input type="submit" name="Submit" value="Add Specialty" id="Submit" class="button"/>
> </div>
> </form>
> </div>
> </div>
> <hr />
> <div class="footer">
> <span class="left">
> <span class="right">
> ©ULifeline<br />
> <a href="#">Terms of Use</a| <a href="#">Privacy Statement</a>
> </span>
> University Specific Contact Info goes here. Lorem ipsum dolor sit amet:<br />
> Phone: 555-555-1234 Online: <a href="#">www.somwebaddress.edu</a>
> </span>
> </div>
> </div>
> </div>
> <script language="JavaScript" type="text/javascript"><!--
> Tapestry.register_form('Form');
> Tapestry.onsubmit('Form', validate_name);
> Tapestry.set_focus('name');
> // --></script></body>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org