综合技术

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

微信扫一扫,分享到朋友圈

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

In my application, I use PrimeFaces‘s


inside


component to implement update feature as following:

And this is my Managedbean:

@ManagedBean(name = "mrBean")
@ViewScoped
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
YUMMY!
阅读原文...

微信扫一扫,分享到朋友圈

PrimeFaces: & lt; P: inline & gt; Inside & lt; P: dataTabl…
0
Hello, buddy!

[ Paper Summary ] Fast and Robust Fixed-Point Algorithms for Independent Component Analysis

上一篇

SALSA add-on for UMA DCS

下一篇

评论已经被关闭。

插入图片

热门分类

往期推荐

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

长按储存图像,分享给朋友