struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38050] - Remote Method Call Simplification
Date Wed, 04 Jan 2006 03:26:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38050>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38050





------- Additional Comments From craig.mcclanahan@sun.com  2006-01-04 04:26 -------
(In reply to comment #4)

> [snip]
> Thanks, I hadn't seen that; however, I still don't see what I expect:
> http://shale_example/dynamic/bean/methodname.faces gets mapped to
> #{bean.methodname.faces} instead of #{bean.methodname}.
> 

This actually does work correctly, as illustrated by an update I just committed
to the Use Cases example.  The reason it actually works is that the mapping
logic in MappingImpl.mapViewId() actually strips the JSF extension mapping
suffix (well, not actually ... see below) for you.  The URL you describe above
goes through the following transformations:

ORIGINAL INCOMING REQUEST:

  http://shale_example/dynamic/bean/methodname.faces

VIEW IDENTIFIER IN FACES CONTEXT (assumes "*.faces" mapping):

  /dynamic/bean/methodname.jsp

  (assuming you haven't set the "javax.faces.DEFAULT_SUFFIX"
  context init parameter to something else)

RESOURCE IDENTIFIER RETURNED FROM MAPPING THE VIEW IDENTIFIER:
  
  /bean/methodname

METHOD BINDING EXPRESSION THAT GETS EXECUTED:

  #{bean.methodname}



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message