This content has been marked as final.
Show 5 replies
-
1. Re: default action
cremersstijn Oct 30, 2008 9:38 AM (in response to cremersstijn)Seam provides also a default action tag: http://docs.jboss.com/seam/2.1.0.GA/reference/en-US/html/controls.html
Richfaces doesn't provide something like this ? -
2. Re: default action
nbelaevski Oct 30, 2008 8:07 PM (in response to cremersstijn)Hi,
why do not use Seam tag? Seam and RichFaces work well together. -
3. Re: default action
cremersstijn Oct 31, 2008 3:24 AM (in response to cremersstijn)Because i don't use seam in my project, and i don't want to use another framework/library just for one component.
It would be nice if richfaces has something like this built-in. -
4. Re: default action
nbelaevski Nov 2, 2008 3:12 PM (in response to cremersstijn)You can use rich:hotKey component:
<h:form id="form"> <h:commandButton action="#{bean.action}" value="Link" id="link" styleClass="defaultLink"/> <rich:hotKey selector="#form" key="return" type="keypress" handler="event.preventDefault(); jQuery('.defaultLink').click()" disableInInput="false" disableInInputTypes=""/> <h:inputText value="" /> </h:form>
-
5. Re: default action
cremersstijn Nov 3, 2008 3:16 AM (in response to cremersstijn)it works, thank you very much!