You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2006/04/11 07:39:22 UTC
DO NOT REPLY [Bug 39141] - Shale tiger extension inside jboss, library path config
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=39141>.
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=39141
------- Additional Comments From craig.mcclanahan@sun.com 2006-04-11 06:39 -------
(In reply to comment #0)
> Inside JBOSS server the library location is not only WEB-INF/lib.
> Maybe init parameter to change lib search location will be very good.
Are all of the alternate locations somewhere in a parent class loader? If so,
it might be better to search up through the class loader hierarchy. If a
URLClassLoader is found, then the individual JAR files can be examined for the
existence of a META-INF/faces-config.xml resource.
However, to avoid making startup performance substantially worse, this kind of
search should probably be turned off by default, but enabled by an init parameter.
>
> In the View annotation class , why you not asign the value of view id ?
> and bean name for view ?
> something like @View(viewId="/sec/test.jsp",name="sec$test") or more extended
> @Views( {@View(...),@View{...}} ?
>
The class that implements ViewController has no reason that it needs to know
what view identifier it is associated with -- the dependency relationship is one
directional. Such a declaration would also reduce possibilities for reuse.
Further, using a mapper is a use of the "convention over configuration" strategy
-- one of the things that environments like Ruby on Rails uses to reduce the
amount of explicit configuration needed.
> How can i change default maping ?
>
This kind of question is better asked on the user mailing list, so everyone can
benefit from the answer. But the current answer is to have your application
startup code store, as an application scope attribute under key
Constants.VIEW_MAPPER, an instance of some class that implements
ViewControllerMapper. If there is no such instance installed, an instance of
org.apache.shale.view.impl.DefaultViewControllerMapper is used.
Yes, it would be more friendly to provide a context init parameter to define the
implementation class to use. Will look at doing that too -- but the method
described above will work.
>
> Cristi
--
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