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/21 11:13:26 UTC

[jira] Reopened: (TRINIDAD-69) h:commandButton with Image does not post x y coordinates with Trinidad as default renderer

     [ 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.