Two howto questions?

UI Components for JSF
Post Reply
User avatar
bjorntj
Posts: 277
Joined: 30 Jul 2010, 10:46

30 Jul 2010, 14:32

- How can one catch the Enter key inside a input field and send an ajax request?
- How can on accomplish mouse over effect on rows in a table?


Regards,

BTJ
PrimeFaces 11.x | PrimeVue 3.x | Spring Boot 2.7.x | Undertow | Mojarra 2.3.x
Mac OS, Firefox and Chromium

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

30 Jul 2010, 23:39

- Maybe you can try p:hotkey component.

http://www.primefaces.org:8080/prime-sh ... hotkey.jsf

- If you enable row selection, rows will be highlighted on mouseover;

http://www.primefaces.org:8080/prime-sh ... ection.jsf

User avatar
bjorntj
Posts: 277
Joined: 30 Jul 2010, 10:46

02 Aug 2010, 08:47

Yes, I thought about hotkey but looking at the example it looked like it could not be connected to a specific input field and just used globally...?

But I guess one could do something like this then:

<h:inputtext...>
<p:hotkey.../>
</h:innputtext>


BTJ
PrimeFaces 11.x | PrimeVue 3.x | Spring Boot 2.7.x | Undertow | Mojarra 2.3.x
Mac OS, Firefox and Chromium

mbahl
Posts: 2
Joined: 09 Sep 2011, 22:01

09 Sep 2011, 22:27

Have you been able to get a hotkey for an inputtext to work?
It looks like hotkey is called when there is no focus on a widget

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

10 Sep 2011, 08:53

It looks like hotkey is called when there is no focus on a widget
That's right by design.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests