I figured out the error. The problem comes from the core module, not the news module. 
The APIs for function findByUserID in the core don't match each other. It's 
findByUserID(Integer) in Api.java and findByUserID(int) in UserModule.java. I don't 
know if the findByUserID(int) in UserModule is used by any other module so I just left 
it there and added a function findByUserID(Integer) in UserModule. Everything then 
worked fine in news.
To set permission for the Main Menu block so users other than admin can see news 
module links, add new permisson for the group you want with pattern 'module:news:[news 
operation] (ex: newsindexpage)'. You can use (op1 | op2 | ..) to allow more than one 
operation. 

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824955#3824955";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824955>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to