• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

problem with new user

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
<h:outputText value="user name" binding="#{user.outputText1}" id="outputText1"/>
^-----------------^
quickStart.jsp:9:62: The deferred EL expression is not allowed since deferredSyntaxAllowedAsLiteral is false.
<h:outputText 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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<?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">
<h:outputText 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>
 
Sheriff
Posts: 3036
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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/

 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic