Illegal Syntax for Set Operation

Abdelghani AINOUSS

I have a problem in connecting My xhtml page to the managed bean, the action on the commandButton works but when it comes to passing values it doesn't work. here is my jsf code:

 <h:form id="form" class="form-signin">
            <p:panel id="panel" header=" Authentification" style="" >
                <h:panelGrid columns="2" rowClasses="3">  
                    <h:outputLabel  for="login" value="Nom d'utilisateur :"  styleClass=""/>  
                    <p:inputText id="login" value=" #{authenticationBean.profil.login }" required="true" label="login" >  
                        <f:validateLength minimum="4" />  
                    </p:inputText>  
                    <h:outputLabel for="password" value="Mot de passe :" /> 
                    <p:password id="password" value=" #{authenticationBean.profil.password }" required="true" label="password" styleClass=""/> 

                    <p:row>
                        <p:commandButton id="loginButton" value="Login" ajax="false" action="#{authenticationBean.validate}" />
                        <h:messages id="messages" globalOnly="false"/>
                    </p:row> 
                </h:panelGrid>
            </p:panel> 
        </h:form>

i'm using morphia to map data to mongo db, i have also an entitie called profil and one bean to manage authenfication. here is my athentication bean Code :

public class AuthenticationBean implements Serializable {
private static final long serialVersionUID = 1L;
private Profil profil;
private ProfilDAO profileDao = DAOFactory.getProfilDAO();

public void validate() {
    FacesMessage message = new FacesMessage("Succès de l'inscription !");
    FacesContext.getCurrentInstance().addMessage(null, message);

}
// getters and setters 

here is my profil entitie code :

@Entity("profils")
public class Profil {
@Id protected ObjectId _id;
protected String nomProfil,prenomProfil,login,password;
@Embedded protected List<Droit> droits;
@Reference protected Admin admin;
public Profil() {
}
//getters and setters ...

this is the eror i get when i submit some data and click the submit button :

javax.el.PropertyNotWritableException: /index.xhtml @29,125 value=" #{authenticationBean.profil.login }": Illegal Syntax for Set Operation
BalusC

Look closer at the value and compare with what all sane JSF tutorials/examples try to show you:

value=" #{authenticationBean.profil.login }"

Whitespace is significant in attributes and EL expressions. Get rid of it:

value="#{authenticationBean.profil.login}"

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Akka Quickstart: An illegal reflective access operation has occurred

From Dev

Haskell IO - hGetContents: illegal operation (handle is closed)

From Dev

Illegal mix of collations for operation 'like' while searching with Ignited-Datatables

From Dev

REST API best HTTP Status response for illegal operation

From Dev

Illegal Syntax for Set Operation: How to tell JSF I don't "want" a setter

From Dev

syntax error in join operation access

From Dev

#1271 - Illegal mix of collations for operation 'UNION'

From Dev

java.sql.SQLException: Illegal operation on empty result set. when authenticating

From Dev

SyntaxError: Unexpected token ILLEGAL. Please help me insert syntax

From Dev

Android: PatternSyntaxException: Syntax error U_ILLEGAL_ARGUMENT_ERROR

From Dev

When trying to generate random Unicode, Syntax Error "Illegal" token

From Dev

Is this syntax illegal?

From Dev

Is this template syntax illegal?

From Dev

Bower install: Error: EISDIR: illegal operation on a directory, read

From Dev

#1271 - Illegal mix of collations for operation 'UNION' in like query

From Dev

java.sql.SQLException : Illegal operation on empty result set

From Dev

Illegal syntax for subtype indication VHDL200X

From Dev

'&' illegal operation on bound member function expression error

From Dev

newer gcc gives illegal syntax error in a header file

From Dev

Haskell IO - hGetContents: illegal operation (handle is closed)

From Dev

Syntax error file operation

From Dev

#1271 - Illegal mix of collations for operation 'UNION'

From Dev

java.sql.SQLException: Illegal operation on empty result set. when authenticating

From Dev

Is this syntax illegal?

From Dev

AngularJS route syntax error illegal character

From Dev

Illegal mix of collations for operation 'like' with PDO bindValue()

From Dev

Gulp Build command is failing with error " EISDIR: Illegal operation on directory"

From Dev

java.sql.SQLException Illegal operation on empty result set

From Dev

Custom Multer storage - Illegal operation when using Sharp

Related Related

  1. 1

    Akka Quickstart: An illegal reflective access operation has occurred

  2. 2

    Haskell IO - hGetContents: illegal operation (handle is closed)

  3. 3

    Illegal mix of collations for operation 'like' while searching with Ignited-Datatables

  4. 4

    REST API best HTTP Status response for illegal operation

  5. 5

    Illegal Syntax for Set Operation: How to tell JSF I don't "want" a setter

  6. 6

    syntax error in join operation access

  7. 7

    #1271 - Illegal mix of collations for operation 'UNION'

  8. 8

    java.sql.SQLException: Illegal operation on empty result set. when authenticating

  9. 9

    SyntaxError: Unexpected token ILLEGAL. Please help me insert syntax

  10. 10

    Android: PatternSyntaxException: Syntax error U_ILLEGAL_ARGUMENT_ERROR

  11. 11

    When trying to generate random Unicode, Syntax Error "Illegal" token

  12. 12

    Is this syntax illegal?

  13. 13

    Is this template syntax illegal?

  14. 14

    Bower install: Error: EISDIR: illegal operation on a directory, read

  15. 15

    #1271 - Illegal mix of collations for operation 'UNION' in like query

  16. 16

    java.sql.SQLException : Illegal operation on empty result set

  17. 17

    Illegal syntax for subtype indication VHDL200X

  18. 18

    '&' illegal operation on bound member function expression error

  19. 19

    newer gcc gives illegal syntax error in a header file

  20. 20

    Haskell IO - hGetContents: illegal operation (handle is closed)

  21. 21

    Syntax error file operation

  22. 22

    #1271 - Illegal mix of collations for operation 'UNION'

  23. 23

    java.sql.SQLException: Illegal operation on empty result set. when authenticating

  24. 24

    Is this syntax illegal?

  25. 25

    AngularJS route syntax error illegal character

  26. 26

    Illegal mix of collations for operation 'like' with PDO bindValue()

  27. 27

    Gulp Build command is failing with error " EISDIR: Illegal operation on directory"

  28. 28

    java.sql.SQLException Illegal operation on empty result set

  29. 29

    Custom Multer storage - Illegal operation when using Sharp

HotTag

Archive