Thanks Oleg for your advice, but it didn't work either.
I tried with:
- "@this fluidGrid"
- "@this :form:fluidGrid"
- Without set the process attribute
All give me the same results. (Components inside fluidGrid are not processed). @this is needed for the actionListener to be processed. If I don't set the process attribute, @all is sent in the ajax request.
Since BV is not the issue, I simplified the test, focusing on component processing test. In conclusion, components inside fluidGrid are not processed, not matter if is an ajax request or not.
Code: Select all
@Named
@ViewScoped
public class Bean implements Serializable {
String value;
public void checkSubmitedValue() {
System.out.println("checkSubmitedValue Called");
System.out.println("value = " + value);
}
public String getValue() {return value;}
public void setValue(String value) {this.value = value;}
}
1st test: input and button are inside the fluidGrid
enter something in the input and click the button: nothing prints in the console -> button was not processed.
Code: Select all
<h:form id="form">
<pe:fluidGrid id="fluidGrid">
<pe:fluidGridItem>
<p:inputText id="input" value="#{bean.value}"/>
</pe:fluidGridItem>
<pe:fluidGridItem>
<p:commandButton id="button"
value="submit value"
actionListener="#{bean.checkSubmitedValue()}"/>
</pe:fluidGridItem>
</pe:fluidGrid>
</h:form>
2nd test: button is outside the fluidGrid
enter something in the input and click the button: checkSubmitedValue() is called, but print value = null no matter what you entered in the input -> input was not processed
Code: Select all
<h:form id="form">
<pe:fluidGrid id="fluidGrid">
<pe:fluidGridItem>
<p:inputText id="input" value="#{bean.value}"/>
</pe:fluidGridItem>
<pe:fluidGridItem>
</pe:fluidGridItem>
</pe:fluidGrid>
<p:commandButton id="button"
value="submit value"
actionListener="#{bean.checkSubmitedValue()}"/>
</h:form>
3rd test:Both input and button are outside the fluidGrid
enter something in the input and click the button: checkSubmitedValue() is called, and print what you have entered in input -> both components are processed
Code: Select all
<h:form id="form">
<pe:fluidGrid id="fluidGrid">
<pe:fluidGridItem>
</pe:fluidGridItem>
<pe:fluidGridItem>
</pe:fluidGridItem>
</pe:fluidGrid>
<p:inputText id="input" value="#{bean.value}"/>
<p:commandButton id="button"
value="submit value"
actionListener="#{bean.checkSubmitedValue()}"/>
</h:form>
4rd test: Repeat tests 1, 2, 3 setting ajax="false"
-> Same results in all tests.
PrimeFaces 4.0 | Extensions 1.1.0 | GlassFish 4.0 | Mojarra 2.2.4 | NetBeans 7.3.1