Code Monkey home page Code Monkey logo

activeweb's People

Watchers

 avatar

activeweb's Issues

NPE when starting up in environment without configuration

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 reported on code.google.com by [email protected] on 4 May 2011 at 5:49

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

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 reported on code.google.com by [email protected] on 8 Aug 2011 at 6:42

Add ability to process body by flash tag

proposed behavior:

<@flash name="greeting">
This is a greeting for ${user}
</@>

This also expects that the tag would process a body dynamically with 
interpolation.

Original issue reported on code.google.com by [email protected] on 27 Jul 2011 at 9:25

Missing functionality in AppIntegrationSpec

While it is possible to execute any controller/action, it is impossible to 
add parameters as a query string 
This would be pretty nice:

controller("blah").queryString("name=value&name1=value1")....

Original issue reported on code.google.com by [email protected] on 10 Jul 2011 at 4:36

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

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 reported on code.google.com by [email protected] on 8 May 2011 at 12:54

attribute html_id don't work in LinkToTag

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 reported on code.google.com by [email protected] on 1 Jun 2011 at 5:45

Session attributes don't work in case of Ajax request

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 reported on code.google.com by [email protected] on 1 Jun 2011 at 5:51

Conversion from java.util.Date to java.sql.Date is not valid

this conversion should not even take place because java.util.Date is not DB 
-related. 
The fix is to remove conversion all together and throw IllegalArgumentException 
in case someone sticks java.utul.Date into DB class. The Model class however 
needs to have friendlier conversion methods

Original issue reported on code.google.com by [email protected] on 17 Jun 2011 at 5:30

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

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 reported on code.google.com by [email protected] on 4 May 2011 at 10:24

Add more keywords

all the tag names used in the 
http://code.google.com/p/activeweb/source/browse/trunk/activeweb/src/main/java/a
ctiveweb/freemarker/FreeMarkerTemplateManager.java
need to be added to Keywords class:
http://code.google.com/p/activeweb/source/browse/trunk/activeweb/src/main/java/a
ctiveweb/KeyWords.java

Original issue reported on code.google.com by [email protected] on 1 Aug 2011 at 4:56

Improve configuration of FreeMarker

(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 reported on code.google.com by [email protected] on 16 Apr 2011 at 6:01

Implement support for HTTP HEAD method

http://guides.rubyonrails.org/layouts_and_rendering.html#using-head-to-build-hea
der-only-responses

http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

Original issue reported on code.google.com by [email protected] on 5 May 2011 at 1:29

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.