5

I downloaded Primefaces 3.2 but I cant find the javadocs for the client side API. They say it has rich client side api so I'd could take a look at it also.

Thanks.

Mark Estrada
  • 9,013
  • 37
  • 119
  • 186

2 Answers2

9

Though this may sound too trivial, but as a potential work-around, if one cannot find desired property/function name in provided documentation, one can do the following:

1.Add widgetVar to component:

    <p:dataTable widgetVar="caseDataTable" ...>
        ...
    </p:dataTable>

2.Open corresponding page in browser with adequate developers console (I prefer Chrome, but Firefox should also do), open JS console, type name of the JS variable and . and console should show dropdown list of properties/functions available:

Chrome console with dropdown

3.Try to guess which property/function does what :)

Though one should use those functions/properties carefully, because since they are not documented, they may be removed in future releases etc, but as a work-around this may work.

Hope this helps...

Yuriy Nakonechnyy
  • 3,742
  • 4
  • 29
  • 41
  • This used to work but now no longer works now with PF 5.0 or PF 4.0 .. Any ideas about other ways to see what all methods are available via widgetvar ? – Rajat Gupta Jul 11 '14 at 13:30
  • @user01 sorry, don't have the slightest idea since I'm not using PF anymore :) – Yuriy Nakonechnyy Jul 11 '14 at 14:10
  • 3
    @user01 With PF 4.0 and above, you have to type `PF('theWidgetVarName')` instead of just `theWidgetVarName`. @Yura should update his answer. – Grégoire C Mar 06 '15 at 16:58
5

Everything about PrimeFaces is here

https://www.primefaces.org/documentation/

StepTNT
  • 3,867
  • 7
  • 41
  • 82