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: 
  | 
  |   | username, 
  |   | password.
  |   | 
  | 
  | 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"
  |                              
value="#{userHome.instance.credential.username}"/>
  | 
  | 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?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100119#4100119

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100119
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to