-
1. I can not use ui:composition in jsf 2.x . Is there a relation with richfaces 4.0.0.Final?
lfryc Apr 4, 2011 5:36 AM (in response to ainanmis)Hello,
could you provide your simple page code which triggers navigation?
Does action method in backing bean perform navigation?
Have you configured navigation rules in faces-config.xml?
-
2. I can not use ui:composition in jsf 2.x . Is there a relation with richfaces 4.0.0.Final?
ainanmis Apr 4, 2011 6:05 AM (in response to lfryc)<h:commandButton style="border-color:blue;" action="#{loginBean.control}" value="Giriş"></h:commandButton>
in JSF 2.x there is no need to configure face-config.xml for navigation.
I am not using backing bean.
-
3. I can not use ui:composition in jsf 2.x . Is there a relation with richfaces 4.0.0.Final?
ainanmis Apr 4, 2011 6:54 AM (in response to ainanmis)When I use f:event tag , my template page does not work. I assume that richfaces 4.0.0.Final has a problem with this tag in jsf 2.x.
-
4. I can not use ui:composition in jsf 2.x . Is there a relation with richfaces 4.0.0.Final?
lfryc Apr 4, 2011 7:05 AM (in response to ainanmis)Abdulkerim, RichFaces doesn't perform any special actions for templating.
You need to check if #{loginBean.control} actually triggered navigation (debug/log the outcome).
-
5. I can not use ui:composition in jsf 2.x . Is there a relation with richfaces 4.0.0.Final?
ainanmis Apr 4, 2011 7:22 AM (in response to lfryc)My control method returns "main?faces-redirect=true" . I checked it in debug. page url is changing,so naviagtion is successful. I am using <f:event type="preRenderView" listener="#{loginBean.checkLogin}"/>. If I remove this tag , It is working. I assume that the problem is related with f:event tag.
-
6. Re: I can not use ui:composition in jsf 2.x . Is there a relation with richfaces 4.0.0.Final?
lfryc Apr 4, 2011 7:57 AM (in response to ainanmis)I have tried following and it works for me with RichFaces on classpath.
Could you please try to minify your sample to reproduce it?
link.xhtml
<h:form> <h:commandLink action="index?faces-redirect=true" value="Link" /> </h:form>
index.xhtml
<f:metadata> <f:event listener="#{richBean.preRenderView}" type="preRenderView" /> </f:metadata>
RichBean.java
public class RichBean implements Serializable { public void preRenderView(ComponentSystemEvent event) { System.out.println("preRenderView event"); } }
-
7. I can not use ui:composition in jsf 2.x . Is there a relation with richfaces 4.0.0.Final?
ainanmis Apr 4, 2011 10:57 AM (in response to lfryc)I used preRenderEvent with f:view in my old project. I did not used with f:metadata. I will try your advice and return to you tomorrow. Thanks for your advice.
-
8. I can not use ui:composition in jsf 2.x . Is there a relation with richfaces 4.0.0.Final?
ainanmis Apr 4, 2011 11:05 AM (in response to ainanmis)Lukas, I tried and It worked. Thanks for your help