facelets

JSF: value bindings inside nested ui:repeat

Hi, I have a strange problem with the <ui:repeat> tag. Even for my very simple example, value bindings inside nested repeat components do not work as expected. I have a simple facelet like so: <h:body> <h:form> <ui:repeat value="#{sandbox.rows}" var="row"> <ui:repeat value="#{row.columns}" var="column"> <h:outputText value...

Whats the correct way to create multiple instances of managed beans in JSF 2.0

If I want to create more than one instance of managed bean in JSF 2.0, under different names in the same scope, how should I proceed? Ideally, I want the equivilant to (for example): @ManagedBeans({name="myManagedBean1",name="myManagedBean2"}) @RequestScoped public class MyManagedBean { } Thanks .. ...

facelet composition control (custom tag) with binding

I'm having problems with creating a Facelet Composition Control (= custom tag). That's the component's template (numberinput.jspx). I declared the in my custom-taglib.xml. So far the inclusion works using this code: <ft:numberInput nullablenumber="true" cid="myId" bind="#{myBean.mySpecialComponent}" ...

What's the best way to create parametrized multi-purpose custom facelet tags

I created a Facelet tag for rendering a textinput with a label. That's very helpful when for avoiding repeating the same code over and over again. Though I'm struggling with handling different use cases within this single tab (date vs. text, required vs. not required, textarea vs. normal text etc.) I ended up with having multiple tags...

Evaluating expression of Facelets components in Richfaces sort

Hello guys, I have some problem evaluating expression in a Facelets component defined in a .taglib.xml SortField2.getExpression() gives me the value "#{sortBy}" instead of evaluating the value. My component (a simple column) is defined as: <ui:composition> <rich:column sortBy="#{sortBy}" width="#{width}" styleClass="#{style...

How to specify &mdash; as an attribute value in JSF?

When I tried the next code: <o:weekSwitcher splitter="&mdash;"/> I received error "unresolved entity reference mdash". How can I work around this issue? ...

JSF, override HTTP headers

Hi, I strongly need to override JSF 2.0 Content-Type header. Default it is Content-Type:application/xhtml+xml; charset=UTF-8 But I need Content-Type:text/html; charset=UTF-8 Thanks. ...

Facelet was modified messages

I see this information in my jboss console, when my pages don't render properly. Does anyone know what this means? 14:22:46,403 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1 :54:54 PM, flushing component applied @ 2:22:43 PM 14:22:46,404 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1 :54:54 PM, flushing ...

JSF2 and Facelets

Hi all I have tried to port JSF 1 + JSP to JSF 2 + Facelets but I have stumbled onto this error when I viewed the page in the web browser: XML Parsing Error: no element found Location: http://localhost/index.xhtml Line Number 1, Column 1: The codes of index.xhtml are: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://...

How to develop application using facelets in XHTML by the Eclipse IDE?

I am using Eclipse ide, i am creating .xhtml pages using facelets and JSF, how can i configure my ide to work with facelets and JSF. i need get command help assistence for tags. Give me information regardig jars i need to include and how to configure? ...

spring mvc with facelets

Is it possible to use facelets as view technology with Spring MVC? There is no mention about it in the official documentation, but I've heard that Facelets are very convenient and easy to use and I'd like to try it, I just don't know how... ...

Is it true that you must not use any plain HTML in RichFaces? Why?

Can someone point to me or explain if this is true, you must not use plain any plain HTML tags in JSF or JSF libraries like RichFaces? We're using JSF 1.2, RichFaces 3.3.3 and Facelets on JBOSS server. Someone said to me that we must use only <rich:> or <f:> or <a4j:> and the components they offer. Reason being that the JSF component ...

is there a tab control in RichFaces or JSF that doesn't render ugly nested tables?

The RichFaces 3.3.3 tabPanel control that I'm currently using renders 4 level nested tables. Is there any other tab control to render clean HTML or atleast allow me to control it? Like a <ul> ? ...

How do I use the latest version of jQuery and get back the '$' for jQuery in RichFaces?

RichFaces 3.3.3 comes baked in with jQuery 1.3.2 and prototype and scriptaculous as well. How can I try and use the latest version of jQuery? Can I use the Google CDN one? Also the $() object is defaulted to prorotype and to use jQuery I have to do jQuery() is there a way to get back the $ for jQuery without breaking RichFaces? UPDAT...

How to use jQuery with in xhtml?

i am using facelets,richfaces,and ajax, in XHTML i am facing error while creating datepicker! What is the solution for my problem? the code is: <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http:...

How to resolve this facelets warning message

What does this error message mean? What values should be provided to get rid of this warning? 15:10:58,024 WARNING [component] facelets.RECREATE_VALUE_EXPRESSION_ON_BUIL D_BEFORE_RESTORE is set to 'true' but facelets.BUILD_BEFORE_RESTORE is set to 'false' or unset. To use facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEF ORE_RESTORE you m...

JSF / Mojarra 2.0.2: ui:repeat is totally broken when updating via AJAX

Using ui:repeat for simple listing of elements produces very strange results - when you add an element, the first element is always replaced with the values from the last element before the submit. Same occurs when removing the elements - the first element shows actually the just removed element. With h:dataTable the same works perfectl...

Ok to wrap JSF components generated html with own divs using jQuery after page load?

Using RichFaces 3.3.3, JSF 1.2 and Facelets. For some presentation purposes I need to wrap the contents of some divs with other divs to be able to style them a certain way. I am using jQUery to do this as its cleaner when writing HTML and it can be controlled in one location, otherwise I have to hardcode the extra divs every place I wa...

RichFaces application, should I use rich:dataTable or jQGrid, pros cons?

Following on from here, I need to have an inline editable grid in my web application using RichFaces 3.3.3, JSF 1.2 and Facelets. My options are the rich:dataTable RichFaces control, or the jQuery plugin, jQGrid I have tried both and found the following so far: jQGrid works really well, but I am not sure what will happen if I try to ...

Content unparsed through Glassfish 3 though deployment descriptors appear correct

Hello I have dropped a war into the autodeploy of a Glassfish 3 domain and it has exploded fine, showing a subdirectory tree domain1>applications>myApp under which is a WEB-INF>classes>myApp folder tree which stores the classes for myApp. The app originally used JSF1.2 and facelets (1.1.15) and was deployed to tomcat 6, but I'm now try...