Making Distinctions Between Different Kinds of JSF Managed-Beans

This is a very subjective question. I personally disagree that article and find that it’s giving really bad advice to starters. Model Managed-Bean: This type of managed-bean participates in the “Model” concern of the MVC design pattern. When you see the word “model” — think DATA. A JSF model-bean should be a POJO that follows … Read more

How to provide a file download from a JSF backing bean?

Introduction You can get everything through ExternalContext. In JSF 1.x, you can get the raw HttpServletResponse object by ExternalContext#getResponse(). In JSF 2.x, you can use the bunch of new delegate methods like ExternalContext#getResponseOutputStream() without the need to grab the HttpServletResponse from under the JSF hoods. On the response, you should set the Content-Type header so … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)