Fill two objects in a jsf form

Asked

Viewed 58 times

0

Good morning,

It is possible to fill two different objects in the same form?

Ex:

<p:inputText id="ordem" value="#{testeBean.objA.atributoA}" />

<p:inputText id="ordem2" value="#{testeBean.objB.atributoB}" />

To catching the first obj comes filled the second always comes null

I’m working with jsf

  • Dude why do you want to do this? These two objects have something to do with each other?

  • face worked here, yes these objects have relation. There was no mystery just directed the bean as shown in the example code. I think there was some mistake in the injection..

  • My question refers more to the design aspect of the class, put there as are the two classes

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.