ajax « Bean « JSF Q&A





1. Backing bean scopes. How they works?    stackoverflow.com

I have some misunderstanding with JSF backing bean scope. I am newbie in JSF and now write simple project and all my beans mostly have session scope. But if my site ...

2. JSF: How to add ajax functionality to component in backing bean?    stackoverflow.com

I want to incorporate the functionality to a HtmlCommandButton. How do I go about doing that? I can't seem to find too many examples on the web. ...

3. JSF 2.0 AJAX: Call a bean method from javascript with jsf.ajax.request (or some other way)    stackoverflow.com

Some background: I am building a custom JSF component. The component is basically a text editor and it should have a "Save" -button for saving the content string of the editor. ...

4. JSF 2.0: Render form fields with initial data using request-scoped beans (to update server data specific to current component)    stackoverflow.com

A pretty normal case: We have a 'portlet' composite component that has two states: expanded and collapsed. Portlets start as expanded, but user can collapse them by clicking on them. This state ...

5. JSF 2.0: What happens to object references of a managed bean across multiple ajax requests?    stackoverflow.com

Assume I have a session scoped bean with object references in it, where the bean extends from an abstract generic base class. Example:

public abstract class AbstractCrudController<K, E> implements Serializable {
  ...

6. JSF - Change panelGroup by using ajax calls - Beans, EL and?    stackoverflow.com

I have to make a sort of switch of some panelGroup UI. About the view section, i made this :

<h:panelGroup layout="block" id="profile_content">
    <h:panelGroup layout="block" styleClass="content_title">
    ...

7. JSF alias beans not working completely with ajax4j    stackoverflow.com

I am trying to work on the ajax part where in on tabout of the field I want to have few fields populated on the form..I tried a sample example and ...

8. JSF Outputlabel click event calling bean method    stackoverflow.com

Currently I am creating a web menu consists of a collection of <h:outputLabel>. It was good since the label can be combined with javascript OnClick event. However when I want to ...

9. Accessing return value from bean function using JSF 2.0 Ajax response?    stackoverflow.com

I'm builiding a scheduling application using JSF 2.0 where users can add items to a calendar then edit those objects. I'm using Ajax quite extensively to keep the page from refreshing. The problem ...





10.  howto execute bean method on blur?    stackoverflow.com

I have <h:inputText> on form and what I need is to execute some method from backing bean on BLUR event:

public void test()  
{  
  System.out.print("HELLO!");  
}  ...

11. Why does the navigation only work correctly when the backing bean is session-scoped?    stackoverflow.com

Consider the following page (header and stuff omitted for brevity):

<h:body>
    <h:form>
        <h:inputText 
         ...

12. JSF ajax commandbutton from multiple forms within same page reinitiliazes the viewscoped bean    stackoverflow.com

changeThe page has 2 forms. In the first form, the ajax-button initializes an attribute of the viewscoped managed bean. In the second form, the ajax-button uses that attribute to do some ...

13. Ajax, conditional rendering and backing beans    stackoverflow.com

I am trying to display a page where the user, by the appropriate selection using a radio button, sees either a textbox or a combo box. This is relatively easy and ...

14. JSF 2.0,partially rendered form field input value not updated in the bean    stackoverflow.com

I have an Edit product form which is pre-populated with values from DB . User can change one or more values and post the form back. One input field called t:inputFileUpload ...

15. JSF 2 : Why my first bean is called during an ajax action to a second bean?    stackoverflow.com

I have two backbeans, one to retrieve datas in a ui:repeat and one to perform an action. When my page is rendered, if I perform an action with the second backbean, the ...

16. How to prevent Backing Bean loading data on Ajax action?    stackoverflow.com

I am using: JSF 2.0, GlassFish Server 3.0. The backing bean:

@ManagedBean(name = "Users")
@ViewScoped
public class ModelUsers {

    /** Creates a new instance of ModelUsers */
    public ModelUsers() ...





17. Every time I make an Ajax request in JSF2 I am getting a new session bean,why?    stackoverflow.com

Hi I am getting a new session bean for every ajax request made to this Bean... Can any of you tell me why ?

...... imports ......
@Named(value = "userController")
@SessionScoped
public class UserController implements ...

18. How do I add ajax behavior to a dynamically created component in a backing bean?    stackoverflow.com

In respose to Infragile's request in another thread, I am asking this as a separate question rather than a followup. Here is the problem I am attempting to address: I'm migrating from JSF1.2 ...

20. How do I update a bean value from an AJAX call?    coderanch.com

It depends in part on how you're doing AJAX. RichFaces provides AJAX support integrated into its JSF tagset. On that platform, AJAX does a partial page submit, optionally responded to with a partial page refresh. Meaning that the response may be for the whole page or just indicated sections of the page. You can limit the set of bean properties that ...

21. Ajax call, backing bean and validation    coderanch.com