jsf - javax.el.PropertyNotFoundException: Target Unreachable, identifier 'flowScope' resolved to null -
javax.el.propertynotfoundexception: /flow1/flow1.xhtml @ line 17 , column 70 value="#{flowscope.value}": target unreachable, identifier 'flowscope' resolved null.
i have flow.xhtml
page there i'm setting value below :
<span id="param1fromflow1"> flow bean param1value: <h:inputtext id="input" value="#{flowscope.value}" /> </span>
but implicit object flowscope
not picking server getting error in websphere 8.0.0.7.
after changed page bean .page bean declare @flowscoped ,again getting error below in same page; javax.faces.facesexception: javax.el.propertynotfoundexception: /flow1/flow1.xhtml @ line 17 , column 69 value="#{flow1bean.name}": target unreachable, identifier 'flow1bean' resolved null
here bean :
package com.webage.beans; import java.io.serializable; import javax.faces.flow.flowscoped; import javax.inject.named; @named @flowscoped("flow1") public class flow1bean implements serializable { public string cusname; public string city; public string getname() { return this.getclass().getsimplename(); } public string doreturnvalue() { return "return1"; } /** * @return cusname */ public string getcusname() { return cusname; } /** * @param cusname cusname set */ public void setcusname(string cusname) { this.cusname = cusname; } /** * @return city */ public string getcity() { return city; } /** * @param city city set */ public void setcity(string city) { this.city = city; } }
my xhtml file :
<?xml version="1.0" encoding="utf-8" ?> <!doctype html public "-//w3c//dtd xhtml 1.1//en" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"> <h:head> <title>flow1</title> <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" /> <link rel="stylesheet" type="text/css" title="style" href="../theme/stylesheet.css" /> </h:head> <h:body> <h:form styleclass="form" id="form1"> <h1>first page in flow 1</h1> <p> <span id="param1fromflow1">flow bean param1value:<h:inputtext id="input" value="#{flow1bean.name}" /> </span> </p> <p></p> <h:commandbutton type="submit" value="next" styleclass="commandbutton" id="button1" action="flow1a"></h:commandbutton> <p></p> </h:form> </h:body> </html>
please heklp me on this.
Comments
Post a Comment