We've been using a J4J component that writes out a proxy id.  Since
we're developing all of our javascript from scratch, its not really a
big deal.  You could use the same library, its open source.

However, once Sean's forceId changes go through its going to be a MUCH
better experience.


On Tue, 25 Jan 2005 17:43:55 -0500, Sean Schofield
<[EMAIL PROTECTED]> wrote:
> Calling the submit() on the form should work.  One thing you will have
> to be careful about though is that if you are used to using the
> javascript getElementById method you may run into some trouble.  Do a
> search on earlier posts of this thread for "getElementById" and you
> will see what I am talking about.
> 
> We have a solution for that problem which is a "forceId" attribute.
> Currently there is not one for form, but eventually I will add it once
> there is some other need to create an extended version of the form tag
> for something else.
> 
> If you are not using Tiles or dynamic includes, it will be relatively
> easy to know the id attribute of the form element so you may just want
> to hard-code that into your javascript.
> 
> Just out of curiosity, why are you not just making your search button
> a <h:commandButton> instead?  Seems like that would be much easier ...
> 
> sean
> 
> On Tue, 25 Jan 2005 16:13:15 -0600, Heath Borders
> <[EMAIL PROTECTED]> wrote:
> > Your page would most likely have to submit the form in order for this
> > to happen.  Generally, this adds up to a poor user experience.  We've
> > been experimenting with the XmlHttpRequest Object that has yielded
> > some amazing results.
> >
> > On Tue, 25 Jan 2005 16:49:13 -0500, Matt Crockett 8441
> > <[EMAIL PROTECTED]> wrote:
> > > Not really a MyFaces specific question... Is there a way for a
> > > JavaScript event handler to call an action event?
> > >
> > > Specifically I would like to call action="#{contactManager.doSearch}"
> > > when an 'onkeyup' event is recognized.
> > >
> > > Thanks,
> > >
> > > Matt Crockett
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > -Heath Borders-Wing
> > [EMAIL PROTECTED]
> >
> 


-- 
-Heath Borders-Wing
[EMAIL PROTECTED]

Reply via email to