jsf - To migrate java web project from PrimeFaces 3.4 to PrimeFaces 5.2 -


i have not lot work experience primefaces. have migrate java web primefaces project 3.4 5.2. although searched on internet there not proper solution situation. if ever have experience kind of problem or ever heard of please let me know or send me link that. want way of doing it. have idea witch component should changed. there except replacing jar? tried replace primefaces 3.4 primefaces 5.2 jar. not allow me replace jar. have to change code too? please want migration steps.

there primefaces migration guide. need go step step 3.5 5.2.

here full migration guide situation:

copied migrationguide

3.4 3.5 component changes

  • dateselectevent, scheduledateselectevent, scheduleentryselectevents classes removed, use selectevent instead.
  • column class in sortevent , columnresizeevent replaced uicolumn support dynamic columns.
  • scrollable , resizable datatable-treetable features reimplemented. datatable , treetable no longer render cell container div element classes ui-dt-c , ui-tt-c.
  • sheet component removed duplicated functionality of datatable. galleria reimplemented.

general changes

  • ie7 support phased out.

3.5 4.0 component changes

  • menumodel rewritten , not backward compatible old version.

  • (skip when e.g. directly migrating 3.x 5.x, 'reverted' again in 5.0) datatable sortby , filterby expressions require plain property name meaning "name" instead of "#{person.name}". backward compatibility maintained expressions "#{var.property}" not complex expressions.

  • fileupload reimplemented , backward compatible except "showbuttons" option removed.

  • disabledselection option of column, moved datatable, change backward compatible , option removed column in future release.

  • autocomplete: removed process/global/onstart/oncomplete in favor of "p:ajax event="query" process/global/onstart/oncomplete"

general changes

  • preferred way of accessing widgets via pf('widgetvarname').show(), old way (e.g. widgetvarname.show()) still supported , removed in future version.

4.0 5.0 component changes

  • chart components deprecated in favor of new generic chart component new chart api. old chart components still supported removed in future release.

  • toolbargroup deprecated, use left , right facets of toolbar instead. (reverted of 5.0.1, both facets , toolbar groups supported instead)

  • defining fields in sortby-filterby attributes deprecated use value expression instead.e.g. sortby="#{user.name}" instead of sortby="name"

  • datatable frozen rows feature take integer value instead of collection on. value defined how many rows start should frozen.

  • lazydatamodel's filters parameter changed map instead of map requirement of new advanced
    filtering feature.

  • dialog: appendtobody removed in favor of appendto="@(body)" gain more flexibility

  • watermark: forelement removed in favor of for="@(yourselector)".

  • widgets must referenced via "pf". e.g. pf('widgetvarname').show() instead of widgetvarname.show();

  • datatable layout changed table-layout:fixed.

  • primefaces push reimplemented, pushcontext deprecated, use eventbus instead along new push api.

  • scrollpanel reimplemented, usage backward compatible ui different.

5.0 5.1

  • support literal texts in filterby-sortby expressions deprecated in 5.0 , removed in 5.1. these attributes work value expression in past.

  • deprecated chart components removed.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -