Scroll to specific component on update

UI Components for JSF
vineet
Posts: 387
Joined: 14 Oct 2011, 23:40

28 Feb 2012, 19:01

Thanks a ton .

PF rocks .

jeffsui
Posts: 49
Joined: 29 May 2012, 22:14

09 Aug 2012, 00:08

Does this work with table rows or just entire components???

Like if i had a huge table could i scroll down to row 400 or something like that?

vineet
Posts: 387
Joined: 14 Oct 2011, 23:40

09 Aug 2012, 03:41

i guess it will work only at component level.

vineet
Posts: 387
Joined: 14 Oct 2011, 23:40

09 Aug 2012, 03:43

you can use paginator altenatively with page to drop down option in paginator template.

jeffsui
Posts: 49
Joined: 29 May 2012, 22:14

09 Aug 2012, 11:00

It does work to scroll to database components but they need to be named!

hecelis
Posts: 1
Joined: 09 Oct 2012, 22:24

09 Oct 2012, 22:37

Scroll to specific component on update.
Add the following attribute to your p:commandLink or p:commandButton
oncomplete="PrimeFaces.scrollTo('componentID')"

saba83rish
Posts: 3
Joined: 03 Jan 2013, 17:54

15 Apr 2013, 16:38

PrimeFaces.scrollTo works like a charm. I am using like this :
oncomplete="if(args.validationFailed){test.setTestVal()}; PrimeFaces.scrollTo('globalMsg');"

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests