You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Andy Jenkins (JIRA)" <de...@myfaces.apache.org> on 2007/06/20 02:00:34 UTC
[jira] Created: (TRINIDAD-69) h:commandButton with Image does not
post x y coordinates with Trinidad as default renderer
h:commandButton with Image does not post x y coordinates with Trinidad as default renderer
------------------------------------------------------------------------------------------
Key: TRINIDAD-69
URL: https://issues.apache.org/jira/browse/TRINIDAD-69
Project: MyFaces Trinidad
Issue Type: Bug
Affects Versions: 1.0.0-incubating-core
Environment: JRE 6
Reporter: Andy Jenkins
With trinidad as the default renderer I can't get the x y coordinates of an image commandButton.
With trinidad as the default renderer, here's what's POSTed:
org.apache.myfaces.trinidad.faces.FORM=pageContent%3AmapPanel%3AmapForm
org.apache.myfaces.trinidad.faces.STATE=%2140
Without trinidad (using myFaces, same setup, just removing the default renderer):
pageContent%3AmapPanel%3AmapForm_SUBMIT=1
pageContent%3AmapPanel%3AmapForm%3A_idcl=
pageContent%3AmapPanel%3AmapForm%3A_link_hidden_=
javax.faces.ViewState=rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAEycHQADi9ob21lUGFnZS50aWxl
pageContent%3AmapPanel%3AmapForm%3Amap.x=462
pageContent%3AmapPanel%3AmapForm%3Amap.y=241
Notice the x=462 and y=241 params.
Here's the commandButton usage:
<h:commandButton id="map" action="#{sessionMB.getOutcome}"
image="#{sessionMB.currentMapImage}"
onmousedown="ShowLoading(); return true;"
styleClass="mapClass">
<f:actionListener type="tv.faces.event.MapImageAction" />
</h:commandButton>
tr:commandButton with icon also posts no coordinates.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (TRINIDAD-69) h:commandButton with Image does not
post x y coordinates with Trinidad as default renderer
Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Winer resolved TRINIDAD-69.
--------------------------------
Resolution: Fixed
I retested, and the source is getting sent. I put:
<h:commandButton image="/adf/images/error.gif" action="guide" />
into a page, and it worked fine, navigating as expected. Tested
on both FF 2.0 and Safari 2.0. FWIW, the generated HTML source was:
<input id="_idJsp7" type="image" onclick="this.form.source.value='_idJsp7';" src="/tri/adf/images/error.gif" name="_idJsp7"/>
Note the onclick.
> h:commandButton with Image does not post x y coordinates with Trinidad as default renderer
> ------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-69
> URL: https://issues.apache.org/jira/browse/TRINIDAD-69
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 1.0.0-incubating-core
> Environment: JRE 6
> Reporter: Andy Jenkins
> Assignee: Adam Winer
> Fix For: 1.0.2-core
>
>
> With trinidad as the default renderer I can't get the x y coordinates of an image commandButton.
> With trinidad as the default renderer, here's what's POSTed:
> org.apache.myfaces.trinidad.faces.FORM=pageContent%3AmapPanel%3AmapForm
> org.apache.myfaces.trinidad.faces.STATE=%2140
> Without trinidad (using myFaces, same setup, just removing the default renderer):
> pageContent%3AmapPanel%3AmapForm_SUBMIT=1
> pageContent%3AmapPanel%3AmapForm%3A_idcl=
> pageContent%3AmapPanel%3AmapForm%3A_link_hidden_=
> javax.faces.ViewState=rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAEycHQADi9ob21lUGFnZS50aWxl
> pageContent%3AmapPanel%3AmapForm%3Amap.x=462
> pageContent%3AmapPanel%3AmapForm%3Amap.y=241
> Notice the x=462 and y=241 params.
> Here's the commandButton usage:
> <h:commandButton id="map" action="#{sessionMB.getOutcome}"
> image="#{sessionMB.currentMapImage}"
> onmousedown="ShowLoading(); return true;"
> styleClass="mapClass">
> <f:actionListener type="tv.faces.event.MapImageAction" />
> </h:commandButton>
> tr:commandButton with icon also posts no coordinates.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (TRINIDAD-69) h:commandButton with Image does not
post x y coordinates with Trinidad as default renderer
Posted by "Andy Jenkins (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Jenkins reopened TRINIDAD-69:
----------------------------------
The x y coordinates are now sent, but the "source=" attribute is not which means the commandButton's action is not called.
a commandButton whose action is called, POSTs:
org.apache.myfaces.trinidad.faces.FORM=pageContent%3AmapPanel%3AmapForm
org.apache.myfaces.trinidad.faces.STATE=%2175
source=pageContent%3AmapPanel%3AmapForm%3A_idJsp32
a commandButton with image whose action is not called, POSTs:
org.apache.myfaces.trinidad.faces.FORM=pageContent%3AmapPanel%3AmapForm
org.apache.myfaces.trinidad.faces.STATE=%2175
pageContent%3AmapPanel%3AmapForm%3A_idJsp32.x=469
pageContent%3AmapPanel%3AmapForm%3A_idJsp32.y=244
I'm afraid I could figure out how to add the source=pageContent%3AmapPanel%3AmapForm%3A_idJsp32 back in.
> h:commandButton with Image does not post x y coordinates with Trinidad as default renderer
> ------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-69
> URL: https://issues.apache.org/jira/browse/TRINIDAD-69
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 1.0.0-incubating-core
> Environment: JRE 6
> Reporter: Andy Jenkins
> Assignee: Adam Winer
> Fix For: 1.0.2-core
>
>
> With trinidad as the default renderer I can't get the x y coordinates of an image commandButton.
> With trinidad as the default renderer, here's what's POSTed:
> org.apache.myfaces.trinidad.faces.FORM=pageContent%3AmapPanel%3AmapForm
> org.apache.myfaces.trinidad.faces.STATE=%2140
> Without trinidad (using myFaces, same setup, just removing the default renderer):
> pageContent%3AmapPanel%3AmapForm_SUBMIT=1
> pageContent%3AmapPanel%3AmapForm%3A_idcl=
> pageContent%3AmapPanel%3AmapForm%3A_link_hidden_=
> javax.faces.ViewState=rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAEycHQADi9ob21lUGFnZS50aWxl
> pageContent%3AmapPanel%3AmapForm%3Amap.x=462
> pageContent%3AmapPanel%3AmapForm%3Amap.y=241
> Notice the x=462 and y=241 params.
> Here's the commandButton usage:
> <h:commandButton id="map" action="#{sessionMB.getOutcome}"
> image="#{sessionMB.currentMapImage}"
> onmousedown="ShowLoading(); return true;"
> styleClass="mapClass">
> <f:actionListener type="tv.faces.event.MapImageAction" />
> </h:commandButton>
> tr:commandButton with icon also posts no coordinates.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (TRINIDAD-69) h:commandButton with Image does not
post x y coordinates with Trinidad as default renderer
Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Winer resolved TRINIDAD-69.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.0.2-core
Fixed - thanks for the report!
> h:commandButton with Image does not post x y coordinates with Trinidad as default renderer
> ------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-69
> URL: https://issues.apache.org/jira/browse/TRINIDAD-69
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 1.0.0-incubating-core
> Environment: JRE 6
> Reporter: Andy Jenkins
> Assignee: Adam Winer
> Fix For: 1.0.2-core
>
>
> With trinidad as the default renderer I can't get the x y coordinates of an image commandButton.
> With trinidad as the default renderer, here's what's POSTed:
> org.apache.myfaces.trinidad.faces.FORM=pageContent%3AmapPanel%3AmapForm
> org.apache.myfaces.trinidad.faces.STATE=%2140
> Without trinidad (using myFaces, same setup, just removing the default renderer):
> pageContent%3AmapPanel%3AmapForm_SUBMIT=1
> pageContent%3AmapPanel%3AmapForm%3A_idcl=
> pageContent%3AmapPanel%3AmapForm%3A_link_hidden_=
> javax.faces.ViewState=rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAEycHQADi9ob21lUGFnZS50aWxl
> pageContent%3AmapPanel%3AmapForm%3Amap.x=462
> pageContent%3AmapPanel%3AmapForm%3Amap.y=241
> Notice the x=462 and y=241 params.
> Here's the commandButton usage:
> <h:commandButton id="map" action="#{sessionMB.getOutcome}"
> image="#{sessionMB.currentMapImage}"
> onmousedown="ShowLoading(); return true;"
> styleClass="mapClass">
> <f:actionListener type="tv.faces.event.MapImageAction" />
> </h:commandButton>
> tr:commandButton with icon also posts no coordinates.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (TRINIDAD-69) h:commandButton with Image does not
post x y coordinates with Trinidad as default renderer
Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Winer resolved TRINIDAD-69.
--------------------------------
Resolution: Fixed
OK, now it's fully fixed.
> h:commandButton with Image does not post x y coordinates with Trinidad as default renderer
> ------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-69
> URL: https://issues.apache.org/jira/browse/TRINIDAD-69
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 1.0.0-incubating-core
> Environment: JRE 6
> Reporter: Andy Jenkins
> Assignee: Adam Winer
> Fix For: 1.0.2-core
>
>
> With trinidad as the default renderer I can't get the x y coordinates of an image commandButton.
> With trinidad as the default renderer, here's what's POSTed:
> org.apache.myfaces.trinidad.faces.FORM=pageContent%3AmapPanel%3AmapForm
> org.apache.myfaces.trinidad.faces.STATE=%2140
> Without trinidad (using myFaces, same setup, just removing the default renderer):
> pageContent%3AmapPanel%3AmapForm_SUBMIT=1
> pageContent%3AmapPanel%3AmapForm%3A_idcl=
> pageContent%3AmapPanel%3AmapForm%3A_link_hidden_=
> javax.faces.ViewState=rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAEycHQADi9ob21lUGFnZS50aWxl
> pageContent%3AmapPanel%3AmapForm%3Amap.x=462
> pageContent%3AmapPanel%3AmapForm%3Amap.y=241
> Notice the x=462 and y=241 params.
> Here's the commandButton usage:
> <h:commandButton id="map" action="#{sessionMB.getOutcome}"
> image="#{sessionMB.currentMapImage}"
> onmousedown="ShowLoading(); return true;"
> styleClass="mapClass">
> <f:actionListener type="tv.faces.event.MapImageAction" />
> </h:commandButton>
> tr:commandButton with icon also posts no coordinates.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (TRINIDAD-69) h:commandButton with Image does not
post x y coordinates with Trinidad as default renderer
Posted by "Adam Winer (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Winer reopened TRINIDAD-69:
--------------------------------
Ah, just repro'd the issue. A trivial page containing only the image repros the bug.
> h:commandButton with Image does not post x y coordinates with Trinidad as default renderer
> ------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-69
> URL: https://issues.apache.org/jira/browse/TRINIDAD-69
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 1.0.0-incubating-core
> Environment: JRE 6
> Reporter: Andy Jenkins
> Assignee: Adam Winer
> Fix For: 1.0.2-core
>
>
> With trinidad as the default renderer I can't get the x y coordinates of an image commandButton.
> With trinidad as the default renderer, here's what's POSTed:
> org.apache.myfaces.trinidad.faces.FORM=pageContent%3AmapPanel%3AmapForm
> org.apache.myfaces.trinidad.faces.STATE=%2140
> Without trinidad (using myFaces, same setup, just removing the default renderer):
> pageContent%3AmapPanel%3AmapForm_SUBMIT=1
> pageContent%3AmapPanel%3AmapForm%3A_idcl=
> pageContent%3AmapPanel%3AmapForm%3A_link_hidden_=
> javax.faces.ViewState=rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAEycHQADi9ob21lUGFnZS50aWxl
> pageContent%3AmapPanel%3AmapForm%3Amap.x=462
> pageContent%3AmapPanel%3AmapForm%3Amap.y=241
> Notice the x=462 and y=241 params.
> Here's the commandButton usage:
> <h:commandButton id="map" action="#{sessionMB.getOutcome}"
> image="#{sessionMB.currentMapImage}"
> onmousedown="ShowLoading(); return true;"
> styleClass="mapClass">
> <f:actionListener type="tv.faces.event.MapImageAction" />
> </h:commandButton>
> tr:commandButton with icon also posts no coordinates.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.