RE: Multiple shunts [1] and more dynamic LanguageShuntFactory [2]

"Schnitzer, Jeff" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
#1 has to be addressed by a custom ShuntFactory.  You can't have
multiple mode attributes, but the value of a mode attribute can be a
composite:

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

It's just a question of how smart you want the ShuntFactory to be.  I'm
not sure it's possible to provide a generic tool in the Maverick package
because everyone will likely want to handle the edge cases (in
particular, the defaulting process) differently.

It's super easy to make a ShuntFactory, so I just figure that anyone who
needs something more sophisticated than LanguageShuntFactory can build
their own custom logic.

Jeff Schnitzer
[email protected]


> -----Original Message-----
> From: Aapo Laakkonen [mailto:[email protected]]
> Sent: Thursday, September 25, 2003 5:16 AM
> To: [email protected]
> Subject: [Mav-user] Multiple shunts [1] and more dynamic
> LanguageShuntFactory [2]
> 
> [1]
>
http://www.mail-archive.com/[email protected]/msg00584.html
> [2]
>
http://www.mail-archive.com/[email protected]/msg00545.html
> 
> Has anyone done anything to these? I could do a patch to
> LanguageShuntFactory [2] to have override capability depending on
> Session language attribute.
> 
> What should we do to case [1]?
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> [INVALID FOOTER]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.