Highlight inside p:panel
<dependency>
<groupId>org.jeesl</groupId>
<artifactId>jeesl-jsf</artifactId>
</dependency>
<groupId>org.jeesl</groupId>
<artifactId>jeesl-jsf</artifactId>
<groupId>org.jeesl</groupId>
<artifactId>jeesl-jsf</artifactId>
Highlight inside p:panel
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<status code="pdf" visible="true" position="1" xmlns="http://ahtutils.aht-group.com/status" xmlns:ns5="http://www.jeesl.org/symbol" xmlns:ns2="https://www.jeesl.org/jeesl/xsd/system/security" xmlns:ns4="http://exlp.sf.net/io" xmlns:ns3="http://ahtutils.aht-group.com/navigation">
<langs>
<lang key="de" translation="PDF"/>
<lang key="en" translation="PDF"/>
<lang key="fr" translation="PDF"/>
<lang key="ind" translation="PDF"/>
<lang key="kin" translation="PDF"/>
</langs>
<descriptions>
<description key="de"></description>
<description key="en"></description>
<description key="fr"></description>
<description key="ind"></description>
<description key="kin"></description>
</descriptions>
</status>
Highlight
The j:highlight component allows to output text and apply a syntax highlight.
<p:panel header="Highlight inside p:panel" styleClass="jeesl-panel">
<j:highlight resource="/jeesl/code/components/output/highlight/pom.xml"/>
</p:panel>
<p:tabView styleClass="jeesl-tabs">
<p:tab title="From/To (jeesl-tabs)">
<j:highlight resource="/jeesl/code/components/output/highlight/pom.xml" from="2" to="3"/>
</p:tab>
<p:tab title="From/To 2 (jeesl-tabs)">
<j:highlight resource="/jeesl/code/components/output/highlight/pom.xml" from="2" to="3"/>
</p:tab>
</p:tabView>
<p:panel header="Highlight inside p:panel" styleClass="jeesl-panel">
<j:highlight value="#{outputHighlightBean.xml}"/>
</p:panel>
</ui:composition>
@Named @SessionScoped
public class OutputHighlightBean extends AbstractJeeBean implements Serializable
{
final static Logger logger = LoggerFactory.getLogger(OutputHighlightBean.class);
private static final long serialVersionUID = 1L;
private final XmlStatusFactory<IoLang,IoDescription,IoFileType> xfStatus;
private String xml; public String getXml() {return xml;}
public OutputHighlightBean()
{
xfStatus = new XmlStatusFactory<>(XmlStatusQuery.get(XmlStatusQuery.Key.StatusExport).getStatus());
}
@PostConstruct
public void init()
{
super.initSecurity();
Status xStatus = xfStatus.build(fUtils.fByEnum(IoFileType.class,IoFileType.Code.pdf));
xml = JaxbUtil.toString(xStatus);
}
}
Name | Required | Default | Description |
---|---|---|---|
resource | false | A resource accessible from the classpath | |
value | false | A value binding to a String | |
between | false | ||
from | false | 0 | |
to | false | -1 | |
lang | false | xml | NYI: Highlightning for a specific lanaguage, e.g. js, java, xml ... |
tab | false | 2 | NYI: The tabsize |
relativeTab | false | true | NYI: Need to check what this really is ... |