aspose file tools*
The moose likes JSF and the fly likes move data on (xhtml)form to another (xhtml)form in jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "move data on (xhtml)form to another (xhtml)form in jsf" Watch "move data on (xhtml)form to another (xhtml)form in jsf" New topic
Author

move data on (xhtml)form to another (xhtml)form in jsf

sivaji balla
Greenhorn

Joined: May 11, 2012
Posts: 7
hi good morning to all,
I am new to jsf components.
After clicking the button,I want to move the data on (block)xhtml form ot antoher block of same pop up.
if anybody knows solution please tel me.
thanks in advanced
Sachin Yewale
Greenhorn

Joined: Feb 02, 2012
Posts: 21
can you explain a bit what you want to do. Have you tried something , can you post your code ?
sivaji balla
Greenhorn

Joined: May 11, 2012
Posts: 7
Sachin Yewale wrote:can you explain a bit what you want to do. Have you tried something , can you post your code ?
hi Sachin Yewale
thanks for reply.
I am using richfaces.here i have a issue
i.e,if i clicked an item which containg the data,then data the must be dragged to another place of same pop up.
I am seening an example of above funcionality.The above funcitionlity is look like <rich:drag support>.
I want to know is there any simple solution than <rich:drag support>.
sivaji balla
Greenhorn

Joined: May 11, 2012
Posts: 7
Sachin Yewale wrote:can you explain a bit what you want to do. Have you tried something , can you post your code ?

please tel me is there any solutin of above issue,
thanks in advanced
Sachin Yewale
Greenhorn

Joined: Feb 02, 2012
Posts: 21
sorry shivaji i have not used that functionality. i thought your requirement was something different so asked for more details.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

Welcome to the JavaRanch, Sivjali!

When you submit a form, if the data on the form is all valid, the backing bean property values for that form are all automatically updated with the values from that form.

Then when you display a new View, those updated values will be available from the backing bean.

If you are using a different backing bean(s) to the new View, then the action processor for the original view should set those properties in the new View's backing bean so that when the new View is displayed, the right values will be there. A common way to do this is to inject the second backing bean into the original backing bean as a Managed Property and then use POJO set/get methods to update the second bean as needed in the action processing method.


Customer surveys are for companies who didn't pay proper attention to begin with.
sivaji balla
Greenhorn

Joined: May 11, 2012
Posts: 7
Tim Holloway wrote:Welcome to the JavaRanch, Sivjali!

When you submit a form, if the data on the form is all valid, the backing bean property values for that form are all automatically updated with the values from that form.

Then when you display a new View, those updated values will be available from the backing bean.

If you are using a different backing bean(s) to the new View, then the action processor for the original view should set those properties in the new View's backing bean so that when the new View is displayed, the right values will be there. A common way to do this is to inject the second backing bean into the original backing bean as a Managed Property and then use POJO set/get methods to update the second bean as needed in the action processing method.

thank you Tim Holloway for you post.
I got that funcionality.That is look like rich:picklist.
Here i am rich:pickList to solve my problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: move data on (xhtml)form to another (xhtml)form in jsf