JSF: MyFaces CODI typesafe navigation and f:viewParam?

They implemented what you are looking for. See https://issues.apache. Org/jira/browse/EXTCDI-216.

StevenR CODI does not support inclusion of viewParams when using typesafe navigation, however if you follow their issue tracking system it seems like a prospective feature: https://issues.apache. Org/jira/browse/EXTCDI-171 From the issue's history you can tell they just updated the status recently (~4 weeks ago) and it might be included soon. Maybe one of the comitters is following this post and can update us with a rough time line for this new feature?

Moreover the feature of type safe navigation has been discussed in the JSF spec: java.net/jira/browse/JAVASERVERFACES_SPE... As a workaround I'd suggest do follow the hint in the CODI wiki (see part of the URL below) and use Pages.ListView.class.getName() where you could concatenate additional viewParams within your backing bean's action method. This way your navigation is type safe and you leverage your IDE's refactoring capabilities. Only the params would not be type safe this way... I would suggest you use the tag, so you don't have to walk trough like this String viewParam = ""; for (UIComponent comp : event.getComponent().getChildren()) { if (comp instanceof UIParameter ) { UIParameter myParameter = (UIParameter) comp; if (myParameter.getName().

Equals("myParameterName")) { viewParam = myParameter.getValue()); } } } // add your viewParam to the navigation string here The downside here is the hard coded name of the parameter somewhere deep inside your code. So it might be worthwhile to refactor once CODI comes with the new feature cwiki.apache. Org/EXTCDI/jsf-usage.

Html#JSFUsage-TypesafeNavigation.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions