I recently sat down to port a simple Rails app I have to JSF (using Seam) to get a feel for which I would be more productive in. The Rails app is RESTful, which I like. Upon starting into JSF, I was surprised to learn, perhaps incorrectly, that JSF only support POSTs, which makes it inherently non-RESTful.
I searched around a bit but ca...
Is there any tool or plugin available to convert HTML code to JSF tags?
...
I would like to upgrade from Netbeans 6.5 to Netbeans 6.7. However, I've encountered an annoyance. Netbeans 6.5 recognizes jsf tags, but Netbeans 6.7 does not. Here are the screenshots:
Why isn't Netbeans 6.7.1 not recognizing and matching JSF tags?
...
I am using JSF with RichFacecs to create a web portal .I want to redirect the user to the login page on session time out. I was trying to throw a SecurityException in session expiry/logged out stage as follows
<error-page>
<exception-type>java.lang.SecurityException</exception-type>
<location>/Login.jsf</location>
</error-page>
...
Does anyone know of a good article about how to represent a JSF application in JSF? I found the article on JSF central about the storyboard approach. However, this is incomplete. This is the only resource I can find on this subject.
Any recommendations?
Thanks in advance,
Zack
...
I've noticed that the ice:inputFile component will only upload files to the directory $TOMCAT_HOME/webapps/MyAppName/upload/. I want this directory to be dependent on the user initials for the current user (i.e. user with initials abc wants to upload a file, the file goes to $TOMCAT_HOME/webapps/MyAppName/upload/abc/). How can I dynamica...
Hi,
Consider the scenario of a typical webapp with JSFs on the front and ejb3, with Hibernate as JPA provider, talking to backend database such as mysql, etc. The main user actions are login and mostly CRUD operations (minus any D(elete) operations). And the App Server is GlassFish of course.
Given this scenario, how and where all woul...
Hi,
As a requirement i have two datatables for the same List. Can I use one datascroller to control both the tables. Please help me on solving this.
...
Hello,
in my JSF application i need to update ui component during invoke application phase. Can it be done? Here's the code i've produced so far:
public void resetDataScroller(ActionEvent actionEvent) {
final FacesContext ctx = FacesContext.getCurrentInstance();
ctx.getViewRoot().invokeOnComponent(ctx, "paginator_and_tabl...
I'm using Richfaces JSF and I want to iterate over an Map<Object,Object>. I see many examples on Sun forums and other sites but in my case it doesn't work. Here is my XHTML code:
<c:forEach items="#{order.customOptions}" var="option">
<h:outputText value="this text does not print" />
<h:outputText value="#{option.value.name}" />...
I have a bunch of Seam form pages; each has a command button that calls a sendEmail() method in a custom utility class. The method looks like this:
public String sendEmail(String mailFile) throws SMTPSendFailedException {
status = "Processing email now...";
renderer.render(mailFile);
status = "Email sent successfully.";
...
I have a couple of probably common thoughts on JavaServer Faces (JSF) which I want to clear up.
Is it possible to just add a Java Class and Call methods inside it from a JSF (x) Page?
I can't see how this even could be an issue knowing to do when you program Java and develop webapplications. However, I can't seem to find a concrete a...
I need to be able to grab a user's information from a database and pre populate some fields on the page from this information, using args sent in a GET request in the database's query.
What is the best way of performing this "on page load" type of functionality using standard JSF?
Couple possibilities I have found so far:
performing...
I would like to see a simple Login Application, not as simple as this though.
What i would like to achive is an understanding on how JSF works, I've developed a lot of ASP.NET where you have the Code Behind and where you can just Check if a session was created upon Login.
A similar solution in JSF would be great.
This is basicly what ...
I have a requirement to print my list in two columns along with pagination.
I am not able to figure out how will I get 2 records at a time from the list set in the datatable.
...
How to call a JSF action mehtod thru jQuery AJAX?
...
Hi,
always i use el expressions like this;
<h:outputText value="#{bean.value}" escape="true" />;
and i cannot escape from xml in input fields:
<h:inputText value="#{bean.value}" />
is there a way to totally escape xml in facelets.
for instance a context parameter;
<context-param>
<param-name>facelets.ESCAPE_XML</param-name>
<...
What is the correct way to have a boolean checkbox in each row in a JSF / RichFaces dataTable? I tried the following snippet:
<rich:dataTable id="customerList"
var="_customer"
value="#{customerList.resultList}"
rendered="#{not empty customerList.resultList}" >
<h:column>
<h:selectBoolean...
I am creating a portal in jsf with a left menu(rich:panelMenu) and with a content area on the right side. I want to refresh only the content area with different forms on clicking the menu items in the left menu. The menu selection needs to retained. Which is the proper technique to handle this ?
...
Hello guys,
I need to use function with argument in a EL expression (with JSF) like this:
<h:outputText value="#{object.test(10)}" ></h:outputText>
But it doesn't work.
I read on the web that it's impossible to do this with JSF. I use facelet with JSF.
Someone knows how to do that ?
Thanks.
...