You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ulrich Stärk (JIRA)" <ji...@apache.org> on 2009/07/15 14:55:14 UTC
[jira] Created: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
CLONE -Linksubmit doesn't work inside a form with Zone parameter set
--------------------------------------------------------------------
Key: TAP5-779
URL: https://issues.apache.org/jira/browse/TAP5-779
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.0.17
Reporter: Ulrich Stärk
Assignee: Howard M. Lewis Ship
When LinkSubmit is placed inside a form with Zone parameter, the following part of linksubmit.js will not do the right thing.
if (onsubmit == undefined || onsubmit.call(window.document, event))
{
this.createHidden();
this.form.submit();
}
createHidden() is not called so no hidden field is thus inserted.
Removing 'zone' parameter from Form component fixed this immediately.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Attachment: TAP5-779.txt
Patch and Test. The previous test just confirmed that the form was submittedt but didn't check whether the selected event was fired. The new one does.
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Howard M. Lewis Ship
> Attachments: TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko updated TAP5-779:
--------------------------------
Fix Version/s: 5.1.0.6
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Igor Drobiazko
> Fix For: 5.2.0.0, 5.1.0.6
>
> Attachments: TAP5-779-5.1.txt, TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko updated TAP5-779:
--------------------------------
Fix Version/s: 5.1.0.7
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Igor Drobiazko
> Fix For: 5.2.0, 5.1.0.6, 5.1.0.7
>
> Attachments: TAP5-779-5.1.txt, TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko reassigned TAP5-779:
-----------------------------------
Assignee: Igor Drobiazko (was: Howard M. Lewis Ship)
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Igor Drobiazko
> Attachments: TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko updated TAP5-779:
--------------------------------
Fix Version/s: 5.1.0.6
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Igor Drobiazko
> Fix For: 5.2.0.0, 5.1.0.6
>
> Attachments: TAP5-779-5.1.txt, TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Attachment: TAP5-779.txt
cleaned it up a bit
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Howard M. Lewis Ship
> Attachments: TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Description:
This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
<t:form zone="zone">
<t:zone t:id="zone">
<t:select value="type" />
<t:linksubmit t:id="submit">submit</t:linksubmit>
</t:zone>
</t:form>
</html>
public class Test
{
public enum Types { TYPE1, TYPE2, TYPE3; }
@Property private Types type;
void onSelectedFromSubmit()
{
System.out.println("linksubmit was used");
}
void onSuccess()
{
System.out.println("form was submitted");
}
}
was:
This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
<t:form zone="zone">
<t:zone id="zone">
<t:select value="type" />
<t:linksubmit t:id="submit">submit</t:linksubmit>
</t:zone>
</t:form>
</html>
public class Test
{
public enum Types { TYPE1, TYPE2, TYPE3; }
@Property private Types type;
void onSelectedFromSubmit()
{
System.out.println("linksubmit was used");
}
void onSuccess()
{
System.out.println("form was submitted");
}
}
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Howard M. Lewis Ship
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Attachment: (was: TAP5-779.txt)
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Howard M. Lewis Ship
> Attachments: TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko closed TAP5-779.
-------------------------------
Resolution: Fixed
Fix Version/s: 5.2.0.0
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Igor Drobiazko
> Fix For: 5.2.0.0
>
> Attachments: TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Attachment: (was: TAP5-779.txt)
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Howard M. Lewis Ship
> Attachments: TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Attachment: TAP5-779.txt
Patch and Test. The previous test just confirmed that the form was submittedt but didn't check whether the selected event was fired. The new one does.
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Howard M. Lewis Ship
> Attachments: TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Description:
This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
<t:form zone="zone">
<t:zone id="zone">
<t:select value="type" />
<t:linksubmit t:id="submit">submit</t:linksubmit>
</t:zone>
</t:form>
</html>
public class Test
{
public enum Types { TYPE1, TYPE2, TYPE3; }
@Property private Types type;
void onSelectedFromSubmit()
{
System.out.println("linksubmit was used");
}
void onSuccess()
{
System.out.println("form was submitted");
}
}
was:
When LinkSubmit is placed inside a form with Zone parameter, the following part of linksubmit.js will not do the right thing.
if (onsubmit == undefined || onsubmit.call(window.document, event))
{
this.createHidden();
this.form.submit();
}
createHidden() is not called so no hidden field is thus inserted.
Removing 'zone' parameter from Form component fixed this immediately.
Affects Version/s: (was: 5.0.17)
5.2
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Howard M. Lewis Ship
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko updated TAP5-779:
--------------------------------
Fix Version/s: 5.1.0.7
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Igor Drobiazko
> Fix For: 5.2.0, 5.1.0.6, 5.1.0.7
>
> Attachments: TAP5-779-5.1.txt, TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Description:
This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
<t:form zone="zone">
<t:zone id="zone">
<t:select value="type" />
<t:linksubmit t:id="submit">submit</t:linksubmit>
</t:zone>
</t:form>
</html>
public class Test
{
public enum Types { TYPE1, TYPE2, TYPE3; }
@Property private Types type;
void onSelectedFromSubmit()
{
System.out.println("linksubmit was used");
}
void onSuccess()
{
System.out.println("form was submitted");
}
}
was:
When LinkSubmit is placed inside a form with Zone parameter, the following part of linksubmit.js will not do the right thing.
if (onsubmit == undefined || onsubmit.call(window.document, event))
{
this.createHidden();
this.form.submit();
}
createHidden() is not called so no hidden field is thus inserted.
Removing 'zone' parameter from Form component fixed this immediately.
Affects Version/s: (was: 5.0.17)
5.2
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Howard M. Lewis Ship
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Attachment: TAP5-779-5.1.txt
patch against 5.1 branch
will conflict with the patch for TAP5-749 in linksubmit.js, so be sure to merge them correctly.
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Igor Drobiazko
> Fix For: 5.2.0.0
>
> Attachments: TAP5-779-5.1.txt, TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Attachment: TAP5-779-5.1.txt
patch against 5.1 branch
will conflict with the patch for TAP5-749 in linksubmit.js, so be sure to merge them correctly.
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Igor Drobiazko
> Fix For: 5.2.0.0
>
> Attachments: TAP5-779-5.1.txt, TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Description:
This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
<t:form zone="zone">
<t:zone t:id="zone">
<t:select value="type" />
<t:linksubmit t:id="submit">submit</t:linksubmit>
</t:zone>
</t:form>
</html>
public class Test
{
public enum Types { TYPE1, TYPE2, TYPE3; }
@Property private Types type;
void onSelectedFromSubmit()
{
System.out.println("linksubmit was used");
}
void onSuccess()
{
System.out.println("form was submitted");
}
}
was:
This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
<t:form zone="zone">
<t:zone id="zone">
<t:select value="type" />
<t:linksubmit t:id="submit">submit</t:linksubmit>
</t:zone>
</t:form>
</html>
public class Test
{
public enum Types { TYPE1, TYPE2, TYPE3; }
@Property private Types type;
void onSelectedFromSubmit()
{
System.out.println("linksubmit was used");
}
void onSuccess()
{
System.out.println("form was submitted");
}
}
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Howard M. Lewis Ship
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-779:
------------------------------
Attachment: TAP5-779.txt
cleaned it up a bit
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Howard M. Lewis Ship
> Attachments: TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko closed TAP5-779.
-------------------------------
Resolution: Fixed
Fix Version/s: 5.2.0.0
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Igor Drobiazko
> Fix For: 5.2.0.0
>
> Attachments: TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (TAP5-779) CLONE -Linksubmit doesn't work inside a
form with Zone parameter set
Posted by "Igor Drobiazko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko reassigned TAP5-779:
-----------------------------------
Assignee: Igor Drobiazko (was: Howard M. Lewis Ship)
> CLONE -Linksubmit doesn't work inside a form with Zone parameter set
> --------------------------------------------------------------------
>
> Key: TAP5-779
> URL: https://issues.apache.org/jira/browse/TAP5-779
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Ulrich Stärk
> Assignee: Igor Drobiazko
> Attachments: TAP5-779.txt
>
>
> This is a clone of TAP5-389 which was closed as CNR. This still IS an issue with 5.2-SNAPSHOT. Clicking on the link generated by linksubmit in the following example will not trigger linksubmit's selected event. The output is always just "form was submitted".
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
> <t:form zone="zone">
> <t:zone t:id="zone">
> <t:select value="type" />
> <t:linksubmit t:id="submit">submit</t:linksubmit>
> </t:zone>
> </t:form>
> </html>
> public class Test
> {
> public enum Types { TYPE1, TYPE2, TYPE3; }
>
> @Property private Types type;
>
> void onSelectedFromSubmit()
> {
> System.out.println("linksubmit was used");
> }
>
> void onSuccess()
> {
> System.out.println("form was submitted");
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.