help!

View: New views
6 Messages — Rating Filter:   Alert me  

help!

by Richard Tchicou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I have been “surfing” the web for two days, for any documentation and/or
tutorial on berkano-user…I didn’t find anything! So, I’ll be pleased if
someone could suggest some links.
Thanks!

Richard


Re: help!

by Grégory Joseph :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Richard,

Unfortunately, there's indeed not much documentation right now other
than what you've probably already found at
http://berkano.codehaus.org/

Since you're one of the first to ask, you could probably be a guinea
pig for us - ask questions away, and that will drive documenation
writing.

Please let me know how I can help any further :)

Cheers,

greg

On 26/01/06, Richard Tchicou <richard.tchicou@...> wrote:
> Hi,
> I have been "surfing" the web for two days, for any documentation and/or
> tutorial on berkano-user…I didn't find anything! So, I'll be pleased if
> someone could suggest some links.
> Thanks!
>
> Richard
>
>

Re: help!

by Richard Tchicou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Grégory Joseph wrote:

>Hi Richard,
>
>Unfortunately, there's indeed not much documentation right now other
>than what you've probably already found at
>http://berkano.codehaus.org/
>
>Since you're one of the first to ask, you could probably be a guinea
>pig for us - ask questions away, and that will drive documenation
>writing.
>
>Please let me know how I can help any further :)
>
>Cheers,
>
>greg
>
>  
>
*How can I use a couple actions and views provided in berkano-user mgt
in my project?*

Hi Greg,
Thanks for your prompt reply. For prototyping, I would like to use a
couple of actions and views provided
in berkano-user-mgt. So, I am trying thing out! I’ve dropped the jar
file in my classpath and in my main
xwork.xml added the following lines:

<include  file="berkano-usermgt-xwork.xml"/>

<package name="usermanagement" namespace="/usermanagement" extends="berkano-usermanagement">
    <action name="user.list" class="net.incongru.berkano.usermgt.webwork.UserListAction">
                <result name="success" type="velocity">/berkano/usermgt/users_list.vm</result>
        </action>

  <action name="group.list" class="net.incongru.berkano.usermgt.webwork.GroupListAction">
                <result name="success" type="velocity">/berkano/usermgt/groups_list.vm</result>
  </action>
</package>

Webwork will throw a ConfigurationException (there is no Action mapped for
namespace/usermanagement and action name group.list) despite the fact that this
action class exists. I understood I’ve to configure that action as the “super package”
is declared as abstract. I will appreciate your help.

Cheers!


Richard




Re: help!

by Grégory Joseph :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

> Thanks for your prompt reply. For prototyping, I would like to use a
> couple of actions and views provided
> in berkano-user-mgt. So, I am trying thing out! I've dropped the jar
> file in my classpath and in my main
> xwork.xml added the following lines:
> <snip>

In fact, all you need in your xwork.xml file is
<include  file="berkano-usermgt-xwork.xml"/>
<package name="usermanagement" namespace="/usermanagement"
extends="berkano-usermanagement" />

What this does is simply expose all of the "berkano-usermanagement"
package to the "/usermanagement" namespace. (It is defined as
"abstract" in berkano, so that it's not available to URLs until the
developer using berkano decides it should be available by exposing it)
Besides, note that the templates provided with berkano are using
freemarker. (just wanted to clarify since your excerpt was mentioning
vm templates)

Other than that, have you already been able to setup the user
database, and to wire the DAOs? Are you using an IOC container? If so,
which one?

Feel free to ask more, although I might be offline for the next couple
of days, I'll pick the subject up next week ;)

Good luck + HTH,

greg

Re: help!

by Richard Tchicou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Grégory Joseph wrote:

>Hi,
>In fact, all you need in your xwork.xml file is
><include  file="berkano-usermgt-xwork.xml"/>
><package name="usermanagement" namespace="/usermanagement"
>extends="berkano-usermanagement" />
>
>What this does is simply expose all of the "berkano-usermanagement"
>package to the "/usermanagement" namespace. (It is defined as
>"abstract" in berkano, so that it's not available to URLs until the
>developer using berkano decides it should be available by exposing it)
>Besides, note that the templates provided with berkano are using
>freemarker. (just wanted to clarify since your excerpt was mentioning
>vm templates)
>
>Other than that, have you already been able to setup the user
>database, and to wire the DAOs? Are you using an IOC container? If so,
>which one?
>
>Feel free to ask more, although I might be offline for the next couple
>of days, I'll pick the subject up next week ;)
>
>Good luck + HTH,
>
>greg
>
>
>  
>
Hi Greg,
Thanks for your help. I am still struggling to view the templates. I’ve
created the user database. Then, I’ve configured the IoC container (I am
using the WebWork one) and the hibernate.cfg.xml. However, I don’t know
how to wire the DAOs…I am using a jar! Finally, I am wondering how to
expose a package. It is by overridden some actions or by setting
abstract to “no”, in the base package.
The templates provided in the version
(berkano-user-mgt-webwork-20050901) are using velocity. There are only a
couple of FreeMarker one .

Once again thanks for your help!


Richard.

Re: help!

by Grégory Joseph :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Richard,

Sorry I took so long to reply..

On 30/01/06, Richard Tchicou <richard.tchicou@...> wrote:
> Hi Greg,
> Thanks for your help. I am still struggling to view the templates. I've
> created the user database. Then, I've configured the IoC container (I am
> using the WebWork one) and the hibernate.cfg.xml. However, I don't know
> how to wire the DAOs…I am using a jar!

Hmm, I don't know how to use XWork's IOC container either. I'm not
sure it has scoped containers like pico does (one container for the
context, then one per session and one per request), so it might
require more code writing.

> Finally, I am wondering how to
> expose a package. It is by overridden some actions or by setting
> abstract to "no", in the base package.

What I meant by "exposing a package" was really just "have a package
of webwork actions available through some URL". And you just do this,
for example, with
 <package name="usermanagement" namespace="/usermanagement"
extends="berkano-usermanagement" />; like I said in an earlier mail :
> >What this does is simply expose all of the "berkano-usermanagement"
> >package to the "/usermanagement" namespace. (It is defined as
> >"abstract" in berkano, so that it's not available to URLs until the
> >developer using berkano decides it should be available by exposing it)

> The templates provided in the version
> (berkano-user-mgt-webwork-20050901) are using velocity. There are only a
> couple of FreeMarker one .

Get the latest jars from
http://dist.codehaus.org/berkano/berkano-user/SNAPSHOT/ and
http://dist.codehaus.org/berkano/berkano-user-mgt-webwork/SNAPSHOT/ ,
these should have freemarker only templates.

I'll try and write a tutorial or a decent sample one of these days,
but I've been overwhelmed by work recently, so I'm not sure when this
will happen.

Let me know how you progress

Cheers,

g