facelets Questions
2
Solved
I have this configuration on my web application. 2 beans :
1° Bean - It checks the login;
@ManagedBean(name="login")
@SessionScoped
public class Login {
private String nickname;
private String ...
1
Solved
As always, i'm a little confused.
Here https://community.jboss.org/wiki/ModularWebAppsWithJSF2 i've learned that it is easy and works out of the box to bundle templates in separate jars since JSF ...
2
Solved
Other than c:if or c:choose, are there any better ways to implement conditional rendering of 1 component out of several components. Something like switch case for JSF pages?
1
Solved
I want to use jQuery Validate plugin with JSF for client side form validation. I am finding basic difficulty in importing the resources.
In my JSF page I have
<h:outputScript library="js...
Valiant asked 1/2, 2012 at 8:49
1
Solved
After these questions:
https://stackoverflow.com/questions/8589315/jsf2-dynamic-template
Dynamic ui:include
How can I retrieve an object on @WindowScoped?
How can I check if an object stored with...
1
Solved
So I've found a few answers close to this, and I've found enough to fix the problem I had. But even so, I'm curious as to understand the workings around this. Let me illustrate with an example :
I...
Sergias asked 25/1, 2012 at 21:41
1
Solved
So, my template includes a footer.xhtml
<ui:include src="/WEB-INF/testtaker/Footer.xhtml"/>
What I want to do is change the footer based on some users pref to different Footer_???.xhtml fi...
1
Solved
When using something like
<h:panelGrid columns="1">
<ui:repeat var="o" value="#{mybean.list}">
<h:outputText value="#{o.text}"/>
</ui:repeat>
</h:panelGrid>
with...
1
Solved
I am not sure what are the benefits of using <f:view> and <f:subview>.
I noticed that one could write JSF pages without using them.
What are the benefits of using those tags?
1
Solved
I'm trying to get google map image with the following code:
<img src="http://maps.googleapis.com/maps/api/staticmap?center=#{profile.latitude},#{profile.longitude}&zoom=14&size=400x400&...
1
We have an instance running with two clustered servers at oracle web logic app server.
One of the servers runs smoothly, but the other gives the error at the login page.
I checked the logs but go...
1
Solved
I am using a boolean property in a JSF managed bean and depending on its value I have to render a command link on the facelet. But the problem is that facelets is showing this error:
Property 'i...
1
Solved
I want to ask a question that i have a master template like this
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/T...
Buckley asked 14/12, 2011 at 7:35
0
I am writing a Facelet tag file in JSF 1.2. I want to be able to reference the parent container. In JSF 2.0 I could make this a composite component and use #{cc.parent}. But is there a JSF 1.2-equi...
2
Solved
i want to change the variable value based on a condition
so i tried the following:
<h:head>
<ui:param name="userCase" value="Insert" />
<ui:fragment rendered="#{employee.employe...
1
Solved
I have a problem using JSF to display some data in Facelets. I have list of hashmaps:
List<Map<String, String>> persons = new LinkedList<Map<String,String>>();
public Lis...
1
Solved
I am using the Apache MyFaces Commons Validator TagLib.
How should i add this to my web.xml? The commons JAR is downloaded and resolved through Maven.
XHTML (I think this is correct):
<html x...
1
Solved
Is there a way of setting a managed bean parameter in a composite component and then leaving the using classes to decide which actual managed bean to use?
something along the lines of: comp.xhtml...
Showy asked 17/11, 2011 at 0:16
2
Solved
I have seen a couple other examples on SO discussing some weird workarounds but none seem to work and they were all addressed at versions prior to JSF 2. So, it it possible to simply output the key...
Alanis asked 17/11, 2011 at 4:37
2
Solved
i am using icefaces select on menu to select a user from list of users
and i want to repeat the selectItem for each user
here's what i tried:
<ice:selectOneMenu id="users">
<ui:repeat va...
Butene asked 16/11, 2011 at 13:20
1
Solved
I create a composite component like this:
<cc:interface>
<cc:attribute name="value"
required="true" />
<cc:attribute name="rendered"
displayName="True to render"
default="tru...
Muniment asked 12/11, 2011 at 17:59
1
Solved
Can we find the length of a String in Facelets page to check for a condition using <ui:fragment>?
2
Solved
How to repeat output of some content in JSF using only standard tags (ui:, h: etc) ? In other words - how to do equivalent to PHP code below in JSF ? I immediately wanted to take advantage of ui:re...
1
Solved
This is basically an extension to this answer.
I am trying to get an argument into a method/action call (for a delete button in a list/data table).
Client:
<ui:include src="...">
&...
2
Solved
I saw some examples creating the JSF pages with .jsp extension, other examples creating them with .xhtml extension, and other examples choose .jsf.
I just would like to know what the difference is ...
Election asked 27/10, 2011 at 10:31
© 2022 - 2024 — McMap. All rights reserved.