Author: drobiazko
Date: Mon Nov 23 18:02:47 2009
New Revision: 883436
URL: http://svn.apache.org/viewvc?rev=883436&view=rev
Log:
TAP5-749: The FormFragment and LinkSubmit components create a hidden field
whose id ends with ":hidden"
Modified:
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/FormFragment.java
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/LinkSubmit.java
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/linksubmit.js
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Modified:
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/FormFragment.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/FormFragment.java?rev=883436&r1=883435&r2=883436&view=diff
==============================================================================
---
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/FormFragment.java
(original)
+++
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/FormFragment.java
Mon Nov 23 18:02:47 2009
@@ -186,7 +186,7 @@
"name", Form.FORM_DATA,
- "id", clientId + ":hidden",
+ "id", clientId + "-hidden",
"value", componentActions.getClientData()
);
Modified:
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/LinkSubmit.java
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/LinkSubmit.java?rev=883436&r1=883435&r2=883436&view=diff
==============================================================================
---
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/LinkSubmit.java
(original)
+++
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/LinkSubmit.java
Mon Nov 23 18:02:47 2009
@@ -87,7 +87,7 @@
{
this.clientId = clientId;
- String hiddenFieldName = this.clientId + ":hidden";
+ String hiddenFieldName = this.clientId + "-hidden";
if (request.getParameter(hiddenFieldName) != null)
{
Modified:
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/linksubmit.js
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/linksubmit.js?rev=883436&r1=883435&r2=883436&view=diff
==============================================================================
---
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/linksubmit.js
(original)
+++
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/linksubmit.js
Mon Nov 23 18:02:47 2009
@@ -1,4 +1,4 @@
-// Copyright 2008 The Apache Software Foundation
+// Copyright 2008,2009 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -25,13 +25,12 @@
createHidden : function()
{
var hidden = new Element("input", { "type":"hidden",
- "id": this.element.id + ":hidden",
- "name": this.element.id + ":hidden",
+ "id": this.element.id + "-hidden",
+ "name": this.element.id + "-hidden",
"value": this.element.id});
- if (this.form.select("input#" + this.element.id + ":hidden").length ==
0)
+ if (this.form.select("input#" + this.element.id + "-hidden").length ==
0)
this.element.insert({after:hidden});
-
},
onClick : function(event)
Modified:
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL:
http://svn.apache.org/viewvc/tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=883436&r1=883435&r2=883436&view=diff
==============================================================================
---
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
(original)
+++
tapestry/tapestry5/branches/5.1.0.x-dev/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
Mon Nov 23 18:02:47 2009
@@ -1490,7 +1490,7 @@
$T(this.element).formFragment = this;
- this.hidden = $(spec.element + ":hidden");
+ this.hidden = $(spec.element + "-hidden");
this.showFunc = Tapestry.ElementEffect[spec.show] ||
Tapestry.ElementEffect.slidedown;
this.hideFunc = Tapestry.ElementEffect[spec.hide] ||
Tapestry.ElementEffect.slideup;