GithubHelp home page GithubHelp logo

activeweb's Introduction

activeweb's People

Contributors

artdaw avatar doctorrokter avatar ericbn avatar evanleonard avatar fabio avatar ipolevoy avatar martyukhov avatar mppfiles avatar tbeauvais avatar vasyalike avatar yanchevsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

activeweb's Issues

Improve configuration of FreeMarker

Original author: [email protected] (April 16, 2011 06:01:58)

(09:14:45 PM) [email protected]/102ED2CB: ...I should probably think it over
(09:14:55 PM) [email protected]/102ED2CB: maybe a better solution is necessary
(09:15:13 PM) [email protected]/102ED2CB: something like a FreeMarkerConfig.init() - in tests this needs to be called automatically in cases where integrateViews() is set.
(09:15:21 PM) [email protected]/102ED2CB: where you register all your tags
(09:15:28 PM) [email protected]/102ED2CB: and this is called in SpecHelper
(09:15:31 PM) [email protected]/102ED2CB: always
(09:15:58 PM) [email protected]/102ED2CB: do that you had the same tags available in tests, as at runtime, even if you do not have filters
(09:16:09 PM) [email protected]/102ED2CB: this is because pages can/do have tags

Original issue: http://code.google.com/p/activeweb/issues/detail?id=4

Filter's members are not injected when filter applied to specific action

Original author: [email protected] (August 12, 2011 13:56:08)

When adding filter for specific action, e.g.
add(new MyFilter()).to(MyController.class).forActions("index");
members of filter are not Guice-injected.

ControllerRegistry, lines 86-91:

for (String key : metaDataMap.keySet()) {
ControllerMetaData controllerMetaData = metaDataMap.get(key);
for (ControllerFilter filter : controllerMetaData.getFilters()) {
injector.injectMembers(filter);
}
}

Here ControllerMetaData returns only filters that are applied to the whole controller. Specific action filters are not returned, hence members for them are not injected.

Original issue: http://code.google.com/p/activeweb/issues/detail?id=54

If compiler not found on classpath, needs to load a controller with default class loader

Original author: [email protected] (May 04, 2011 22:24:18)

activeweb.ControllerLoadException: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
at activeweb.ControllerFactory.getControllerClass(ControllerFactory.java:56)
at activeweb.ControllerFactory.createControllerInstance(ControllerFactory.java:62)
at activeweb.Router.recognize(Router.java:66)
at activeweb.RequestDispatcher.doFilter(RequestDispatcher.java:95)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

Original issue: http://code.google.com/p/activeweb/issues/detail?id=17

NPE when starting up in environment without configuration

Original author: [email protected] (May 04, 2011 17:49:00)

If ACTIVE_ENV is set to a value without equivalent in DbConfig, there is an NPE:

activeweb.InitException: failed to create a new instance of class: app.config.AppBootstrap: class java.lang.NullPointerException:null

    at java.util.Hashtable.put(Hashtable.java:394)

    at java.util.Properties.setProperty(Properties.java:143)

    at app.config.DbConfig.getTestingProperties(DbConfig.java:38)

    at app.config.DbConfig.init(DbConfig.java:17)

    at app.config.AppBootstrap.init(AppBootstrap.java:18)

    Truncated. see log file for complete stacktrace

Caused By: java.lang.NullPointerException

    at java.util.Hashtable.put(Hashtable.java:394)

    at java.util.Properties.setProperty(Properties.java:143)

    at app.config.DbConfig.getTestingProperties(DbConfig.java:38)

    at app.config.DbConfig.init(DbConfig.java:17)

    at app.config.AppBootstrap.init(AppBootstrap.java:18)

    Truncated. see log file for complete stacktrace

Original issue: http://code.google.com/p/activeweb/issues/detail?id=16

attribute html_id don't work in LinkToTag

Original author: [email protected] (June 01, 2011 17:45:41)

You can fix it easily, by adding next statements in LinkToTag.java

if(params.get("html_id")!= null){
tf.attribute("id", params.get("html_id").toString());
}
tf.addAttributesExcept(params, "controller", "action", "form", "id", "method",
"query_string", "query_params", "context_path", "destination",
"before", "before_arg", "after", "after_arg", "confirm", "error", "html_id");

(code from FormTag.java)

Original issue: http://code.google.com/p/activeweb/issues/detail?id=37

render(String, Map) requires an absolute file path, and it should not

Original author: [email protected] (August 08, 2011 18:42:29)

What steps will reproduce the problem?
1.render("activity_content").noLayout(); //this works
2.render("activity_content", new HashMap()).noLayout(); //this all of the sudden breaks with FileNotFound exception

We expect the render(String, Map) to act the same way as render(String) does so if i decide to add a map to my previous render() method then nothing should break.

What version of the product are you using? On what operating system?
1.1

Original issue: http://code.google.com/p/activeweb/issues/detail?id=50

activeweb/Router.java missing single quote on line 186.

Original author: [email protected] (May 08, 2011 12:54:59)

Error message thrown from Router.java:186 is missing a single quote.

184 if (action != null && !(action.equals("new_form") || action.equals("edit_form"))) {
185 throw new IllegalArgumentException("Illegal action name: '" + action +
186 ", allowed names for restful controllers: 'new_form' and 'edit_form'");
187 }

The single quote should be between the double-quote and the comma at the beginning of the line.

"',

Low priority. I realize this is a nit-pick.

Thanks for the great framework!

Phil

Original issue: http://code.google.com/p/activeweb/issues/detail?id=25

Session attributes don't work in case of Ajax request

Original author: [email protected] (June 01, 2011 17:51:24)

What steps will reproduce the problem?
1.I am using @link_to tag with some destination(ajax call)
2. In controller I do some action and want to render template, where some session variable used, as I see in case of Ajax request session variables are not copied in context(opposite general request). I mean ParamCopy.copyInto((controllerResponse.values())); isn't called

I didn't sure is it issue at all, but I want to hear your oppinion.
I can directly put in view my session object, anyway,
view("sessionAtr", session().get("sessionAttr"));

But I didn't sure is it proper.

Original issue: http://code.google.com/p/activeweb/issues/detail?id=38

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.