I found it easier to manually import s:submitOnEvent into my application. (I'm not using a recent-enough sandbox snapshot to include it). Then you don't have to worry about the javascript issues.
On 2/28/07, PeshoChuka <[EMAIL PROTECTED]> wrote:
Ok maybe example is not very good. Yes i am using the prefix from the father container. <h:form id="myForm"> <h:commandButon id="myComand" actionListener="#{mylistener}"/> </h:form> and the javascript call is: document.getElementById('myForm:myCommad'); as i said earlier this works on IE7.0 but in Mozilla throws javascript error because it cannot find the submit script of the button. The error is "Missing resource" Mario Ivankovits wrote: > > Hi! >> document.getElementById('myId').click(); >> >> the button defenition in JSF id classic : >> >> <h:commandButton id="myId" actionListener="#{myListener}"> >> > Are you really using just the same id for getElementById and the id > defined for the commandButton? > Its very unlikely that this works, though, should not work with IE too, > as the client id for a jsf comonent is prefixed with the ids of any > parent naming container. > > Please double check that you use the correct javascript id by looking at > the generated html. > Anything else looks fine. Maybe have a look at [1] too. > > > Ciao, > Mario > > > [1] http://wiki.apache.org/myfaces/SubmitPageOnValueChange > > > -- View this message in context: http://www.nabble.com/-BUG--javascript-error-on-mozilla-when-click%28%29-tf3309636.html#a9207581 Sent from the My Faces - Dev mailing list archive at Nabble.com.