Hi

Could you provide the exception to see if there is a configuration problem?

regards,

Leonardo

2011/5/4 Georg Füchsle <[email protected]>:
> Hallo
>
> I have made up a small JSF-Project using maven.
> It works as long I will not use <f:setPropertyActionListener.
> When <f:setPropertyActionListener is called, it runs into an exception.
>
> I deploy to WebShpere 6.1.
>
> I tried to switch the class loading without success.
> Looking forward for any help!
>
> Thanks Georg
>
>
> *******************************************************
> Here my sources:
> pom.xml:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>        <modelVersion>4.0.0</modelVersion>
>        <groupId>de.safir</groupId>
>        <artifactId>InvestInformWeb</artifactId>
>        <version>0.0.1-SNAPSHOT</version>
>        <packaging>war</packaging>
>        <name />
>        <description />
>        <dependencies>
>                <dependency>
>                        <groupId>org.apache.openejb</groupId>
>                        <artifactId>javaee-api</artifactId>
>                        <version>5.0-3</version>
>                </dependency>
>                <dependency>
>                        <groupId>javax.faces</groupId>
>                        <artifactId>jsf-api</artifactId>
>                        <version>1.2_04</version>
>                        <scope>compile</scope>
>                </dependency>
>                <dependency>
>                        <groupId>javax.servlet</groupId>
>                        <artifactId>jstl</artifactId>
>                        <version>1.2</version>
>                        <scope>provided</scope>
>                </dependency>
>                <dependency>
>                        <groupId>javax.servlet.jsp</groupId>
>                        <artifactId>jsp-api</artifactId>
>                        <version>2.1</version>
>                        <scope>provided</scope>
>                </dependency>
>                <dependency>
>                        <groupId>javax.faces</groupId>
>                        <artifactId>jsf-impl</artifactId>
>                        <version>1.2_04</version>
>                        <scope>compile</scope>
>                </dependency>
>                <dependency>
>                        <groupId>com.sun.facelets</groupId>
>                        <artifactId>jsf-facelets</artifactId>
>                        <version>1.1.9</version>
>                </dependency>
>                <dependency>
>                        <groupId>javax.el</groupId>
>                        <artifactId>el-api</artifactId>
>                        <version>1.0</version>
>                </dependency>
>                <dependency>
>                        <groupId>com.sun.el</groupId>
>                        <artifactId>el-ri</artifactId>
>                        <version>1.0</version>
>                </dependency>
>        </dependencies>
>        <build>
>                <sourceDirectory>${basedir}/src</sourceDirectory>
>                
> <outputDirectory>${basedir}/WebRoot/WEB-INF/classes</outputDirectory>
>                <resources>
>                        <resource>
>                                <directory>${basedir}/src</directory>
>                                <excludes>
>                                        <exclude>**/*.java</exclude>
>                                </excludes>
>                        </resource>
>                </resources>
>                <plugins>
>                        <plugin>
>                                <groupId>org.apache.maven.plugins</groupId>
>                                <artifactId>maven-war-plugin</artifactId>
>                                <configuration>
>                                        
> <webappDirectory>${basedir}/WebRoot</webappDirectory>
>                                        
> <warSourceDirectory>${basedir}/WebRoot</warSourceDirectory>
>                                        <archive>
>                                                <manifest>
>                                                        
> <addClasspath>true</addClasspath>
>                                                </manifest>
>                                        </archive>
>                                </configuration>
>                        </plugin>
>                        <plugin>
>                                <groupId>org.apache.maven.plugins</groupId>
>                                <artifactId>maven-compiler-plugin</artifactId>
>                                <version>2.3.2</version>
>                                <configuration>
>                                        <source>1.5</source>
>                                        <target>1.5</target>
>                                </configuration>
>                        </plugin>
>                </plugins>
>        </build>
> </project>
>
>
>
> ************************************************************
> The web-Page:
>
> <?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:h="http://java.sun.com/jsf/html";
>        xmlns:f="http://java.sun.com/jsf/core";>
>        <head>
>                <title>Testseite</title>
>                <meta http-equiv="keywords" content="enter,your,keywords,here" 
> />
>                <meta http-equiv="description"
>                        content="A short description of this page." />
>                <meta http-equiv="content-type" content="text/html; 
> charset=UTF-8" />
>        </head>
>        <body>
>                <f:view>
>                <h:form id="iiweb">
>                <p>
>                        <h:inputText value="#{ersteBean.text}"/><br/>
>                        <h:outputText value="#{ersteBean.neuerText}" />
>                        <br/>
>                        <h:commandButton action="#{ersteBean.laden}" 
> id="textajax" value="drücken">
>                                <f:setPropertyActionListener 
> target="#{ersteBean.neuerText}"    value="Text"/>
>                        </h:commandButton>
>                        <br/>
>                </p>
>                </h:form>
>        </f:view>
>        </body>
> </html>
>
> *************************************************************
> and the backing bean:
>
> package de.safir;
>
> public class ersteBean {
>        private String text;
>        private String neuerText;
>
>        public String laden() {
>                return "";
>        }
>
>        public String getText() {
>                return text;
>        }
>
>        public void setText(String text) {
>                this.text = text;
>        }
>
>        public String getNeuerText() {
>                return neuerText;
>        }
>
>        public void setNeuerText(String neuerText) {
>                this.neuerText = neuerText;
>        }
> }
>

Reply via email to