File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes problem with new user Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "problem with new user" Watch "problem with new user" New topic
Author

problem with new user

shady mohamed
Greenhorn

Joined: Jan 22, 2013
Posts: 3
please,i have this problem and i don't found any solution for it.
i'm new user for jsf

:7:30: The deferred EL expression is not allowed since deferredSyntaxAllowedAsLiteral is false.
<h:form binding="#{user.form1}" id="form1">
^-----------^
quickStart.jsp:7:30: The deferred EL expression is not allowed since deferredSyntaxAllowedAsLiteral is false.
<h:form binding="#{user.form1}" id="form1">
^-----------^
quickStart.jsp:8:51: The deferred EL expression is not allowed since deferredSyntaxAllowedAsLiteral is false.
<h:panelGrid columns="3" binding="#{user.panelGrid1}" id="panelGrid1">
^----------------^
quickStart.jsp:8:51: The deferred EL expression is not allowed since deferredSyntaxAllowedAsLiteral is false.
<h:panelGrid columns="3" binding="#{user.panelGrid1}" id="panelGrid1">
^----------------^
quickStart.jsp:9:62: The deferred EL expression is not allowed since deferredSyntaxAllowedAsLiteral is false.
<hutputText value="user name" binding="#{user.outputText1}" id="outputText1"/>
^-----------------^
quickStart.jsp:9:62: The deferred EL expression is not allowed since deferredSyntaxAllowedAsLiteral is false.
<hutputText value="user name" binding="#{user.outputText1}" id="outputText1"/>
^-----------------^
quickStart.jsp:10:43: The deferred EL expression is not allowed since deferredSyntaxAllowedAsLiteral is false.
<h:inputText binding="#{user.inputText1}" id="inputText1"/>
^----------------^
quickStart.jsp:10:43: The deferred EL expression is not allowed since deferredSyntaxAllowedAsLiteral is false.
<h:inputText binding="#{user.inputText1}" id="inputText1"/>
shady mohamed
Greenhorn

Joined: Jan 22, 2013
Posts: 3
package ch01;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.component.html.HtmlForm;
import javax.faces.component.html.HtmlInputText;
import javax.faces.component.html.HtmlOutputText;
import javax.faces.component.html.HtmlPanelGrid;

@ManagedBean(name="user")
@RequestScoped
public class User {
private HtmlForm form1;
private String userName;
private String password;
private HtmlPanelGrid panelGrid1;
private HtmlOutputText outputText1;
private HtmlInputText inputText1;

public void setForm1(HtmlForm form1) {
this.form1 = form1;
}

public HtmlForm getForm1() {
return form1;
}

public void setPanelGrid1(HtmlPanelGrid panelGrid1) {
this.panelGrid1 = panelGrid1;
}

public HtmlPanelGrid getPanelGrid1() {
return panelGrid1;
}

public void setOutputText1(HtmlOutputText outputText1) {
this.outputText1 = outputText1;
}

public HtmlOutputText getOutputText1() {
return outputText1;
}

public void setInputText1(HtmlInputText inputText1) {
this.inputText1 = inputText1;
}

public HtmlInputText getInputText1() {
return inputText1;
}
}
shady mohamed
Greenhorn

Joined: Jan 22, 2013
Posts: 3
<?xml version='1.0' encoding='windows-1256'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
<html xmlns="http://www.w3.org/1999/xhtml">
<h:head></h:head>
<h:body>
<h:form binding="#{user.form1}" id="form1">
<h:panelGrid columns="3" binding="#{user.panelGrid1}" id="panelGrid1">
<hutputText value="user name" binding="#{user.outputText1}" id="outputText1"/>
<h:inputText binding="#{user.inputText1}" id="inputText1"/>
</h:panelGrid>
</h:form>
</h:body>
</html>
<!--oracle-jdev-comment:auto-binding-backing-bean-name:user-->
</f:view>
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2841
    
  11

It's uncommon to need "bindings" in JSF, and they're especially good to avoid if you're a beginner. I've been working with JSF for a couple of years now, and I've used a binding maybe two or three times.

Here's a good "Hello, World" example from http://www.mkyong.com/tutorials/jsf-2-0-tutorials/

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with new user
 
Similar Threads
Problem with setValue method of an HtmlOutputText object in a JSF backing bean
actionlistener for selectBooleanCheckbox doubt?
Ajax status doesn't stop in IE8
Run the MethodeBean & display the fields that corresponds to selectMenu
Number of <h:form > tags on a page