facelets

Internationalised labels in JSF/Facelets

Does Facelets have any features for neater or more readable internationalised user interface text labels that what you can otherwise do using JSF? For example, with plain JSF, using h:outputFormat is a very verbose way to interpolate variables in messages. Clarification: I know that I can add a message file entry that looks like: labe...

Determine the ID of the JSF container form

I need to determine the ID of a form field from within an action handler. The field is a part of a included facelets component and so the form will vary. included.xhtml <ui:component> <h:inputText id="contained_field"/> <h:commandButton actionListener="#{backingBean.update}" value="Submit"/> </ui:component> example_containing.xh...

Blank Page in JSF

Hello there! If my code throws an exception, sometimes - not everytime - the jsf presents a blank page. I´m using facelets for layout. A similar error were reported at this Sun forumn´s post, but without answers. Anyone else with the same problem, or have a solution? ;) Due to some requests. Here follow more datails: web.xml <error-p...

Using JavaScript with JSF and Facelets

I would like to use JavaScript to manipulate hidden input fields in a JSF/Facelets page. When the page loads, I need to set a hidden field to the color depth of the client. From my Facelet: <body onload="setColorDepth(document.getElementById(?????);"> <h:form> <h:inputHidden value="#{login.colorDepth}" id="colorDepth" /> </h:form> ...

JSF & Facelets Flow

I have a dynamic Facelets page that needs to show information from database when the page loads. At this point in the flow, there have not been any form submissions. Every JSF example I can find only shows a form submission with dynamic results on the next page. Every call I make to our database is currently takes place after an action ...

Show me Open Source projects using Facelets!

I want to watch and learn from Open Source projects that are using Facelets, but my Google skills failed me so I went here. The closest thing I found was http://wiki.java.net/bin/view/Projects/FaceletsProjects but -- correct me if I'm wrong -- that tiny link collection only go to demos, 404:s, commercial products or projects that are s...

eclipse support for custom facelets tags

Hi I recently started facelets development, and a couple of days ago made my first useful custom tag. Now I would like to have autocompletion support in eclipse, like I have for standard taglibs like h, c and ui. Is there any easy way (less than 30 min work) to enable tool support for custom tags? I'm using eclipse 3.4 with jboss tool...

How to display my application's errors in JSF?

In my JSF/Facelets app, here's a simplified version of part of my form: <h:form id="myform"> <h:inputSecret value="#{createNewPassword.newPassword1}" id="newPassword1" /> <h:message class="error" for="newPassword1" /> <h:inputSecret value="#{createNewPassword.newPassword2}" id="newPassword2" /> <h:message class="error" for="newP...

Good facelets resources?

I've been working with JSF for some time, and been using the Apache-Trinidad tags. I like developing using this a lot but I keep hearing great things about facelets. Is anyone out there using it, and what exactly does it get you? I've looked at the facelets site (https://facelets.dev.java.net/), but it doesn't do a very good job explai...

Javascript form submission to activate Spring Web Flow transitions with JSF integration

Hello guys, I`m developing an application using Spring WebFlow 2, Facelets and JSF. One of my flows does have a page that must trigger a form submit at certain events. For each different action, a different view must be presented. So, I'm trying to activate the following javascript code to perform the submission: function myFormSubmit(...

Facelets custom component doesn't set attribute after submit

I am having a problem with custom components in facelets. The first time that the page is rendered, the attributes are set properly on the component class. When a form is submitted however, the attributes are not set. Here is the class that I am using to test this. public class TestEcho extends UIData { /** Logger. */ private...

seam-gen, netbeans and completion

How can I make seam-gen work with NetBeans 6.5 so that completion of tags (s:, ui:, rich:, ...) works? In the free-form project that seam-gen creates, this does not seam to work. If I create a standard NetBeans web application (File -> New Project), completion does work though. Thanks, m. ...

How to solve refreshing issues in Facelets and Spring Web Flow?

For my particular project, I'm using Facelets (1.1.14), MyFaces (1.2.3), and Spring Web Flow (2.0.3). My IDE is JDeveloper 10.1.3.3. My browser is IE6 (work requirement). Okay...ran into a very weird issue today. Normally, when I'm using Facelets, I can make whatever changes I want to my xhtml file, refresh my browser window, and s...

Facelets: how to pass a ui:insert value as an html attribute?

I'm trying to accomplish a small tweak in a Facelets/JSF environment. I know next to nothing how all of it fits together. I have a value defined on various pages as "title" <ui:define name="title">PageUID_123</ui:define> On another page I am referencing this with: <ui:insert name="title"/> I can wrap html tags around the insert ju...

Get Request and Session Parameters and Attributes from JSF pages

Hi there, I'm using JSF with facelets and I need to get the request and session parameters inside the JSF page. In JSP pages i got this parameter like that : "${requestScope.paramName}" or "${sessionScope.paramName}". But now after using JSF there are only beans and you can't get any value except bean attributes. NOTE: the session attri...

Hide .xhtml source - facelets/icefaces?

I'm new to Icefaces and Facelets both, but I'm using them on a new project. I've got everything working configured and working fine. However, when I visit mywebapp/file.xhtml, the entire facelets template source comes up in my browser. How could I hide this to prevent users from viewing my server-side templates? ...

Are custom facelet functions dirty?

I have several places in my facelets web app where we are using custom facelet functions. For some reason they feel dirty and I can't quite peg why. What is StackOverflow's view of custom facelet functions? ...

Stop Eclipse restarting my web app on file save

I'm creating a JSF/Facelets web app in Eclipse. I've configured my project to use a Tomcat (6.0) server that is started/stopped by Eclipse. Whenever I save a file (eg .xhtml) Eclipse restarts the app, trashing my HTTP session. This is annoying, because I'm frequently updating my .xhtml files, and the app doesn't need restarting to detec...

Can I use facelets in a google app engine app?

I would like to do some more learning of facelets. Now that java is a supported Google app engine language, is there anything in the facelets implementation that would prevent use on app engine? Edit: This page at google now has a list of various frameworks and their status in regards to app engine. http://groups.google.com/group/googl...

How many ways there are to declare variables in facelets?

I noticed that c:set does not work well used inside "include of include of include", as important notice facelets documentation does't recommend it too. Now I am using ui:param inside ui:include, but it is a bit dispersive when no attached notes about params comes with the include, is there something other way to declare "global vars"? ...