Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i call an action method from a sub-view

 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My requirement is as follows:
I have one header.jsp which has many command links and this jsp is a subview which i've included using tiles.
And the body (this is the view)can be any of the pages rendered on clicking of any link in the header.
The body page has many command buttons onclick of which i'll call respective pages.
How will i write navigation rules for this scenario? Because i can have only one view per page and header has commandlinks and body also has links/buttons?
 
Darryl Nortje
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shasi,

What happens when you put commandAction in both views? Does it break?

It really is best to try these things out and show your output.

cheers
Darryl
 
srinivas bodapati
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi sashi,

For your problem, I think you can have a different form in each of your <f:subview> and thus a command button submits only that form.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic