[jboss-user] [JBoss Seam] - Re: Seam Page Parameters

iradix do-not-reply at jboss.com
Tue Nov 7 15:41:14 EST 2006


I'm running into another problem.  It seems that the converter specified in pages.xml is used to convert from String to Object, but not from Object to String.  I don't suppose that's by design?  The method I'm looking at is:

public Map<String, Object> getParameters(String viewId, Set<String> overridden)
  |    {
  |       Map<String, Object> parameters = new HashMap<String, Object>();
  |       for ( PageParameter pageParameter: getPage(viewId).pageParameters )
  |       {
  |          if ( !overridden.contains(pageParameter.name) )
  |          {
  |             Object value = pageParameter.valueBinding.getValue();
  |             if (value!=null)
  |             {
  |                parameters.put(pageParameter.name, value);
  |             }
  |          }
  |       }
  |       return parameters;
  |    }

Which seems to just retrieve the value from the page parameter value binding without passing it through the converter at all.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983912



More information about the jboss-user mailing list