This content has been marked as final.
Show 4 replies
-
1. Re: Problem with 2 htmlCommandLink and target
marinew Aug 22, 2008 5:55 PM (in response to marinew)I forgot to tell : if I separate htmlCommandLink components in 2 forms, then it works correctly.
-
2. Re: Problem with 2 htmlCommandLink and target
ilya_shaikovsky Sep 4, 2008 3:48 AM (in response to marinew)please also add bean code.
-
3. Re: Problem with 2 htmlCommandLink and target
marinew Sep 4, 2008 7:11 AM (in response to marinew)Thanks for your reply. Here is the bean code.
For "#{sessionUtilisateurBean.targetAffichageDoc}" :public final static String TARGET_AFFICHAGE_DOC = "GCM_IMPR_DOC"; public String getTargetAffichageDoc() { return TARGET_AFFICHAGE_DOC; }
For "#{compteRenduOperatoireController.imprimer}" :public String imprimer() { Rdv rdv = rdvService.lireRdvById(f().getRdv().getId()); Fichier f = null; try { f = docService.imprimerCourrierOuDocValide(rdv.getCompteRenduOperatoire().getId()); FacesUtil.ecrireFichierReponseHttp(f.getContenu(), f.getType(), f.getNom(), false); } catch (DocumentException e) { addMessage(new MessageUtilisateur(e.getClefMessageUtilisateur(), GraviteMessage.ERROR, e.getParametresMessageUtilisateur()), WebKeys.BUNDLE_SERVICES.getKey()); } return GcmKey.ECRAN_ACTUEL.getKey(); // Return an empty String. }
For "#{compteRenduOperatoireController.accesEcranDiffusion}" :public String accesEcranDiffusion() { log.debug("accesEcranDiffusion"); Map<WebKeys,Serializable> objetsATransmettre = f().getObjetsATransmettre(); objetsATransmettre.put(WebKeys.PARAM_CRO_BEAN_CONTROLLER, f().getNomBeanControlleurEcranSuivant()); DiffusionDocsPatientController ctl = (DiffusionDocsPatientController)getBean(DiffusionDocsPatientController.NOM_BEAN_CTRL); return ctl.initialiserFormPourDocument( f().getRdv().getCompteRenduOperatoire().getId(), NOM_BEAN_CTRL, objetsATransmettre); }
For "#{compteRenduOperatoireController.terminer}" :public String terminer() { boolean ok = true; ModeleReponseServiceUI reponse; try { reponse = gestionDocService.modifierStatutDoc( f().getRdv().getCompteRenduOperatoire().getId(), StatutDocument.TERMINE); } catch (ReponseServiceUIException e) { reponse = e.getReponse(); ok = false; } addMessage(reponse.getMessagesUtilisateurs(), WebKeys.BUNDLE_SERVICES.getKey()); if (ok) return ecranSuivant(); else return GcmKey.ECRAN_ACTUEL.getKey(); }
Thanks in advance for your help. -
4. Re: Problem with 2 htmlCommandLink and target
marinew Sep 8, 2008 9:42 AM (in response to marinew)I also have the same problem with 2 panelMenuItems in the same form.
I created JIRA entry : https://jira.jboss.org/jira/browse/RF-4420