I'm having some trouble looping over a HashMap to print out it's values to the screen. Could someone double check my code to see what I'm doing wrong. I ... |
Maybe, some performance comparison or some noticeable specific differences is what I want to know.
As I heard there is no really big difference. Hence, I've got one more question. For what ... |
Here is my myFaces Code the
<tr:commandButton text="Calculate Modulus" action="#{pageManager.form.calculateModulus}" id="modulusCalculation" partialSubmit="true"/>
<tr:table value="#{pageManager.form.modulusCollection}" var="modulus" width="75%"
inlineStyle="align:center;" partialTriggers="modulusCalculation" autoSubmit="true">
<tr:column ...
|
I've got a JSF app built with MyFaces 1.2.8, Facelets 1.1.14 and building it with Tomcat 6 through it's plugin in Eclipse Ganymede.
I've just installed the latest versions of the above ... |
I have a MyFaces Facelets application, where the page coding is a bit rugged. Anyway, it's developed with Eclipse and built with Ant, and kindof runs ok in Tomcat 2.0.26. So ... |
I just like to give JSF 2.0 (MyFaces 2.0) a try using Tomcat 6.0.
I am completely new to JSF. I just put a static xhtml as test.jsf in the application root. ... |
Just a stupid beginner's question, which will be quickly solved, but I am curious.
http://www.irian.at/myfacesexamples/home.jsf says:
"MyFaces - The free JavaServerâ„¢ Faces Implementation"
Errr ... is Sun's implementation not free, then?
Thanks ... |
|
We want make a choice between SUN RI 1.1 JSF implementaiton and MyFaces. Appserver we will be using is Weblogic 8.1. Could you please provide main points for Comparison between the ... |
Im getting a ClassCastException if i use Attributes in my Custom Headline Tag. Without Attributes rendering works fine.
Calling <t:headline value="test" /> gives a ClassCastException even before a Method in my ... |
does anyone know where I can get a list of the converters used by JSF so I can set a custom message for them in the resource bundle?
|
Modifying working form with one spot per order to multiple spots per order I met problems with prepopulating h:selectOneMenu. Exception is java.lang.IllegalArgumentException: Value binding '#{spot.deliveryTypes}'of UISelectItems with component-path {Component-Path : [Class: ... |
I can't seem to find a way to force an application-scoped managed bean to be instantiated/initialized when the web app is started. It seems that application-scoped beans get lazy-instantiated the first ... |
I'm trying to implement in jsf something that will serve sort of a 3 way pick list:
I can do this pretty easily.
My only problem is making the buttons ... |
I`m preparing application where user can book a room for specified period. I want to show user a callendar where he will be able to select start and end date of ... |
EDIT: The solution that you can find in comments below assumes changing
JSF implemenetation from MyFaces to
Sun's Mojarra.
Hi,
I have got really annoying problem with MyFaces 2.0.0 ... |
I'm going to try and make as much sense as possible here. We are working on a myfaces 2 app in tomcat. On our local dev machines, whenever we want to ... |
I am starter in JSF2.0.
I am using MyFaces.
My little tutorial apps are ok, but I noticed in the logs of MyFaces the following:
org.apache.myfaces.util.ExternalSpecifications
isUnifiedELAvailable INFO: MyFaces
... |
I'm writing an application in JSF 1.2 that has a session in a backing bean.
The biggest stability issue happens when the user refreshes the page (by pressing F5) or uses the ... |
I am creating a JSF application where file uploading functionality is required.I have added all the required jar files in my /WEB-INF/lib folder.
jsf-api.jar
jsf-impl.jar
jstl.jar
standard.jar
myfaces-extensions.jar
commons-collections.jar
commons-digester.jar
commons-beanutils.jar
commons-logging.jar
commons-fileupload-1.0.jar
but still when trying to deploy the application on ... |
I need to understand why the paging doesn't work here
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
<ui:composition template="WEB-INF/templates/Main_Template.xhtml">
<ui:define name="content">
...
|
Suppose I several tags, text input, radios, etc referencing one instance object. I would like to use a dropdown on that page to switch the references mentioned before to another ... |
I have an issue that keeps arising with JSF 2 and Tomcat 7.0.0. When I setup Apache MyFaces 2.0.4 (by putting all the jars in my WEB-INF/lib folder), Tomcat deploys my ... |
I'm working with Myfaces 2.0 after a long project using MyFaces 1.1 + Tomahawk + Ajax4JSF. 2.0 is definitely a huge improvement. Although I can't seem to get an onload javascript ... |
We have an application which is built on JSF 2.0(MyFaces) and runs on Weblogic app server. We are facing an issue regarding http Session.
Issue: Suppose I have opened the app in ... |
We have a long-running process in our JSF (MyFaces implementation) WebApp. It is required to have an active session during this long-running process. Will bringing focus on various components ... |
I am calling a template and am passing in parameters like below:
<ui:include src="WEB-INF/Subviews/ProductEdit.xhtml">
<ui:param name="items" value="#{produtList}"></ui:param>
<ui:param name="itemToEdit" value="#{productToEdit}"></ui:param>
</ui:include>
and in the ProductEdit.xhtml, I have something ... |
There is an init-param facelets.REFRESH_PERIOD for the Facelets servlet. However, it's senseless to set it to a specific value. When it's too small, say 10 seconds, the cache will be timeout ... |
I am glad to be here :) this is my first question.
I have a h:form where i display data to be entered/updated. It is defined by the parameter, if the page ... |
I have a JSF 2.1 (MyFaces) app running using several Session Beans (All the beans are session beans).
The timeout is defined in web.xml as such:
<session-config>
<session-timeout>3600</session-timeout>
</session-config>
Which translates to ... |
Hi Have this Wierd Issue in which I am using a Composite Component which I wrote and I get values from the previous use of the backing bean of the CC ... |
How to improve performance of jsf myfaces based application ?
Some tips that I have collected so far
Trinidad
- Set following init parameters to false in web.xml
- org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT
- org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
- org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION
- use client-side state saving
- clear pageflow context map ...
|
I'm trying to write some custom Facelets 2.0 tags, after several hours work, I found that my UIInput subclass is not even instantiated. Then, I changed the actual namespace to something ... |
THIS PROBLEM IS ALREADY SOLVED IN THE MYFACES 2.1 IMPLEMENTATION
i have a link which passes an Integer parameter properly like this:
<h:link outcome="/process/createProcess">
<f:param name="id" value="#{process.idprocess}" />
...
|
i have in a view Scoped Bean a method with the @PreDestroy annotation and another with the @PostConstruct method.
@PostConstruct method is properly called every time i navigate to the page that ... |
I'm setting up a simple application using Tomcat 7 and MyFaces 2.1.
I create the app, create a simple index.xhtml, deploy it and when I visit it on the browser I get ... |
Recently I have explored the possibilities to integrate a regular JSF 2.0 application as a portlet a portlal.
The first thing I've done is downloaded Pluto 2.0 (bundled with tomcat) and Myfaces ... |
I've got a JSF/MyFaces dropdown list within an ExtJS (3.x) panel. When the dropdown is expanded, the list appears behind the Ext panel. Happens in all IE/Chrome/Opera/FF. How can I fix ... |
I'm currently working on a web application with about 10 pages and a medium complexity.
We started our performance tests the other day and the following exception could be noticed in the ... |
I am trying to use an application-scoped bean but every time I call the lazily initialized getter methods, it initializes the values again. I've used the debugger to confirm that ... |
I'm using mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
Is there a parameter for generating Unit tests for MyFaces-Test?
|
FacesContext.getCurrentInstance().getExternalContext().getFlash()
I am trying to use above code seems like getFlash() does not exist in JSF2 implementation of Myfaces. How how can I access it.
Above line gives me this error
The method getFlash() ...
|
Based on advice posted here and here, I looked into and installed MyFaces CODI with my application. My biggest concern was overcoming the shortcomings of Weld's ... |
I was recently trying to integrate TinyMCE in my Myfaces application. I have downloaded and extracted TynyMCE in my webapp folder. I have written the following code:
<h:outputScript library="tiny_mce" name="tiny_mce.js" target="head" />
<h:outputScript ...
|
f:ajax tag is not working with IE 7.
Is there any solution for this ?
Below is the code:
<h:dataTable id="TestTable" value="#{lookupEventHandlerBean.tbList}" var="tb_var">
<h:column id="TestColumn">
<f:facet name="header">
<h:outputText value="Select"></h:outputText>
</f:facet>
<h:selectOneRadio enabledClass="RadioClass" id="radio1" value="#{tb_var.selectedBool}" onclick="selectRadio(this)">
<f:selectItem itemValue="true" id="radio1Lbl" itemLabel=""/>
</h:selectOneRadio>
</h:column> ...
|
I've read @EJB in @ViewScoped managed bean causes java.io.NotSerializableException, but my state saving setting is server.
Here is what I have:
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
...
|
I to all!!!. I'm new here and need some help. I am doing an application using JSF and MyFaces, I need to create an array of components, but do not ... |
I am using MyFaces CODI because it allows me to use CDI annotations with ViewAccessScoped -- works great for that. The problem is that I have found that multiple browser ... |
What is the difference between MyFaces Extensions Validator vs MyFaces Commons Validators?
The JSF 2.0 Cookbook by Anghel recommends the MyFaces Commons Validators, at which point ... |
expression language is not working in tomcat7 with jsf1.2 .#{message.name_prompt} is ouputed as #{message.name_prompt}.
i tried to replace the el-api.jar in the tomcat lib folder with el-api-2.2.jar and put the el-impl-2.2.jar ... |
I am using my-faces (2.1.3) in my project.
I need to create a tree that as different hierarchy.
For example the first will be a link/leaf and the second one will ... |
In my JSF application ,after successful login, i am navigating to my home page of my application where i have a Logout link.
Here is the related html for logout link.
<div id="top_white">
...
|
Seems like i am having a hard time finding the repository manager for this dependency:
<dependency>
<groupId>org.apache.myfaces.commons</groupId>
<artifactId>myfaces-commons</artifactId>
<version>1.1.2</version>
</dependency>
Can someone give me a ... |
Hi Everyone, Please can any one refer me to where i can find and download MyFaces Plugin for netbeans 6.5 or I can get started with using MyFaces with JSF in ... |
Hi Everyone, Can some one please refer me to how I can download MyFaces Plugin for netbeans 6.5 and How i can get started and configure it on netbeans 6.5. I ... |
Can someone point me to basic reference information on how to use MyFaces/Tomahawk in NB 6.7? Is there a NBM plugin available that provides a palette? Also the instructions for how ... |
Hello there, Does anybody know how to integrate myfaces(Tomahawk or any of the latest implementation) with netbeans? I have followed a lot of instructions on google, but all of them fails... ... |
i have made a jsf application that uploads image files to a folder under web pages directory called "images" in netbeans. the application then does a crud style display and the ... |
|
BasicExample javax.faces.STATE_SAVING_METHOD server ... |
|
|
|
|
|
Neither of these has any success or failure stories to share so far. Though I am using IBM's implementation, I think you may like to try out myfaces implemention. I guess it has some added features and better component range. In case you are doing an extensive research\ R&D over both the implmentations, let us know your findings here. |
|
67. myFaces coderanch.com |
|
|
Thanks for the reply, Mauro. Yes, this issue is related to the other post you replied to. Same problem, 2 different parts. Yes, I put this in a form, but did not do the submission - isn't event handling supposed to occur right away, and not at form submission? I set immediate="true" on the component. But yes, when I do a ... |
|
|
|
|
|
|
|
|
JSF is the standard (JSR-127), MyFaces is an implementation of that standard, and yes, it's open-source. Another one is Oracle's ADF Faces. I think tht one's free to use, although I don't lnow about it being open-source. There was also a Sun Reference Implementation JSF, which ws pretty feeble. I think they broke it and then abandoned it. JSFs aren't mix-and-match, ... |
|
|
|
I am having a problem with myFaces tabs and can't find a solution. I have a page that imports two pages with the same data. The first tab is a read only page, and the second tab allows the user to edit fields. If the user is on the second page and gets an error they are sent back to the ... |
|
Dear all Does anybody know how to test ADF Faces. Any tool would be of interest to me although Opensource and Free Software is prefered? My task is to write a set of unit tests to test an Oracle ADF and Apache MyFaces application. I have attempted to use both Cactus and HttpUnit. However I am struggling with a simple test ... |
|
|
|
|
When using the object in the backing bean I get two different results with different browsers. When using IE the getName method returns the Path information along with the file name. When using FireFox only the file name is returned with getName. Does anyone have any clue as to which is operating correctly? Any other information on these differences would be ... |
I've been using JSF for some months now and I am trying to use the new tobago myface to work. This open source lacks help for the hello world app. I am having probelms with the themes I used the same source code found in the tobago-blank helloworld. The tobago-theme-speyside-1.0.7.jar is in my lib area and my web and tobago-config matches ... |
|
|
|
|
javax.servlet.ServletException: Could not restore StateHolder of type com.my.MyBean (missing no-args constructor?) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.ca.dbm.common.filter.NavigationFilter.doFilter(NavigationFilter.java:73) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.ca.dbm.common.util.RequestFilter.doFilter(RequestFilter.java:43) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) ... |
I have two selectBooleanCheckbox in my jsp When the value of the checkboxes is true when the page is loaded from the database then for some reason when the checkbox1 is clicked the valueChangeListener of the second checkbox is called. < h:selectBooleanCheckbox id="loginDurationRestrictionFlag" value="#{securityProfile.loginDurationRestrictionFlag}" immediate="true" valueChangeListener="#{securityProfile.enableDates}" /> there is an on click of this checkbox written which submits the page. ( ... |
|
Im running into a problem with a MyFaces t:popup tag. The code snip has an ouputText element of #{row.serviceDesc} with a graphic behind it. Hovering over the graphic will display a popup window the #{row.serviceDesc} being displayed. Im reusing the same field only for test purposes. The problem is the occurrence of #{row.serviceDesc} is incrementing properly outside of the t:popup, but ... |
|