Using modules in netbeans

95 views
Skip to first unread message

joshp

unread,
Nov 3, 2009, 7:52:22 PM11/3/09
to play-framework
Is there a way to modify a netbeans project so that netbeans will see
the modules that the play project includes?
Following the tutorial, netbeans can't find any of the module
classes... e.g. CRUD, Secure. Everything still works, but it makes it
a little hard to use in netbeans.

thanks


雄旮旯

unread,
Nov 3, 2009, 11:28:31 PM11/3/09
to play-fr...@googlegroups.com
run the command:
# play netbeansify myApp

Reimport your project .
You can find module in netbeans.

2009/11/4 joshp <josh...@gmail.com>

joshp

unread,
Nov 4, 2009, 1:13:54 PM11/4/09
to play-framework
tried that, still doesn't work for me.

example:

package controllers;

import play.*;
import play.mvc.*;

@Check("admin")
@With(Secure.class)
public class Posts extends CRUD {
}

netbeans cannot find the Check, Secure, CRUD symbols

AD

unread,
Nov 5, 2009, 1:16:02 AM11/5/09
to play-fr...@googlegroups.com
I filled a bug with a fix description too:
https://bugs.launchpad.net/play/+bug/474279

David

koevet

unread,
Nov 5, 2009, 7:40:12 AM11/5/09
to play-framework
Hi,

I had the same problem in Netbeans with the Secure module.
A temporary solution, is to import the whole Play! framework as
netbeans project and add the modules/secure/app folder as one of the
"Java Sources" folders.
Once this is done, any other opened project should see the Secure
modules classes.

Hope this help,
Luciano

gideonray

unread,
Nov 15, 2009, 11:08:13 AM11/15/09
to play-framework
Hello,

You can edit the project.xml file under nbproject folder and add
something like this
in configuration > general-data > folders

<source-folder>
<label>crud</label>
<type>java</type>
<location>c:\play\modules\crud\app</location>
<excludes>views/**</excludes>
</source-folder>
<source-folder>
<label>secure</label>
<type>java</type>
<location>c:\play\modules\secure\app</location>
<excludes>views/**</excludes>
</source-folder>

Note that the location is the path of the module which is located in
the folder where you installed play.

- gideon

gideonray

unread,
Nov 15, 2009, 11:27:27 AM11/15/09
to play-framework
Hello,

You can edit project.xml found under nbproject and add something like
this (in configuration > general-data > folders)

<source-folder>
<label>crud</label>
<type>java</type>
<location>c:\play\modules\crud\app</location>
<excludes>views/**</excludes>
</source-folder>
<source-folder>
<label>secure</label>
<type>java</type>
<location>c:\play\modules\secure\app</location>
<excludes>views/**</excludes>
</source-folder>


Guillaume Bort

unread,
Nov 15, 2009, 5:04:06 PM11/15/09
to play-fr...@googlegroups.com
If you have a project.xml file working with modules and netbeans 6.7
please send me. I can't make it work ...

gideonray

unread,
Nov 16, 2009, 2:16:06 AM11/16/09
to play-framework
Sorry, I think I made a wrong assumption. I've tried my solution on a
different PC and it's not working. It seems that it has something to
do with netbeans caching.

But I have found a working solution. It will work only if you specify
just the <label> and the <location>. Then close and reopen the
project.
After that, it will work with any opened project even if you don't
modify project.xml.


On Nov 16, 6:04 am, Guillaume Bort <guillaume.b...@gmail.com> wrote:
> If you have a project.xml file working with modules and netbeans 6.7
> please send me. I can't make it work ...
>

Daniel Guryca

unread,
Nov 16, 2009, 3:55:18 AM11/16/09
to play-fr...@googlegroups.com
Hey guys ... we use Netbeans 6.8 beta and everything seems to work as expected (module's artefacts are visible from within netbeans).
And yes we use unmodified play netbeansify + unmodified xml file.

Cheers
Daniel

gideonray

unread,
Nov 16, 2009, 4:37:44 AM11/16/09
to play-framework
So maybe this problem is a limitation in netbeans 6.7.1.
I guess I should start using Netbeans 6.8 beta.

Thanks for the info Daniel.

Sanjay Amin

unread,
May 25, 2013, 5:46:12 AM5/25/13
to play-fr...@googlegroups.com
Hi,
I am new to NetBeans. I have created a login module for my application and I want to stop loading the main window if login is failed. How can I achieve to stop/prevent loading of main screen which is extending TopComponent? Is there anything programmatically I can stop loading other modules?
Thanks!!
Reply all
Reply to author
Forward
0 new messages