On Fri, Jan 24, 2003 at 12:27:07PM -0800, Schnitzer, Jeff wrote:
> What is the use case that you are trying to address?  An example would
> make it easier to picture.

The actual case is probably not helpful for discussion, but here's a
simpler one:

Let's say you use the LanguageShuntFactory for some commands. And for
another (possibly overlapping) set you have a ShuntFactory that chooses
the content-type to deliver based on what the browser says it will
accept. Call it ContentShuntFactory.

Perhaps the biggest issue with having multiple shunts is that if they
both return a mode for a command, which view do you choose? You really
need pairs of modes. i.e. if language modes are "en", "fr", "de", and
content modes are "wap", "standard", you could potentially have 6 (3 x
2) different views.

I guess I am envisioning something such as multiple mode attributes:

    <command name="runQuery">
      <controller class="org.foo.Query"/>
      <view name="success" shunt="content">
        <view name="success" content="wap" path="wap/en/queryResults.jsp"/>
        <view name="success" content="wap" lang="fr" path="wap/fr/queryResults.jsp"/>
        <view name="success" content="wap" lang="de" path="wap/de/queryResults.jsp"/>
        <view name="success" path="en/queryResults.jsp"/>
        <view name="success" lang="fr" path="fr/queryResults.jsp"/>
        <view name="success" lang="de" path="de/queryResults.jsp"/>
      </view>
    </command>

-Chris


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
[INVALID FOOTER]

Reply via email to