I am trying to do the following:
1. from page content.xhtml, there is a link to edit the contents of that page


  | <h:outputLink value="/edit/edit_content.seam">
  |   <f:param name="id" value="#{contentView.content.id}" />
  |    Edit Content
  | </h:outputLink> 
  | 

2. i get redirected to edit/edit_content.seam to edit content 

3. there is a save button on the edit_content page defined with:


  | <h:commandButton action="#{editView.saveAction}" value="Save">
  |   <f:param name="id" value="#{editView.id}" />
  | </h:commandButton>
  | 

4. when i click on the Save button, I get the IllegalArgumentException.  IS 
THIS A BUG?  IF NOT, HOW CAN I REDIRECT BACK TO content.xhtml WITH THE content 
id param?  I have tried to set the outcome of saveAction to be 
"/content.xhtml?id=#{editView.id}", but i get the same result.  i have tried to 
concat the content id explicitly, but that results in the same issue.

I have the following pages.xml configuration:

  | <page view-id="/content.xhtml" action="#{contentView.populate}">
  |    <param name="id" value="#{contentView.id}"/>
  | </page>
  | 
  |  <page view-id="/edit/edit_content.xhtml" action="#{editView.populate}">
  |     <param name="id" value="#{editView.id}"/>
  |       <navigation from-action="#{editView.saveAction}">
  |       <rule if-outcome="success">
  |         <redirect view-id="/content.xhtml">
  |             <param name="id" value="#{editView.id}"/>
  |        </redirect>
  |      </rule>
  |    </navigation>
  |  </page>
  | 
editView and contentView beans are PAGE scoped and 
javax.faces.DEFAULT_SUFFIX=.xhtml.


Thanks for your help in advance!

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

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

Reply via email to