[jboss-user] [JBoss Seam] - java.lang.IllegalArgumentException: page parameter may not b

mikeluu do-not-reply at jboss.com
Tue Feb 13 21:23:13 EST 2007

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

More information about the jboss-user mailing list