4 Replies Latest reply on Oct 30, 2007 8:03 AM by Ivan Tufegdzic

    Simple examples needed

    morten Matras Newbie

      I need to do the following:

      Create a form, where I can edit the Credentials of a User and the user.

      User.java has properties:

      String firstName,
      String surName
      Credential credential

      Credential.java has properties:


      Now I'm creating a form where I can edit the firstName and surName of the user and the users credentials.

      How can I create an input field where i can edit the credentials of the user?

      I've tried:

      <h:inputText required="true"

      But it gives an error saying that the credentials are null:

      Target Unreachable, 'credential' returned null on 'com.tmn.smile.model.User'".

      Any hints on where I can find simple examples showing how these things should be done?