📜  RichFaces a4j:log

📅  最后修改于: 2021-01-08 12:16:50             🧑  作者: Mango

RichFaces< h4="">

< a4j:log >组件生成JavaScript,该JavaScript打开调试窗口,记录请求,响应和DOM更改等应用程序信息。

它不需要任何其他用于基本功能的属性。

下表包含 >的样式类和相应的外观参数。

Class Function Skin Parameters Mapped CSS properties
.rf-log It is used to define styles for the log. generalTextColor color
.rf-log-popup It is used to define styles for the log when it appears as a pop-up. No skin parameters.
.rf-log-popup-cnt It is used to define styles for the content of the log pop-up. No skin parameters.
.rf-log-inline It is used to define styles for the log when it appears in-line. No skin parameters.
.rf-log-contents It is used to define styles for the log contents. No skin parameters.
.rf-log-entry-lbl It is used to define styles for a label in the log. No skin parameters.
.rf-log-entry-lbl-debug It is used to define styles for the debug label in the log. No skin parameters.
.rf-log-entry-lbl-info It is used to define styles for the information label in the log. No skin parameters.
.rf-log-entry-lbl-warn It is used to define styles for the warning label in the log. No skin parameters.
.rf-log-entry-lbl-error It is used to define styles for the error label in the log. No skin parameters.
.rf-log-entry-msg It is used to define styles for a message in the log. No skin parameters.
.rf-log-entry-msg-debug It is used to define styles for the debug message in the log. No skin parameters.
.rf-log-entry-msg-warn It is used to define styles for the warning message in the log. No skin parameters.
.rf-log-entry-msg-error It is used to define styles for the error message in the log. No skin parameters.
.rf-log-entry-msg-xml It is used to define styles for an XML message in the log. No skin parameters.

在下面的示例中,我们正在实现< a4j:log >组件。本示例包含以下文件。

JSF文件

// ajax-log.xhtml



Ajax Log












托管豆

// User.java

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
@ManagedBean
@RequestScoped
public class User {
String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}

输出:

当我们在文本框中输入文本时,它将显示日志信息。

<>