Hello ,
I have an issue with skeditor , i created an project but when i run the xhtml page , nothing is print on my web page and I have no error
I am using maven , jdk1.8 , Primeface5.3, primefaces-extensions6.0.0, resources-ckeditor6.0.0, chrome 56.0.2924.87
Kindly help me
<p:growl id="growl" showDetail="true" />
<p:inplace>
<pe:ckEditor id="editor" value="#{editorController.content}"
interfaceColor="#D8D8D8" >
<p:ajax event="save" listener="#{editorController.saveListener}" update="growl"/>
</pe:ckEditor>
</p:inplace>
import java.io.Serializable;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import javax.faces.context.FacesContext;
@ManagedBean
@ViewScoped
public class EditorController implements Serializable {
private static final long serialVersionUID = 20111020L;
private String content;
private String secondContent;
private String color = "#33fc14";
public EditorController() {
content = "Hi Showcase User";
secondContent = "This is a second editor";
System.out.println("icicic!!!!!!!!!!!!!!!!");
}
public void saveListener() {
content = content.replaceAll("\\r|\\n", "");
FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Content",
content.length() > 150 ? content.substring(0, 100) : content);
FacesContext.getCurrentInstance().addMessage(null, msg);
}
public void secondSaveListener() {
secondContent = secondContent.replaceAll("\\r|\\n", "");
final FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, "Second Content",
secondContent.length() > 150 ? secondContent.substring(0, 100) : secondContent);
FacesContext.getCurrentInstance().addMessage(null, msg);
}
public void changeColor() {
if (color.equals("#1433FC")) {
color = "#33fc14";
} else {
color = "#1433FC";
}
}
public String getContent() {
System.out.println("iciiiiiii");
return content;
}
public void setContent(final String content) {
this.content = content;
}
public String getColor() {
return color;
}
public void setColor(final String color) {
this.color = color;
}
public String getSecondContent() {
return secondContent;
}
public void setSecondContent(final String secondContent) {
this.secondContent = secondContent;
}
}
Primeface & skeditor : no text area print nor menu
Extensions 6.0.0 requires PF 6.0 not PF 5.3.
Then simply follow this showcase example: http://www.primefaces.org/showcase-ext/ ... cUsage.jsf
Then simply follow this showcase example: http://www.primefaces.org/showcase-ext/ ... cUsage.jsf
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests