JavaBean « Development « JSF Q&A





1. Head start JavaServer Faces    stackoverflow.com

I have a couple of probably common thoughts on JavaServer Faces (JSF) which I want to clear up.

  • Is it possible to just add a Java Class and Call methods ...

2. When method marked with @PostConstruct called?    stackoverflow.com

At which phase of the JSF request processing lifecycle, the backing bean method marked with @PostConstruct called?

3. JSF - Ajax call - What is it wrong on this code?    stackoverflow.com

I think the best way to resolve this problem is just to paste my code : Selector bean

@ManagedBean(name="selector")
@RequestScoped
public class Selector {
    @ManagedProperty(value="#{param.page}")
    private String page;
  ...

4. JavaBean SQL query to MySQL db, shows twice the results only in JSF    stackoverflow.com

I'm having a weird problem when querying a MySQL database from a Javabean and showing it in JSF. (Java code at the bottom) The table contains the following registers:

mysql> select * from ...

5. Accessing Javascript variables from JSF    stackoverflow.com

I have a JSF file that needs to get populated from the data I get from the JS function that I get from Ajax call to a web-service. The latter part ...

6. Exchange data in real time over AJAX with multiple threads    stackoverflow.com

I am developing an application in JSF 2.0 and I would like to have a multiline textbox which displays output data which is being read (line by line) from a file ...

7. @PreDestroy never called on @ViewScoped    stackoverflow.com

I have a @ViewScoped bean that has a method with an @PreDestroy annotation that should make sure some remote connections are closed. However, the method is not called when the user ...

8. How to call javabeans methods from within javascript functions?    stackoverflow.com

How can I call javabeans methods inside javascript functions? I need with no success the following code:

        <script type="text/javascript">
       ...

9. JSF 1.2 to 2.0 annotation change    stackoverflow.com

I migrated from 1.2 to 2.0 and I moved my managed bean names and scopes from the faces-config.xml to the beans using annotations. One bean(sessionscoped) has an instance variable which gets the ...





10. f:param value always null    stackoverflow.com

I have a Login page (user and pass fields) when I click submit I want to reuse just the value of the user. This user is on a bean userBean that ...

11. SelectOneMenu + JavaBean    coderanch.com