Opening a page into a Layout unit
Please I have a Layout with North, East, West and Center and I have a menu on my left, I don't know to make it in such a way that when I click on one menu or link, the page should open on the centre unit
Eclipse Helios 3.6 | Glassfish 3.1 | PrimeFaces 2.2.1
I answer mysel: I found a post where it's explained:
http://primefaces.prime.com.tr/forum/vi ... ter#p10643
http://primefaces.prime.com.tr/forum/vi ... ter#p10643
PrimeFaces 3.1 , Mojarra 2.1.2, Apache Tomcat 7, Spring 3, Hibernate 3, Windows 7
Hi oriolvc,
I am new on prime faces. Working for same thing with tree that, If user click on any node, the corresponding xhtml page should be opened/displayed in center layout unit.
Here your provided link is dead, can you please help me for completing this task.
Regards
fihsak
I am new on prime faces. Working for same thing with tree that, If user click on any node, the corresponding xhtml page should be opened/displayed in center layout unit.
Here your provided link is dead, can you please help me for completing this task.
Regards
fihsak
Hi,
This is a typically use case. There are many posts about that. You can use either "rendered" attribute or dynamically ui:include. But be aware of issue with ui:include viewtopic.php?f=3&t=14997
This is a typically use case. There are many posts about that. You can use either "rendered" attribute or dynamically ui:include. But be aware of issue with ui:include viewtopic.php?f=3&t=14997
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
Hi,
I had checked it, but having problem to set value of variable using actionListener as method is not being identifying and EClips throws exception
i-e.
kindly check my code below and comment:
test.html.xhtml
test.java
Java file is adde in managed beans on session in faces-config.xml
Thanks & Regards
fihsak
I had checked it, but having problem to set value of variable using actionListener as method is not being identifying and EClips throws exception
i-e.
Code: Select all
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: EL Expression Unbalanced: ... #{test.setURL('firstpanel')" update = ":main" ><h:outputText value="Test Link"/></h:outputLink>
root cause
javax.el.ELException: EL Expression Unbalanced: ... #{test.setURL('firstpanel')" update = ":main" ><h:outputText value="Test Link"/></h:outputLink>
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.1 logs.
--------------------------------------------------------------------------------
GlassFish Server Open Source Edition 3.1.1
test.html.xhtml
Code: Select all
<html xmlns="http://www.w3c.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.prime.com.tr/ui"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
</h:head>
<h:body>
<p:layout fullPage="true">
<p:layoutUnit id="top" position="top" height="110" resizable="false" closable="false" collapsible="false" style = "text-align:center">
<p:graphicImage value="/images/mcb.jpg" position = "middle" />
</p:layoutUnit>
<p:layoutUnit id="left" position="left" width="200" minWidth="200" maxWidth="300" resizable="true" closable="false" collapsible="true">
<h:form>
<p:commandLink actionListener="#{test.setURL('firstpanel')}" update = ":main" ><h:outputText value="Test Link"/></p:commandLink>
</h:form>
</p:layoutUnit>
<p:layoutUnit id="main" position="center" resizable="true" closable="false" collapsible="true">
<ui:include src="#{test.url}" />
</p:layoutUnit>
</p:layout>
</h:body>
</html>
Code: Select all
public class test{
private TreeNode root;
private String url = "I am test";
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
}
Thanks & Regards
fihsak
-
- Information
-
Who is online
Users browsing this forum: No registered users and 49 guests