This content has been marked as final.
Show 2 replies
-
1. Re: Richfaces Migration issue: 3.2.x to 3.3.0 with datatable
andrei_exadel Feb 19, 2009 1:13 PM (in response to saxenahemant)Hello,
Yes. This was broken since 3.3.0 GA.
I added the issue: https://jira.jboss.org/jira/browse/RF-6267.
Rendered attribute that uses columns var for evaluation now returns null value...
But you can try workaround. Just return TRUE if passed paramer is null:public boolean isSignificant(Column col) { if (col == null) { return true; } boolean status = true; //Identity.instance().hasPermission("name", "action", null); if(col.getPropertyOfModel().equals(AdsTimeChunkCapacityModel.MODEL_PROPERTY_BOOKEDCOUNT) || col.getPropertyOfModel().equals(AdsTimeChunkCapacityModel.MODEL_PROPERTY_RESVCOUNT) ) { status = false; } else if(col.getPropertyOfModel().equals(AdsTimeChunkCapacityModel.MODEL_PROPERTY_AVAIL) && capacityOnlyMode) { // if UI is in show capacity only mode then there is no point showing Availability column status = false; } return status; }
P.S. If you will detect that sorting failed after RF migration, please assign id for columns as:<rich:columns id="col#{ind}" value="#{resultTableDataModel.columns}" var="column" ....>
Best regards -
2. Re: Richfaces Migration issue: 3.2.x to 3.3.0 with datatable
saxenahemant Feb 19, 2009 2:05 PM (in response to saxenahemant)Thanks for the prompt reply!!
Just to verification i can return true for every column but that is not workaround. Doing that will make all column visible. Anways, I will wait for the fix.