• Post Reply Bookmark Topic Watch Topic
  • New Topic

mapping bean properties question

 
Ahmed Basheer
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a jsf page I want to set the property of bean2 from the property of bean1. How should I do it? e.g the page looks as follows.

<hutputText value="#{bean1.property1}/>

After this I want to set the bean2.property1 to bean1.property1. Do I have to use ajax?

Thank you in advance.
-Ahmed
 
Vishal Maru
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should work

<jsp:setProperty name="bean1" property="property1" value="<%=bean2.property1>" />
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!