Re: [Rife-users] rife forms

2006-04-12 Thread Emmanuel Okyere
you are right, geert... i had an empty element declaration :)




and i spent a good 30 mins or so doing old template tags, to
velocity-type tags and back to old-time tags... all the time blaming
them ;P ... alright off to work; TBC when i get back

cheers man

Emmanuel

On 4/12/06, Geert Bevin <[EMAIL PROTECTED]> wrote:
> Hi Emmanuel,
>
> are you sure you declared a submission bean in the "commit"
> submission in your element declaration? What does your element
> declaration look like?
>
> Thanks a lot for taking a stab at Petstore!
>
> Best regards,
>
> Geert
>
> On 12 Apr 2006, at 08:11, Emmanuel Okyere wrote:
>
> > 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?
>
> --
> 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 - "My life is my message."
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


Re: [Rife-users] rife forms

2006-04-11 Thread Geert Bevin

Hi Emmanuel,

are you sure you declared a submission bean in the "commit"  
submission in your element declaration? What does your element  
declaration look like?


Thanks a lot for taking a stab at Petstore!

Best regards,

Geert

On 12 Apr 2006, at 08:11, Emmanuel Okyere wrote:


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?


--
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] rife forms

2006-04-11 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:




User Information


User ID:



id="login" 
size="15"





Email Address:
A valid email address is required to activate your 
account



id="email" 
size="30"





Password:



id="password" 
size="20"





Repeat 
Password:



id="password2" 
size="20"




  

Account Information


What is your
first name?



id="firstname" 
size="30" type="text"





last name:



id="lastname" 
size="30" type="text"






Address 1:



id="address" 
size="30"





Address 2:



id="address2" 
size="30"





City:



id="city" 
size="30"





State:



id="state" 
size="4"





Zip:



id="zip" 
size="10"





Country:


id="country"  
style="vertical-align:
middle;"




Profile Information



Language Preference:




id="language"  
style="vertical-align:
middle;"




Favourite 
Category:


id="favCategory" 
style="vertical-align: middle;"




Enable 
MyList


id="listOption" 
value="on"




Enable 
MyList



id="bannerOption" 
value="on"



 




 
 



And the final output:




User Information


User ID:




id="login" size="15"





Email Address:
A valid email address is required to activate your 
account