Все вопросы: [jsf]

459 вопросов

1
голосов
1ответов
3663 просмотров

Replacing JavaServer Faces Error Pages

Is it possible to replace the standard error pages from JavaServer Faces such as 500 Internal Server Error ? These include information such as the stack trace, etc. But for the users, when the page is in Production Mode, I want to show a friendlier page saying that the request did not succeed.

0
голосов
1ответов
305 просмотров

Java servlet deployment error webui-jsf-suntheme

I am receiving the following run-time error in the web browser (Firefox) when attempting to run a deployed Java servlet on a Linux server: unterminated string literal dojo.provide("webui.suntheme.browser");w...wGroupsContainer,_41f.rowGroups[i],"last I believe the problem is related to webui-...

1
голосов
2ответов
1888 просмотров

Faces conversion service is not found for converting 'dataModel'

While creating my first swf application with JSF integration, I get the following error : Unable to load class 'dataModel' when parsing my flow definition on the first request. It appears that the FacesConversionService (the class that understands the 'dataModel' alias) is not invoked while tryi...

0
голосов
2ответов
1921 просмотров

Richfaces enable on only one page

I worked hard on this problem but no way to find a solution. I juste wan't to enable richfaces for one and only one HTML page. Why ? Because I use RichFaces on only one page. Moreover I'm losing precious time on each others during the page loading due to JavaScript code that I don't use. =>...

2
голосов
2ответов
8608 просмотров

Updating JSF datatable based on selectOneMenu values

I am attempting to create a JSF page where the user selects values in two selectOneMenu components. The values in these selections will then be passed to a SQL query to update a table displayed on the page. I've bound each of the selection items to an appropriate variable in the backing bean, bu...

1
голосов
2ответов
2127 просмотров

Localization of default messages in JavaServer Faces

I'm trying to set up a norwegian version of a site built with JSF. I know how to display my own messages based on what locale is set to, but I'm having trouble with the default messages (eg. when a form input is invalid). As far as I can tell, norwegian is not supported. Does anyone know how I c...

1
голосов
3ответов
2697 просмотров

'A4J' is undefined

i have a problem with ajax4jsf library on ie7 it give me error 'A4J is undefined' but this error not appear on firefox and chrome library which i used myfaces1.1.5 and ajax4jsf1.1 Here is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="java.sun.com/xml...

5
голосов
1ответов
13321 просмотров

Does JBoss cache class files?

I'm wrestling with a strange problem: When I make a change to a POJO or Seam Component in my localhost JBoss instance, restart it, and load the page, the change is visible. However, on our server, running the same version of JBoss, when I stop the instance, delete the WAR file, upload the latest ...

2
голосов
1ответов
2152 просмотров

Maintaining RichFaces panelMenu state between requests

I'm attempting to use a RichFaces panelMenu as a navigation menu but have yet to figure out a way for it to maintain state between requests. Is there anyway to tell the panelMenu to render itself with certain groups expanded without using ajax? I've attempted setting the value on the panelMenu a...

0
голосов
2ответов
1313 просмотров

Navigation in JavaServer Faces, redirecting with correct parameters

I have a page: http://mypage.com/items.jsf. This page takes the following for granted: ID is set by GET or ID is set by POST. Now, I can manually call items.jsf?ID=10 But what I really want to do is have a Button which calls a function that returns the navigation URL. public String test() ...

2
голосов
3ответов
19719 просмотров

JSF 'total' variable something like c:set in JSTL

I don't like JSF but I need to solve this problem with it, I am working in "pure" JSF. So this is what I baisicly need but I don't know how to accomplish it with JSF: <c:set var="total" value="0"></c:set> <c:forEach var="item" items="${cart}"> <tr> <td>...

1
голосов
1ответов
796 просмотров

Using Trinidad in JSF environment

I'm facing an unpleasant issue with an JSF based application of mine. Right now i have several xhtml-Files which include / make use the following taglibs: xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:t="http://my...

2
голосов
2ответов
6453 просмотров

Creating your own Validators in JSF 1.2 with Facelets 1.1.12

I was reviewing the following link and found out that javax.faces.webapp.ValidatorTag is deprecated and replaced by ValidatorELTag, however I can't seem to find any good information about this. I want to create a Regular Expression Validator which takes input: regex and error message. Meaning I...

1
голосов
2ответов
1657 просмотров

Richfaced rendering takes longer time

Hi we are using various combination of data table and rich combobox and tab panel. the rendering is taking too long. is i did the performance tuning suggestions from stackoverflow and other websites <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> ...

0
голосов
1ответов
2156 просмотров

JSF/JSP mixing problem

In an simple web application I have to combine jsp with jsf (for a school assignment). I am using NetBeans 6.7.1. In my login page I have the following code: <html> <body> <form name="form" method="post" action="processuserinfo.jsp" > UserName: <input type="text"...

7
голосов
1ответов
9504 просмотров

Setting focus to a JSF inputtext

I need to direct the input focus to a specific inputtext component upon loading the page (to allow entering a value using a barcode scanner). In plain HTML I would add a JavaScript "onload" handler to the body tag, but there must be a better way in JSF. What is the "cleanest" way to achieve thi...

2
голосов
3ответов
8361 просмотров

Seam auto login using credentials

I succesfully created a project using seam credentials for authentication, but right now some requirements has change (as usual) and i need authenticate the user automatic. See example bellow: user call the page: http://server:port/project/index.jsp?parameter=xyz. This page has to call a seam co...

0
голосов
2ответов
1061 просмотров

Netbeans Facelets code completion

Does anyone know how one can enable the code completion for xhtml (facelets) files in Netbeans (6.7.1)? According to some information I found on Google it is a known issue that there is no code completion for xml namespaces as used in the xhtml files, but that should be resolved by installing the...

1
голосов
1ответов
337 просмотров

Pattern to model a business object in Seam framework?

I habe been studying Seam framework for a long time. Altough i do not use it at work, i like its approach. It is very interesting. But i have some doubts. After reading Seam in Action book, i think it is not possible you bind more than one parameter to a business method. Something like @Stateles...

0
голосов
2ответов
1848 просмотров

Using commandButton or commandLink to for Postback and managing the HTML Control Values

In many cases you want to add HTML-Controls or Facelets to your Website, but how easy is it really to just access these when you call upon an action? I have the following commandLink to execute an Action <h:commandLink action="#{MyBean.save}" value=""> <f:verbatim><input type...

1
голосов
3ответов
3482 просмотров

Using managed-property with CommandButton in Java Server Faces

In addition to my question "Creating an “Edit my Item”-page in Java Server Faces with Facelets" I would liek to cover an issue that this provided. When I press the commandButton the ID=100 is removed and the page is refreshed, and this is Before it even runs the method, right, so this means that...

0
голосов
2ответов
667 просмотров

Richfaces repeating elements

I'm trying to work on a user interface for adding "events". These events have either 0 or many contacts. Ideally I would like to have an interface that when entering a new event, has a section for contacts, with a little form to enter one contact (name, phone, etc). On the bottom of that min...

8
голосов
1ответов
11894 просмотров

How to reference file resource in a JSF Application

I want to dynamically reference an XSD from a bean, how is this possible? I already added the XSD to the project, so it's located somewhere in the GlassFish domain.

4
голосов
1ответов
2097 просмотров

skip jsf lifecylce phase

How do I short circuit the jsf lifecycle so that the response is rendered before any model updates? In the diagram of page 59 of this document JSF Spec V1.2 RevB, it shows that you can skip from the "Apply Request Values" phase directly to the "Render Response" phase. How do I do this? I've go...

4
голосов
1ответов
588 просмотров

Creating an "Edit my Item"-page in Java Server Faces with Facelets

Let's say that you have the following Facelet ( Using Facelets 1.1.12 ): edit_item.xhtml which i access with edit_item.jsf Now i have another page sending me to edit_item.jsf with the GET-paremeter ID the uri looks like this: http://mysite.com/edit_item.jsf?ID=200 How do you access a Bean and...

0
голосов
2ответов
3317 просмотров

Binding an Object Array to a Front-End in Java Server Faces

I have a Servlet which is called upon an Action and this Servlet is suppose to return a List of Objects. Now by having the Data Structure at the end of my Post my Servlet calls the Person.fetch() which returns an list/array of Persons. I want my Java Server Face to iterate through this list and ...

1
голосов
2ответов
622 просмотров

In JSF, what's the difference between from-view-id and from-tree-id?

In JSF, in a typical faces-config.xml configuration, what's exactly the difference between from-view-id and from-tree-id tag? And when was the best time to use either? Any example would be much appreciated.

2
голосов
1ответов
1335 просмотров

JSF, writeAttribute("value", str, null) fails with strings obtained through ValueExpression.getValue()

I'm having a somewhat weird problem with custom JSF component. Here's my renderer code: public class Test extends Renderer { public void encodeBegin(final FacesContext context, final UIComponent component) throws IOException { ResponseWriter writer = context.g...

0
голосов
1ответов
2851 просмотров

After session timeout where does JBoss redirect users to?

After this is reached in JBoss: <session-config> <session-timeout>30</session-timeout> </session-config> where does it redirect users to? Can I change the page it redirects to?

4
голосов
1ответов
3724 просмотров

JSF button to reset the session

Is there a way to reset (clear) the session for a user, when he clicks on a button?