Questions tagged [uiinclude]

JSF/Facelets tag to include a composition.

The <ui:include> is a Facelets tag which allows you to include a composition.

78 questions
36
votes
3 answers

How to ajax-refresh dynamic include content by navigation menu? (JSF SPA)

I'm just learning JSF 2 thanks to this site I had learned a lot in such a short time. My question is regarding how to implement a common layout to all my JSF 2 pages and have only the content part of the page refresh not the whole page whenever I…
royjavelosa
  • 2,048
  • 6
  • 30
  • 46
24
votes
1 answer

JSF Conditional includes, cause Component ID has already been found in the view

I know we can't repeat the ID of any component we have in the same view tree. I have a page which includes another pages by certain condition Like this...
18
votes
2 answers

Conditionally rendering an

I am trying to toggle a page that shows a . Before I just included the template and it would just show the table the whole time. Now I want to be able to toggle it on/off on the…
Gilbert V
  • 1,050
  • 5
  • 16
  • 43
7
votes
1 answer

How to access ui:param value in the managed bean

I have seen this question ask around a lots, however, none was properly answered so I decided to ask again. So if I have this: if I am in A.xhtml and I so in…
Thang Pham
  • 38,125
  • 75
  • 201
  • 285
5
votes
1 answer

How to pass bean action/listener method via of

I'm using to load a data table (I'm using Primefaces). I want use in the listener into the tag . I tested the code that is down, but not trigger the event onRowEdit or onRowCancel. This is my page: ...
5
votes
1 answer

Parameterized method call in with variable number of method parameters

I have a template that's part of a form to edit some element. The action to be performed is different depending on the page in which it is included. So I pass the action method as a parameter:
Tobías
  • 6,142
  • 4
  • 36
  • 62
5
votes
1 answer

How to use inside a ?

I want to inlude one page dynamically several times. Code: Now when I submit it persists only the last inlude. It remembers only…
gohohgle
  • 349
  • 1
  • 3
  • 10
4
votes
2 answers

JSF dynamically include src in "ui:include src="#{bean.pagePath}"

I tried to include multiple source page path using ui:include tag in different tabs. The problem is when i gave the source page path as static one means that page will be shown but if give the source page path from backing bean mean it won't include…
Mariyappan
  • 57
  • 1
  • 1
  • 4
4
votes
1 answer

Dynamic ui include and commandButton

I have a page which includes content from another page dynamically (this is done by a method in the bean) firstPage.xhtml This…
sciFi
  • 161
  • 1
  • 2
  • 9
4
votes
1 answer

The class behind ui:include JSF tag

How is the ui:include tag implemented? Where can I find its implementation(source code)?
Seitaridis
  • 4,459
  • 9
  • 53
  • 85
3
votes
1 answer

IntelliJ warns "Cannot resolve variable" on EL variables declared in parent page of include

I have created a table column which is defined in its own include file. This column is used by in a few other Facelets pages to be used in some datatables. The include column uses a variable called "linje" (which is a java class), which…
Stormfjes
  • 83
  • 1
  • 1
  • 8
3
votes
3 answers

Customize ui:include rendering to add prefix/postfix

I need to customize the ui:include renderer in a way that when it generates the HTML output also adds a comment stating the starting and the ending of the included file. Example, supposing a blank file.xhtml: Input
Fabio
  • 415
  • 1
  • 5
  • 14
3
votes
1 answer

throws javax.faces.view.facelets.TagAttributeException: Invalid path

I'm practicing JSF+JPA and got stuck with the following exception: 19/03/2013 00:04:18 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() for servlet [Faces Servlet] in context with path [/K19-Futebol] threw exception…
jMarcel
  • 958
  • 5
  • 24
  • 54
3
votes
1 answer

Dynamic depending on doesn't include anything

I am new to JSF and I am struggling with dynamicaly rendering included pages. My code looks like this: MenuBean @ViewScoped public class MenuBean implements Serializable { private MenuItem[] menuItems = new MenuItem[] { new…
svobol13
  • 1,842
  • 3
  • 25
  • 40
1
2 3 4 5 6