PrimeFaces: & lt; P: inline & gt; Inside & lt; P: dataTabl…

综合技术 2018-08-19 阅读原文

In my application, I use PrimeFaces's


component to implement update feature as following:

And this is my Managedbean:

@ManagedBean(name = "mrBean")
public class MrBean {
   private List menu;
   private boolean    canConfirm;

   public void changeName() {
      this.canConfirm = true;

   public void confirm() {
      System.out.println("Updated database!");

When I finished editing name
and clicked Save, my Eat button was not enabled.

I'd be very grateful if you could show me what I have done wrong here. I am using PrimeFaces 3.0.RC2.

Works just fine for me,

I guess you omitted some code from the one you posted on purpose, but if not, will post the one I generated beside the one you posted...

private String  someText ="xxx";

public String getSomeText() {
    return someText;

public void setSomeText(String someText) {
    this.someText = someText;

 public boolean isReadyToEat() {
    return readyToEat;

public void setReadyToEat(boolean readyToEat) {
    this.readyToEat = readyToEat;

and wrapped the code of the xhtml with

and it works 100%

output is

Ready to eat: true
Hello, buddy!

责编内容by:Hello, buddy!阅读原文】。感谢您的支持!


Safari: jQuery functionality does not wo... I have a page dashboard.asp It opens a dialog and using ajax loads... profile.asp Within profile.asp there are various jquery function...
AJAX Control Toolkit Publishes on Visual Studio On... I have a project that I've spent over a week on so far (so starting fresh won't really work that well), that includes use of the AJAX Control Toolkit ...
Jquery ajax loads content from a button in the con... I'm using jQuery and ajax to load pages without reloading the entire website and I ran into a problem. This is the jquery script: $(function(){ $("a...
由回调函数说开来 这几天涉及一些前端网络请求的问题,听得最多的就是ajax发送请求, 回调函数 回调函数的概念我在文章中有提到,是作为另一个函数的参数被调用的函数称之为回调函数。 之所以称之为回调,是因为我们正常调用系统内部函数时是正调,那么反过来系统调用自定义的函数就称之为回调。典型的像Ajax上传...
Action of the render list Grails Ajax Trying to render all the Contacts using ajax ( This is a snippet ) So on click, it will list the contacts in a div on the update action...