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
3
votes
2 answers

Jsf 2.0-xhtml included always even if rendered is false

I have a home page xhtml where i am including 3 child xhtml based on conditions. The issue i am facing is , whatever be the scenario,Book.xhtml always gets invoked. I changed the rendered condition to false or move out to another condition, but the…
Neerocks
  • 43
  • 1
  • 1
  • 6
2
votes
1 answer

How to add a Validator to ui:include?

Mojarra 2.1 I have the facelet (namespaces ommited) inc.xhtml: I need to inlucde the view into another…
St.Antario
  • 26,175
  • 41
  • 130
  • 318
2
votes
2 answers

Action method is not called the second time

I am using templates, which in my main template I have a My problem is that the action method of any bean, is not called having been run on the previous page . Here is an example where when you click the…
Vitor Freitas
  • 166
  • 1
  • 10
2
votes
1 answer

ui:include includes page before prerender event jsf

I have a test.xhtml page where I defines an event page also has a insert tag in it.
MAK
  • 575
  • 1
  • 10
  • 23
2
votes
1 answer

Command Button inside composition page in JSF

I have the same problem as user1598186 has stated in his question here : p:commandButton doesn't call bean's method in an page However, no solution has been given (he has removed tags altogether and used variables…
sciFi
  • 161
  • 1
  • 2
  • 9
2
votes
2 answers

JSF where src is dynamic and primefaces

I am struggling with an issue where I am attempting to dynamically generate pages using JSF 2.1 and Primefaces for a kind of CMS project. My issue is that I am attempting to dynamically include a page that lives in a database using a custom…
csyperski
  • 992
  • 3
  • 15
  • 33
2
votes
1 answer

Dynamic ajax navigation with

Suppose I want to navigate in my application, and include different facelet pages dynamically. I have a commandLink like this:
Bruno Schäpper
  • 1,262
  • 1
  • 12
  • 23
1
vote
2 answers

Using dynamic ui:include inside ui:repeat results in NullPointerException

I want to create dynamic dialog windows by using and with . But there's an exception when I tried like below. main.xhtml
ogok
  • 219
  • 1
  • 4
  • 14
1
vote
0 answers

How to create a modular JSF 3.0 application?

This is the jakarta 9 and jsf 3 version of this classic topic from several years ago: How to create a modular JSF 2.0 application? The context is that I'm migrating a web app to tomcat 10.0.x, jakarta 9, jsf3, spring 6, etc as already detailed…
iljkr
  • 161
  • 1
  • 1
  • 8
1
vote
0 answers

JSF invalid path for ui:include with parameter

I've faced a strange problem recently with JSF 2.3 using Primefaces 6.2. I use an ui:include with GET parameter directly in src like so: When I run code in netbeans (tomcat 9.0) on Linux everything work great:…
pippo
  • 774
  • 6
  • 10
1
vote
0 answers

Different behaviour of ui:param in Mojarra vs MyFaces when used in includes of templates

Sorry if this is known, but I could not find it by searching. We were considering switching to MyFaces 2.2 instead of Mojarra. But we see one difference with the facelets templating. We have this: a common template which has:
1
vote
1 answer

ui:include parameter passing does not work when remote page is included

I have a basic UI (index.html) that is divided into Header, Footer and Content. The content-page is either on the same (local.xhtml) server like the index.html or on another (remote.xhtml) server. Including the pages and dynamically reloading them…
Niko
  • 23
  • 4
1
vote
1 answer

Create MethodExpression in Java (and use in JSF)

I've been trying to get a "generic" dialog, with autocomplete functionality, to work for a few days now. Turns out, I was just creating the MethodExpression the "wrong way". So I thought I'd document this here. To reiterate: You want to dynamically…
Benjamin Maurer
  • 3,602
  • 5
  • 28
  • 49
1
vote
0 answers

ui:include not updateing on selection of row in dataTable

On selecting a row, I need to update the page which is in ui:insert of p:dialog. What my issue is when the page is loaded I can select the row and fetch the data. After selection of another row, I am not able to fetch. There is no action going…