Demo Program

Java code posted by Babu
created at 12 Sep 02:34

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.ocjpmock.client.beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import com.ocjpmock.client.utils.OcjpBeans;
import com.ocjpmock.server.core.batch.Batches;

@ManagedBean
@ViewScoped
public class BatchBean {

  private Batches batches;

  public BatchBean() {
    if (this.batches == null) {
      this.batches = new Batches();
    }

  }

  public void triggerChapterQuestionCount() {
    this.batches.updateChapterCount();
  }

  public Batches getBatches() {
    return batches;
  }

  public void setBatches(Batches batches) {
    this.batches = batches;
  }

  public void triggerChapterUpdate() {
    OcjpBeans.getOcjpAppBean().init();
  }

}
705 Bytes in 2 ms with coderay