jsf - rich:datascroller binding HtmlDatascroller.getPage() problem -


I have jsf 1.2 and richfaces 3.3.3. Final

I have a bond with the rich: Dostroever in my java is a weird thing, though: getPage () method sometimes returns the correct page number and sometimes what are the wrong people in it?

Component in JSF:

  & lt; rich: datascroller id = "tableScroller" renderIfSinglePage = to = "false" "projectPlanCreatetable" pageIndexVar = "page not" binding = "# {ProjectPlanCreateControl.listAction.scroller}" & gt; & Lt; A4j: support event = "onpagechange" action = "# {ProjectPlanCreateControl.pageChanged}" render = "pages viewed" incomplete = "markpage ();" /> & Lt; / Rich: datascroller & gt; & Lt; H: InputHide ID = "Viewed page" value = "# {ProjectPlanCreateControl.visited}" />   

and JavaScript:

  function Markpej () {var pages = document.getElementById ( 'mainFrm: projectPlanCreatetable: Visit Page "). value; Pageare = pages. Split (","); For (var i = 0; i & lt; pagesArr.length-1; i ++) {jQuery ('td.rich-datascr-inact'). Filter (function () {return jQuery (this) .text () == pagesArr [I];}). CSS ('color', 'red'); }}   

Java:

  changed the public string page () {HtmlDatascroller scroller = listAction.getScroller (); Visit + = scroller.getPage () + ","; Return ""; }    

OK, get it. I should have used the page attribute to get the page in my controller, and should not be binding.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -