首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

Richfaces 四 ExtendedPartialViewContextImpl swallows exceptions

2014-01-09 
Richfaces 4 ExtendedPartialViewContextImpl swallows exceptions?????????????????????????????????????

Richfaces 4 ExtendedPartialViewContextImpl swallows exceptions
??????????????????????????????????????????????????? "PhaseId passed to " +
????????????????????????????????????????????? " PhaseAwareContextCallback: " +
??????????????????????????????????????????????????? curPhase.toString());
??????????????? }
??????????? }
??????????? catch (IOException ex) {
??????????????? ex.printStackTrace();
??????????? }

??????????? // Once we visit a component, there is no need to visit
??????????? // its children, since processDecodes/Validators/Updates and
??????????? // encodeAll() already traverse the subtree.? We return
??????????? // VisitResult.REJECT to supress the subtree visit.
??????????? return VisitResult.REJECT;
??????? }

JSF 2.1.17 PartialViewContextImpl:
public VisitResult visit(VisitContext context, UIComponent comp) {
??????????? try {

??????????????? if (curPhase == PhaseId.APPLY_REQUEST_VALUES) {

??????????????????? // RELEASE_PENDING handle immediate request(s)
??????????????????? // If the user requested an immediate request
??????????????????? // Make sure to set the immediate flag here.

??????????????????? comp.processDecodes(ctx);
??????????????? } else if (curPhase == PhaseId.PROCESS_VALIDATIONS) {
??????????????????? comp.processValidators(ctx);
??????????????? } else if (curPhase == PhaseId.UPDATE_MODEL_VALUES) {
??????????????????? comp.processUpdates(ctx);
??????????????? } else if (curPhase == PhaseId.RENDER_RESPONSE) {
??????????????????? PartialResponseWriter writer = ctx.getPartialViewContext().getPartialResponseWriter();
??????????????????? writer.startUpdate(comp.getClientId(ctx));
??????????????????? // do the default behavior...
??????????????????? comp.encodeAll(ctx);?????????
??????????????????? writer.endUpdate();
??????????????? } else {
??????????????????? throw new IllegalStateException("I18N: Unexpected " +
??????????????????????????????????????????????????? "PhaseId passed to " +
????????????????????????????????????????????? " PhaseAwareContextCallback: " +
??????????????????????????????????????????????????? curPhase.toString());
??????????????? }
??????????? }
??????????? catch (IOException ex) {
??????????????? if (LOGGER.isLoggable(Level.SEVERE)) {
??????????????????? LOGGER.severe(ex.toString());
??????????????? }
??????????????? if (LOGGER.isLoggable(Level.FINE)) {
??????????????????? LOGGER.log(Level.FINE,
??????????????????? ex.toString(),
??????????????????? ex);
??????????????? }
??????????????? throw new FacesException(ex);
??????????? }

??????????? // Once we visit a component, there is no need to visit
??????????? // its children, since processDecodes/Validators/Updates and
??????????? // encodeAll() already traverse the subtree.? We return
??????????? // VisitResult.REJECT to supress the subtree visit.
??????????? return VisitResult.REJECT;
??????? }

?

热点排行