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
1
vote
0 answers

How to use FaceletContext.includeFacelet() properly?

I am using Mojarra 2.2.8 and Primefaces 5.2. I need to include different facelets on ajax request, so i use this code in managed bean: FaceletContext faceletContext = (FaceletContext)…
1
vote
0 answers

How to refresh an included page passing a on selectOneMenu change?

I am using Mojarra 2.2.11 Starting from How to ajax-refresh dynamic include content by navigation menu? with one leftMenu part (in one xhtml) and one content part where another xhtml #{pageBean.page} is included on the page: I want to update the…
LEK
  • 83
  • 2
  • 11
1
vote
1 answer

JSF recursive ui:include jumbles output tree on multiple postback

I have a report that displays college course enrollment information in an expandable tree format. It displays the course prefix with the summary enrollment numbers and the specific course enrollment numbers when the prefix is clicked on. The report…
Psirax
  • 51
  • 7
1
vote
0 answers

Changes in ui:include page are only refreshed after a couple of minutes

I have a page with a kind of "pop-up" in the bottom: but when the contents of that file are changed,…
SMSk
  • 693
  • 8
  • 25
1
vote
1 answer

ui:insert inside ui:include is not working

Is it possible to write inside ? When I am trying to use the content is not visible. When trying this with JSF 1.2, this is working but not with JSF 2.2. Can anyone help me in understanding what…
user1661892
  • 103
  • 4
  • 13
1
vote
1 answer

ManagedBean inherits another MB. How to reuse the main class JSF as a component?

My problem is a little bit complex, but I'll give an example. I already have a user.xhtml page (and a MB that uses it) where I register an user
tpcordeiro
  • 441
  • 1
  • 6
  • 13
1
vote
1 answer

How to define custom navigation rules for included component?

I'm trying the include a component (with ui:include) and set a navigation rule for the caller page. The included component has a form; when submitted I want to display a feedback message (like growl) and conditionally display the included panel…
nuno
  • 1,771
  • 1
  • 19
  • 48
1
vote
1 answer

tag in JSF 2.0 not working

I am pretty new to JSF and facelets programming, I have followed the instructions in this link How to include another XHTML in XHTML using JSF 2.0 Facelets? to use the tags but strangely i see that the is not working on the…
Snehan Solomon
  • 432
  • 3
  • 17
1
vote
1 answer

Is it possible to ui:include files from an absolute file path rather than relative webapp path?

Suppose I have the following in my JSF page: If this is changing to be static content loading from a non-webapp path - is is possible to change my ui:include to an absolute path on the…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
1
vote
2 answers

jsf 2 ui:include .html give error "XML Parsing Error: no element found"

I include a header.html (not .xhtml) to my page, but when I preview my page, it give me error "XML Parsing Error: no element found". I do know that it is the tag no properly closed issue, but since my header page is a html file, not a xhtml file, it…
heng heng
  • 693
  • 3
  • 13
  • 25
1
vote
1 answer

JSF: ui:include and the (broken) view scope

I have a JSF page with some common elements and then 4 parts that are dynamically loaded and included based on various user actions. I have beans which encapsulate the functionality of the various includes, and the structure is something like…
moneyt
  • 452
  • 8
  • 18
1
vote
1 answer

hide component of facelet template ui:include ?

how can I hide a facelets component I am including in a template? in my template.xhtml:
user840930
  • 5,214
  • 21
  • 65
  • 94
1
vote
1 answer

Display dynamic editors in JSF with ui:include

I want to display a group of editors in a tabview. Each editor has a property called component, that stores the rendered editor. Simple editors use HTML tags to render the editor, whereas complex ones use editors defined in another pages. I have…
Seitaridis
  • 4,459
  • 9
  • 53
  • 85
0
votes
0 answers

How to Make a Dynamic Composite Component

Just like ui:include can be dynamic by calling the src as so
0
votes
0 answers

JSF2 custom component, parameter autocompletion with a local file path

My First Question, after years, thank you all and stackoverflow ;-) I code a new Component for JSF2 and use it to include other templates. It works perfectly for me.