Re: [Rife-users] rest support

2007-02-07 Thread Emmanuel Okyere

Christian,

Have you seen blabla list? this is a link to it's REST API:
http://rifers.org/wiki/display/BLA/REST+API

You don't have to do anything special to return XML over HTTP; just
set your templates to describe the xml structs you want to return with
value placeholders for the dynamic bits, just as you would for an
xhtml output. Download the blabla code. Should help more.

HTH

Cheers,
Emmanuel

On 2/7/07, Christian Vest Hansen [EMAIL PROTECTED] wrote:

Hi,

There aren't any special support for REST style web services in RIFE, are there?
At my company, they've gone web service crazy, and as a developer I'm
finding myself in the middle of it all.
I noticed that many of the services that I create are nothing more
than simple crud operations - this fits rather nicely with a REST
architecture.
And then it hit me; if I'm not mistaken, RIFE/Crud can generate fully
functional websites based on just the entity beans and the meta data
classes, to support precisely that I'm coding by hand these days, the
only difference being that I'm writing web services, and RIFE/Crud
generates web sites with HMTL and all that. So, if I can generate
entier web sites, then I ought to be able to generate some web
services too, boasting the same exact functionality.

If this isn't already in there, how hard do you think it would be to add?


--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
blog -- http://eokyere.blogspot.com
RIFE Framework -- http://rifers.org
RIFE Training  -- http://rifers.org/training

Mohandas Gandhi - You must be the change you wish to see in the world.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] rest support

2007-02-07 Thread Emmanuel Okyere

You cannot make a POST submission from the location bar; if you have a
form nothing prevents you from specifying the method for your
submissions.

cheers,
Emmanuel

On 2/7/07, Christian Vest Hansen [EMAIL PROTECTED] wrote:

Hmm... it's lacking in some respects, if you want to go purist.

Take this URL from the wiki:

http://blablalist.com/createlist?
submission=credentials
login=johnsmith
password=password
submission=create
name=Things+I+need+to+do+today

That looks like a HTTP GET to me, in which case, it is missing on a
key point of REST: the HTTP verbs.

Instead, it should have been a POST to this URL (for instance):

http://blablalist.com/lists/Things+I+need+to+do+today/

With this XML document in the POST payload:

list
credentials
loginjohnsmith/login
passwordpassword/password
/credentials
/list

This is the kind of thing that I thought would be nice if it could be
auto generated based on meta data :)

Some extra info: http://www.xfront.com/REST-Web-Services.html


2007/2/7, Emmanuel Okyere [EMAIL PROTECTED]:
 Christian,

 Have you seen blabla list? this is a link to it's REST API:
 http://rifers.org/wiki/display/BLA/REST+API

 You don't have to do anything special to return XML over HTTP; just
 set your templates to describe the xml structs you want to return with
 value placeholders for the dynamic bits, just as you would for an
 xhtml output. Download the blabla code. Should help more.

 HTH

 Cheers,
 Emmanuel

 On 2/7/07, Christian Vest Hansen [EMAIL PROTECTED] wrote:
  Hi,
 
  There aren't any special support for REST style web services in RIFE, are 
there?
  At my company, they've gone web service crazy, and as a developer I'm
  finding myself in the middle of it all.
  I noticed that many of the services that I create are nothing more
  than simple crud operations - this fits rather nicely with a REST
  architecture.
  And then it hit me; if I'm not mistaken, RIFE/Crud can generate fully
  functional websites based on just the entity beans and the meta data
  classes, to support precisely that I'm coding by hand these days, the
  only difference being that I'm writing web services, and RIFE/Crud
  generates web sites with HMTL and all that. So, if I can generate
  entier web sites, then I ought to be able to generate some web
  services too, boasting the same exact functionality.
 
  If this isn't already in there, how hard do you think it would be to add?
 
 
  --
  Venlig hilsen / Kind regards,
  Christian Vest Hansen.
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 


 --
 blog -- http://eokyere.blogspot.com
 RIFE Framework -- http://rifers.org
 RIFE Training  -- http://rifers.org/training

 Mohandas Gandhi - You must be the change you wish to see in the world.
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
blog -- http://eokyere.blogspot.com
RIFE Framework -- http://rifers.org
RIFE Training  -- http://rifers.org/training

Mohandas Gandhi - You must be the change you wish to see in the world.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] Fwd: BOF 24 Planning

2007-01-17 Thread Emmanuel Okyere

FYI:

rife will be represented at the web framework smackdown :)

cheers,
Emmanuel

-- Forwarded message --
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Jan 17, 2007 5:26 PM
Subject: RE: BOF 24 Planning
To: [EMAIL PROTECTED]

Hi Lauren


As promised here is some more content for JAVAWUG BOF 24 :



The evening will consists of a so-called web framework smack-down between
three proponents.
We will convene and discuss the pros and cons of the following web
frameworks.


  1. RIFE - Emmanuel Okyere will be representing this candidate. RIFE is
  a new generation full-stack framework that is based on advanced template
  technology, it is considered a pioneer in its field. For example RIFE was
  one of the first to build in a continuations framework.
  2. Spring MVC - Peter Pilgrim will be representing this framework.
  This is a web framework that was designed by Rod Johnson to be better than
  Struts Classic edition. This framework is strongly associated with the
  Spring Framework itself and also the companion project Spring Webflow
  3. Kevin Saunders will deliver a short presentation on using Java 5.0/ JSP
  2.0 / EL / Servlet 2.4 as your web framework. That is, he will be
  representing the standard APIs, with the tools available out-of-the-box.
  He will show examples using the current version of Java together with
  the recent JSP/Servlet specification which will allow you to create MVC
  sites very quickly and easily.

  In particular the current version of EL has knicked most of the good
  things about Struts and is definately worth a look
  4. Fourth person - (Adam Hardy , Eclipse Tomcat based Applications
  TBC)


At the time of going to press the evening may take the place of a panel
discussion with each representative
providing a demonstration with strong interaction with the audience. So the
BOF may or may not follow a
mini open space technology discussion style.

Some additional questions to worth pondering:


  - What type of applications are suited the web application framework
  in question?
  - What are pros and cons of each framework?
  - How easy is it to learn?
  - What are the dependencies for each framework? (e.g Java EE, J2EE,
  Apache etc )
  - Are there any tools that support any of these frameworks in order to
  ease-development?
  - Are these frameworks easy to extend?
  - Are there real-world examples out there on the net publicly
  available?
  - How do these frameworks support AJAX?
  - How will these frameworks feature in an increasingly Web 2.0 world?



--
Peter Pilgrim
UBS Investment Bank,
Client Portal Dev LDN,
Triton Court, 14 Finsbury Square, London, EC2A 1PD
United Kingdom (  +44 (0)207 56 75692 )
:: Java EE Spring 2.0 Hibernate 3.2 Development ::



--
*From:* Lauren Clegg [mailto:[EMAIL PROTECTED]
*Sent:* 15 January 2007 10:12
*To:* Pilgrim, Peter
*Subject:* Re: Skills Matter Availability

Hi Peter,

I did have a great Christmas and New Year's - thank you! I went back to
Boston for Christmas and was also back in London for New Year's Eve. Monday,
19th February works for us, I have added the meeting to the schedule. If you
could just send me a brief write-up, description, etc. of what the BOF will
be all about so that I can make a registration page on our website ASAP,
that would be great!

Thanks!
Lauren
--
 *Lauren Clegg*
Marketing

*t* 0207 1072620
*f* 0207 1072621
*e* [EMAIL PROTECTED]

*Skills Matter 2007 Events!!

The RoR eXchange, feat. Chad Fowler, James Cox, and more! - February
9thhttp://www.skillsmatter.com/rorexchange

The Grails eXchange, feat. Graeme Rocher, Dierk Koenig, and more! - May
30th-June 1st http://skillsmatter.com/menu/339
*

*Skills Matter Ltd*
http://www.skillsmatter.com1 Sekforde Street
London, EC1R 0BE
United Kingdom
Maphttp://maps.google.co.uk/maps?f=qhl=ensll=51.524038,-0.102782sspn=0.002991,0.007317q=skills+matter+Ltdom=1



Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.

UBS Limited is a company registered in England  Wales under company
number 2035362, whose registered office is at 1 Finsbury Avenue,
London, EC2M

Re: [Rife-users] Fwd: BOF 24 Planning

2007-01-17 Thread Emmanuel Okyere

Geert,

Sorry, I thought the fwd contained enough info; it's our usual Javawug
meeting (at skillsmatter) and we decided that an expert on a web app
framework comes out to defend it. Sort of a boxing match between the
frameworks (based on a user's experience).

Some questions (but not restricted):


 What type of applications are suited the web application framework
 in question?
 What are pros and cons of each framework?
 How easy is it to learn?
 What are the dependencies for each framework? (e.g Java EE, J2EE,
 Apache etc )
 Are there any tools that support any of these frameworks in order
 to ease-development?
 Are these frameworks easy to extend?
 Are there real-world examples out there on the net publicly available?
 How do these frameworks support AJAX?
 How will these frameworks feature in an increasingly Web 2.0 world?


Cheers,
Emmanuel

On 1/17/07, Geert Bevin [EMAIL PROTECTED] wrote:

When is that?

On 17 Jan 2007, at 18:33, Emmanuel Okyere wrote:

 FYI:

 rife will be represented at the web framework smackdown :)

 cheers,
 Emmanuel

 -- Forwarded message --
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Jan 17, 2007 5:26 PM
 Subject: RE: BOF 24 Planning
 To: [EMAIL PROTECTED]

 Hi Lauren


 As promised here is some more content for JAVAWUG BOF 24 :



 The evening will consists of a so-called web framework smack-down
 between three proponents.
 We will convene and discuss the pros and cons of the following web
 frameworks.

 RIFE - Emmanuel Okyere will be representing this candidate. RIFE is
 a new generation full-stack framework that is based on advanced
 template technology, it is considered a pioneer in its field. For
 example RIFE was one of the first to build in a continuations
 framework.
 Spring MVC - Peter Pilgrim will be representing this framework.
 This is a web framework that was designed by Rod Johnson to be
 better than Struts Classic edition. This framework is strongly
 associated with the Spring Framework itself and also the companion
 project Spring Webflow
 Kevin Saunders will deliver a short presentation on using Java
 5.0 / JSP 2.0 / EL / Servlet 2.4 as your web framework. That is, he
 will be representing the standard APIs, with the tools available
 out-of-the-box. He will show examples using the current version of
 Java together with the recent JSP/Servlet specification which will
 allow you to create MVC sites very quickly and easily.
 In particular the current version of EL has knicked most of the
 good things about Struts and is definately worth a look

 Fourth person - (Adam Hardy , Eclipse Tomcat based Applications TBC)

 At the time of going to press the evening may take the place of a
 panel discussion with each representative
 providing a demonstration with strong interaction with the
 audience. So the BOF may or may not follow a
 mini open space technology discussion style.

 Some additional questions to worth pondering:

 What type of applications are suited the web application framework
 in question?
 What are pros and cons of each framework?
 How easy is it to learn?
 What are the dependencies for each framework? (e.g Java EE, J2EE,
 Apache etc )
 Are there any tools that support any of these frameworks in order
 to ease-development?
 Are these frameworks easy to extend?
 Are there real-world examples out there on the net publicly available?
 How do these frameworks support AJAX?
 How will these frameworks feature in an increasingly Web 2.0 world?

 --
 Peter Pilgrim
 UBS Investment Bank,
 Client Portal Dev LDN,
 Triton Court, 14 Finsbury Square, London, EC2A 1PD
 United Kingdom (  +44 (0)207 56 75692 )
 :: Java EE Spring 2.0 Hibernate 3.2 Development ::




 From: Lauren Clegg [mailto:[EMAIL PROTECTED]
 Sent: 15 January 2007 10:12
 To: Pilgrim, Peter
 Subject: Re: Skills Matter Availability

 Hi Peter,

 I did have a great Christmas and New Year's - thank you! I went
 back to Boston for Christmas and was also back in London for New
 Year's Eve. Monday, 19th February works for us, I have added the
 meeting   to the schedule. If you could just send me a brief write-
 up, description, etc. of what the BOF will be all about so that I
 can make a registration page on our website ASAP, that would be great!

 Thanks!
 Lauren
 --
 Lauren Clegg
 Marketing

 t 0207 1072620
 f 0207 1072621
 e [EMAIL PROTECTED]

 Skills Matter 2007 Events!!

 The RoR eXchange, feat. Chad Fowler, James Cox, and more! -
 February 9th

 The Grails eXchange, feat. Graeme Rocher, Dierk Koenig, and more! -
 May 30th-June 1st
 logo.gif


 Skills Matter Ltd
 1 Sekforde Street
 London, EC1R 0BE
 United Kingdom
 Map


 Visit our website at http://www.ubs.com

 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your

Re: [Rife-users] Time for a common pitfalls section in the Wiki...

2006-12-19 Thread Emmanuel Okyere

JAF (http://java.sun.com/products/javabeans/jaf/downloads/index.html)
is necessary for handling MIME types.

cheers,
Emmanuel

On 12/19/06, David HM Spector [EMAIL PROTECTED] wrote:

I just posted this to the cookbook, but its probably useful for anyone
trying to get the email scheduler working:

Not mentioned anywhere that I've seen, two external libraries are needed in
order to make the email scheduler work: the Java Mail API and the Java
Activation Framework (JAF) (both available from java.sun.com)

Pretty obvious: Without the Java Mail API's mail.jar you won't be able to
compile programs that send mail (javax.mail.* will be missing).

Not Obvious At All:  Without the JAF's activation.jar you'll get cryptic
messages from the scheduler about javax/activation/Datasouce not being found
coming from DatabaseMailQueueExecutor.java's gotBeanInstance() method.

Both should be placed in the lib directory (same place as the Rife jar).

_DHMS


---

  David HM Spector

spector (at) zeitgeist.com
http://www.zeitgeist.com/

~ ~ ~

New and stirring things are belittled because if they are not belittled,
the

humiliating question arises, 'Why then are you not taking part in them?'


  --H. G. Wells

___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users






--
blog -- http://eokyere.blogspot.com
RIFE Framework -- http://rifers.org
RIFE Training  -- http://rifers.org/training

Mohandas Gandhi - You must be the change you wish to see in the world.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] exit after form submission

2006-11-02 Thread Emmanuel Okyere

How do you know the outputbean is not being set? How does your site
structure look like? Do you have a test case?

Cheers,
Emmanuel

On 11/1/06, Henk [EMAIL PROTECTED] wrote:

Hi,

I have a form handled by element1, after a successful submission the
results have to be handled by element2.
I have this code in element1 :
TrackSubmissionBean trackBean =
(TrackSubmissionBean)getSubmissionBean(TrackSubmissionBean.class);
if (trackBean != null) {
Validated val = (Validated)trackBean;
if (val.validate()) {
setOutputBean(trackBean,trackformbean);
exit(element2);
} else {
Set errors = val.getValidationErrors();
ValidationBuilderXhtml builder = new
ValidationBuilderXhtml();
builder.generateErrorMarkings(templ, errors, null, null);

}
}

Apparently, the exit to element2 does not receive the output bean
values.  Is there another way I need to follow ?

Thanks

Henkl
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
blog -- http://eokyere.blogspot.com
RIFE Framework -- http://rifers.org
RIFE Training  -- http://rifers.org/training

It is always something
(corollary). Good, Fast, Cheap: Pick any two (you can't have all three).

RFC 1925
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] Fwd: London Eclipse Birthday party

2006-11-02 Thread Emmanuel Okyere
if you use eclipse, are in london, and have some free time next week, let's go do it eclipse style :)cheers,Emmanuel-- Forwarded message --From: 
Thibaut Rouffineau [EMAIL PROTECTED]Date: Nov 2, 2006 2:02 PMSubject: London Eclipse Birthday partyTo: 
[EMAIL PROTECTED]


  






Hi Emanuel,
Here are more info about the bday party :D

The Eclipse foundation is
proud to announce and organise the:

http://www.eclipse.org/community/eclipsebirthday5/birthdayparties.php


As it says on the gif!
The venue:

Bar
Kick 
 127 Shoreditch High Street, London. E1 6JE 
http://www.cafekick.co.uk/

There will be an area
booked for the party and one or two football tables as well.


See
you all there!



Stay tuned for more details!
Anyone interested in participating please RSVP on 
http://www.eclipse.org/community/eclipsebirthday5/birthdayparties.php

If you know of any company willing to sponsor the event, let me
know.

Cheers
Thibaut Rouffineau
Symbian Ltd. UK.
Mobile: +44 (0)7768421323







  
** Symbian Software Ltd is a
company registered in England and Wales with registered number
4190020 and registered office at 2-6 Boundary Row, Southwark,
London,  SE1 8HP, UK. This message is intended only for use by the
named addressee and may contain privileged and/or confidential
information. If you are not the named addressee you should not
disseminate, copy or take any action in reliance on it. If you have
received this message in error please notify [EMAIL PROTECTED]
and delete the message and any attachments accompanying it
immediately. Neither Symbian nor any of its Affiliates accepts
liability for any corruption, interception, amendment, tampering or
viruses occurring to this message in transit or for any message
sent by its employees which is not in compliance with Symbian
corporate policy. *
* 

-- blog -- http://eokyere.blogspot.comRIFE Framework -- http://rifers.orgRIFE Training-- 
http://rifers.org/trainingIt is always something(corollary). Good, Fast, Cheap: Pick any two (you can't have all three).RFC 1925
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] list of inputs in a form

2006-10-26 Thread Emmanuel Okyere

Henk,

I think you can give them the same name, and probably have a different
id for each of them.

Then use the getParameterValues() (or any of the speicialized ones:
getParametertypeValues) call to retrieve them in the order they
appear in the template output.

HTH

Cheers,
Emmanuel

On 10/26/06, Henk [EMAIL PROTECTED] wrote:

Hi guys,

I want to show and process a form with some textinput tags, the number
of inputs depending on some value I know on beforehand.  E.g. I know a
user needs to input three comments, so I show three textarea's.  But how
should I name these textareas in order to be able to process them easily
?  I know in php, one can use an array notation (like comment[]), is
there some trick available in Rife too ?

Thanks a lot,

Henk
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
blog -- http://eokyere.blogspot.com
RIFE -- http://rifers.org
RIFE Training -- http://rifers.org/training

It is always something
(corollary). Good, Fast, Cheap: Pick any two (you can't have all three).

RFC 1925
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] How to use Rife for file download?

2006-10-25 Thread Emmanuel Okyere

you lost me at the send down a file bit

On 10/26/06, ying lcs [EMAIL PROTECTED] wrote:

Hi,

I am trying to write a Java web app using Rife.
So i need a page which takes some info from user and it has a submit button.
If the validation of the info entered by user is correct, the web app
will send down a file.

How can I do that with Rife?

Thank you.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
+44.790.449.0207 (London, NW10)

rife -- http://rifers.org/
blog -- http://eokyere.blogspot.com/
rife training -- http://rifers.org/training

Malcolm Forbes - Failure is success if we learn from it.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RifeFilter Not Found

2006-10-06 Thread Emmanuel Okyere

the web.xml file looks fine to me

can you post the command u r using to start jetty? most of the
classpath problems i've had with it had to do with not setting the
rife.webapp.path parameter.

ie.  -Drife.webapp.path=...

hth

cheers,
Emmanuel

On 10/6/06, Jeremy Whitlock [EMAIL PROTECTED] wrote:

Hi All,
I have ran RIFE before and now that I'm back in the game, I've followed
previous RIFE packaging steps for my new app.  The web app has the rife jar
in the lib directory and the structure is that the same as before (rep,
site, templates and elements are in the web-app's classes directory).  Below
is the stack trace and my web.xml:

STACKTRACE
-
org.apache.maven.lifecycle.LifecycleExecutionException:
Failure
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at
org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke (Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode
(Launcher.java:430)
at
org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException:
Failure
at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty
(AbstractJettyMojo.java:422)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:356)
at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:172)
 at
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:167)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(DefaultLifecycleExecutor.java:534)
... 16 more
Caused by: java.lang.ClassNotFoundException:
com.uwyn.rife.servlet.RifeFilter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at
java.security.AccessController.doPrivileged(Native Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect
(RealmClassLoader.java:195)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
 at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass
(WebAppClassLoader.java:344)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:306)
at
org.mortbay.util.Loader.loadClass(Loader.java:92)
at org.mortbay.util.Loader.loadClass
(Loader.java:72)
at
org.mortbay.jetty.servlet.Holder.doStart(Holder.java:51)
at
org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:64)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:38)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:542)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1000)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:365)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:373)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java
:38)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:159)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:118)
at

Re: [Rife-users] Maven 2 Pom.xml For Repository Installation

2006-10-05 Thread Emmanuel Okyere

this is good stuff; I attended a presentation by jason van zyl on
maven 2.0 about 2 wks ago, and hv been looking to find time to get my
feet wet with it.

thanks for getting this started.

cheers,
Emmanuel

On 10/5/06, Jeremy Whitlock [EMAIL PROTECTED] wrote:

Hi All,
Attached are the pom.xml files to be able to request RIFE be
installed/uploaded to a Maven 2 repository.  The installation instructions
are here:

http://maven.apache.org/guides/mini/guide-ibiblio-upload.html

Basically, the attached pom.xml files are step 1 of the listed steps in the
url above.  The next step is for a RIFE developer to request the upload as
defined in the url above under Step 2.  I tested these locally and it does
work properly so it should just be a matter of making the request.  For you
to test this, do the following:

1)  Download the jdk-specific RIFE jar
2)  Change the pom-JDK_VERSION.xml to pom.xml
3)  Place the pom.xml file into the same directory as the RIFE jar
4)  Run mvn install

This should install RIFE into your local Maven repository and you should be
able to use the following in your app's pom.xml to use it:

dependency
  groupIdcom.uwyn/groupId
  artifactIdrife-base-JDK_VERSION/artifactId
  version1.5.1/version
/dependency

Obviously, replace JDK_VERSION with either jdk14 or jdk15.  Run mvn
package and the RIFE jar should be put somewhere into your local target
directory for Maven.

The above instructions are for using the attached pom.xml files for local
installation and testing.  I am hoping that Geert or one of the developers
will request that RIFE be uploaded to ibiblio so that we can use RIFE via
Maven.

Take care,

Jeremy

P.S . - If I can help with any of this, please let me know.

___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users







--
+44.790.449.0207 (London, NW10)

rife -- http://rifers.org/
blog -- http://eokyere.blogspot.com/
rife training -- http://rifers.org/training

Mohandas Gandhi - My life is my message.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] How to use Rife with Eclipse WTP

2006-09-29 Thread Emmanuel Okyere

Hi yinglcs,


I am new to Rife. I would like to know how to use Rife with Eclipse WTP. My
understanding is Rife needs a specified directory hierarchy. But that is
different from WTP generated.


rife does not need a specific directory hierarchy; the important thing
is that your web.xml file is setup to point to your participants
(http://blog.ox.cx/archives/169-RIFEs-Participants-Easier-than-you-think.html),
and maybe the engine classloader.

apart from that, it's the usual stuff you have to deal with, with an
apps classpath.


So what is the best way to start Rife with Eclipse WTP.


what has been easier for most people is to download the rife jumpstart
(check the downloads section http://rifers.org/downloads) which gives
you a structure (with web.xml setup) that runs out of the box. then
you can feel your way around until you are comofortable to use
whatever structure best suites you.

cheers,
Emml

--
+44.790.449.0207 (London, NW10)

ito! -- http://itoworld.com/
rife -- http://rifers.org/

Coke/iTunes -- http://music.coca-cola.com/
Coca-Cola Global -- http://coca-cola.com/
Orange Phone Trainer -- http://shop.orange.co.uk/shop/phonetrainer
Grammy In the Schools -- http://grammyintheschools.com

Mohandas Gandhi - My life is my message.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] meta data code generator

2006-09-25 Thread Emmanuel Okyere

brilliant stuff, Christian... very nice... works here... could be a
nice drop to start cmd line tools for rife off of too :)

cheers,
Emmauel

On 9/24/06, Christian Vest Hansen [EMAIL PROTECTED] wrote:

Great, here you are:
http://rifers.org/wiki/display/RIFE/MetaData+stub+class+code+generation

^_^

Cheers.

2006/9/23, Geert Bevin [EMAIL PROTECTED]:
 Hi Christian,

 sounds useful! Maybe the best thing is to upload this to the wiki as
 an attachment and add a page to the tips  trick section explaining
 what it does?

 Best regards,

 Geert

--
All good software releases were accidents corrected in the next version.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
+44.790.449.0207 (London, NW10)

ito! -- http://itoworld.com/
rife -- http://rifers.org/

Coke/iTunes -- http://music.coca-cola.com/
Coca-Cola Global -- http://coca-cola.com/
Orange Phone Trainer -- http://shop.orange.co.uk/shop/phonetrainer
Grammy In the Schools -- http://grammyintheschools.com

Mohandas Gandhi - My life is my message.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Any Netbeans og Eclipse plugins for RIFE

2006-09-15 Thread Emmanuel Okyere

jakob,

not that I know of; although I have a sample rife-tomcat-jumpstart
base app (with a few ant tasks added to fit with netbeans' custom
tasks for webapps) that you can use to get u going, if that would help
any.

I want to clean that up, add a little docu and release it, but can
send current snapshot to u, if that would help.

cheers,
Emmanuel

On 9/15/06, Nielsen Jakob Vad [EMAIL PROTECTED] wrote:



Hi,

Is there any RIFE plugins for Netbeans or Eclipse?

/Jakob
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users






--
+44.790.449.0207 (London, NW10)

ito! -- http://itoworld.com/
rife -- http://rifers.org/

Coke/iTunes -- http://music.coca-cola.com/
Coca-Cola Global -- http://coca-cola.com/
Orange Phone Trainer -- http://shop.orange.co.uk/shop/phonetrainer
Grammy In the Schools -- http://grammyintheschools.com

Mohandas Gandhi - My life is my message.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] Fwd: [OT][ANN] JAVAWUG BOF XX Videos Uploaded

2006-08-23 Thread Emmanuel Okyere

video for the rife petstore app presentation at oracle finally went
up; turned out quite well :)

cheers,
Emml

-- Forwarded message --
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Aug 23, 2006 12:26 PM
Subject: [OT][ANN] JAVAWUG BOF XX Videos Uploaded
To: [EMAIL PROTECTED]
Cc: user@struts.apache.org, users@maven.apache.org



Hi

The JAVAWUG is happy to announce two new videos uploaded to Google Video
of the birds-of-a-feather meeting number 20.

Petstore RIFE Edition by Emmanuel Okyere
http://video.google.com/videoplay?docid=37561501217859187q=JAVAWUG+BOF+
XX

Rearchitecting Legacy J2EE Applications with the Spring Framework by
Peter Pilgrim
http://video.google.com/videoplay?docid=-4427639624207114903q=JAVAWUG+B
OF+XX

Enjoy. Thanks

--
Peter Pilgrim
JUG Leader, Java Web User Group
http://jroller.com/page/javawug

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups JAVAWUG group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at http://groups.google.co.uk/group/javawug
-~--~~~~--~~--~--~---



--
Unknown - Be grateful for life, be grateful to life
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Testing the mailing list, please reply to this message

2006-07-03 Thread Emmanuel Okyere

here :)

On 7/3/06, Geert Bevin [EMAIL PROTECTED] wrote:

Thanks for replying everyone. It still seems very little compared to
the 100 people that are signed up.

I see the mails go out when I look at the logs. Though from the
amount of people that replied, I'm really wondering if something is
not wrong. I have no idea where to start looking though, since I get
them all and the logs say they are sent to the other subscribers.

On 03 Jul 2006, at 07:32, Hung Huynh wrote:



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:rife-users-
 [EMAIL PROTECTED] On Behalf Of Andrés González
 Sent: 1. juli 2006 12:20
 To: RIFE users list : questions,bug reports and suggestions.
 Subject: Re: [Rife-users] Testing the mailing list,please reply to
 this message

 I get it
 --

 -=-=-=-=-=-=-=-=-=-=-=-=-
 Andrés González.
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin
Uwyn Use what you need - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
Sheik Hamza Yusuf - A tree grows. If you're staying the same,
something is wrong. You're not alive.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] A bit frustrated

2006-06-18 Thread Emmanuel Okyere

I like it... if only for the fact that two weeks down the line he'll
have to write again... only this time to say what a darling rife is ;P

On 6/18/06, Eddy Young [EMAIL PROTECTED] wrote:


On 18 Jun 2006, at 22:58, Steven Grimm wrote:

 Once again, though, I apologize if I've offended anyone. That is
 not the intent at all.

Steven,

My reply was meant to encourage you to post your questions on the
mailing list more than anything else.

Eddy
--
http://coding.mu
http://priscimon.com/blog



___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
Sheik Hamza Yusuf - A tree grows. If you're staying the same,
something is wrong. You're not alive.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] array/multiple beans from form submission

2006-05-29 Thread Emmanuel Okyere

Hi Geert,


Actually, what you can do if you really want to isolate and
componentize the handling of these beans, you can use embedded
elements and provide it with a data object during
processEmbeddedElement (which will be each bean). This is only
supported in 1.5 though.


Indeed, I am using embedded elements for this, and on 1.5 too; I had,
however, been using the method of forcing the embedding element to
implement an XXXBeanProvider interface to store an instance of the
item to be processed by the embedded element, but this new method is
more elegant; I saw a mention of it in the changelist for 1.5, but it
did not make sense until now... sweet!

What this means then is I have to iterate over the quantities sent,
and push them into the bean instances, and then just pass these on to
the embedded elements and do validation on those. Would have been
nicer if we could do a getSubmissionBeans(BeanType.class) call in this
regard, but this shd work for me now.

Thanks,
Emmanuel

--
Benjamin Disraeli - Nurture your minds with great thoughts. To
believe in the heroic makes heroes.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] array/multiple beans from form submission

2006-05-29 Thread Emmanuel Okyere

Geert,


 the embedded elements and do validation on those. Would have been
 nicer if we could do a getSubmissionBeans(BeanType.class) call in this
 regard

I don't really follow, how would that work?



there's already a getSubmissionBean(BeanType.class) implementation...
which prepulates a bean with param values... I was just thinking aloud
on if we could have a getSubmissionBeans(BeanType.class) imp where a
ListBeanType is returned instead, as happens to be what, in a sense,
I am trying to achieve here.

Cheers,
Emmanuel

--
Benjamin Disraeli - Nurture your minds with great thoughts. To
believe in the heroic makes heroes.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] array/multiple beans from form submission

2006-05-29 Thread Emmanuel Okyere

Fred,


 Hmm that shouldn't be too hard to add.
 Maybe you could take a crack at it ;-)
 
 Then there really _would_ be bidirectional templates !
 
 And there's plenty of Javascript out there for clicking
 to add a new row to a table.  Then table/list editing could
 be done 100% locally before POST'ing it.

 Not really sure I'm following you :-/

It's always possible that I'm full of balonie  :)

 How does Javascript fit in this picture, or how does this interact
 with bidirectionality?

Rife Forms are truly bidirectional, and can use HTML field validation too.

Rife also makes it easy to append to Value tags, in order to generate HTML
tables with N rows.

But is it possible to generate a Form with N rows, by appending additional
rows, where each row is another instance of the same bean type ?  That would
make it possible to have N-record Forms that are bidirectional and that use
HTML field validation.  Then the next logical step is to attach some JS that
adds an (N+1)th record at the end of the Form.

Is this making any sense ?  Isn't this more or less what is under discussion,
or did I manage to miss the point entirely ?



You are pretty much on the money with what the discussion is about;
it's not possible to 'generate' a form in the manner you mention here,
but you can sort of 'simulate' that; what I am doing on the petstore
app for instance, requires that every cart item be shown as part of
the cart form... this in itself is something rife easily allows you to
do by having a a value placeholder and blocks that you can iteratively
process and append per bean instance... the added complexity comes in
because as per the cart reqts, I have to have a quantity textfield
that allows the user to update qty per item.

rife currently supports a getSubmissionBean(BeanType.class) method
which allows you to easily get an instace of the bean returned from
teh form, and do validation against that... it would be nice (and I
might have to look into this) to be able to make a similar call, only
this time to retrieve a list/array of the beantype you require.

Currently, I am sending back parameters in my submission; like:

submission name=process
param name=id /
param name=iid /
param name=quantity /
/submission

and using getParameterIntValues(paramString) call in my Element
implementation to iterate over these values and recreate the beans
just as I would have expected a call to a proposed getSubmissionBeans
to have worked.

We might hv to think this through and see if it's possible/feasible to
implement something of the sort as a feature of the framework.

Cheers,
Emmanuel


--
Benjamin Disraeli - Nurture your minds with great thoughts. To
believe in the heroic makes heroes.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] array/multiple beans from form submission

2006-05-28 Thread Emmanuel Okyere

Geert,

As always, thx for the quick response;


 1// how do i locate which bean a particular quantity maps to when the
 form is submitted;
 1.1// changing the form method to a GET, with 2 items in the cart (one
 with qty 1, the other with 4), i get a submission uri that looks like:
 http://localhost:8080/$%7Bv%20SUBMISSION:FORM:submit/%7D?
 quantity=1quantity=4update.x=34update.y=17

These should normally respect the order of the beans that you used to
create the cart items. Can you use that? Another alternative is to
add a hidden form tag with the id of the bean.


Yes, I figured that the order is maintained and yes that works; i
guess what I am kinda wondering is how I to get validation/error
marking working with my current template.


 2// is there a way to use the id of the input with form submissions
 2.1//rife doesn't seem to allow nested value tags.. ideally, i wanted
 to use the id of the cartitem as it's id. so, it would have been nice
 to be ablel to do:
 ${v FORM:INPUT:quantity}id=${v id/} style=text-align: right;
 maxlength=3 size=3${/v}, but rife barfs at this.

${v FORM:INPUT:quantity}id=${v id/} style=text-align: right;
maxlength=3 size=3${/v}

can be written as
${v FORM:INPUT:quantity/}
${bv FORM:INPUT:quantity}id=${v id/} style=text-align: right;
maxlength=3 size=3${/bv}

that should give you what you're looking for


yup; perfect! thx


Added support for nested value tags is planned but I sadly haven't
got enough time to get everything done. RIFE could really benefit
from some new framework developers ;-)



true.. it's been crazy busy around here (which is why even petstore is
still not up); but plans to add/improve bits of the framework have
alywas been right up there :)


thx,
Emmanuel

--
Benjamin Disraeli - Nurture your minds with great thoughts. To
believe in the heroic makes heroes.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE and Authentication

2006-05-10 Thread Emmanuel Okyere

Jeremy,

This is one of those long list of tutorials I have promised myself to
write (oh... yearning for that 25 hour day ;P)


1) Can someone point me in the right direction, either with an example or
document, on how to use the database as a backend for users?


It's actually quite simple; the relevant part in java would look
something like (in this case i'm getting my beans from submissions):

   Account ac = getSubmissionBean(Account.class);
   RoleUser user = getSubmissionBean(RoleUser.class);

   if (Utils.validate(user, ac)) {
   Datasource ds = (Datasource) getProperty(DATASOURCE);
   DatabaseUsers users = DatabaseUsersFactory.getInstance(ds);

   ContentQueryManagerAccount accounts = new
ContentQueryManagerAccount(ds, Account.class);

   try {
   users.addUser(user.getLogin(), new
RoleUserAttributes(user.getPassword(), new String[] { user }));

   ac.setUserId(users.getUserId(user.getLogin()));
   accounts.save(ac);

   //tt.setBlock(form, sucess);
   // forces login (TODO: autologin)
   exit(HOME);
   } catch (CredentialsManagerException e) {
  
Logger.getLogger(friends).severe(ExceptionUtils.getExceptionStackTrace(e));

   }

So the only class I have to personally implement in this case is my
custom Account class; the DatabaseUsers and related classes are
provided by the rife authentication toolkit.


2) Can someone explain to me the necessary components of implementing
authentication/authorization in RIFE?


Generally, for auth'ing, you create an Element declaration that
extends the authenticated database.xml file, and then supply values to
certain properties/params it offers. For instance, I have a User
element as:

element id=User extends=rife/authenticated/database.xml
property 
name=datasourcedatasourcederby/datasource/property
property name=password_encryptionSHA/property
property name=template_nameglobal.Login/property
property name=submission_nameauthenticate/property
property name=authvar_typecookie/property   
property name=roleuser/property

exit name=Register /
flowlink srcexit=Register destid=global.Register/

submission name=authenticate
param name=login /
param name=password /
param name=remember /
/submission

incookie  name=rememberid /
outcookie name=rememberid /

childtrigger name=authid /
/element

Then further down in my site declaration, I have an element which
leads to a subsite that looks like:

subsite id=user inherits=User  file=user.xml urlprefix=/user /

In user, I have an element like:

element id=Home implementation=friends.elements.user.Home 
url=home

property name=templateuser.Home/property

exit name=Profile /
exit name=EditProfile/
exit name=Settings/
exit name=Friends/
exit name=Invite/
exit name=Mailbox/
exit name=Search/
exit name=Logout/


flowlink srcexit=Profile destid=Profile/
flowlink srcexit=EditProfile destid=EditProfile/
flowlink srcexit=Settings destid=Settings/
flowlink srcexit=Friends destid=Friends/
flowlink srcexit=Invite destid=Invite/  
flowlink srcexit=Logout destid=Logout/


submission name=invite
/submission

submission name=search
/submission
/element

The User element (which extends the authenticated database.xml file)
works almost like a tag; When a user accesses a url which leads to
any element in my user subsite, say /user/home (effectively an element
that inherits from the User element, which in turn extends
database.xml), the visitor is forced to login (if they are not already
authenticated); the template_name property in the User declaration
is what would point to your login form/page. In addition to that,
you have a submission_name property which you map to the submission
that would deliver your login, password, and remember parameters. All
you have to do is design your template and have the right input names
for the parameters set; everything else is handled by the
authentication toolkit.

I think the links to the guides you provided do a 

Re: [Rife-users] Classloader error

2006-05-01 Thread Emmanuel Okyere

not that i'm experiencing this, but yes, pls post the specifics.

thanks,
eokyere

On 4/12/06, Eddy Young [EMAIL PROTECTED] wrote:

Eddy Young wrote:
 Hi all,

 Is there a known classloader-related error between RIFE and Log4J?

Indeed, there was a classloader-related problem between RIFE and Log4j,
as Geert managed to track down. But, it is debatable whether the fault
can be attributed to RIFE at all. If you want to know the specifics,
please ask. We can then post a detailed analysis which might even be
useful to troubleshoot similar problems in your applications.

In short, the solution is to move Log4J jar-files from WEB-INF/lib into
common/lib of the servlet container *and* restart the container.

Eddy
--
http://coding.mu
http://priscimon.com/blog
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
Johann Wolfgang von Goethe - Character develops itself in the stream of life.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Classloader error

2006-05-01 Thread Emmanuel Okyere

Hope this was somewhat clear.


it was, and educative too.

thanks,
Emmanuel

On 5/1/06, Geert Bevin [EMAIL PROTECTED] wrote:

Hi Emmanuel,

here's a brief overview of what is happening.

RIFE does one 'nasty' trick in its classloader that doesn't respect
the standard contract for classloaders. Normally, a classloader is
supposed to first delegate the loading of classes to the parent
classloader (which is this case is the web application's servlet
classloader). However, if RIFE does this, it would not be able to
load any of the web application's classes, since the parent
classloader is able to load them all.

So what RIFE does is artificially trying to determine which classes
and jars are part of the web application alone. It does this by
looking up their resources and checking for the presence of WEB-
INF. Sadly I wasn't able to find a standard way that allows you to
do this, but this seems to work fine. At that point, all the web app
classes can be automatically instrumented at load time for
continuations and meta data merging.

This problem arises when you have classes in your web applications
that are loaded by other frameworks or libraries (Log4J for example)
outside the scope of RIFE's filter or servlet. If these are accessed
form within the RIFE application, RIFE has to check if the parent
classloader hasn't already loaded them, since loading them twice
would result into errors. This method works fine unless you have
package-private classes that are not loaded outside the RIFE filter,
but that are accessed by classes that are already loaded from within
the RIFE filter. These package-private classes will not be loaded by
the parent classloader, but they will be loaded by RIFE's instead,
creating permission exceptions.

I've tried to find ways around this while still maintaining the ease-
of-use of RIFE's setup, but there's no strategy that I can come up
with that allows solving this problem without extensive (and
expensive) tracking of where the loaded classes belong. This would
have a profound impact on performance.

So the best solution is to move these libraries outside of WEB-INF,
into the standard library of the servlet container. As far as RIFE is
concerned, these are then outside the web application and will not be
loaded by the RIFE classloader.

The best solution now, is to wait a while for Mustang to come out and
in the meantime develop a collection of instrumentation agents and
get rid of the classloader. These agents need to be setup manually in
1.5, but in 1.6 there's a mechanism for them to be automatically and
dynamically added at runtime. The agent does exactly what the
classloader does, change the bytecode for additional functionalities.
However, this will not fully replace RIFE's classloader, since there
are some tricks in there for reloading element implementations, even
if hotswap can'.

Hope this was somewhat clear.

Best regards,

Geert

On 01 May 2006, at 03:03, Emmanuel Okyere wrote:

 not that i'm experiencing this, but yes, pls post the specifics.

 thanks,
 eokyere

 On 4/12/06, Eddy Young [EMAIL PROTECTED] wrote:
 Eddy Young wrote:
  Hi all,
 
  Is there a known classloader-related error between RIFE and Log4J?

 Indeed, there was a classloader-related problem between RIFE and
 Log4j,
 as Geert managed to track down. But, it is debatable whether the
 fault
 can be attributed to RIFE at all. If you want to know the specifics,
 please ask. We can then post a detailed analysis which might even be
 useful to troubleshoot similar problems in your applications.

 In short, the solution is to move Log4J jar-files from WEB-INF/lib
 into
 common/lib of the servlet container *and* restart the container.

 Eddy
 --
 http://coding.mu
 http://priscimon.com/blog
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



 --
 Johann Wolfgang von Goethe - Character develops itself in the
 stream of life.
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
Use what you need Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
Benjamin Disraeli - Nurture your minds with great thoughts. To
believe in the heroic makes heroes.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Eclipse Plugin Development Underway

2006-04-29 Thread Emmanuel Okyere

yes, still on-board and waiting to follow your lead :)

cheers,
Emmanuel

On 4/29/06, Jeremy Whitlock [EMAIL PROTECTED] wrote:

Hi all,
 Today we have actually started committing code to the rife-ide Eclipse
plugin.  As of right now, the plugin doesn't do much but the building blocks
are being built.  As of now, you can associate a project with the RIFE
nature which will later allow for functionality specific to RIFE.  Expect to
see quicker turnaround on this project from this point on.  If you want to
get involved, just let me know and we'll get you started.

Take care,

Jeremy

___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users






--
Johann Wolfgang von Goethe - Character develops itself in the stream of life.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Eclipse Plugin Development Underway

2006-04-29 Thread Emmanuel Okyere

Jeremy,

RIFEECL-4 and RIFEECL-5 look quite straight-forward, and especially
since they are eclipse-specific, I guess I could handle those if you
want me.

Cheers,
Emmanuel

On 4/29/06, Jeremy Whitlock [EMAIL PROTECTED] wrote:

Emmanuel,
 I have created a few Jira for RIFE/Eclipse.  These are very broad and
each will require multiple parts.  Look over the open Jira to see if there
is anything you are interested in.  If you want clarification on any of the
Jira, let me know and I'll elaborate.

Take care,

Jeremy


On 4/29/06, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 yes, still on-board and waiting to follow your lead :)

 cheers,
 Emmanuel

 On 4/29/06, Jeremy Whitlock [EMAIL PROTECTED] wrote:
  Hi all,
   Today we have actually started committing code to the rife-ide
Eclipse
  plugin.  As of right now, the plugin doesn't do much but the building
blocks
  are being built.  As of now, you can associate a project with the RIFE
  nature which will later allow for functionality specific to RIFE.
Expect to
  see quicker turnaround on this project from this point on.  If you want
to
  get involved, just let me know and we'll get you started.
 
  Take care,
 
  Jeremy
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
 
 


 --
 Johann Wolfgang von Goethe - Character develops itself in the stream of
life.
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users






--
Johann Wolfgang von Goethe - Character develops itself in the stream of life.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Eclipse Plugin Development Underway

2006-04-29 Thread Emmanuel Okyere

meant to say *not* eclispse-specific

On 4/29/06, Emmanuel Okyere [EMAIL PROTECTED] wrote:

Jeremy,

RIFEECL-4 and RIFEECL-5 look quite straight-forward, and especially
since they are eclipse-specific, I guess I could handle those if you
want me.

Cheers,
Emmanuel

On 4/29/06, Jeremy Whitlock [EMAIL PROTECTED] wrote:
 Emmanuel,
  I have created a few Jira for RIFE/Eclipse.  These are very broad and
 each will require multiple parts.  Look over the open Jira to see if there
 is anything you are interested in.  If you want clarification on any of the
 Jira, let me know and I'll elaborate.

 Take care,

 Jeremy


 On 4/29/06, Emmanuel Okyere [EMAIL PROTECTED] wrote:
  yes, still on-board and waiting to follow your lead :)
 
  cheers,
  Emmanuel
 
  On 4/29/06, Jeremy Whitlock [EMAIL PROTECTED] wrote:
   Hi all,
Today we have actually started committing code to the rife-ide
 Eclipse
   plugin.  As of right now, the plugin doesn't do much but the building
 blocks
   are being built.  As of now, you can associate a project with the RIFE
   nature which will later allow for functionality specific to RIFE.
 Expect to
   see quicker turnaround on this project from this point on.  If you want
 to
   get involved, just let me know and we'll get you started.
  
   Take care,
  
   Jeremy
  
   ___
   Rife-users mailing list
   Rife-users@uwyn.com
   http://lists.uwyn.com/mailman/listinfo/rife-users
  
  
  
 
 
  --
  Johann Wolfgang von Goethe - Character develops itself in the stream of
 life.
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users





--
Johann Wolfgang von Goethe - Character develops itself in the stream of life.




--
Johann Wolfgang von Goethe - Character develops itself in the stream of life.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] newbie: how to use RIFE to develop a photo album web application

2006-04-29 Thread Emmanuel Okyere

yinglcs2,

1//

It would be nice to know who you are and what your experience with
java is; it would also be good to know what you've tried with rife so
far, and what that experience has been as well; it helps in guiding
you.

2//

As far as what you want to create with rife, it sounds pretty simple
to me; if you can model your 3x3 grid in html, it should be fairly
easy to translate that to a rife template.  rife also provides an
excellent PagedNavigation class which makes it rather simple to create
paged navigation based on your query offsets and limits.

HTH
eokyere

On 4/30/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi,

I am new to RIFE. I would like to know how/what
component if i want to develop a photo album like
application.

Basically, I am doing something like this:
* have a grid of images (a table of 3 X 3).
* have a 'next', 'previous' page button to move from
page to page.

Is there a similar example for that?
thanks.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users




--
Johann Wolfgang von Goethe - Character develops itself in the stream of life.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] The Book. When? :)

2006-04-27 Thread Emmanuel Okyere
yeah... and i'll be throwing in a tutorial with the petstore app
example coming up by the weekend too... looks like a lot more
documentation coming out, no? :)

cheers,
Emmanuel

On 4/27/06, Tyler Pitchford [EMAIL PROTECTED] wrote:
 The first 5 tutorials are written, they just need to get cleaned up.
 It's finals week at law school right now, so there isn't much time for
 anything other than finals. I hope to have them done shortly after
 finals.

 Sorry for the delay,
   Tyler

 On 4/27/06, Geert Bevin [EMAIL PROTECTED] wrote:
  Hi Alexey,
 
  I'm writing a series of three online RIFE mini books for O'Reilly.
  They will positioned as 'reference docs' and not be beginner
  tutorials and be 50-100 pages long each time. The first one should be
  available by June 21.
 
  I know that Tyler has been working on a series of tutorial articles
  and I suppose they'll be finished soon.
 
  Someone else is working on a full blown RIFE book for beginners
  (prefers that his name isn't disclosed), no release date yet though.
 
  Alternatively, anybody who is using RIFE, please feel free to write
  anything about it. A blog entry, a snippet of interesting code,
  problems you had, solutions you found, interesting examples, etc etc.
  I'll be there to assist you with anything you need. If you don't have
  a blog of your own, feel free to register at http://rifers.org/blogs
  and mail me, I'll create a blog there for you. Don't forget that our
  wiki is also open for contributions of anybody. Also, if you want to
  publish articles on java.net, onjava.com or TheServerSide, I can hook
  you up with the editors that are in charge.
 
  Hope this helps,
 
  Geert
 
  On 27 Apr 2006, at 06:19, Alexey wrote:
 
   Hi!
  
  When approximately we can have the book on Rife?
  It would be very helpful. And maybe more articles on rife too.
  
   --
   С уважением,
Alexey  mailto:[EMAIL PROTECTED]
  
   ___
   Rife-users mailing list
   Rife-users@uwyn.com
   http://lists.uwyn.com/mailman/listinfo/rife-users
  
 
  --
  Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
  Use what you need Avenue de Scailmont 34  Skype: gbevin
  http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
  gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 

 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users





--
Johann Wolfgang von Goethe - Character develops itself in the stream of life.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] The Book. When? :)

2006-04-27 Thread Emmanuel Okyere
btw, all:

my presentation from last month at the javawug has just gone up on
google :) ... post it on the blog later

http://video.google.com/videoplay?docid=1163267747129711638

cheers,
emml

On 4/27/06, Geert Bevin [EMAIL PROTECTED] wrote:
 Cool This is definitely great news.

 JR and Tyler have been working on an executive summary too. However,
 I'd like to have several versions of this since everybody is bound to
 have his own take on this and the more insights, the better. Anybody
 else want to write a one page executive summary about RIFE and why to
 adopt it in a company or corporation?

 On 27 Apr 2006, at 09:09, Emmanuel Okyere wrote:

  yeah... and i'll be throwing in a tutorial with the petstore app
  example coming up by the weekend too... looks like a lot more
  documentation coming out, no? :)
 
  cheers,
  Emmanuel
 
  On 4/27/06, Tyler Pitchford [EMAIL PROTECTED] wrote:
  The first 5 tutorials are written, they just need to get cleaned up.
  It's finals week at law school right now, so there isn't much time
  for
  anything other than finals. I hope to have them done shortly after
  finals.
 
  Sorry for the delay,
Tyler
 
  On 4/27/06, Geert Bevin [EMAIL PROTECTED] wrote:
  Hi Alexey,
 
  I'm writing a series of three online RIFE mini books for O'Reilly.
  They will positioned as 'reference docs' and not be beginner
  tutorials and be 50-100 pages long each time. The first one
  should be
  available by June 21.
 
  I know that Tyler has been working on a series of tutorial articles
  and I suppose they'll be finished soon.
 
  Someone else is working on a full blown RIFE book for beginners
  (prefers that his name isn't disclosed), no release date yet though.
 
  Alternatively, anybody who is using RIFE, please feel free to write
  anything about it. A blog entry, a snippet of interesting code,
  problems you had, solutions you found, interesting examples, etc
  etc.
  I'll be there to assist you with anything you need. If you don't
  have
  a blog of your own, feel free to register at http://rifers.org/blogs
  and mail me, I'll create a blog there for you. Don't forget that our
  wiki is also open for contributions of anybody. Also, if you want to
  publish articles on java.net, onjava.com or TheServerSide, I can
  hook
  you up with the editors that are in charge.
 
  Hope this helps,
 
  Geert
 
  On 27 Apr 2006, at 06:19, Alexey wrote:
 
  Hi!
 
 When approximately we can have the book on Rife?
 It would be very helpful. And maybe more articles on rife too.
 
  --
  С уважением,
   Alexey  mailto:[EMAIL PROTECTED]
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
 
  --
  Geert Bevin Uwyn bvba   GTalk:
  [EMAIL PROTECTED]
  Use what you need Avenue de Scailmont 34  Skype: gbevin
  http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
  gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477
  302 599
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
 
 
 
 
  --
  Johann Wolfgang von Goethe - Character develops itself in the
  stream of life.
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users

 --
 Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
 Use what you need Avenue de Scailmont 34  Skype: gbevin
 http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
 gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



--
Johann Wolfgang von Goethe - Character develops itself in the stream of life.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] The Book. When? :)

2006-04-27 Thread Emmanuel Okyere
would that pass for the shortest one page i've ever seen? ;P

On 4/28/06, Fred Baube [EMAIL PROTECTED] wrote:
  Anybody else want to write a one page executive summary about
  RIFE and why to adopt it in a company or corporation?

 Full stack means never having to worry about versioning
 of libraries.  Because Rife has approximately fifty billion
 unit tests, and because the downloads contain all the main
 dependencies ... when Geert posts a release, you _know_ it
 works.  All thru the stack. (*)


 fred


 (*) With quite rare exceptions.

 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



--
Johann Wolfgang von Goethe - Character develops itself in the stream of life.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE's Participant's

2006-04-27 Thread Emmanuel Okyere

Drew,

1// There's a lot of good documentation in the API docs:
http://rifers.org/docs/api/com/uwyn/rife/rep/package-summary.html


From the docs page: A Participant is basically a service that needs

to be initialized before it can return objects that correspond to
specified identification keys.

2// You can also use this page from the old docs:
http://rifers.org/docs/usersguide/ch06s01.html

3// The image on this page normally, also, serves as a good overview
of the rife's structure for me:
http://rifers.org/wiki/display/RIFE/IoC+properties+support+inside+the+repository

Simply extend BlockingParticipant or SingleObjectParticipant to create
your own custom participants, and then add them to your
participants.xml file in your repository. For instance, in the
petstore app i am currently working on, I have a PopulateParticipant,
that uses some custom Comma sep vals (CSV) extractor classes I have
written to pull data from text files to be inserted in the test
database. I have attached that to give you an idea.

I mentioned participants briefly here:
http://video.google.com/videoplay?docid=1163267747129711638q=okyerepl=true

HTH

Cheers,
Emmanuel

On 4/28/06, Drew Kutcharian [EMAIL PROTECTED] wrote:

Hi Everyone,

I would like to know where I can find more detailed information about RIFE's
Participants. I would like to know what they exactly do, how is their
lifecycle being managed, and how can I write a custom one.

The reason is that I like to be able to inject my Service (Business Logic)
layer objects into RIFE's elements. (ie use Spring to manage my Backend
beans and then use the custom Participant to inject those backend beans into
RIFE's elements after Spring is done with wiring them) (also, I want to use
the participant to start the Spring container before launching the webapp)

I looked into SpringWebParticipant, but I'm not sure if that's what I need
to use. The documentation wasn't very detailed.


Thanks,
Drew


___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users






--
Johann Wolfgang von Goethe - Character develops itself in the stream of life.


Populate.java
Description: Binary data
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Problem with online user guide's Get Started part

2006-04-24 Thread Emmanuel Okyere
That is also a TODO for me now to change the Getting Started page to just point to Jumpstart :)Cheers,EmmanuelOn 4/24/06, Emmanuel Okyere
 [EMAIL PROTECTED] wrote:
Allen, You are having classpath issues and nothing to do with the hello world or rife implementation. I don't think you need to move anything around for the hello world experience with rife... and since you are just starting with the framework, it's probably much better to play around with the default settings, at least until you have a fair idea of what's going on.
Just download jumpstart (and i'm assuming eclipse is your IDE of choice), import the project into your workspace, and click the launcher (i think it's Run WebUI or so) to start it. It will compile and start Jetty (default app server that comes with jumpstart).
You can open the Run WebUI.launch file and/or look at the included ant build file to see how the classpath is setup... and if you have any more problems, we'll be here to provide some guidance.

HTHcheers,Emmanuel
On 4/24/06, Allen Young 
[EMAIL PROTECTED] wrote:

Thanks.

First, I've found out the problem is that in the rife-examples-1.4-jdk15.zip I had downloaded, there are no .class files in the /WEB-INF/classes/implementations folder but .java files. I was thinking there should be .class files so I hadn't check that. Just now, I complied the .java files and put .class files in the folder, something happened at last, but not the HelloWorld I expected, but exceptions. I think this is another problem. The detail expcetion information is as follows:

Uwyn RIFE
Errors occurred while processing the request.
com.uwyn.rife.engine.exceptions.ElementImplementationInstantiationExceptionThe implementation 'tutorial.helloworld.HelloWorld' of element 'manual:HelloWorld' couldn't be instantiated.







atcom.uwyn.rife.engine.ElementFactory
getInstance
( ElementFactory.java : 135 )

atcom.uwyn.rife.engine.ElementInfo
deploy
( ElementInfo.java : 236 )

atcom.uwyn.rife.engine.SiteBuilder
setupElements
( SiteBuilder.java : 974 )

atcom.uwyn.rife.engine.SiteBuilder
setupData
( SiteBuilder.java : 1590 )

atcom.uwyn.rife.engine.SiteBuilder
finish
( SiteBuilder.java : 253 )

atcom.uwyn.rife.engine.SiteBuilder
process
( SiteBuilder.java : 244 )

atcom.uwyn.rife.engine.SiteBuilder
getSite
( SiteBuilder.java : 176 )

atcom.uwyn.rife.rep.participants.ParticipantSite
initialize
( ParticipantSite.java : 36 )

atcom.uwyn.rife.rep.participants.ParticipantSite
_getObject
( ParticipantSite.java : 49 )

atcom.uwyn.rife.rep.BlockingParticipant
getObject
( BlockingParticipant.java : 471 )

atcom.uwyn.rife.rep.BlockingParticipant
_getObject
( BlockingParticipant.java : 447 )

atcom.uwyn.rife.rep.BlockingParticipant
getObject
( BlockingParticipant.java : 415 )

atcom.uwyn.rife.engine.Site
getRepInstance
( Site.java : 158 )

atcom.uwyn.rife.engine.Gate
obtainSite
( Gate.java : 185 )

atcom.uwyn.rife.engine.Gate
handleRequest
( Gate.java : 290 )

atsun.reflect.NativeMethodAccessorImpl
invoke0
( unknown )

atsun.reflect.NativeMethodAccessorImpl
invoke
( unknown )


17 more ...
com.uwyn.rife.engine.exceptions.ElementImplementationNotFoundExceptionThe implementation 'tutorial.helloworld.HelloWorld' of element 'manual:HelloWorld' couldn't be found.




atcom.uwyn.rife.engine.ElementFactory
getJavaInstance
( ElementFactory.java : 98 )

atcom.uwyn.rife.engine.ElementFactory
getInstance
( ElementFactory.java : 126 )

atcom.uwyn.rife.engine.ElementInfo
deploy
( ElementInfo.java : 236 )

atcom.uwyn.rife.engine.SiteBuilder
setupElements
( SiteBuilder.java : 974 )

atcom.uwyn.rife.engine.SiteBuilder
setupData
( SiteBuilder.java : 1590 )

atcom.uwyn.rife.engine.SiteBuilder
finish
( SiteBuilder.java : 253 )

atcom.uwyn.rife.engine.SiteBuilder
process
( SiteBuilder.java : 244 )

atcom.uwyn.rife.engine.SiteBuilder
getSite
( SiteBuilder.java : 176 )

atcom.uwyn.rife.rep.participants.ParticipantSite
initialize
( ParticipantSite.java : 36 )

atcom.uwyn.rife.rep.participants.ParticipantSite
_getObject
( ParticipantSite.java : 49 )

atcom.uwyn.rife.rep.BlockingParticipant
getObject
( BlockingParticipant.java : 471 )

atcom.uwyn.rife.rep.BlockingParticipant
_getObject
( BlockingParticipant.java : 447 )

atcom.uwyn.rife.rep.BlockingParticipant
getObject
( BlockingParticipant.java : 415 )

atcom.uwyn.rife.engine.Site
getRepInstance
( Site.java : 158 )

atcom.uwyn.rife.engine.Gate
obtainSite
( Gate.java : 185 )

atcom.uwyn.rife.engine.Gate
handleRequest
( Gate.java : 290 )

atsun.reflect.NativeMethodAccessorImpl
invoke0
( unknown )


18 more ...
java.lang.ClassNotFoundExceptiontutorial.helloworld.HelloWorld




atjava.net.URLClassLoader$1
run
( unknown )

atjava.security.AccessController
doPrivileged
( unknown )

atjava.net.URLClassLoader
findClass
( unknown )

atjava.lang.ClassLoader
loadClass
( unknown )

atsun.misc.Launcher$AppClassLoader
loadClass
( unknown )

atjava.lang.ClassLoader
loadClass
( unknown )

atjava.lang.ClassLoader
findSystemClass
( unknown

[Rife-users] rife forms

2006-04-12 Thread Emmanuel Okyere
hello all,

I have finally found some free time, as the last app I worked on is
getting ready to get out of the shop, and so I have started stabbing
at getting rife to talk petshop. i'm however having problems with rife
printing a simple form; it does retrieve the template and prints it
out, except it filters out all the rife specifics. Could anybody say
if i'm missing something obvious?

Thanks,
Emmanuel

PS: I am using the 1.4 release
(http://rifers.org/blogs/gbevin/2006/3/2/rife_1_4_released)

The java code is simple:

public void initialize() {
template = getHtmlTemplate(TEMPLATE);   
}

public void processElement() {
print(template);
}

public static String TEMPLATE = Register;
private Template template;


the html looks like:

form name=profile action=[!V 'SUBMISSION:FORM:commit' /] method=post
!--V 'SUBMISSION:PARAMS:commit' /--

h3User Information/h3

div class=form_field
divlabel for=loginh3User ID:/h3/label/div
div
div [!V 'MARK:login'][!/V]
!--V 'ERRORS:login'--!--/V--
!--V 'FORM:INPUT:login'--id=login 
size=15!--/V--
/div
/div
/div

div class=form_field
divlabel for=emailh3Email Address:/h3/label/div
h4A valid email address is required to activate your 
account/h4
div
div [!V 'MARK:email'][!/V]
!--V 'ERRORS:email'--!--/V--
!--V 'FORM:INPUT:email'--id=email 
size=30!--/V--
/div
/div
/div

div class=form_field
divlabel for=passwordh3Password:/h3/label/div
div
div [!V 'MARK:password'][!/V]
!--V 'ERRORS:password'--!--/V--
!--V 'FORM:SECRET:password'--id=password 
size=20!--/V--
/div
/div
/div

div class=form_field
divlabel for=password2h3Repeat 
Password:/h3/label/div
div
div [!V 'MARK:password2'][!/V]
!--V 'ERRORS:password2'--!--/V--
!--V 'FORM:SECRET:password2'--id=password2 
size=20!--/V--
/div
/div
/div

br /  

h3Account Information/h3

div class=form_field
divlabel for=firstnameh3 class=groupWhat is your
strongfirst name/strong?/h3/label/div
div
div [!V 'MARK:firstname'][!/V]
!--V 'ERRORS:firstname'--!--/V--
!--V 'FORM:INPUT:firstname'--id=firstname 
size=30 type=text!--/V--
/div
/div
/div

div class=form_field
divlabel for=lastnameh3last name:/h3/label/div
div
div [!V 'MARK:lastname'][!/V]
!--V 'ERRORS:lastname'--!--/V--
!--V 'FORM:INPUT:lastname'--id=lastname 
size=30 type=text!--/V--
/div
/div
/div


div class=form_field
divlabel for=addressh3Address 1:/h3/label/div
div
div [!V 'MARK:address'][!/V]
!--V 'ERRORS:address'--!--/V--
!--V 'FORM:INPUT:address'--id=address 
size=30!--/V--
/div
/div
/div

div class=form_field
divlabel for=address2h3Address 2:/h3/label/div
div
div [!V 'MARK:address2'][!/V]
!--V 'ERRORS:address2'--!--/V--
!--V 'FORM:INPUT:address2'--id=address2 
size=30!--/V--
/div
/div
/div

div class=form_field
divlabel for=cityh3City:/h3/label/div
div
div [!V 'MARK:city'][!/V]
!--V 'ERRORS:city'--!--/V--
!--V 'FORM:INPUT:city'--id=city 
size=30!--/V--
/div
/div
/div

div class=form_field
divlabel for=stateh3State:/h3/label/div
div
div [!V 'MARK:state'][!/V]
!--V 'ERRORS:state'--!--/V--
!--V 'FORM:INPUT:state'--id=state 
size=4!--/V--
/div
/div
/div

div class=form_field

Re: [Rife-users] Interview about RIFE at Java Posse

2006-03-24 Thread Emmanuel Okyere
i think you got all the important points out... if i didn't know rife,
I'd check it out after this :)

brilliant! plus i get a mention in there... hehe

Cheers,
Emmanuel

On 3/23/06, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi everyone,

 my Java Posse interview about RIFE has been put online, you can get it here:
 http://javaposse.com/index.php?post_id=72112

 Best regards,

 Geert
 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



--
Mohandas Gandhi - My life is my message.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Re: Official RIFE training course in the works

2006-03-17 Thread Emmanuel Okyere
definitely; pls keep me in the loop. I looked at your last blog post
too; simple and brilliant... i'll follow those lines for my talk
today.

cheers,
eokyere

On 3/17/06, Geert Bevin [EMAIL PROTECTED] wrote:
  Emmanuel and Stephane, since you are both in the UK, tell me if you're

 Sorry Eddy, I keep forgetting that you're in the UK too. If you're
 interested in this, please contact me privately too.

 --
 Geert Bevin Uwyn bvba   GTalk: [EMAIL PROTECTED]
 Use what you need Avenue de Scailmont 34  Skype: gbevin
 http://www.uwyn.com 7170 Manage, Belgium  AIM: geertbevin
 gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



--
Mohandas Gandhi - You must be the change you wish to see in the world.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] Fwd: [ANN] JAVAWUG BOF XVI / Friday 3rd March 2006 @ 19:00 / Oracle Ci ty of London

2006-03-09 Thread Emmanuel Okyere
I had a few problems the last time I tried this, so I'm representing
the session on the 17th.

cheers,
Emmanuel

-- Forwarded message --
From: Pilgrim, Peter [EMAIL PROTECTED]
Date: Mar 9, 2006 5:49 PM
Subject: [ANN] JAVAWUG BOF XVI / Friday 3rd March 2006 @ 19:00 /
Oracle Ci ty of London
To: JAVAWUG GoogleGroups (E-mail) [EMAIL PROTECTED], Maven
Users List (E-mail) users@maven.apache.org, Struts User Apache
(E-mail) user@struts.apache.org, MyFaces Discussion (E-mail)
users@myfaces.apache.org



Dear All

I would like to formally announce that JAVAWUG (Java Web User Group)
is holding the sixteenth Birds-of-Feather (Meet up XVI) at the
Oracle City of London offices on Friday, 17th March 2006.

The meeting will take place in a room with Audio/Visual facilities
between 7-9:30 pm. There will be a series of presentations, Quickies,
inspired by the JavaPolis short presentation format.

The confirmed speakers are:

Phil Zoio
``Struts Java 5 Extension Framework''
(special guest speaker)


Emmanuel Okeyere
``Spring into RIFE Framework Continued''

Peter Pilgrim
``WebWork Quickie Experiences''

There will be probably be one additional speaking slot by Duncan Mills

Afterwards members can retire to the nearby the ``All Bar One''
pub/restaurant for more in depth discussion dinner,
food and drink ...

The address is:
Oracle City Of London
One South Place
London,
England
EC2M 2RB.

If you would like to attend

Join the http://groups.google.com/group/javawug JAVAWUG at Google Groups
and ``Send a mail to the list you are attending''


Send mail to myself at peter dot pilgrim at credit-suisse.com
and duncan dot mills at oracle.com

Here is some relevant travel information:

By Underground: -
Moorgate: Take the Moorgate East exit, turn right, one block to South
Place.
Bank: Take the Northern line to Moorgate.
Liverpool Street: Take the Broadgate exit, turn right onto South Place


Map: http://www.oracle.com/global/uk/corporate/locations/citymap.html

The venue has graciously been organised by Duncan Mills of Oracle Corp.
We all appreciate this generous gift.

http://www.javawug.com/

http://jroller.com/page/peter_pilgrim

PS: The presentations will be recorded and I hope to upload them all
Google Video Site. search against JAVAWUG for the last video uploads.


--
Peter Pilgrim :: J2EE Software Development  Architecture
Operations/IT - Credit Suisse Group - One Bank,
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497
 peter dot pilgrim at credit-suisse.com 

==
Please access the attached hyperlink for an important electronic
communications disclaimer:

http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups JAVAWUG group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/javawug
-~--~~~~--~~--~--~---



--
Mohandas Gandhi - You must be the change you wish to see in the world.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] A first component using embedded elements

2006-03-06 Thread Emmanuel Okyere
ahh nice one, eddy; something new to mention when i talk again about
rife on the 17th at the oracle city office :)

cheers,
emmanuel

On 3/6/06, Eddy Young [EMAIL PROTECTED] wrote:
 Hi all,

 I recently started experimenting with using embedded elements to create
 components. Today, after just 5 minutes messing about, I produced my
 first component, a simple label.

 Here is how I did it.

 In sites/main.xml:

  subsite id=Components
  element id=Label implementation=web.components.Label
  /element
  /subsite

 In templates/test.html:

  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd;
  html
  head
  meta http-equiv=Content-Type content=text/html;
 charset=UTF-8
  titleView profile/title
/head
body
!--V 'content' /--
!--BV 'content'--
pThis is your profile./p
pUsername: !--V 'ELEMENT:^Components.Label'--
  id = username
  value = uname
 !--/V--
!--/BV--
/body
  /html


 In web.components.Label:

  /*
   * Label.java
   *
   * $Id$
   */

  package web.components;

  import com.uwyn.rife.engine.Element;
  import java.util.Properties;

  /**
   *
   * @author Eddy.Young
   * @version $Revision$
   */
  public class Label extends Element {
  private String id;
  private String value;

  public void processElement() {
  Properties properties = getEmbedProperties();
  id = properties.getProperty(id);
  value = properties.getProperty(value);
  print(label id= + id +  + getInput(value) + /label);
  }
  }

 The interesting thing here is that the ELEMENT:name tag can embed more
 than one value. This can be used to specify parameters. For example, for
 a list component, the parameter could be the name of a bean that
 contains the entries. Another parameter could be the name of a template.

 The possibilities are virtually limitless. It would be great if those
 who have used embedded elements to create components could share their
 experience here.

 --
 http://coding.mu
 http://priscimon.com/blog
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



--
Mohandas Gandhi - You must be the change you wish to see in the world.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] MetaData class

2006-03-01 Thread Emmanuel Okyere
nice; I wasn't aware you had already implemented this. Have to take a
look later today.

nice one,
Emmanuel

On 3/1/06, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Eddy,

  Am I correct in thinking that the new MetaData class is useful only
  if applied to JavaBean-compliant classes?

 Actually, no.

 I still have to write the docs about this. If you have a class Foo
 and another class FooMetaData that implements the MetaDataMerged
 interface, RIFE's classloader will automatically make Foo implement
 all the interfaces of FooMetaData, create a private member variable
 of FooMetaData for every Foo instance and implement the new interface
 methods as delegates to the member variable.

 It can thus be used for any kind of meta information that you want to
 merge in.

 The MetaData class in itself however is intended to make it easy for
 you to do this for constraints, however, you can still implement any
 other interface.

 Best regards,

 Geert

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



--
Mohandas Gandhi - You must be the change you wish to see in the world.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] [solved]Re: how to use automatic meta data merging to create a table?

2006-03-01 Thread Emmanuel Okyere
:)

On 3/1/06, Geert Bevin [EMAIL PROTECTED] wrote:
 Happens to the best of us :-)

 On 1-mrt-06, at 05:42, hui wrote:

  i am stupid, having both 1.3.1 and 1.4 in classpath T_T
 
  sorry.
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



--
Mohandas Gandhi - You must be the change you wish to see in the world.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] MetaData class

2006-03-01 Thread Emmanuel Okyere
yeah, good to know... will take a quick look tonight and dive in over
the weekend

thanks,
Emmanuel

On 3/1/06, Geert Bevin [EMAIL PROTECTED] wrote:
 Yeah, it's in the 1.4 release I pushed out 2 days ago. I just have so
 much going on at the moment that Im' not sure when I'll be able to
 wrap up the release notes.

 On 1-mrt-06, at 10:53, Emmanuel Okyere wrote:

  nice; I wasn't aware you had already implemented this. Have to take a
  look later today.
 
  nice one,
  Emmanuel
 
  On 3/1/06, Geert Bevin [EMAIL PROTECTED] wrote:
  Hi Eddy,
 
  Am I correct in thinking that the new MetaData class is useful only
  if applied to JavaBean-compliant classes?
 
  Actually, no.
 
  I still have to write the docs about this. If you have a class Foo
  and another class FooMetaData that implements the MetaDataMerged
  interface, RIFE's classloader will automatically make Foo implement
  all the interfaces of FooMetaData, create a private member variable
  of FooMetaData for every Foo instance and implement the new interface
  methods as delegates to the member variable.
 
  It can thus be used for any kind of meta information that you want to
  merge in.
 
  The MetaData class in itself however is intended to make it easy for
  you to do this for constraints, however, you can still implement any
  other interface.
 
  Best regards,
 
  Geert
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
 
 
  --
  Mohandas Gandhi - You must be the change you wish to see in the
  world.
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



--
Mohandas Gandhi - You must be the change you wish to see in the world.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Re: [Rife-devel] RIFE Fosdem Conference Video

2006-03-01 Thread Emmanuel Okyere
Yes, it turned out not too bad in the end; please go ahead and
announce. Feels good to share your experiences about a good thing, and
get some valuable experience getting up and talking in front of your
peers :)

Good tip on the site-structure.. will drop that in there for the next one.

cheers,
Emmanuel

On 3/1/06, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 Indeed, it looks like you had some bad luck.

 Besides that it's very nice. It's particularly nice too see you in
 real life :-)

 I would still like to announce this version, if that's ok by you,
 since I like how you and Stephane discuss certain things and exchange
 ideas. I also like your live demos. Gives a nice warm and fuzzy feel.
 We can still announce the next recording on the news too.

 I have a little tip regarding the question that someone asked about
 the site-structure being the same as navigation in other frameworks.
 As you said, it is, to a certain degree. However, what's very
 different is that the data flow and state handling is taken care of
 too. So in that regard it's more resembling to a state machine or a
 stateful workflow management system. This makes the elements so
 powerful since they can work in any context and RIFE is able to
 provide it with the required state and data.

 Looking forward to the next presentation.

 Best regards,

 Geert

 On 1-mrt-06, at 10:51, Emmanuel Okyere wrote:

  Very nice; the one i gave at the Oracle City office in Moorgate,
  London also went up at
 
  http://video.google.com/videoplay?docid=-6431749968960182884
 
  I might be re-presenting it on the 17 March, as I had last minute
  problems with my original presentation, and we were pressed for time
  on the first run. Will pick up some tips from Geerts.
 
  Nice one.
 
  Emmanuel
 
 
  On 3/1/06, Geert Bevin [EMAIL PROTECTED] wrote:
  Hi everyone,
  The presentation I did last weekend about RIFE at Fosdem has been
  recorded on video and the stream is available from here:
 
  http://ftp.belnet.be/mirror/FOSDEM/FOSDEM2006-rife.avi (305MB)
 
  Sadly they started a bit too late, and the focus isn't correct for
  the first two minutes. After that though, the image is fine and it
  should give a good introduction into RIFE.
 
  Enjoy!
 
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-devel mailing list
  Rife-devel@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-devel
 
 
 
  --
  Mohandas Gandhi - You must be the change you wish to see in the
  world.
  ___
  Rife-devel mailing list
  Rife-devel@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-devel
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users



--
Mohandas Gandhi - You must be the change you wish to see in the world.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Template tag syntaxes

2006-02-18 Thread Emmanuel Okyere
I'd stay away from the regular syntax and vote for either the
Tapestry/Wicket inspired syntax or that of the Invisible Tag
Attribute; I think those should be clear enough and easy for people
already familiar with xhtml to get used to quicly; I think the
regular syntax can cause a little confusion... for instance isn't a
b tag a 'bold' in html (sort of similar to strong)?

Personally, i'll continue to use the syntax we've been using; it's
simple and stands out when i'm going over my code.

Thanks,
eokyere

On 2/18/06, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi,

 it seems that a lot of people that look at RIFE cringe when seeing
 the template tag syntax and don't delve deeper because of that. I
 thus think it's important to solve this and make the negativity go
 away, even if they might like the syntax later on. I thus worked out
 a bunch of alternatives that we could add. I'd love to get your input
 on these. Ideally I'd just implement them all, but I worry about
 parsing performance.

 Anyway, here they are:



 Regular invisible RIFE tag syntax
 Regular compact RIFE tag syntax
 Processing instruction variant
 Regular tags syntax
 Velocity inspired syntax
 FreeMarker inspired syntax
 Tapestry/Wicket inspired syntax
 Invisible tag attribute suggestion




 !--V 'content'/--

 [!V 'content'/]

 ?V content/?

 v name=content/

 ${content}

 #V content/

 span rife:v=content/

 div id=someid1 rife:v=class/div




 !--V 'content'--my default content!--/V--

 [!V 'content']my default content[!/V]

 ?V content?my default content?/V?

 V name=contentmy default content/v

 $V{content}my default content$/V

 #V contentmy default content/#V

 span rife:v=contentmy default content/span

 div id=someid2 rife:v=class/div




 !--B 'content'--some content block!--/B--

 [!B 'content']some content block[!/B]

 ?B content?some content block?/B?

 b name=contentsome content block/b

 #B(content)some content block#/B

 #B contentsome content block/#B

 span rife:b=contentsome content block/span

 div id=someid3 rife:b=content//some content block/div




 !--B 'OGNL:content:[[ true ]]'--some content block!--/B--

 [!B 'OGNL:content:[[ true ]]']some content block[!/B]

 ?B OGNL:content:[[ true ]]?some content block?/B?

 b name=OGNL:content:[[ true ]]some content block/b

 #B(OGNL:content:[[ true ]])some content block#/B

 #B OGNL:content:[[ true ]]some content block/#B

 span rife:b=OGNL:content:[[ true ]]some content block/span

 div id=someid4 rife:b=OGNL:class:[[ true ]]//warningclass/div




 !--BV 'content'--some blockvalue!--/BV--

 [!BV 'content']some blockvalue[!/BV]

 ?BV content?some blockvalue?/BV?

 bv name=contentsome blockvalue/bv

 #BV(content)some blockvalue#/BV

 #BV contentsome blockvalue/#BV

 span rife:bv=contentsome blockvalue/span

 div id=someid5 rife:bv=content//some blockvalue/div




 !--I 'common.error_messages'/--

 [!I 'common.error_messages'/]

 ?I common.error_messages/?

 i name=common.error_messages/

 #I(common.error_messages/)

 #I common.error_messages/

 span rife:i=content/

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Template tag syntaxes

2006-02-18 Thread Emmanuel Okyere
  I like the tapestry/wicket inspired syntax best.

 Did you see that I thought of you with the tag attribute one, so that
 you get no errors in IDEA anymore? ;-)


haha... nice one :)

-- eokyere
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE at JavaWUG BOF XV, 3-Feb-2006, Oracle City Office, London

2006-01-31 Thread Emmanuel Okyere
precisely! :P

On 1/31/06, Geert Bevin [EMAIL PROTECTED] wrote:
 Lol, that's an ironical title ;-)

 On 31-jan-06, at 08:58, Emmanuel Okyere wrote:

  Geert,
 
  The title will be Spring into RIFE; I intend to do about a 7-8
  minute overview covering the features, including my best,
  out-of-container testing... and then using the rest of the time to
  review some code.
 
  I believe there'll be about a 5 minute Q/A after that.
 
  Thanks,
  Emmanuel
 
  On 1/30/06, Geert Bevin [EMAIL PROTECTED] wrote:
  What's the title of your talk?
 
  Emmanuel Okyere wrote:
  Excellent; I'll make a post.
 
  Thanks,
  Emmanuel
 
  On 1/30/06, Geert Bevin [EMAIL PROTECTED] wrote:
  You blog has been created. To add an entry, open the blog menu
  to the
  left, log in and click the appropriate menu item.
 
  Don't forget to register you blog on javablogs if you want some
  readership, using this RSS feed once your first post has been
  written:
  http://rifers.org/blogs/feeds/rss/entry/eokyere
 
  On 30-jan-06, at 08:44, Emmanuel Okyere wrote:
 
  Geert,
 
  I have registered for the blog.
 
  Thanks,
  Emmanuel
 
  On 1/30/06, Emmanuel Okyere [EMAIL PROTECTED] wrote:
  Geert,
 
  How far along are you with the 'metadata' way of adding
  constraints?
  if it's in a usable state now, I could use that, otherwise, I'll
  mention work is under way to get it done; let me know.
 
  Thanks,
  Emmanuel
 
  On 1/30/06, Geert Bevin [EMAIL PROTECTED] wrote:
  Hi Emmanuel,
 
  that's a great initiative! One suggestion I have is, if
  you're going
  to show constraints, that extends Validation is evidently
  not the
  cleanest way to do this is the model has to be container
  independent
  or already exists. Work is underway to make true POJO use
  possible.
  This will be done with parallel MetaData classes, ie. you Foo
  class
  will have a FooMetaData and the classloader will automatically
  detect
  this and perform some magic to weave both together. This will
  be in
  an invisible way (inner class with improbably inner variable
  name)
  and be totally transparent.
  Hardcore Java people tend to criticize the extends Validation
  otherwise.
 
  Good luck with the presentation. It would be nice if you
  would blot
  about it at rifers.org to announce it. Like that,  London people
  that
  are interested but not on the list, are aware of your
  presentation too.
 
  To do so, you just have to register on the blog and tell me that
  it's
  done, I'll create a blog for you then.
 
  Best regards,
 
  Geert
 
  On 30-jan-06, at 05:11, Emmanuel Okyere wrote:
 
  Hello all:
 
  I have commited to giving a 10-15 minute 'quickie' about
  RIFE at
  the
  next Java Web User Group (javawug) meeting at the Oracle City
  office
  in London, on Feb 3, 2006. There will be other 10-15 min
  'quickie'
  sessions on various other java webdev technologies out
  there; it's
  from 6:30pm to about 9.
 
  I think this is the address:
 
  Oracle City Office
  One South Place
  London
  EC2M 2RB
 
  If anyone on the list is in London, and will want to attend, I
  suggest
  sending an email to Peter A. Pilgrim
  [EMAIL PROTECTED],
  as I
  believe there's a security list.
 
  I am going to draw on Geert's presentation at Euroscon 2005 and
  compile about 6-8 slides that should capture, in a nutshell,
  what
  makes RIFE compelling to develop Java web applications with; I
  want to
  round up my presentation by the close of day and send it up--
  if any
  one has any suggestions, I would really appreciate it.
 
  Thanks a lot.
 
  Emmanuel
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D
  309F D6A9
  Public PGP key  : available at servers pgp.mit.edu,
  wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F
  D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
  ___
  Rife-users mailing list
  Rife-users

[Rife-users] RIFE at JavaWUG BOF XV, 3-Feb-2006, Oracle City Office, London

2006-01-29 Thread Emmanuel Okyere
Hello all:

I have commited to giving a 10-15 minute 'quickie' about RIFE at the
next Java Web User Group (javawug) meeting at the Oracle City office
in London, on Feb 3, 2006. There will be other 10-15 min 'quickie'
sessions on various other java webdev technologies out there; it's
from 6:30pm to about 9.

I think this is the address:

Oracle City Office
One South Place
London
EC2M 2RB

If anyone on the list is in London, and will want to attend, I suggest
sending an email to Peter A. Pilgrim [EMAIL PROTECTED], as I
believe there's a security list.

I am going to draw on Geert's presentation at Euroscon 2005 and
compile about 6-8 slides that should capture, in a nutshell, what
makes RIFE compelling to develop Java web applications with; I want to
round up my presentation by the close of day and send it up--if any
one has any suggestions, I would really appreciate it.

Thanks a lot.

Emmanuel
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE at JavaWUG BOF XV, 3-Feb-2006, Oracle City Office, London

2006-01-29 Thread Emmanuel Okyere
Geert,

How far along are you with the 'metadata' way of adding constraints?
if it's in a usable state now, I could use that, otherwise, I'll
mention work is under way to get it done; let me know.

Thanks,
Emmanuel

On 1/30/06, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 that's a great initiative! One suggestion I have is, if you're going
 to show constraints, that extends Validation is evidently not the
 cleanest way to do this is the model has to be container independent
 or already exists. Work is underway to make true POJO use possible.
 This will be done with parallel MetaData classes, ie. you Foo class
 will have a FooMetaData and the classloader will automatically detect
 this and perform some magic to weave both together. This will be in
 an invisible way (inner class with improbably inner variable name)
 and be totally transparent.
 Hardcore Java people tend to criticize the extends Validation
 otherwise.

 Good luck with the presentation. It would be nice if you would blot
 about it at rifers.org to announce it. Like that,  London people that
 are interested but not on the list, are aware of your presentation too.

 To do so, you just have to register on the blog and tell me that it's
 done, I'll create a blog for you then.

 Best regards,

 Geert

 On 30-jan-06, at 05:11, Emmanuel Okyere wrote:

  Hello all:
 
  I have commited to giving a 10-15 minute 'quickie' about RIFE at the
  next Java Web User Group (javawug) meeting at the Oracle City office
  in London, on Feb 3, 2006. There will be other 10-15 min 'quickie'
  sessions on various other java webdev technologies out there; it's
  from 6:30pm to about 9.
 
  I think this is the address:
 
  Oracle City Office
  One South Place
  London
  EC2M 2RB
 
  If anyone on the list is in London, and will want to attend, I suggest
  sending an email to Peter A. Pilgrim [EMAIL PROTECTED], as I
  believe there's a security list.
 
  I am going to draw on Geert's presentation at Euroscon 2005 and
  compile about 6-8 slides that should capture, in a nutshell, what
  makes RIFE compelling to develop Java web applications with; I want to
  round up my presentation by the close of day and send it up--if any
  one has any suggestions, I would really appreciate it.
 
  Thanks a lot.
 
  Emmanuel
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE at JavaWUG BOF XV, 3-Feb-2006, Oracle City Office, London

2006-01-29 Thread Emmanuel Okyere
Sounds good; i've also registered on the site, so I'll make a blog
post after you've set it up.

Cheers,
Emmanuel

On 1/30/06, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 it's not usable yet, so you can't show that. Best is to mention it as
 an alternative. I just decided upon the classloader magic as being
 the best way to implement it, since otherwise the system would need
 to manually manage a map to keep object instances in sync with the
 meta-data instances. Adding them as inner variables will make the JVM
 do all the hard work.

 I'm going to create a Conferences / Presentations page on rifers.org
 where I'll list your talk too.

 Best regards,

 Geert

 On 30-jan-06, at 08:40, Emmanuel Okyere wrote:

  Geert,
 
  How far along are you with the 'metadata' way of adding constraints?
  if it's in a usable state now, I could use that, otherwise, I'll
  mention work is under way to get it done; let me know.
 
  Thanks,
  Emmanuel
 
  On 1/30/06, Geert Bevin [EMAIL PROTECTED] wrote:
  Hi Emmanuel,
 
  that's a great initiative! One suggestion I have is, if you're going
  to show constraints, that extends Validation is evidently not the
  cleanest way to do this is the model has to be container independent
  or already exists. Work is underway to make true POJO use possible.
  This will be done with parallel MetaData classes, ie. you Foo class
  will have a FooMetaData and the classloader will automatically detect
  this and perform some magic to weave both together. This will be in
  an invisible way (inner class with improbably inner variable name)
  and be totally transparent.
  Hardcore Java people tend to criticize the extends Validation
  otherwise.
 
  Good luck with the presentation. It would be nice if you would blot
  about it at rifers.org to announce it. Like that,  London people that
  are interested but not on the list, are aware of your presentation
  too.
 
  To do so, you just have to register on the blog and tell me that it's
  done, I'll create a blog for you then.
 
  Best regards,
 
  Geert
 
  On 30-jan-06, at 05:11, Emmanuel Okyere wrote:
 
  Hello all:
 
  I have commited to giving a 10-15 minute 'quickie' about RIFE at the
  next Java Web User Group (javawug) meeting at the Oracle City office
  in London, on Feb 3, 2006. There will be other 10-15 min 'quickie'
  sessions on various other java webdev technologies out there; it's
  from 6:30pm to about 9.
 
  I think this is the address:
 
  Oracle City Office
  One South Place
  London
  EC2M 2RB
 
  If anyone on the list is in London, and will want to attend, I
  suggest
  sending an email to Peter A. Pilgrim [EMAIL PROTECTED],
  as I
  believe there's a security list.
 
  I am going to draw on Geert's presentation at Euroscon 2005 and
  compile about 6-8 slides that should capture, in a nutshell, what
  makes RIFE compelling to develop Java web applications with; I
  want to
  round up my presentation by the close of day and send it up--if any
  one has any suggestions, I would really appreciate it.
 
  Thanks a lot.
 
  Emmanuel
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE at JavaWUG BOF XV, 3-Feb-2006, Oracle City Office, London

2006-01-29 Thread Emmanuel Okyere
Excellent; I'll make a post.

Thanks,
Emmanuel

On 1/30/06, Geert Bevin [EMAIL PROTECTED] wrote:
 You blog has been created. To add an entry, open the blog menu to the
 left, log in and click the appropriate menu item.

 Don't forget to register you blog on javablogs if you want some
 readership, using this RSS feed once your first post has been written:
 http://rifers.org/blogs/feeds/rss/entry/eokyere

 On 30-jan-06, at 08:44, Emmanuel Okyere wrote:

  Geert,
 
  I have registered for the blog.
 
  Thanks,
  Emmanuel
 
  On 1/30/06, Emmanuel Okyere [EMAIL PROTECTED] wrote:
  Geert,
 
  How far along are you with the 'metadata' way of adding constraints?
  if it's in a usable state now, I could use that, otherwise, I'll
  mention work is under way to get it done; let me know.
 
  Thanks,
  Emmanuel
 
  On 1/30/06, Geert Bevin [EMAIL PROTECTED] wrote:
  Hi Emmanuel,
 
  that's a great initiative! One suggestion I have is, if you're going
  to show constraints, that extends Validation is evidently not the
  cleanest way to do this is the model has to be container independent
  or already exists. Work is underway to make true POJO use possible.
  This will be done with parallel MetaData classes, ie. you Foo class
  will have a FooMetaData and the classloader will automatically
  detect
  this and perform some magic to weave both together. This will be in
  an invisible way (inner class with improbably inner variable name)
  and be totally transparent.
  Hardcore Java people tend to criticize the extends Validation
  otherwise.
 
  Good luck with the presentation. It would be nice if you would blot
  about it at rifers.org to announce it. Like that,  London people
  that
  are interested but not on the list, are aware of your
  presentation too.
 
  To do so, you just have to register on the blog and tell me that
  it's
  done, I'll create a blog for you then.
 
  Best regards,
 
  Geert
 
  On 30-jan-06, at 05:11, Emmanuel Okyere wrote:
 
  Hello all:
 
  I have commited to giving a 10-15 minute 'quickie' about RIFE at
  the
  next Java Web User Group (javawug) meeting at the Oracle City
  office
  in London, on Feb 3, 2006. There will be other 10-15 min 'quickie'
  sessions on various other java webdev technologies out there; it's
  from 6:30pm to about 9.
 
  I think this is the address:
 
  Oracle City Office
  One South Place
  London
  EC2M 2RB
 
  If anyone on the list is in London, and will want to attend, I
  suggest
  sending an email to Peter A. Pilgrim [EMAIL PROTECTED],
  as I
  believe there's a security list.
 
  I am going to draw on Geert's presentation at Euroscon 2005 and
  compile about 6-8 slides that should capture, in a nutshell, what
  makes RIFE compelling to develop Java web applications with; I
  want to
  round up my presentation by the close of day and send it up--if any
  one has any suggestions, I would really appreciate it.
 
  Thanks a lot.
 
  Emmanuel
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://lists.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://lists.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Rife Eclipse Plugin

2006-01-13 Thread Emmanuel Okyere
Geert posted a sort of roadmap here
http://rifers.org/wiki/display/RIFE/IdePlugins; i think it's a good
place to start... like Geert, I'm prepared to put effort into this if
we can get it started.

-- eokyere

On 1/13/06, Jeremy Whitlock [EMAIL PROTECTED] wrote:
 Hey all,
  I have been talking to Geert about an Eclipse Plugin for Rife.  He
 seems interested in beginning development on it and wanted someone to get it
 started.  I would like to fill these shoes and have a track proven record to
 do so.  I have written a plugin that will probably perform similarly to how
 the Rife plugin should.  It is a WebLogic plugin for Eclipse that was
 written before Eclipse's Web Tools Project and in many ways is better than
 the WebLogic support in WTP.  I was asked to conduct a BoF at the most
 recent U.S. BEAWorld to talk about the plugin.  I was surprise at how many
 BEA developers had used my plugin and they gave me great praise for the
 work.  To check this out, visit here:

  https://eclipse-plugin.projects.dev2dev.bea.com/

 Let me know what you think and if you are interested, lets start
 brainstorming for how this should work and what the features should be.

 Take care,

  Jeremy

 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users



___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Rife Eclipse Plugin

2006-01-13 Thread Emmanuel Okyere
i don't think fixed file locations should be our major concern...
probably, we should think about what preferences we can add in to
allow people more flexibility with the system;

-- eokyere

On 1/13/06, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 wowz... tons of reponses already... lol

 On 1/13/06, Emmanuel Okyere [EMAIL PROTECTED] wrote:
  Geert posted a sort of roadmap here
  http://rifers.org/wiki/display/RIFE/IdePlugins; i think it's a good
  place to start... like Geert, I'm prepared to put effort into this if
  we can get it started.
 
  -- eokyere
 
  On 1/13/06, Jeremy Whitlock [EMAIL PROTECTED] wrote:
   Hey all,
I have been talking to Geert about an Eclipse Plugin for Rife.  He
   seems interested in beginning development on it and wanted someone to get 
   it
   started.  I would like to fill these shoes and have a track proven record 
   to
   do so.  I have written a plugin that will probably perform similarly to 
   how
   the Rife plugin should.  It is a WebLogic plugin for Eclipse that was
   written before Eclipse's Web Tools Project and in many ways is better than
   the WebLogic support in WTP.  I was asked to conduct a BoF at the most
   recent U.S. BEAWorld to talk about the plugin.  I was surprise at how many
   BEA developers had used my plugin and they gave me great praise for the
   work.  To check this out, visit here:
  
https://eclipse-plugin.projects.dev2dev.bea.com/
  
   Let me know what you think and if you are interested, lets start
   brainstorming for how this should work and what the features should be.
  
   Take care,
  
Jeremy
  
   ___
   Rife-users mailing list
   Rife-users@uwyn.com
   http://www.uwyn.com/mailman/listinfo/rife-users
  
  
  
 

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Rife Eclipse Plugin

2006-01-13 Thread Emmanuel Okyere
 Yes, we are talking about the same thing. As I'm saying, if the IDE
 already provides features to ease RIFE development that much, why
 re-invent the wheel?

Eddy, I don't think we are re-inventing the wheel here, just adding to
what is already available to make it 'more easier' to move from
resource to resource... for instance, being able to link from an
implementation attribute in the site configuration to the actual
compilation unit will be a big boost... also having problem markers
for stated compilation units that do not exist shd help a lot... all
in all just adding to the tools already available to make RIFE a
'first-class citizen', imho

-- eokyere
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RFC: activating globalvars and reflective datalinks at submission

2006-01-01 Thread Emmanuel Okyere
Yeah,

I didn't get a chance to test this earlier as I've been on the move;
sounds like a good/logical move... +1.

Thanks,
eokyere

On 12/30/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Ok, thanks both, I'll go ahead with it then. I also think the change
 should be made now.

 On 30 Dec 2005, at 19:09, JR Boyens wrote:

  I don't mind it so much. It seems to be a worthwhile change. I guess I
  would expect it to be the now-proposed way.
 
  As I stand right now, we should break backwards-compatibility.
 
  On 12/30/05, S. Meslin-Weber [EMAIL PROTECTED] wrote:
  Hi Geert,
 
  On Tue, Dec 27, 2005 at 11:23:03PM +0100, Geert Bevin wrote:
  Download http://rifers.org/downloads/rife/rife-jumpstart_test.zip
  Run
  it and go to http://localhost:8080/inscription
 
  You can continue entering values in the form, the process stop as
  soon as you provide an empty field.
 
  Above each step you'll see a unique ID. This ID is generated when
  the
  process it first started and will afterwards simply be obtained from
  inputs. The flow is very simple here, but it can be very complex.
  With the custom RIFE jar in this archive, the ID can be set as an
  output in the Inscription element and after a submission the changed
  input will be picked up.
 
  Thanks for the example, it's a subtle change, but I believe it's
  worth
  the break in backward compatibility. I also think it better to
  make such
  breaks early rather than late - less developers will need to change
  code.
 
  So on this issue, I vote 'break with the past'. Now, if only I
  could get
  Sun to do the same with Mustang!
 
  Thanks,
 
  Steph
 
  --
  
  Stephane Meslin-Weber Email: [EMAIL PROTECTED]
  Senior Software Engineer  Web: http://odonata.tangency.co.uk
  
 
 
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.1 (GNU/Linux)
 
  iD8DBQFDtUFq5QGfd9PDUN0RApGSAKCxrQwCp6ZoY58KiTpwCBU8KmzhUgCfWIC8
  x+FC6nXP27Igd8QzIgvzNmI=
  =7viq
  -END PGP SIGNATURE-
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 
 
 
 
 
  --
  JR Boyens
  [EMAIL PROTECTED]
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net



 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RFC: activating globalvars and reflective datalinks at submission

2005-12-27 Thread Emmanuel Okyere
can you give an example with code?

thanks,
eokyere

On 12/27/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi,

 I just ran into a use-case, where the current submission handling
 makes things very difficult. What happens now is that any submission
 preserves its inputs, disregarding from which globalvars or outputs
 that are set during the execution of the element. This however means
 that to change inputs, one has to call a flowlink. In my case this
 makes the flow very complex since I have to perform a lot of
 additional conditional checks.

 So I was thinking to let changed globalvars and outputs with
 datalinks that point to the same element, reflect their changes over
 a submission. This behavior is however backwards incompatible.
 Anybody that sets an output during an element and expect that a
 submission always has the same input value even if the output is
 linked to it, will see a different behavior with this change.

 What do you think?

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] IDE Support (Eclipse)

2005-12-20 Thread Emmanuel Okyere
Geert,

Got anything to go yet? Let me know.

Thanks,
-- eokyere

On 12/16/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 looking forward to it :)

 -- eokyere

 On 12/16/05, Geert Bevin [EMAIL PROTECTED] wrote:
  I'm back, we can start looking at it as of next week.
 
  On 11-dec-05, at 16:30, Emmanuel Okyere wrote:
 
   yeah, I think we should tackle those basics first... probably with
   some refactoring support... the gui design parts can be built on the
   those after we have them working
  
   Let me know when u get back, so we can start working on it together
  
   -- eokyere
  
   On 12/11/05, Geert Bevin [EMAIL PROTECTED] wrote:
   I'm interested in working on the code hyperlinking and syntax
   highlighting. I'll start experimenting with that after my return from
   JavaPolis.
  
   On 11 Dec 2005, at 10:05, Emmanuel Okyere wrote:
  
   I noticed that there are 4 of us currently (Pierre Raoul, Geert
   Bevin,
   Oliver Dohmen and I) who have shown interest in helping build the
   RIFE
   eclipse plugin. I was wondering if folk would like to start
   discussions/code towards this.
  
   I had taken a look at the ant plugin to get a few ideas, but
   thinking
   about it more, i think the wst carves a good place for us to start.
   Thoughts? Anyone with any experience building an eclipse plugin?
  
   -- eokyere
   ___
   Rife-users mailing list
   Rife-users@uwyn.com
   http://www.uwyn.com/mailman/listinfo/rife-users
  
  
   --
   Geert Bevin   Uwyn bvba
   Use what you need   Avenue de Scailmont 34
   http://www.uwyn.com   7170 Manage
   gbevin[remove] at uwyn dot comTel +32 64 84 80 03
  
   PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
   Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
  
  
  
   ___
   Rife-users mailing list
   Rife-users@uwyn.com
   http://www.uwyn.com/mailman/listinfo/rife-users
  
   ___
   Rife-users mailing list
   Rife-users@uwyn.com
   http://www.uwyn.com/mailman/listinfo/rife-users
  
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] IDE Support (Eclipse)

2005-12-20 Thread Emmanuel Okyere
yeah, i understand that bit... if you can jumpstart it, i'm sure the
rest of us who showed interest will be able to drive it from there...
i'm looking into it myself as I have a few days free before I go on
holiday; just wanted to know if you had any code already.

thanks,
-- eokyere

On 12/20/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 no, not yet, but as I said before, I will not drive the Eclipse
 plugin effort. I will contribute to it for certain parts that I find
 important, but I don't use Eclipse myself. It thus makes a lot more
 sense for me to work also on an X-develop plugin and continue to
 focus on RIFE itself mainly.

 Best regards,

 Geert

 On 20-dec-05, at 15:39, Emmanuel Okyere wrote:

  Geert,
 
  Got anything to go yet? Let me know.
 
  Thanks,
  -- eokyere
 
  On 12/16/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
  looking forward to it :)
 
  -- eokyere
 
  On 12/16/05, Geert Bevin [EMAIL PROTECTED] wrote:
  I'm back, we can start looking at it as of next week.
 
  On 11-dec-05, at 16:30, Emmanuel Okyere wrote:
 
  yeah, I think we should tackle those basics first... probably with
  some refactoring support... the gui design parts can be built
  on the
  those after we have them working
 
  Let me know when u get back, so we can start working on it together
 
  -- eokyere
 
  On 12/11/05, Geert Bevin [EMAIL PROTECTED] wrote:
  I'm interested in working on the code hyperlinking and syntax
  highlighting. I'll start experimenting with that after my
  return from
  JavaPolis.
 
  On 11 Dec 2005, at 10:05, Emmanuel Okyere wrote:
 
  I noticed that there are 4 of us currently (Pierre Raoul, Geert
  Bevin,
  Oliver Dohmen and I) who have shown interest in helping build the
  RIFE
  eclipse plugin. I was wondering if folk would like to start
  discussions/code towards this.
 
  I had taken a look at the ant plugin to get a few ideas, but
  thinking
  about it more, i think the wst carves a good place for us to
  start.
  Thoughts? Anyone with any experience building an eclipse plugin?
 
  -- eokyere
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F
  D6A9
  Public PGP key  : available at servers pgp.mit.edu,
  wwwkeys.pgp.net
 
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] run java code directly after starting the web server

2005-12-19 Thread Emmanuel Okyere
Look at the ~.engine.ElementDeployer class. A typical implementation
(this an earlier version of something I had for my Account element)
looks like the one i've pasted below.

Alternatively, you could create a BlockingParticipant (maybe called
Setup) and put all the setup-specific code there, and add it to the
repository configuration.

hth,
-- eokyere

public static class Deployer extends ElementDeployer {
public void deploy() throws EngineException {
Datasource ds = (Datasource) 
getElementInfo().getProperty(DATASOURCE);
try {

DatabaseContentFactory.getInstance(ds).install();   
} catch (InstallContentErrorException e) {

logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e));
}

ContentQueryManagerAccount accounts = new
ContentQueryManagerAccount(ds, Account.class);
try {
accounts.install();
} catch (DatabaseException e) {

logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e));
}

try {

//DatabaseUsersFactory.getInstance(ds).install();

DatabaseUsers users = 
DatabaseUsersFactory.getInstance(ds);
users.install();

users.addRole(admin);
users.addRole(user);


DatabaseSessionsFactory.getInstance(ds).install();
//DatabaseSessionsFactory.getInstance(ds).

logger.info(-- user tbls created 
-- );
} catch (DatabaseException e) {

logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e));   

} catch (SessionManagerException e) {

logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e));   

}


}

private Logger logger =
Logger.getLogger(Deployer.class.getPackage().getName());
}

On 12/19/05, Lars Grupe [EMAIL PROTECTED] wrote:
 Hi,

 I would like to know if I can run java code directly after starting the
 web application.
 I would like to install the users table and the sessions table in the
 database, directly after starting the web application the first time.
 Earlier I have no simple access to the config to get the datasource.
 And my arrival element inherits an authentication element.

 If there is no easy way to do it, I will generate the database earlier
 and copy them into my project.
 But maybe there is an easy way, that you can tell me?

 Cheers,
 Lars
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] run java code directly after starting the web server

2005-12-19 Thread Emmanuel Okyere
I wanted to add that towards the end of the in-depth simple blog
tutorial (http://rifers.org/rife_indepth_simple_blog) there's an
explanation for this.

cheers,
-- eokyere

On 12/19/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 Look at the ~.engine.ElementDeployer class. A typical implementation
 (this an earlier version of something I had for my Account element)
 looks like the one i've pasted below.

 Alternatively, you could create a BlockingParticipant (maybe called
 Setup) and put all the setup-specific code there, and add it to the
 repository configuration.

 hth,
 -- eokyere

 public static class Deployer extends ElementDeployer {
 public void deploy() throws EngineException {
 Datasource ds = (Datasource) 
 getElementInfo().getProperty(DATASOURCE);
 try {
 
 DatabaseContentFactory.getInstance(ds).install();
 } catch (InstallContentErrorException e) {
 
 logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e));
 }

 ContentQueryManagerAccount accounts = new
 ContentQueryManagerAccount(ds, Account.class);
 try {
 accounts.install();
 } catch (DatabaseException e) {
 
 logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e));
 }

 try {
 
 //DatabaseUsersFactory.getInstance(ds).install();

 DatabaseUsers users = 
 DatabaseUsersFactory.getInstance(ds);
 users.install();

 users.addRole(admin);
 users.addRole(user);

 
 DatabaseSessionsFactory.getInstance(ds).install();
 //DatabaseSessionsFactory.getInstance(ds).

 logger.info(-- user tbls created 
 -- );
 } catch (DatabaseException e) {
 
 logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e));
 } catch (SessionManagerException e) {
 
 logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e));
 }


 }

 private Logger logger =
 Logger.getLogger(Deployer.class.getPackage().getName());
 }

 On 12/19/05, Lars Grupe [EMAIL PROTECTED] wrote:
  Hi,
 
  I would like to know if I can run java code directly after starting the
  web application.
  I would like to install the users table and the sessions table in the
  database, directly after starting the web application the first time.
  Earlier I have no simple access to the config to get the datasource.
  And my arrival element inherits an authentication element.
 
  If there is no easy way to do it, I will generate the database earlier
  and copy them into my project.
  But maybe there is an easy way, that you can tell me?
 
  Cheers,
  Lars
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] IDE Support (Eclipse)

2005-12-16 Thread Emmanuel Okyere
looking forward to it :)

-- eokyere

On 12/16/05, Geert Bevin [EMAIL PROTECTED] wrote:
 I'm back, we can start looking at it as of next week.

 On 11-dec-05, at 16:30, Emmanuel Okyere wrote:

  yeah, I think we should tackle those basics first... probably with
  some refactoring support... the gui design parts can be built on the
  those after we have them working
 
  Let me know when u get back, so we can start working on it together
 
  -- eokyere
 
  On 12/11/05, Geert Bevin [EMAIL PROTECTED] wrote:
  I'm interested in working on the code hyperlinking and syntax
  highlighting. I'll start experimenting with that after my return from
  JavaPolis.
 
  On 11 Dec 2005, at 10:05, Emmanuel Okyere wrote:
 
  I noticed that there are 4 of us currently (Pierre Raoul, Geert
  Bevin,
  Oliver Dohmen and I) who have shown interest in helping build the
  RIFE
  eclipse plugin. I was wondering if folk would like to start
  discussions/code towards this.
 
  I had taken a look at the ant plugin to get a few ideas, but
  thinking
  about it more, i think the wst carves a good place for us to start.
  Thoughts? Anyone with any experience building an eclipse plugin?
 
  -- eokyere
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


[Rife-users] Demarcate module boundaries in framework source tree

2005-12-16 Thread Emmanuel Okyere
I think the rife framework source tree shd be broken up into its
proper constituent modules to properly demarcate what the optional
packages are and also to make dependencies more clearer.

currently, the way i understand it, the source tree holds the core
framework (engine, cmf, config, rep, resources, site, xml),
authenticatation, tools (i'm not sure if this is part of the core
framework), gui (optional), database (optional in a way?), mail
(optional?), scheduler (not sure where this belongs yet), swing (part
of gui?)

I'm asking for this because I'm not sure exactly what to limit myself
to (or what else gets broken) when I'm looking to make changes
locally. Demacating the code into proper modules (not just packages)
shd also it easier to track bugs/send patches up.

Or is there a way to properly download these individually (together
with dependencies) without corrupting the tree with extraneous source
files?

Thoughts?

Thanks,
eokyere
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] users.xml

2005-12-12 Thread Emmanuel Okyere
Baube,

Look in your WEB-INF/web.xml file; it's defined in the init-param rep.path

HTH
-- eokyere


On 12/12/05, F Baube [EMAIL PROTECTED] wrote:
 Another potentially stupid question here ...

 How exactly does Rife locate the directory rep/ at start-up ?
 Does it use CATALINA_* or TOMCAT_* environment variables ?

 I grep'd the source code but could not find anything obvious.


 thx

 fred

 --
 F.Baube*
 Georgetown/MSFS/1988   *  Act locally.
 email fbaube#welho.com *  Think pangalactically.
  gsm  +358 41 536 8192 *
  wmd   60°11'10.8N 24°57'36.9E
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] users.xml

2005-12-12 Thread Emmanuel Okyere
And then u can see it in use in the ~.servlet.RepServlet class and
some info on it in the ~.rep.BloclingRepository class

-- eokyere

On 12/12/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 Baube,

 Look in your WEB-INF/web.xml file; it's defined in the init-param rep.path

 HTH
 -- eokyere


 On 12/12/05, F Baube [EMAIL PROTECTED] wrote:
  Another potentially stupid question here ...
 
  How exactly does Rife locate the directory rep/ at start-up ?
  Does it use CATALINA_* or TOMCAT_* environment variables ?
 
  I grep'd the source code but could not find anything obvious.
 
 
  thx
 
  fred
 
  --
  F.Baube*
  Georgetown/MSFS/1988   *  Act locally.
  email fbaube#welho.com *  Think pangalactically.
   gsm  +358 41 536 8192 *
   wmd   60°11'10.8N 24°57'36.9E
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] IDE Support (Eclipse)

2005-12-11 Thread Emmanuel Okyere
yeah, I think we should tackle those basics first... probably with
some refactoring support... the gui design parts can be built on the
those after we have them working

Let me know when u get back, so we can start working on it together

-- eokyere

On 12/11/05, Geert Bevin [EMAIL PROTECTED] wrote:
 I'm interested in working on the code hyperlinking and syntax
 highlighting. I'll start experimenting with that after my return from
 JavaPolis.

 On 11 Dec 2005, at 10:05, Emmanuel Okyere wrote:

  I noticed that there are 4 of us currently (Pierre Raoul, Geert Bevin,
  Oliver Dohmen and I) who have shown interest in helping build the RIFE
  eclipse plugin. I was wondering if folk would like to start
  discussions/code towards this.
 
  I had taken a look at the ant plugin to get a few ideas, but thinking
  about it more, i think the wst carves a good place for us to start.
  Thoughts? Anyone with any experience building an eclipse plugin?
 
  -- eokyere
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net



 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Fwd: Re: [Rife-users] Spring]

2005-12-10 Thread Emmanuel Okyere
Like fbaube, i'm wondering what spring brings to rife that rife
doesn't already do? does it in some way make something more
easier/intuitive to do? does it bring additional features? or is it
just added in to allow people who already know spring to easily
migrate to rife?

--eokyere

On 12/10/05, Raoul Pierre [EMAIL PROTECTED] wrote:
 F Baube a écrit :

 Could anyone describe what Spring integration brings to Rife ?
 
 
 You can look at the files I just sent about l10n. I used Spring
 to do IoC for the LocaleProvider: The choice of the LocalProvider
 implementation is done from the file localesContext.xml.
 
 
 
 But Spring is a pretty big system, isn't it ?
 
 

 Yes (1.7 mo) but still acceptable.

 I'm wondering about the big picture ... because I'm very curious ...
 Rife covers _so_ much, so what does Spring offer that integrates more
 or less orthogonally.
 
 
 

 Atm, Rife only allows string injection, not object value. See
 http://rifers.org/wiki/display/RIFE/Add+full+IoC+support

 Pierre






 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] A couple of questions before starting with RIFE

2005-12-06 Thread Emmanuel Okyere
sounds good :)

Emmanuel

On 12/5/05, Geert Bevin [EMAIL PROTECTED] wrote:
  Geert did mention a book down the line; i for one won't mind
  contributing a few chapters to that endeavor.

 Cool Emmanuel, I'll keep that in mind. I postponed the book proposal
 for a couple of months since I'm swamped with work at the moment and
 the new-year festivities are coming soon. In January or February I'll
 resume working on the TOC. I'll ping you then.

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RFC: RIFE-247 : Allow getXhtmlTemplate() with no arguments to return template with same path as element path

2005-12-06 Thread Emmanuel Okyere
Locally, I currently use it to return the template property of my elements

public Template getHtmlTemplate() throws TemplateException, 
EngineException {

if (!hasProperty(TEMPLATE))
throw new 
PropertyRequiredException(getDeclarationName(), TEMPLATE);

return getHtmlTemplate(getPropertyString(TEMPLATE));
}

I think that is more practical/useful than the proposed solution and
maintains the separation we try to create between the templates and
implementations.

-- eokyere

On 12/6/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi everyone,

 I'd like to know what you guys think about this issue:
 http://servlet.uwyn.com/issues/browse/RIFE-247

 To summmarize, when you an element with the absolute ID:
 Subsite1.Subsite2.Home

 These new methods (without arguments):
 getXhtmlTemplate()
 getHtmlTemplate()
 getXmlTemplate()
 ...

 Would automatically detect the ID of the element that calls them,
 resulting in these calls in this case:
 getXhtmlTemplate(Subsite1.Subsite2.Home)
 getHtmlTemplate(Subsite1.Subsite2.Home)
 getXmlTemplate(Subsite1.Subsite2.Home)
 ...

 The implementation is very trivial for me:
 public Template getXhtmlTemplate()
 {
  return getXhtmlTemplate(getElementInfo().getId());
 }

 I can see the benefits, it allows someone that mirror the element IDs
 and template names in his application to have less duplication. This
 is similar to some of Rails' behavior I think.

 The downside is that it makes the code more brittle. As soon as you
 change the ID of a subsite, add a new one above it or change the
 element ID, you'll get a bunch of errors about missing templates.

 Do you think it's a good idea to add this feature to the public API?

 Best regards,

 Geert

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RFC: RIFE-247 : Allow getXhtmlTemplate() with no arguments to return template with same path as element path

2005-12-06 Thread Emmanuel Okyere
my template implementations conform to a package name, my templates
conform to a site structure 2 very different contexts... i'm not
saying they couldn't be the same, but u get my drift.

-- eokyere


On 12/6/05, Keith Lea [EMAIL PROTECTED] wrote:
 Why do you doubt that people will use it? Do you not use one template
 per page (and vice versa) 99% of the time like I do? Do you think
 most people don't? Do you think most people would rather type extra
 for something that the framework could infer?

 On Dec 6, 2005, at 1:08 PM, Emmanuel Okyere wrote:

  thinking it over, It's just synthatic sugar, and there's nothing wrong
  with adding it in; and i suspect whoever uses it will be informed
  enough about consequences of site changes and such. It just feels like
  it belongs in an extensions package; i doubt too many people will be
  making use of this.
 
  -- eokyere
 
  On 12/6/05, Geert Bevin [EMAIL PROTECTED] wrote:
  You are right; my vote on the issue: -1.
 
  Could you just answer the same question I asked Eddy?
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] A couple of questions before starting with RIFE

2005-12-05 Thread Emmanuel Okyere
Let me just add that, once you know java, the learning curve is not
that steep; it took me about 2 weeks of on/off playing around with the
framework to finally get it. My personal path was:

1. I read and understood the basic building blocks for templates...
value(v), block (B, BV), include (I) [
http://rifers.org/wiki/display/RIFE/GuideTemplates ]

2. I followed the in-depth simple blog video, which iteratively
introduces most of the key features of rife, essential for app
development. [ http://rifers.org/rife_indepth_simple_blog ]

After that, I started to move this about, get into the code to
understand what's going on for some of the parts (especially with
Authentication), asked questions on the list (it's a great community
here, and one of the things that got me to get this far into the
framework), search the wiki (http://rifers.org/wiki/display/RIFE/Home)
and most of it finally makes sense now.

Apart from a few extensions you have to make of the Rife classes to
take advantage of some Rife features, such as Rife's validation
implementations, the framework assumes very little about your code.

And if I've not mentioned it yet, the feature I'm loving the most now
is Rife's out-of-container testing (
http://rifers.org/wiki/display/RIFE/Out+of+container+testing ); just
sweet! :)

-- eokyere

On 12/5/05, Geert Bevin [EMAIL PROTECTED] wrote:
  1. If RIFE is really all it appears to be (e.g., a complete answer
  to the questions Ruby on Rails has posed to the Java community),
  how come it is not more widely used? It is still a very minor
  player (whether or not this is justified). I was wondering why this
  might be. Could it be to do with its Belgian (i.e., non-US) origins?

 I just wanted to add to this that RIFE never was and still is not
 intended to be a RoR-clone for Java. We have been working on the
 framework for almost 4 years now and only recently prepped RIFE/Crud
 for public release after having used it a long time internally. We
 have our own ideals and ideas. Some go intro the same direction as
 RoR, but many are also the opposite. It just happens that RoR took
 the community by a storm and that people compare RIFE with it.

 Personally I think that the best thing in RoR is Ruby, I don't like
 the framework itself very much. Since a wealth of JVM scripting
 languages are supported in RIFE (like Groovy), you can get much of
 agility that scripting languages give you.

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE podcast

2005-12-04 Thread Emmanuel Okyere
i don't listen to podcasts either, but it wouldn't hurt to add it; a
choice for those who do listen, at least.

maybe you could also consider adding sound to the videos, like the
simple blog example, etc... that shd add to the user experience of
those resources too.

(OT) what software did u use for the screen captures? can anyone on
the list suggest a good free|open source|works-on-linux software for
screen capture that allows easy integration of sound? I was planning
to create a few video tutorials myself, down the line; I know of
vncrec and xvidcap, but working with sound with them isn't trivial.

thanks,
-- eokyere


On 12/4/05, JR Boyens [EMAIL PROTECTED] wrote:



 On 12/4/05, Geert Bevin [EMAIL PROTECTED] wrote:
   On 12/3/05, Keith Lea [EMAIL PROTECTED] wrote:
   I'll write since no one has responded. I don't listen to any podcasts
   so I don't think I'll listen to a rife podcast.
  
   Not listening to a podcast puts you in the minority I think. :)
 
  It took me a while to start listening too, but now I really like to
  listen to podcasts regularly.
 
since I like working with audio, I'd like to try to create a RIFE
podcast with regular content.
   
Any ideas for this?
  
   A RIFE-flavored podcast might be a little narrow in the scope of
   content. What I mean is, I think you might have trouble coming up
   with things to write about. Unless you start trashing RoR and other
   webapp frameworks and then interview their creators in a
   Hardball / pundit show style. That would actually be really
   really cool. Listen to two people argue about why one web framework
   is better than another... Hmmm
 
  That would be cool, a bit like the frameworks smackdown at the
  previous JavaOne conference. Setting that up would take quite a bit
  more work than just doing your own thing. I do want it to get a RIFE
  branding though, for promotion.
 
Do you think it's a good idea?
  
   Sure. Can't hurt, might help. Could be interesting.
  
Which topics would you like me to talk about?
  
   Talking in a podcast is even harder than talking in front of people
   in a presentation, so the topics will probably have to be shallow.
   You're not going to be trying to explain all of RIFE in a podcast.
   I know that there are terms and concepts that are hard to vocalize.
 
  Well it's different, but it would let me practice my English
  pronunciation skills. At JIA i remember that you ha an idea of doing
  a RIFE / tech podcast yourself to practice your presentation skills.
  Do you feel like helping out with this one? We could do it together.


  Sure, why not. I'd be willing to help out.

Any suggestions for regular themes or subjects?
  
   As I said above the argue with the developers format would be an
   excellent thing. Maybe a morning coffee notes style / here's what's
   going on type of thing could be interesting as well.
 
  I really like the format of the JavaPosse, where they basically sit
  around a (virtual) table and comment on news/interesting things.
  Since the mailinglist has been getting a good amount of traffic since
  a month or two, I was thinking of talking about the most interesting
  subjects that were discussed there. Also, new efforts like the IDE
  plugins can benefit from recent status updates. The same goes for
  RIFE itself, and where the development is heading. We can also cover
  interesting blogs and news-items that are RIFE-related. Another
  possibility is to interview users about why they adopted RIFE, what
  they like about it and what they find less well done.
 
  However, I don't think that there's enough material for a weekly
  podcast, so I'm thinking about a bi-weekly one. It doesn't have to be
  very long either, 10-15 minutes could be enough to start out with.


  Sounds good. I was thinking you were shooting for a weekly podcast.

   I guess for me the blocker is the fact that you're going to have a
   bit of a time with just RIFE because of two things: A) low
   established userbase and B) complexity of the topic
 
  I agree, explaining complex topics don't work on talk radio.
 
   I don't listen to talk radio in my car to hear about the detailed
   inner workings of an engine complete with jargon and established
   industry terms.
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 
 --
 JR Boyens
 [EMAIL PROTECTED]
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users




Re: [Rife-users] IDE support

2005-12-03 Thread Emmanuel Okyere
Geert,

Looks good; everyone chime in and let's get this rolling

-- eokyere


On 12/3/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 I created a quick wiki page to start things off here:
 http://rifers.org/wiki/display/RIFE/IdePlugins

 Everyone, feel free to improve it or add yourself to the list of IDE
 plugin developers.

 Let's get this started! :-)

 Geert

 On 2-dec-05, at 23:22, Emmanuel Okyere wrote:

  Hi Geert,
 
  I actually have that pdf (can't remember how i got it though) together
  with 4 books from the eclipse series; and that includes the faq and
  building commercial-quality plugins...   and a couple others on SWT...
  i just have to re-read relevant parts...  plus get into the code as
  the platform is a moving target :) and the books were mostly written
  to the 3.0 API.
 
  it would be good to get together with all those interested on the
  #rife chan and get something started
 
  -- eokyere
 
  On 12/2/05, Geert Bevin [EMAIL PROTECTED] wrote:
  Hi Emmanuel,
 
  i am almost using rife almost on a daily basis now, so I also
  started
  looking at adding support for it in eclipse (which is my primary
  ide).
  i dabbled in an eclipse plugin in the past, but i have to relearn
  most
  parts of the platform to do anything signifact; what i've been doing
  is looking at the code for the ant plugin, to give me some
  direction.
 
  I received these from someone too as a documentation resource:
  http://safariexamples.informit.com/0321268385/index.html
 
  If you're interested I can also send you a PDF of a free early
  version of the Contributing To Eclipse book. This is not an illegal
  copy of the book, but a version from before it was published.
 
  Raoul, Geert, if you guys are serious about this one, i'll be
  willing
  to put sometime in; developing an eclipse plugin for rife sure
  sounds
  like a lot of fun.
 
  I sure want to help out! Though my main focus is to create an X-
  develop plugin, creating one for Eclipse is very important and I will
  give a hand to do so whenever I can. There is a student on our IRC
  channel that is planning on creating a visual Eclipse plugin using
  GEF to graphically edit your site-structure. It would be a good idea
  to get him on the mailing list.
 
  Best regards,
 
  Geert

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Excel spreadsheets as responses

2005-12-02 Thread Emmanuel Okyere
i am almost using rife almost on a daily basis now, so I also started
looking at adding support for it in eclipse (which is my primary ide).
i dabbled in an eclipse plugin in the past, but i have to relearn most
parts of the platform to do anything signifact; what i've been doing
is looking at the code for the ant plugin, to give me some direction.

Raoul, Geert, if you guys are serious about this one, i'll be willing
to put sometime in; developing an eclipse plugin for rife sure sounds
like a lot of fun.

-- eokyere


On 12/2/05, Geert Bevin [EMAIL PROTECTED] wrote:
  We don't have this, but I plan on doing a lot more Spring integration
  after the next release. I suppose this is part of their AOP support.
  The closest that we currently have is something similar as Spring's
  transactional template methods: http://rifers.org/wiki/display/RIFE/
  Chainable+transactions
 
  Whatever you do, please leave RIFE as a monolithic framework and do
  not
  start branching all over the place. RIFE has convinced me by its
  simplicity -- one JAR, one declaration in web.xml and that is it.

 Yes, these would be optional integrations for people that do already
 use Spring and would like to use RIFE alongside their current
 codebase. RIFE will always be one jar.

  Actually I was less talking about the syntax, but more about a
  centralized point of declaration. If your entire data and logic
  flow  is
  specified in a site-structure, you almost instantly have an
  overview of
  how your application behaves and which components are  accessible.
  Without this centralized declaration you have to search  through your
  entire code code-base to find where your area of  interest is
  located.
 
  Geert, I am not trying to be negative, but when I first looked at
  RIFE,
  it reminded me of FuseActions (ColdFusion anyone?). Except that
  FuseActions was a pattern more than anything else. Still it has worked
  for ages and still works.

 I consider that a good thing :-)

 Any familiarity makes it easier for people to adopt RIFE.

  Coool! I'm actively looking into making X-develop more
  intelligent  for
  RIFE and provide code hyper-linking in between files. I just  spent 2
  weeks with Eclipse exclusively to try it out thoroughly and I
  switched
  back to X-develop today.
 
  I tried X-Develop, but did not like it. But then, I don't like Eclipse
  or IDEA either. I think the choice of IDE is very personal and
  there is
  no real good/bad.

 +1

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Excel spreadsheets as responses

2005-12-02 Thread Emmanuel Okyere
Hi Geert,

I actually have that pdf (can't remember how i got it though) together
with 4 books from the eclipse series; and that includes the faq and
building commercial-quality plugins...   and a couple others on SWT...
i just have to re-read relevant parts...  plus get into the code as
the platform is a moving target :) and the books were mostly written
to the 3.0 API.

it would be good to get together with all those interested on the
#rife chan and get something started

-- eokyere

On 12/2/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

  i am almost using rife almost on a daily basis now, so I also started
  looking at adding support for it in eclipse (which is my primary ide).
  i dabbled in an eclipse plugin in the past, but i have to relearn most
  parts of the platform to do anything signifact; what i've been doing
  is looking at the code for the ant plugin, to give me some direction.

 I received these from someone too as a documentation resource:
 http://safariexamples.informit.com/0321268385/index.html

 If you're interested I can also send you a PDF of a free early
 version of the Contributing To Eclipse book. This is not an illegal
 copy of the book, but a version from before it was published.

  Raoul, Geert, if you guys are serious about this one, i'll be willing
  to put sometime in; developing an eclipse plugin for rife sure sounds
  like a lot of fun.

 I sure want to help out! Though my main focus is to create an X-
 develop plugin, creating one for Eclipse is very important and I will
 give a hand to do so whenever I can. There is a student on our IRC
 channel that is planning on creating a visual Eclipse plugin using
 GEF to graphically edit your site-structure. It would be a good idea
 to get him on the mailing list.

 Best regards,

 Geert


 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net



 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] PropertyIncompatibleTypeException

2005-11-18 Thread Emmanuel Okyere
i got it.. thx

emmanuel

On 11/17/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 seems it was left behind during a commit. I added it now.

 Best regards,

 Geert

 On 17-nov-05, at 20:37, Emmanuel Okyere wrote:

  Geert,
 
  I am trying to build from source (trunk as of this AM), and cannot
  seem to trace a PropertyIncompatibleTypeException that is referenced
  from ElementInfo and ElementSupport
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


[Rife-users] PropertyIncompatibleTypeException

2005-11-17 Thread Emmanuel Okyere
Geert,

I am trying to build from source (trunk as of this AM), and cannot
seem to trace a PropertyIncompatibleTypeException that is referenced
from ElementInfo and ElementSupport
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Authentication

2005-11-16 Thread Emmanuel Okyere
sweet! :)

On 11/16/05, Geert Bevin [EMAIL PROTECTED] wrote:
 I have added this method and changed the authentication classes to
 use it. Those useless ClassCastExceptions are now thus a thing of the
 past ;-)

 On 15-nov-05, at 17:19, Geert Bevin wrote:

  I think these errors call for an addition to the property retrieval
  methods:
  public T T getPropertyTyped(String name, ClassT type)
 
  Which will ensure that the property is in a certain type and throw
  a meaningful exception if it isn't.
 
  On 15-nov-05, at 17:08, Geert Bevin wrote:
 
  Hi Emmanuel,
 
  you need to set the datasource like this:
  property name=datasourcedatasourcedatasource/datasource/
  property
 
  Just as for the authentication element.
 
  Best regards,
 
  Geert
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] URLs for arrival destid=FUBAR

2005-11-16 Thread Emmanuel Okyere
can you post the complete delcarations?

eokyere

On 11/16/05, F Baube [EMAIL PROTECTED] wrote:
 Hmm,

 I have a menu page that the sitemap declares
 to be at the URL /fubar/menu

 But I also declare it to be the arrival URL.

 Is that why the Element is also registered
 in the site at the URLs /fubar and /fubar/ ?


 fred

 --
 F.Baube*
 Georgetown/MSFS/1988   *  Act locally.
 email fbaube#welho.com *  Think pangalactically.
  gsm  +358 41 536 8192 *
  wmd   60°11'10.8N 24°57'36.9E
 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Authentication

2005-11-15 Thread Emmanuel Okyere
Geert,

I am trying to use the logout function of the authentication module.

The logout element is defined as:

element id=Logout url=logout
extends=rife/logout/passthrough/database.xml
property name=datasourcedatasource/property
property name=authvar_typecookie/property

incookie name=rememberid/
outcookie name=rememberid/

flowlink srcexit=logged_out destid=Home/
/element

When a I navigate too 'appurl/logout' I get the exception stack trace
posted below:

[java] Nov 15, 2005 10:56:35 AM com.uwyn.rife.engine.Gate handleRequest
[java] SEVERE: Error on host localhost:8999/
[java] java.lang.ClassCastException: java.lang.String
[java] at 
com.uwyn.rife.authentication.elements.DatabaseLogoutPassthrough.initialize(DatabaseLogoutPassthrough.java:28)
[java] at 
com.uwyn.rife.engine.ElementContext.processContext(ElementContext.java:582)
[java] at com.uwyn.rife.engine.RequestState.service(RequestState.java:217)
[java] at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:422)
[java] at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:240)
[java] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
[java] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:112)
[java] at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
[java] at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
[java] at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
[java] at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
[java] at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635)
[java] at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
[java] at org.mortbay.http.HttpServer.service(HttpServer.java:954)
[java] at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
[java] at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
[java] at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
[java] at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
[java] at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
[java] at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Any pointers?

Thanks,
Emmanuel


On 11/14/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 Thanks,
 Emmanuel

 On 11/14/05, Geert Bevin [EMAIL PROTECTED] wrote:
  Hi Emmanuel,
 
  you can actually set that up with the 'submission_name' property,
  which defaults to 'credentials'.
 
  Best regards,
 
  Geert
 
  On 14-nov-05, at 13:26, Emmanuel Okyere wrote:
 
   OK, i found it... it expects 'credentials' for the submission name.
  
   Thanks,
   Emmanuel
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] Using globalvar as session variable declaration

2005-11-15 Thread Emmanuel Okyere
You can also follow this thread:
http://www.uwyn.com/pipermail/rife-users/2005-November/001339.html ,
which details help i've received from Geert on the authentication
module

emmanuel

On 11/15/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 What would you call a customized mechanism here?
 The authentication module works beautifully, and allows you to just
 snap it in/out of your app as you please. I will be glad to lead you
 through the authentication module, as you are probably facing the very
 same problems I had when I tried to use it.

 Can you say specifically how you want to achieve authentication.

 Emmanuel

 ps: I am working on a tutorial for it, but it probably won't be ready
 till about the weekend.

 On 11/15/05, Eddy Young [EMAIL PROTECTED] wrote:
  Hi all,
 
  I apologise if this question has been posted before, but I cannot find
  any documentation about globalvar on the website or wiki.
 
  From what I've gathered here and there, it seems that globalvar
  declares what would be the equivalent of a session variable. So, I'm
  thinking of using it as follows for authentication.
 
  Say, I have a member page that requires authentication and have
  declared account as a globalvar.
 
  public class MemberElement extends Element {
 
public void processElement() {
  Template t = getHtmlTemplate(member);
  if (getInput(account) == null) {
call(login);
  }
  print(t);
}
  }
 
  public class LoginElement extends Element {
 
public void processElement() {
  Template t = getHtmlTemplate(login);
  if (hasSubmission(loginSubmission)) {
// perform authentication logic
if (authenticated) {
  setOutput(account, authenticatedAccount);
  answer();
}
  }
}
  }
 
  Is this a good way of handling authentication? Or should I be using
  inheritance? If the latter, how do I proceed? I have some difficulty
  understanding the examples for authentication as those seem memory- or
  database-centric and not applicable for a customised authentication
  mechanism.
 
  Thank you.
 
  Eddy
 
  -
  This mail sent through IMP: http://horde.org/imp/
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Authentication

2005-11-14 Thread Emmanuel Okyere
OK, i found it... it expects 'credentials' for the submission name.

Thanks,
Emmanuel

On 11/14/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 OK Geert,

 Now I've setup an element called UserHome that points to a url
 '/user/home' and another element called Registration that takes you to
 '/register' and allows you to be added to the user database.

 Registration works perfectly... no exceptions, expected errors if you
 ommit something etc etc.

 After a Registration, the user is exited to the UserHome element. This
 also works as expected.

 Now, I have setup a 'User' element that extends
 'rife/authenticated/database.xml' as per the docs

 As the UserHome is working as expected, I decided to make it inherit
 the User element. This seems to work, as UserHome now forces a Login
 page as expected.

 At the the login page, I enter the user credentials (for 'foobar', I
 just added through the registration page), but nothing happens; it
 just returns to the Login page.

 I double-checked to make sure the user is indeed in the database, as
 when I try to readd him, i get the following exception:

 [java] SEVERE: 
 com.uwyn.rife.authentication.credentialsmanagers.exceptions.DuplicateLoginException:
 The login 'foobar' is already present.

 The following is how the element and subsite are defined:

 group
 globalcookie name=authid /

 element id=User extends=rife/authenticated/database.xml
 property name=roleuser/property
 property 
 name=datasourcedatasourcederby/datasource/property
 property name=password_encryptionSHA/property
 property name=template_namelogin.Login/property
 property name=authvar_typecookie/property

 exit name=Register /

 flowlink srcexit=Register 
 destid=PublicSite.Register/

 submission name=authenticate
 param name=login /
 param name=password /
 param name=remember /
 /submission

 incookie  name=rememberid /
 outcookie name=rememberid /

 childtrigger name=authid /
 /element

 subsite id=UserSite file=user.xml urlprefix=/user 
 inherits=User /
 /group


 Any Pointers?

 Thanks,
 Emmanuel


 On 11/11/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
  nah, don't sweat it... just think its wierd that when you drop the jar
  in the webinf/lib folder, it does find the classes it needs, and then
  just throws errors out of the blue... thx.. this setup works now..
  plus i only need derby for testing anyways... thx
 
  Emmanuel
 
  On 11/11/05, Geert Bevin [EMAIL PROTECTED] wrote:
   I suspect it's some weird classloading issue, but tracking this down
   is extremely tedious since it could be something in Derby, the
   servlet container, RIFE or another 3rd party lib.
  
   I doubt I ever have time to track it down.
  
   On 11-nov-05, at 16:35, Emmanuel Okyere wrote:
btw, do you know why this happens? thx
   
Emmanuel
  
   --
   Geert Bevin   Uwyn bvba
   Use what you need   Avenue de Scailmont 34
   http://www.uwyn.com   7170 Manage, Belgium
   gbevin[remove] at uwyn dot comTel +32 64 84 80 03
  
   PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
   Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
  
  
   ___
   Rife-users mailing list
   Rife-users@uwyn.com
   http://www.uwyn.com/mailman/listinfo/rife-users
  
 

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Authentication

2005-11-14 Thread Emmanuel Okyere
Thanks,
Emmanuel

On 11/14/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 you can actually set that up with the 'submission_name' property,
 which defaults to 'credentials'.

 Best regards,

 Geert

 On 14-nov-05, at 13:26, Emmanuel Okyere wrote:

  OK, i found it... it expects 'credentials' for the submission name.
 
  Thanks,
  Emmanuel

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Authentication

2005-11-14 Thread Emmanuel Okyere
OK Geert,

Now I've setup an element called UserHome that points to a url
'/user/home' and another element called Registration that takes you to
'/register' and allows you to be added to the user database.

Registration works perfectly... no exceptions, expected errors if you
ommit something etc etc.

After a Registration, the user is exited to the UserHome element. This
also works as expected.

Now, I have setup a 'User' element that extends
'rife/authenticated/database.xml' as per the docs

As the UserHome is working as expected, I decided to make it inherit
the User element. This seems to work, as UserHome now forces a Login
page as expected.

At the the login page, I enter the user credentials (for 'foobar', I
just added through the registration page), but nothing happens; it
just returns to the Login page.

I double-checked to make sure the user is indeed in the database, as
when I try to readd him, i get the following exception:

[java] SEVERE: 
com.uwyn.rife.authentication.credentialsmanagers.exceptions.DuplicateLoginException:
The login 'foobar' is already present.

The following is how the element and subsite are defined:

group
globalcookie name=authid /

element id=User extends=rife/authenticated/database.xml
property name=roleuser/property
property 
name=datasourcedatasourcederby/datasource/property
property name=password_encryptionSHA/property
property name=template_namelogin.Login/property
property name=authvar_typecookie/property

exit name=Register /

flowlink srcexit=Register 
destid=PublicSite.Register/

submission name=authenticate
param name=login /
param name=password /
param name=remember /
/submission

incookie  name=rememberid /
outcookie name=rememberid /

childtrigger name=authid /
/element

subsite id=UserSite file=user.xml urlprefix=/user 
inherits=User /
/group


Any Pointers?

Thanks,
Emmanuel


On 11/11/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 nah, don't sweat it... just think its wierd that when you drop the jar
 in the webinf/lib folder, it does find the classes it needs, and then
 just throws errors out of the blue... thx.. this setup works now..
 plus i only need derby for testing anyways... thx

 Emmanuel

 On 11/11/05, Geert Bevin [EMAIL PROTECTED] wrote:
  I suspect it's some weird classloading issue, but tracking this down
  is extremely tedious since it could be something in Derby, the
  servlet container, RIFE or another 3rd party lib.
 
  I doubt I ever have time to track it down.
 
  On 11-nov-05, at 16:35, Emmanuel Okyere wrote:
   btw, do you know why this happens? thx
  
   Emmanuel
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Authentication

2005-11-11 Thread Emmanuel Okyere
i'm using Derby 10.1.1.0 and the 1.3 snapshot of RIFE...the derby jar
is in the WEB-INF/lib folder

Thanks,
Emmanuel

On 11/11/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 this should be totally supported, it's probably a problem with Derby.

 Can you tell me which version you are using?
 Where do you place the Derby jar?
 Which version of RIFE are you using?

 Best regards,

 Geert

 On 11-nov-05, at 12:59, Emmanuel Okyere wrote:

  OK!
 
  so i'm finally making sense of all this :)
 
  I have a little  problem; I'm trying to add users to the users table
  (using RoleUser).
  Currently I can use:
 
  users.addUser(user.getLogin(), new RoleUserAttributes(id,
  user.getPassword(), new String[] { user }))
 
  which works perfectly! what I'm trying to do is add users without
  providing the userid. I noticed that RoleuserAttributes has a ctor
  that takes just password and roles like: RoleUserAttributes(String,
  String[]), but when I try this:
 
  users.addUser(user.getLogin(), new RoleUserAttributes
  (user.getPassword(), new
  String[] { user }));
 
  I get an exception (pasted below) which leads me to think that adding
  users without providing userid isn't implemented yet? Otherwise, is
  there away of doing this that is currently handled? thx
 
  [java] SEVERE:
  com.uwyn.rife.authentication.credentialsmanagers.exceptions.AddUserErr
  orException:
  Error while adding user with login 'eokyere' and attributes
  '[EMAIL PROTECTED]
  533c8'.
  [java] at
  com.uwyn.rife.authentication.credentialsmanagers.DatabaseUsers._addUse
  r(DatabaseUsers.java:415)
   [java] at
  com.uwyn.rife.authentication.credentialsmanagers.databasedrivers.org_a
  pache_derby_jdbc_EmbeddedDriver.addUser
  (org_apache_derby_jdbc_EmbeddedDriver.java:128)
   [java] at
  com.uwyn.rife.authentication.credentialsmanagers.databasedrivers.org_a
  pache_derby_jdbc_EmbeddedDriver.addUser
  (org_apache_derby_jdbc_EmbeddedDriver.java:24)
   [java] at friends.exits.Register.doCommit(Register.java:78)
   [java] at sun.reflect.NativeMethodAccessorImpl.invoke0
  (Native Method)
   [java] at
  sun.reflect.NativeMethodAccessorImpl.invoke
  (NativeMethodAccessorImpl.java:39)
   [java] at
  sun.reflect.DelegatingMethodAccessorImpl.invoke
  (DelegatingMethodAccessorImpl.java:25)
   [java] at java.lang.reflect.Method.invoke(Method.java:585)
   [java] at
  com.uwyn.rife.engine.ElementContext.processContext
  (ElementContext.java:594)
   [java] at
  com.uwyn.rife.engine.RequestState.service(RequestState.java:212)
   [java] at com.uwyn.rife.engine.Gate.handleRequest
  (Gate.java:422)
   [java] at com.uwyn.rife.engine.Gate.handleRequest
  (Gate.java:240)
   [java] at sun.reflect.GeneratedMethodAccessor9.invoke
  (Unknown Source)
   [java] at
  sun.reflect.DelegatingMethodAccessorImpl.invoke
  (DelegatingMethodAccessorImpl.java:25)
   [java] at java.lang.reflect.Method.invoke(Method.java:585)
   [java] at
  com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:112)
   [java] at
  org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
  (WebApplicationHandler.java:823)
   [java] at
  org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
  (WebApplicationHandler.java:473)
   [java] at
  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
  567)
   [java] at org.mortbay.http.HttpContext.handle
  (HttpContext.java:1565)
   [java] at
  org.mortbay.jetty.servlet.WebApplicationContext.handle
  (WebApplicationContext.java:635)
   [java] at org.mortbay.http.HttpContext.handle
  (HttpContext.java:1517)
   [java] at org.mortbay.http.HttpServer.service
  (HttpServer.java:954)
   [java] at
  org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
   [java] at
  org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
   [java] at
  org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
   [java] at
  org.mortbay.http.SocketListener.handleConnection
  (SocketListener.java:244)
   [java] at
  org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
   [java] at
  org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
   [java] Caused by:
  com.uwyn.rife.database.exceptions.DatabaseException: SQL Exception:
  The exception 'java.lang.ClassCastException:
  org.apache.derby.impl.sql.execute.MaxMinAggregator' was thrown while
  evaluating an expression.
   [java] at
  com.uwyn.rife.database.DbResultSet.hasResultRows(DbResultSet.java:435)
   [java] at
  com.uwyn.rife.database.DbQueryManager.executeHasResultRows
  (DbQueryManager.java:276)
   [java] at
  com.uwyn.rife.database.DbQueryManager.executeGetFirstLong
  (DbQueryManager.java:924)
   [java] at
  com.uwyn.rife.database.DbQueryManager.executeGetFirstLong

Re: [Rife-users] RIFE Authentication

2005-11-11 Thread Emmanuel Okyere
btw, do you know why this happens? thx

Emmanuel

On 11/11/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 Thx Geert, you are right... moving derby into the server's lib dir
 solved it... thx

 Emmanuel

 On 11/11/05, Geert Bevin [EMAIL PROTECTED] wrote:
  Hi Emmanuel,
 
  make sure you have the latest RIFE snapshot, and place the Derby jar
  in your webserver lib dir, not the WEB-INF/lib dir. That made Derby
  classloader exceptions go away for me.
 
  Best regards,
 
  Geert
 
  On 11-nov-05, at 13:37, Emmanuel Okyere wrote:
 
   i'm using Derby 10.1.1.0 and the 1.3 snapshot of RIFE...the derby jar
   is in the WEB-INF/lib folder
  
   Thanks,
   Emmanuel
  
   On 11/11/05, Geert Bevin [EMAIL PROTECTED] wrote:
   Hi Emmanuel,
  
   this should be totally supported, it's probably a problem with Derby.
  
   Can you tell me which version you are using?
   Where do you place the Derby jar?
   Which version of RIFE are you using?
  
   Best regards,
  
   Geert
  
   On 11-nov-05, at 12:59, Emmanuel Okyere wrote:
  
   OK!
  
   so i'm finally making sense of all this :)
  
   I have a little  problem; I'm trying to add users to the users table
   (using RoleUser).
   Currently I can use:
  
   users.addUser(user.getLogin(), new RoleUserAttributes(id,
   user.getPassword(), new String[] { user }))
  
   which works perfectly! what I'm trying to do is add users without
   providing the userid. I noticed that RoleuserAttributes has a ctor
   that takes just password and roles like: RoleUserAttributes(String,
   String[]), but when I try this:
  
   users.addUser(user.getLogin(), new RoleUserAttributes
   (user.getPassword(), new
   String[] { user }));
  
   I get an exception (pasted below) which leads me to think that
   adding
   users without providing userid isn't implemented yet? Otherwise, is
   there away of doing this that is currently handled? thx
  
   [java] SEVERE:
   com.uwyn.rife.authentication.credentialsmanagers.exceptions.AddUserE
   rr
   orException:
   Error while adding user with login 'eokyere' and attributes
   'com.uwyn.rife.authentication.credentialsmanagers.RoleUserAttributes
   @1
   533c8'.
   [java] at
   com.uwyn.rife.authentication.credentialsmanagers.DatabaseUsers._addU
   se
   r(DatabaseUsers.java:415)
[java] at
   com.uwyn.rife.authentication.credentialsmanagers.databasedrivers.org
   _a
   pache_derby_jdbc_EmbeddedDriver.addUser
   (org_apache_derby_jdbc_EmbeddedDriver.java:128)
[java] at
   com.uwyn.rife.authentication.credentialsmanagers.databasedrivers.org
   _a
   pache_derby_jdbc_EmbeddedDriver.addUser
   (org_apache_derby_jdbc_EmbeddedDriver.java:24)
[java] at friends.exits.Register.doCommit(Register.java:78)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0
   (Native Method)
[java] at
   sun.reflect.NativeMethodAccessorImpl.invoke
   (NativeMethodAccessorImpl.java:39)
[java] at
   sun.reflect.DelegatingMethodAccessorImpl.invoke
   (DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at
   com.uwyn.rife.engine.ElementContext.processContext
   (ElementContext.java:594)
[java] at
   com.uwyn.rife.engine.RequestState.service(RequestState.java:212)
[java] at com.uwyn.rife.engine.Gate.handleRequest
   (Gate.java:422)
[java] at com.uwyn.rife.engine.Gate.handleRequest
   (Gate.java:240)
[java] at sun.reflect.GeneratedMethodAccessor9.invoke
   (Unknown Source)
[java] at
   sun.reflect.DelegatingMethodAccessorImpl.invoke
   (DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at
   com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:112)
[java] at
   org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
   (WebApplicationHandler.java:823)
[java] at
   org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
   (WebApplicationHandler.java:473)
[java] at
   org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
   567)
[java] at org.mortbay.http.HttpContext.handle
   (HttpContext.java:1565)
[java] at
   org.mortbay.jetty.servlet.WebApplicationContext.handle
   (WebApplicationContext.java:635)
[java] at org.mortbay.http.HttpContext.handle
   (HttpContext.java:1517)
[java] at org.mortbay.http.HttpServer.service
   (HttpServer.java:954)
[java] at
   org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
[java] at
   org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
[java] at
   org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
[java] at
   org.mortbay.http.SocketListener.handleConnection
   (SocketListener.java:244)
[java] at
   org.mortbay.util.ThreadedServer.handle

Re: [Rife-users] RIFE Authentication

2005-11-11 Thread Emmanuel Okyere
nah, don't sweat it... just think its wierd that when you drop the jar
in the webinf/lib folder, it does find the classes it needs, and then
just throws errors out of the blue... thx.. this setup works now..
plus i only need derby for testing anyways... thx

Emmanuel

On 11/11/05, Geert Bevin [EMAIL PROTECTED] wrote:
 I suspect it's some weird classloading issue, but tracking this down
 is extremely tedious since it could be something in Derby, the
 servlet container, RIFE or another 3rd party lib.

 I doubt I ever have time to track it down.

 On 11-nov-05, at 16:35, Emmanuel Okyere wrote:
  btw, do you know why this happens? thx
 
  Emmanuel

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Authentication

2005-11-09 Thread Emmanuel Okyere
Geert,

I am clear on the element definition (in the sites xml) and
implementation (in java) and my template here is actually quite
similar to the one you have linked to; Pasted below is my form
(login/form.html), which is included in the overrall login template
(login/login.html)

!--I 'common.error_area' /--

form name=profile action=[!V 'SUBMISSION:FORM:authenticate'/]
method=post
!--V 'SUBMISSION:PARAMS:authenticate'/--

  div class=login
div class=form_field
div
div [!V 'MARK:username'][!/V]
!--V 'ERRORS:username'--!--/V--
label 
for=usernamestrongUsername/strong:/label
!--V 'FORM:INPUT:username'--id=username 
size=15!--/V--
/div
/div
/div

div class=form_field
div
div [!V 'MARK:password'][!/V]
!--V 'ERRORS:password'--!--/V--
label 
for=passwordstrongPassword/strong:/label
!--V 'FORM:SECRET:password'--id=password 
size=20!--/V--
/div
/div
/div

div class=form_field
div
div [!V 'MARK:remember'][!/V]
!--V 'ERRORS:remember'--!--/V--
!--V 
'FORM:CHECKBOX:remember'--id=remember!--/V--
label for=rememberstrongRemeber 
me/strong/label
/div
/div
/div

pnbsp;/p
div class=form_field
pinput type=submit value=Login/p
/div
  /div

  script
  !--
  document.getElementById('username').focus();
  --
  /script
/form


The element I pasted in my initial email is the definition that is in
the sites.xml file... I am sure extending DatabaseAuthenticated does
some behind the scenes work for me; what I am not sure about is
_exactly_ what it does and how it does that.

Below is a skeleton of my Login.java file

public class Login extends DatabaseAuthenticated {
public static final String TEMPLATE = login.Login;
public static final String DATASOURCE = datasource;
private Template tt;

@Override
protected void validatedCredentials(Credentials credentials) {
super.validatedCredentials(credentials);
}
@Override
protected void authenticated(long userId) {
super.authenticated(userId);
}
@Override
public boolean childTriggered(String name, String[] values) {
return super.childTriggered(name, values);
}
@Override
protected void entrance(Template template) {
super.entrance(template);
}
@Override
protected void initializeAuthentication() {
super.initializeAuthentication();
}
@Override
public void processElement() {
super.processElement();
}


}

Thanks,
Emmanuel

On 11/9/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 you get the Element implementation and the template confused. The
 Element implementation is written in Java and is similar to action
 classes in other frameworks, the templates just contain regular (X)
 HTML for the presentation. All you need to do here is provide an
 XHTML file with the expected tags.

 This is detailed here:
 http://rifers.org/docs/usersguide/ch08s03.html

 This is however an old way of doing so and someone should update the
 Users Guide.

 You can find a better template example that uses error messages,
 marking and form building here:
 https://svn.rifers.org/rife-jumpstart/trunk/src/templates/
 authentication/admin.html

 Hope this helps.

 Best regards,

 Geert

  I am trying to follow along with the Authentication tutorial in the
  userguide, but it is not at all clear.
 
  here are the steps I have taken:
 
  1// I have created an element ided as LOGIN in my main.xml site
  file as:
 
 element id=LOGIN
  extends=rife/authenticated/database.xml
  implementation=foo.Login
 property name=roleuser/property
 property name=datasourceconfig param=datasource
  //property
 property name=password_encryptionSHA/property
 property name=template_namelogin.Login/property
 property name=authvar_typecookie/property
 
 submission name=authenticate
 param name=username /
 param name=password /
 param name=remember /
 /submission
 
 incookie 

Re: [Rife-users] RIFE Authentication

2005-11-09 Thread Emmanuel Okyere
 This is however an old way of doing so and someone should update the
 Users Guide.

Also my intention for the wiki, once I can understand what's going on here

Thanks,
Emmanuel
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Authentication

2005-11-09 Thread Emmanuel Okyere
 Also, why are you writing Login.java? There's no need to implement an
 element here, you are integrating a standard RIFE element and RIFE
 provides you with the implementation. All that you need to do is set
 the name of your template (login/login.html):

 property name=template_namelogin.login/property

That, Geert, is gem lost in the haystack! :)

Thanks a lot,
Emmanuel
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Authentication

2005-11-09 Thread Emmanuel Okyere
well not yet... testing it out, i 'm getting errors... my stack trace
is pasted below

[java] SEVERE: com.uwyn.rife.engine.exceptions.DeployerInstantiationException:
The deployer of element 'manual:LOGIN' couldn't be instantiated.
 [java] at
com.uwyn.rife.engine.ElementInfo.deploy(ElementInfo.java:227)
[java] at 
com.uwyn.rife.engine.SiteBuilder.setupElements(SiteBuilder.java:957)
 [java] at
com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:1564)
 [java] at
com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:250)
[java] at com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:241)
 [java] at
com.uwyn.rife.engine.SiteBuilder.setupSubsites(SiteBuilder.java:967)
 [java] at
com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:1565)
 [java] at
com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:250)
[java] at com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:241)
 [java] at
com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java:173)
 [java] at
com.uwyn.rife.rep.participants.ParticipantSite.initialize(ParticipantSite.java:36)
 [java] at
com.uwyn.rife.rep.BlockingParticipant.run(BlockingParticipant.java:252)
 [java] at java.lang.Thread.run(Thread.java:595)
 [java] Caused by: java.lang.ClassCastException: java.lang.String
 [java] at
com.uwyn.rife.authentication.elements.PurgingDatabaseAuthenticatedDeployer.deploy(PurgingDatabaseAuthenticatedDeployer.java:59)
 [java] at
com.uwyn.rife.engine.ElementInfo.deploy(ElementInfo.java:214)
[java] ... 12 more


I think i'm going to dive into the code; shd make things clearer for me

Emmanuel

On 11/9/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Glad it worked out :-)

  Also, why are you writing Login.java? There's no need to implement an
  element here, you are integrating a standard RIFE element and RIFE
  provides you with the implementation. All that you need to do is set
  the name of your template (login/login.html):
 
  property name=template_namelogin.login/property
 
  That, Geert, is gem lost in the haystack! :)

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] RIFE Authentication

2005-11-09 Thread Emmanuel Okyere
ok, that took care of the error... thx

I'm not sure I understand it fully though... at least now, I'm getting
a login page... but how does the authentication package tie into my
custom developed modules?

for instance, how does it know which table to use to retrieve my
usernames/password... there doesn't seem to be any configuration for
that? and since i'm not creating any implementation (java class files)
to work with the element declaration, what methods are called after
the login phase?

thanks,
Emmanuel

ps: is there a sequence diag or s'thing available somewhere? thx

On 11/9/05, Geert Bevin [EMAIL PROTECTED] wrote:
 This is a problem in the docs, sorry. You need to declare the
 datasource like this:

 property name=datasourcedatasourcepostgresql/datasource/
 property

 On 9-nov-05, at 10:35, Emmanuel Okyere wrote:

  well not yet... testing it out, i 'm getting errors... my stack trace
  is pasted below
 
  [java] SEVERE:
  com.uwyn.rife.engine.exceptions.DeployerInstantiationException:
  The deployer of element 'manual:LOGIN' couldn't be instantiated.
   [java] at
  com.uwyn.rife.engine.ElementInfo.deploy(ElementInfo.java:227)
  [java] at com.uwyn.rife.engine.SiteBuilder.setupElements
  (SiteBuilder.java:957)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:1564)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:250)
  [java] at com.uwyn.rife.engine.SiteBuilder.process
  (SiteBuilder.java:241)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.setupSubsites(SiteBuilder.java:967)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:1565)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:250)
  [java] at com.uwyn.rife.engine.SiteBuilder.process
  (SiteBuilder.java:241)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java:173)
   [java] at
  com.uwyn.rife.rep.participants.ParticipantSite.initialize
  (ParticipantSite.java:36)
   [java] at
  com.uwyn.rife.rep.BlockingParticipant.run(BlockingParticipant.java:
  252)
   [java] at java.lang.Thread.run(Thread.java:595)
   [java] Caused by: java.lang.ClassCastException: java.lang.String
   [java] at
  com.uwyn.rife.authentication.elements.PurgingDatabaseAuthenticatedDepl
  oyer.deploy(PurgingDatabaseAuthenticatedDeployer.java:59)
   [java] at
  com.uwyn.rife.engine.ElementInfo.deploy(ElementInfo.java:214)
  [java] ... 12 more
 
 
  I think i'm going to dive into the code; shd make things clearer
  for me
 
  Emmanuel
 
  On 11/9/05, Geert Bevin [EMAIL PROTECTED] wrote:
  Glad it worked out :-)
 
  Also, why are you writing Login.java? There's no need to
  implement an
  element here, you are integrating a standard RIFE element and RIFE
  provides you with the implementation. All that you need to do is
  set
  the name of your template (login/login.html):
 
  property name=template_namelogin.login/property
 
  That, Geert, is gem lost in the haystack! :)
 
  --
  Geert Bevin   Uwyn bvba
  Use what you need   Avenue de Scailmont 34
  http://www.uwyn.com   7170 Manage, Belgium
  gbevin[remove] at uwyn dot comTel +32 64 84 80 03
 
  PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
  Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
 
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


[Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Emmanuel Okyere
Geert,

Could you give an example of how best to use 'generateForm' and
Collection fields?

I have a form that has a radio button set, and a couple of select
lists that are being generated with no problem when the page/form is
loaded, however after a submission, when I call

[code]
generateForm(template, bean)
[/code]

the new form does not print the Collection fields.

I have tried making the

[code]
generateField(template, constrainedProperty)
[/code]

call on the collection fields (which is what I do initially, to get
them generated), both before and after generateForm call with no
results.

Any pointers?

Thanks,
Emmanuel
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Emmanuel Okyere
Ok Geert,

For instance I have a radio button set in the template like:

[code]
div class=form_field
divh3What is your strongsex/strong?/h3/div
h4/h4
div [!V 'MARK:sex'][!/V]
!--V 'ERRORS:sex' /--
!--V 'FORM:RADIO:sex'--id=sex 
style=vertical-align: middle;!--/V--

!--B 'FORM:LABEL:sex:M'--
a href=javascript:doVoid();
onclick=profile.elements['sex'][0].click();return true;Male/a
!--/B--
!--B 'FORM:LABEL:sex:F'--
a href=javascript:doVoid();
onclick=profile.elements['sex'][1].click();return true;Female/a
!--/B--
!--B 'FORM:LABEL:sex:X'--
a href=javascript:doVoid();
onclick=profile.elements['sex'][2].click();return true;None/a
!--/B--
/div
/div
[/code]

and the corresponding java code in processElement is:

[code]
tt.getBeanHandler().getFormBuilder().generateField(tt,
new ConstrainedProperty(sex).inList(new 
String[] {M, F,
X}), null, );
[/code]

This works when the page/form is first loaded as I explained in the
earlier mail.

However, after a submission, I want to do

[code]
if (bean.validate()) {
//do stuff
} else {
generateForm(tt, bean);
}
[/code]

How can I do this, and get the collections (radio/select) fields to be
generated again as it stands it returns a blank field for the
collections.

I tried a forced processElement call, both *before* and *after* the
generateForm call, but that does not seem to help either.

Thanks,
Emmanuel


On 11/7/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 can you give some code excerpts of the things that you're doing? That
 makes it easier to talk about.

 Best regards,

 Geert

 On 7-nov-05, at 17:43, Emmanuel Okyere wrote:

  Geert,
 
  Could you give an example of how best to use 'generateForm' and
  Collection fields?
 
  I have a form that has a radio button set, and a couple of select
  lists that are being generated with no problem when the page/form is
  loaded, however after a submission, when I call
 
  [code]
  generateForm(template, bean)
  [/code]
 
  the new form does not print the Collection fields.
 
  I have tried making the
 
  [code]
  generateField(template, constrainedProperty)
  [/code]
 
  call on the collection fields (which is what I do initially, to get
  them generated), both before and after generateForm call with no
  results.
 
  Any pointers?
 
  Thanks,
  Emmanuel
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] ElementSupport.generateForm() and Collection Fields

2005-11-07 Thread Emmanuel Okyere
Geert,

does ths example compile? I know addConstraint expects a CmfProperty?
I am using the 1.3-snapshot.

Thanks,
Emmanuel

On 11/7/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 I don't see why it doesn't work, when I use it, it does. I included
 snippets of an example I just wrote to try it out.

 Does this help you?

 

 !--BV 'content'--
 form action=[!V 'SUBMISSION:FORM:sendSex'/] method=post
 !--V 'SUBMISSION:PARAMS:sendSex'/--
 div class=form_field
 divh3What is your strongName/strong?/h3/div
 div [!V 'name'][!/V]
 !--V 'ERRORS:name' /--
 !--V 'FORM:INPUT:name'--id=name!--/V--
 /div
 /div
 div class=form_field
 divh3What is your strongsex/strong?/h3/div
 div [!V 'MARK:sex'][!/V]
 !--V 'ERRORS:sex' /--
 !--V 'FORM:RADIO:sex'--id=sex style=vertical-align:
 middle;!--/V--
 !--B 'FORM:LABEL:sex:M'--
 a href=javascript:doVoid();Male/a
 !--/B--
 !--B 'FORM:LABEL:sex:F'--
 a href=javascript:doVoid();Female/a
 !--/B--
 !--B 'FORM:LABEL:sex:X'--
 a href=javascript:doVoid();None/a
 !--/B--
 /div
 /div
 input type=submit /
 /form
 !--/BV--

 

 element implementation=com.uwyn.rife.jumpstart.elements.pub.Home
 submission name=sendSex
 bean 
 classname=com.uwyn.rife.jumpstart.elements.pub.Home$InfoBean/
 /submission
 /element

 

 public class Home extends Element
 {
 public void processElement()
 {
 Template template = getHtmlTemplate(pub.home);
 if (hasSubmission(sendSex))
 {
 InfoBean bean = getSubmissionBean(InfoBean.class);
 if (bean.validate())
 {
 template.setValue(content, thanks);
 }
 else
 {
 generateForm(template, bean);
 }
 }

 print(template);
 }

 public static class InfoBean extends Validation
 {
 private String mName;
 private String mSex;

 protected void activateValidation()
 {
 addConstraint(new ConstrainedProperty(name)
 .notNull(true));
 addConstraint(new ConstrainedProperty(sex)
 .inList(new String[] {M, F, 
 X}));
 }

 public String getName() { return mName; }
 public void setName(String name) { mName = name; }

 public String getSex() { return mSex; }
 public void setSex(String sex) { mSex = sex; }
 }
 }


  How can I do this, and get the collections (radio/select) fields to be
  generated again as it stands it returns a blank field for the
  collections.
 
  I tried a forced processElement call, both *before* and *after* the
  generateForm call, but that does not seem to help either.

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


[Rife-users] (Onepage?) Taglist Overview

2005-11-03 Thread Emmanuel Okyere
Geert,

Is there a (one) page overview for all the supported template tags
(FORM:SECRET, FORM:INPUT etc) you could point me to? Up till now I've
had to wade through various pages in the user guide.

Thanks,
Emmanuel
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] (Onepage?) Taglist Overview

2005-11-03 Thread Emmanuel Okyere
Yes, I was thinking about that, before sending the mail; i sent it to
see if its not already done... i'm still learning the framework, but
will let u know what I can compile

Thanks,
Emmanuel

On 11/3/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 an aggregation like this is missing I think.
 This would be a nice contribution to make to the wiki!

 I can point you to these as a reference:
 http://rifers.org/wiki/display/RIFE/Automated+form+building
 http://rifers.org/wiki/display/RIFE/Value+renderers
 http://rifers.org/wiki/display/RIFE/Localization+through+ResourceBundles
 http://rifers.org/wiki/display/RIFE/Localization+through+blocks
 http://rifers.org/wiki/display/RIFE/Blockvalue+scripting+support
 http://rifers.org/docs/api/com/uwyn/rife/site/FormBuilder.html
 http://rifers.org/docs/api/com/uwyn/rife/template/TemplateFactory.html
 http://rifers.org/docs/api/com/uwyn/rife/engine/ElementContext.html

 Best regards,

 Geert

 On 3-nov-05, at 12:23, Emmanuel Okyere wrote:

  Geert,
 
  Is there a (one) page overview for all the supported template tags
  (FORM:SECRET, FORM:INPUT etc) you could point me to? Up till now I've
  had to wade through various pages in the user guide.
 
  Thanks,
  Emmanuel
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] (Onepage?) Taglist Overview

2005-11-03 Thread Emmanuel Okyere
The info I needed actually had to do with the Collections info already
in the http://rifers.org/wiki/display/RIFE/Automated+form+building
link Geert sent; I completely missed the link, however, although I
looked at the Cookbook...

I suggest that the link is change to Forms instead of Automated
form building to make it easier to find; I can edit that and add
snippet java code to go with the rest of the tags

Thanks,
Emmanuel

On 11/3/05, F Baube [EMAIL PROTECTED] wrote:
 Hi Emmannuel,

 This kind of thing is really badly needed,
 and I'd be glad to review it for you, help
 organise it all, whatever.

 It's a lot of stuff.


 hth

 fred

 --
 F.Baube*
 Georgetown/MSFS/1988   *  Act locally.
 email fbaube#welho.com *  Think pangalactically.
  gsm  +358 41 536 8192 *
  wmd   60°11'10.8N 24°57'36.9E

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] java.lang.LinkError (with Jetty 5.1.4)

2005-11-01 Thread Emmanuel Okyere
Geert,

I noticed the WEB-INF/lib behavior and changed to the lib dir, but for
some reason it was still throwing the error; I then deployed to
Tomcat, and noticed it was throwing an error on trying to create a
table with name user... so that is probably a derby reserved word.

I'm still testing and will let you know... still let me get the 1.3
and see if that helps any.

Thanks for the quick response.

Emmanuel

On 11/1/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 yes, there could be two reasons for this:

 1. a bug in RIFE 1.2 wrt to classloading

 You can download a snapshot of 1.3 here:
 http://rifers.org/downloads/rife/snapshots/

 2. some classloader issue with Derby itself, make sure you put it in
 the lib dir of Jetty and not in your WEB-INF lib dir.

 I hope that fixes it.

 Best regards,

 Geert

 On 1-nov-05, at 10:11, Emmanuel Okyere wrote:

  I am attempting to follow the Simple Blog example, and at screen 3,
  attempting to create a db (with derby 10.1.1.0) with the deployer.
 
  I keep getting a LinkageError; the stack trace is pasted below.
 
  Anybody ever seen this?
 
  Thanks,
  Emmanuel
 
   [java] INFO: Started WebApplicationContext[/,[null, 127.0.0.1,
  localhost]:/]
   [java] Nov 1, 2005 4:00:50 AM
  com.uwyn.rife.rep.participants.ParticipantSite initialize
   [java] SEVERE: java.lang.RuntimeException:
  java.lang.LinkageError: loader constraints violated when linking
  com/uwyn/rife/site/ValidationError class
   [java] at
  com.uwyn.rife.database.DbQueryManagerFactory.getInstance
  (DbQueryManagerFactory.java:150)
   [java] at
  com.uwyn.rife.database.DbQueryManagerFactory.getInstance
  (DbQueryManagerFactory.java:53)
   [java] at
  com.uwyn.rife.cmf.dam.contentmanagers.DatabaseContentFactory.getInstan
  ce(DatabaseContentFactory.java:22)
   [java] at friends.actions.AddUser$Deployer.deploy
  (AddUser.java:59)
   [java] at com.uwyn.rife.engine.ElementInfo.deploy
  (ElementInfo.java:214)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.setupElements(SiteBuilder.java:957)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:1564)
   [java] at com.uwyn.rife.engine.SiteBuilder.finish
  (SiteBuilder.java:250)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:241)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.setupSubsites(SiteBuilder.java:967)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:1565)
   [java] at com.uwyn.rife.engine.SiteBuilder.finish
  (SiteBuilder.java:250)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:241)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java:173)
   [java] at
  com.uwyn.rife.rep.participants.ParticipantSite.initialize
  (ParticipantSite.java:36)
   [java] at
  com.uwyn.rife.rep.BlockingParticipant.run(BlockingParticipant.java:
  252)
   [java] at java.lang.Thread.run(Thread.java:595)
   [java] Caused by: java.lang.LinkageError: loader constraints
  violated when linking com/uwyn/rife/site/ValidationError class
   [java] at
  com.uwyn.rife.site.Validation.getConstrainedPropertyRules
  (Validation.java:176)
   [java] at
  com.uwyn.rife.site.Validation.addConstrainedPropertyRules
  (Validation.java:268)
   [java] at
  com.uwyn.rife.site.Validation.addConstraint(Validation.java:279)
   [java] at
  com.uwyn.rife.cmf.ContentRepository.activateValidation
  (ContentRepository.java:37)
   [java] at
  com.uwyn.rife.site.Validation.ensureActivatedValidation
  (Validation.java:56)
   [java] at
  com.uwyn.rife.site.Validation.getConstrainedBean(Validation.java:387)
   [java] at
  com.uwyn.rife.database.queries.CreateTable.columnsFiltered
  (CreateTable.java:475)
   [java] at
  com.uwyn.rife.database.queries.CreateTable.columns(CreateTable.java:
  450)
   [java] at
  com.uwyn.rife.cmf.dam.contentmanagers.databasedrivers.generic.init
  (generic.java:70)
  [java] at
  com.uwyn.rife.cmf.dam.contentmanagers.databasedrivers.org_apache_derby
  _jdbc_EmbeddedDriver.init
  (org_apache_derby_jdbc_EmbeddedDriver.java:41)
   [java] at
  sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   [java] at
  sun.reflect.NativeConstructorAccessorImpl.newInstance
  (NativeConstructorAccessorImpl.java:39)
   [java] at
  sun.reflect.DelegatingConstructorAccessorImpl.newInstance
  (DelegatingConstructorAccessorImpl.java:27)
   [java] at
  java.lang.reflect.Constructor.newInstance(Constructor.java:494)
   [java] at
  com.uwyn.rife.database.DbQueryManagerFactory.getInstance
  (DbQueryManagerFactory.java:108)
   [java] ... 16 more
 
   [java] Nov 1, 2005 4:00:50 AM org.mortbay.http.SocketListener
  start
   [java] INFO: Started SocketListener on 0.0.0.0:8999

Re: [Rife-users] java.lang.LinkError (with Jetty 5.1.4)

2005-11-01 Thread Emmanuel Okyere
OK ... scrap the output problem... everything works as expected on
tomcat... I was missing a print(template) statement at the end of
the doXXX method. So tomcat is fine now.

Jetty is still problematic ... but i'm still testing... i'll let u know.

Thanks.

On 11/1/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
 let me clarify the last email... validation _does_ work... it is just
 that after the submission, I am not getting any output

 On 11/1/05, Emmanuel Okyere [EMAIL PROTECTED] wrote:
  Geert,
 
  I'm still getting mixed results with the 1.3 snapshot.
 
  If I deploy to tomcat, I don't get any exceptions... but validation
  does not seem to be working.
 
  My logs pasted below (from the tomcat instace) shows that the bean
  does not validate when I pass the form wrong info, as expected, but it
  does not regenerate the form, with the error markings as per the
  generateForm(template, beanInstance) instructions. I have the !--I
  /-- include in the right place.
 
  --- logs ---
  INFO: Server startup in 6112 ms
  Nov 1, 2005 7:48:36 AM friends.actions.AddPerson doCommit
  INFO: in doCommit
  Nov 1, 2005 7:48:36 AM friends.actions.AddPerson doCommit
  WARNING: person did not validate
  -
 
  When it does validate (as shown below) it still returns a blank screen
 
  --- logs---
  Nov 1, 2005 7:52:39 AM friends.actions.AddPerson doCommit
  INFO: in doCommit
  Nov 1, 2005 7:52:39 AM friends.actions.AddPerson doCommit
  INFO: person.validated
  
 
  Jetty is still flakey, and still returns the java.lang.LinkError; the
  stack trace follows
 
  Thanks,
  Emmanuel
 
   [java] Nov 1, 2005 7:36:21 AM org.mortbay.util.FileResource clinit
   [java] INFO: Checking Resource aliases
   [java] Nov 1, 2005 7:36:23 AM org.mortbay.http.HttpServer setStatsOn
   [java] INFO: Statistics on = false for [EMAIL PROTECTED]
   [java] Nov 1, 2005 7:36:23 AM org.mortbay.http.HttpServer doStart
   [java] INFO: Version Jetty/5.1.4
   [java] Nov 1, 2005 7:36:24 AM org.mortbay.util.Container start
   [java] INFO: Started [EMAIL PROTECTED]
   [java] Nov 1, 2005 7:36:24 AM
  com.uwyn.rife.rep.BlockingRepository runParticipants
   [java] INFO: INITIALIZATION : Creating the config object ...
   [java] Nov 1, 2005 7:36:24 AM
  com.uwyn.rife.rep.BlockingRepository runParticipants
   [java] INFO: INITIALIZATION : Creating the datasources object ...
   [java] Nov 1, 2005 7:36:24 AM
  com.uwyn.rife.rep.BlockingRepository runParticipants
   [java] INFO: INITIALIZATION : Creating in-memory user credentials ...
   [java] Nov 1, 2005 7:36:24 AM
  com.uwyn.rife.rep.BlockingRepository runParticipants
   [java] INFO: INITIALIZATION : Creating web application's site 
  structure ...
   [java] Nov 1, 2005 7:36:24 AM org.mortbay.util.Container start
   [java] INFO: Started WebApplicationContext[/,[null, 127.0.0.1,
  localhost]:/]
   [java] Nov 1, 2005 7:36:26 AM
  com.uwyn.rife.rep.participants.ParticipantSite initialize
   [java] SEVERE: java.lang.RuntimeException:
  java.lang.LinkageError: loader constraints violated when linking
  com/uwyn/rife/site/ValidationError class
   [java] at
  com.uwyn.rife.database.DbQueryManagerFactory.getInstance(DbQueryManagerFactory.java:150)
   [java] at
  com.uwyn.rife.database.DbQueryManagerFactory.getInstance(DbQueryManagerFactory.java:53)
   [java] at
  com.uwyn.rife.cmf.dam.contentmanagers.DatabaseContentFactory.getInstance(DatabaseContentFactory.java:22)
   [java] at 
  friends.actions.AddPerson$Deployer.deploy(AddPerson.java:60)
   [java] at 
  com.uwyn.rife.engine.ElementInfo.deploy(ElementInfo.java:214)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.setupElements(SiteBuilder.java:957)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:1564)
   [java] at 
  com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:250)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:241)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.setupSubsites(SiteBuilder.java:967)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:1565)
   [java] at 
  com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:250)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:241)
   [java] at
  com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java:173)
   [java] at
  com.uwyn.rife.rep.participants.ParticipantSite.initialize(ParticipantSite.java:36)
   [java] at
  com.uwyn.rife.rep.BlockingParticipant.run(BlockingParticipant.java:252)
   [java] at java.lang.Thread.run(Thread.java:595)
   [java] Caused by: java.lang.LinkageError: loader constraints
  violated when linking com/uwyn/rife/site/ValidationError class
   [java] at
  com.uwyn.rife.site.Validation.getConstrainedPropertyRules(Validation.java:176

Re: [Rife-users] Exit Naming Best Practice

2005-10-30 Thread Emmanuel Okyere
Geert,

Thanks for the clarification.

Emmanuel

On 10/29/05, Geert Bevin [EMAIL PROTECTED] wrote:
 Hi Emmanuel,

 it really is as you prefer. Initially I used to never use spaces and
 use underscores instead, out of habit. However, I suddenly remembered
 that the exit names can be anything, so when it makes sense I just
 separate the words with spaces now.

 Best regards,

 Geert

 On 29-okt-05, at 18:45, Emmanuel Okyere wrote:

  Geert,
 
  I noticed that you have spaces between your exit names, like:
 
  globalexit name=serve content
 
  Is there a special reason for this, or is that just your preference?
 
  Thanks,
  Emmanuel
  ___
  Rife-users mailing list
  Rife-users@uwyn.com
  http://www.uwyn.com/mailman/listinfo/rife-users
 
 

 --
 Geert Bevin   Uwyn bvba
 Use what you need   Avenue de Scailmont 34
 http://www.uwyn.com   7170 Manage, Belgium
 gbevin[remove] at uwyn dot comTel +32 64 84 80 03

 PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
 Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


 ___
 Rife-users mailing list
 Rife-users@uwyn.com
 http://www.uwyn.com/mailman/listinfo/rife-users

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users