• Post Reply Bookmark Topic Watch Topic
  • New Topic

Primefaces not rendering any tags in browser, dis[alyin the plane text  RSS feed

 
Narendra Reddy Kadiri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Primfaces not rendering in my browser, i have configured jsf libs and primefaces libs, output text content is displaying and fields and buttons are not

package com.naren;

import javax.faces.bean.RequestScoped;
import javax.faces.bean.SessionScoped;
import javax.inject.Named;

@Named("basicView")
@RequestScoped
@SessionScoped
public class BasicView {

private String text;

public String getText() {
return text;
}

public void setText(String text) {
this.text = text;
}
}

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:mp="http://primefaces.org/ui/material">
<head>
<title>Welcome Page</title>
</head>
<body>
<h:head>
<h:form>
<h:panelGrid columns="4" cellpadding="5">
<h:outputLabel for="name" value="Name:" style="font-weight:bold" />
<p:inputText id="name" value="#{basicView.text}" />
<p:commandButton value="Submit" update="display"
icon="ui-icon-check" />
<h:outputText id="display" value="#{basicView.text}" />
</h:panelGrid>
</h:form>
</h:head>
</body>
</ui:composition>
index.JPG
[Thumbnail for index.JPG]
Index.xhtml file
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!