myfaces

myfaces partialTriggers

Hi, 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...

Slider Component Using Apache MyFaces

I am using Apache MyFaces Trinidad implementation in my application I currently need a slider component and Trinidad implementation does not have a slider component. Can anyone tell me a way to get around this ?? ...

Overriding java tobago sheet sorting method does not show data

I have created a Java webapplication containing a tobago sheet. I am now trying to override the sorting mechanism of the sheet by using the sortActionListener attribute. When I click on a column my sorting method is started. I can read out the column name and do some SQL stuff to get the data I would like to display now. The sorting is...

Export the data into a PDF format with Tomahawk?

I my application i am trying to export the data from the into a PDF file using TomaHawk. While loading the page i am getting a Exception. i have Pasted my code and the Exception below. JSF Code <%@ page session="false" contentType="text/html;charset=utf-8"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="...

Facelets tab lib not recognised by Eclipse/Tomcat 6

Hello I included this in my index.jsp JSF file: <%@ taglib prefix="ui" uri="http://java.sun.com/jsf/facelets"%&gt; and Eclipse underlines the URL, hovering gives this: Cannot find the tag library descriptor for "http://java.sun.com/jsf/facelets" Deploying and trying to start Tomcat 6 using the Tomcat plugin causes this: |STDOUT| ...

MyFaces 1.2.8 causes Tomcat 6 to crash on deployment

Hello 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 libs and on build, the app deploys ok and the server goes to start and immediately I get this: javax.servlet.ServletException: javax.crypto.BadPa...

What is the overhead of MyFaces PRETTY_HTML?

Has anyone checked the overhead involved in turning on org.apache.myfaces.PRETTY_HTML? Can you report your results? ...

Invalid byte 1 of 1-byte UTF-8 sequence

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 far so good. Now, I'd rather build with Maven, so I made a couple of pom-files, opened them in Netbeans and built, and now I have a war file that deploys ok. Howeve...

java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd

I am getting below exception while using facelates and Myfaces. if any body have any idea please share it. Thanks In advance javax.faces.FacesException: org.apache.jasper.JasperException: Error reading file "/jspx/login.jspx" at org.apache.myfaces.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241) at org.apache.myfaces...

How get Tomahawk functionality with JSF 2.0 (Glassfish V3)

I've started to upgrade an existing application written with JSF 1.1 and MyFaces Tomahawk 1.1 to JSF 2.0 to get facelets etc. I've now run into the snag that apparently Tomahawk is not JSF 2.0 compatible as it expects the stand-alone version of Facelets instead of the built-in to JSF 2.0 with the following error: org.apache.catalina....

Myfaces extensionfilter overriding renderkit? (Tree2 component)

I've pulled in the tree2 component (from Tomahawk 1.1.9). Had used the simpler Tree component on previous projects, and this one just looks a bit nicer. Running on websphere 6.1.x and set the server side flag that's needed (com.ibm.ws.webcontainer.invokefilterscompatibility=true) and set the extensionfilter accordingly. Everything's g...

How to display image in jsf and onclick provide a file upload (to replace)

Hi, I would like to display an image on my web page and provide the user the ability to click it and upload another image to replace it. Either myfaces or Richfaces works.. (I know tomahawk has some solution but i'm wondering if that's the only solution. The least libraries I use the better..) Thanks! ...

endless loop / StackOverflowError when using Apache MyFaces 2.0

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. When request the URL, a StackOverflowError will always be thrown: java.lang.StackOverflowError at org.apache.catalina.core.ApplicationHttpRequest$AttributeNamesEnumerator.<init>(A...

MyFaces vs. Sun's Reference Implementation - latter not free?

Hi all 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 & Cheers Er ...

Which implemtation of JSF 1.1 to use MyFaces or Sun RI

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 two Which one is better. Can we use Facelets in SUN RI 1.1_02. Which is the better choice if want to move the Application to JSF 1.2 and JDK 1.5 in Future. ...

JSF - Unhide jsf component when clicking another component.

Hi, I'm trying to have a button that brings up an upload dialog. The way i'm trying to achieve this is similar to this: <h:outputText value="Click Me" id="testit"> <a4j:support reRender="hideme" event="onclick" action="#{actions.switchTestRendered}"/> </h:outputText> <h:outputText id="hideme" value="back" rendered="#{actions.t...

What is viewstate in JSF, and how is it used?

In JSF, there is a viewstate associated with each page, which is passed back and forth with submits etc. I know that viewstate is calculated using the states of the various controls on the page, and that you can store it either client side or server side. The question is: how is this value used? Is it used to validate the values sent a...

jsf 2.0 composite components - how to modify outer beans / attributes

Hello community, I am just learning JSF 2 and playing with simple custom components. Imagine an ajax enabled custom component with two inputText fields: ... <h:body> <composite:interface> <composite:attribute name="domId" required="true" /> <composite:attribute name="value" required="true" /> </composite:interface> <compo...

JSF 2.0 and MyFaces Tomahawk

I have been investigating a JSF upgrade on our existing web apps that are using JSF 1.2 & tomahawk 1.1.9 & no facelets , to use JSF 2.0 & tomahawk 1.1.9 This is my findings sofar : All the tomahawk components worked except for t:dataTable used with a t:dataScroller – BUT ONLY IF preserveDataModel="true" on t:dataTable. The workaround ...

What's the best JSF implementation?

Hey everyone, I currently have a medium size Java web application sitting on top of Spring MVC. As much as I like (no sarcasm) coding straight HTML, CSS and JS, it's not possible for me to develop as fast as I'd like. I'm looking at different RAD frameworks to speed up my development. I'm looking at JSF implementations and component l...