UI « Bean « JSF Q&A





1. change value in backing bean not reflected in UI    stackoverflow.com

The component is wired via value binding to a backing bean property.

<h:inputText id="number" value="#{backingBean.number}" validator="#{backingBean.validateNumber}" />
In the validation method the number value is changed
public void validateNumber(FacesContext facesContext, UIComponent component, Object value) ...

2. How to save an array in JSF with ui:repeat + h:inputText + managed bean    stackoverflow.com

In a postgres database I have a table with, among others, an int[] field. In my model I have a persisted bean that maps the table, including the int[] field. In this ...

3. Why does ui:Include behavior vary with different bean scopes?    stackoverflow.com

I have been tinkering around with ui:include lately and have found it to be fairly quirky in many of its behaviors. After a some testing, it seems to me like ...

4. JSF 2 dynamic ui:include reading old bean field value    stackoverflow.com

I've been scratching my head, trying to think why this no longer works. I've got a page with a dynamic <ui:include src="subpages/#{bean.subpage}.xhtml>, along with some commandLinks that are supposed to set ...

5. Programmatically create an in backing bean    stackoverflow.com

In a JSF page I have:

<h:form id="form">
   <h:panelGroup id="content" layout="block"/>
</h:form>
In a Java SessionScoped bean i have a method:
public void fillContent()
{
   UIComponent content = FacesContext.getCurrentInstance().getViewRoot().findComponent("form:content");
   content.getChildren().clear();
 ...

6. What is UI controller in JSF application?    stackoverflow.com

Possible Duplicate:
What components are MVC in JSF MVC framework?
Ok, almost everything is in title, but look at components of my application: JSF - for view EJB ...

7. how to retrieve all the elements created by ui repeat in backing bean    coderanch.com

Welcome to the JavaRanch, Alex! There's a "Code" button in the message editor that helps make stuff like what you did more readable. Rather than use ui:repeat, it looks like you should use a dataTable:

The less ...