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

2005-11-15 Thread Eddy Young
Quoting Emmanuel Okyere [EMAIL PROTECTED]: 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

[Rife-users] extends and inherits

2005-11-15 Thread Eddy Young
Can anyone please explain the reason behind having both extends and inherits? These two attributes seem to serve the same purpose. Thanks, Eddy - This mail sent through IMP: http://horde.org/imp/ ___

Re: [Rife-users] extends and inherits

2005-11-16 Thread Eddy Young
Quoting Geert Bevin [EMAIL PROTECTED]: Now, is it possible to have multiple inheritance? No, not for now, but it's planned for future versions. Euhm actually that's wrong, RIFE supports multiple inheritance, you're just not able to declare it in one go. So this doesn't work:

Re: [Rife-users] RIFE Authentication

2005-11-16 Thread Eddy Young
Quoting Geert Bevin [EMAIL PROTECTED]: Good idea, I was actually thinking about adding some of these, just need to find the time to do so. About the usersguide, it is merely meant as an introduction, and it was written more than 2 years ago (and occasionally updated). It should however

Re: [Rife-users] Re: Excel spreadsheets as responses

2005-12-02 Thread Eddy Young
Geert Bevin wrote: Anyway, I like NetBeans but it misses a couple of very important things for me: * fully customizable code formatting Jalopy :-) Yes, there is. But I've never used it personally. I'm happy with the code formatting features of NetBeans -- I tend to follow Sun's

Re: [Rife-users] RIFE podcast

2005-12-04 Thread Eddy Young
JR Boyens wrote: On 12/3/05, *Keith Lea* [EMAIL PROTECTED] mailto:[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. :) I

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

2005-12-06 Thread Eddy Young
Geert Bevin wrote: Indeed, warnings tend to get neglected. On the other hand, since it's rather easy to do this now already (with the code I pasted before), this doesn't do anything new, just makes it easier to do so. So I guess it might just as well be added. What do others think? I

Re: [Rife-users] RIFE 1.3 released

2005-12-13 Thread Eddy Young
Geert Bevin wrote: RIFE 1.1 has been released. Typo :-) * Better Spring integration I've not found a reason to use Spring yet, but I want to understand the affinity everyone else seems to have for it. Anyone care to explain how it is used? Thanks, Eddy

[Rife-users] Best place to put startup/init code in RIFE

2005-12-21 Thread Eddy Young
Hi all, I suspect this is one situation where Spring comes in handy, but I am still not sure how best to proceed. (I adhere to the domain-driven design philosophy and my current project is architected accordingly, as explained below.) I have an abstract class AccountRepository that

Re: [Rife-users] importing RIFE examples into Netbeans 4.1

2006-01-11 Thread Eddy Young
David Herbert wrote: [snip] (1) is anyone else using the Netbeans IDE successfully (I note that Eclipse and one other commercial IDE have plugins, but I don't really understand what these do)? Or do I just have to abandon Netbeans altogether? I am. I follow the popular adage, don't fight

Re: [Rife-users] importing RIFE examples into Netbeans 4.1

2006-01-13 Thread Eddy Young
Geert Bevin wrote: Hmm, so this seems to not be possible with a freeform ant project? Eddy Young wrote: Geert Bevin wrote: Actually I have a question about RIFE and NetBeans. How do you set a project up so that the libraries it has have their sources linked to it? Also, how do you link

Re: [Rife-users] importing RIFE examples into Netbeans 4.1

2006-01-13 Thread Eddy Young
Eddy Young wrote: Geert Bevin wrote: Hmm, so this seems to not be possible with a freeform ant project? [snip] I don't think it does. But it makes sense as free-from Ant projects will come in a gazillion shapes, and there is no way NetBeans will be able to tackle all of those. Try

Re: [Rife-users] Rife Eclipse Plugin

2006-01-13 Thread Eddy Young
Geert Bevin wrote: Hi Eddy, those lexers would be for RIFE-specific highlighting of template tags for instance, like the yellow you see here: http://rifers.org/03_numberguess/src/templates/guess.html.html I have this setup in X-develop with a plugin since several months and I really find it

Re: [Rife-users] Rife Eclipse Plugin

2006-01-13 Thread Eddy Young
Jeremy Whitlock wrote: Eddy, Eclipse provides that as well. What I mean by templates is to be able to go to File New and see Rife stuff there that would create template Rife applications ready for hacking for their business need. We then would integrate into the content assist to

[Rife-users] Validation.validate()

2006-01-20 Thread Eddy Young
Hi, I'm puzzled by the following piece of code not working. bean.resetValidation(); if (!bean.validate()) { template.getBeanHandler().getFormBuilder(). getValidationBuilder().generateValidationErrors(template,

[Rife-users] Conditional constraints

2006-01-30 Thread Eddy Young
Hi, I want to add some constraints to a bean based on the presence of a given value (e.g. password change in an update profile page where the constraints are applicable only if there is a value in the first password field). I've already tried putting a condition in activateValidation(),

Re: [Rife-users] Conditional constraints

2006-01-30 Thread Eddy Young
On 30 Jan 2006, at 22:28, Geert Bevin wrote: you can freely declare your constraints at any time, of course you have to do so at the proper time for your use-case. It might be that activateValidation is called before you set the properties and thus the wrong condition is used. Btw, what do

Re: [Rife-users] Multiple submit buttons on a form

2006-01-31 Thread Eddy Young
I also like your suggestion, Geert. I just threw this idea off the top of my head yesterday night after our quick IRC chat. Glad to see others supporting it. Eddy Geert Bevin wrote: Hi Eddy, I don't see the use of the new template tag. It doesn't add anything, since it's actually fully

Re: [Rife-users] Looking for killer argument to defend the template language

2006-02-10 Thread Eddy Young
Oliver Dohmen wrote: Hi, only a short note. Point them to the alternative Tag Versions with [! /], because it dont mess up the other tags and make it easier to read. For me the language is very clear and only uses minimalistic markup. That makes my templates more readable and i don`t mess

Re: [Rife-users] store String in session

2006-02-10 Thread Eddy Young
Geert Bevin wrote: I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes

[Rife-users] Proposal for a new feature

2006-02-10 Thread Eddy Young
Hi, The only problem I currently experience when developing with RIFE is that errors are only caught at runtime, especially those related to templates and the XML configuration. It would be great if there was a mechanism available (possibly as an Ant task) that pre-processes the XML and

[Rife-users] Localisation and automatic language detection

2006-03-01 Thread Eddy Young
Hi, Does anyone know what the current status of automatic language detection (from web browser header values) is? Eddy -- http://coding.mu http://priscimon.com/blog ___ Rife-users mailing list Rife-users@uwyn.com

[Rife-users] setExitQuery

2006-03-02 Thread Eddy Young
Hi all, Is there a way of setting the query string for a given EXIT:QUERY tag other than using Element.setExitQuery()? Thanks, Eddy -- http://coding.mu http://priscimon.com/blog ___ Rife-users mailing list Rife-users@uwyn.com

Re: [Rife-users] setExitQuery

2006-03-02 Thread Eddy Young
Geert Bevin wrote: Yes, sort of, why do you need this? You could do: template.setValue(tagid, getExitQueryUrl(...)); Uhm, that will not work, I'm afraid. I am trying to import a generated list from a template that is normally built from another element. Since the importing element does

Re: [Rife-users] setExitQuery

2006-03-02 Thread Eddy Young
Geert Bevin wrote: Eddy, nothing prevents you from adding a block to the template that provides you with the name of the exit and use that with getExitQueryUrl(). You can then include the common list template and have the exit name in the including template, if that's where you want that to

Re: [Rife-users] setExitQuery

2006-03-02 Thread Eddy Young
Geert Bevin wrote: Best r:b/, as that will be stripped from output. True. /me needs to remember that template tags can be processed bi-directionally, for reading and setting values. Eddy -- http://coding.mu http://priscimon.com/blog ___

[Rife-users] pathinfo capabilities

2006-03-02 Thread Eddy Young
Hi, I've finally started playing with pathinfo (got to make those pages Googlebot-friendly :-) and would like to know what is possible. I'm trying to get URLs in the form of: http://mywebsite/username/section/id/edit For example: http://mywebsite/joebloggs/addressbook/1001/edit

Re: [Rife-users] Pathinfo does not generate proper URL if the mapping references a globalvar

2006-03-03 Thread Eddy Young
http://uwyn.com/issues/browse/RIFE-275 Geert Bevin wrote: Hi Eddy, can you please report that in the issuetracker. I'll look at it as soon as I can. -- http://coding.mu http://priscimon.com/blog ___ Rife-users mailing list Rife-users@uwyn.com

[Rife-users] A first component using embedded elements

2006-03-06 Thread Eddy Young
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

Re: [Rife-users] Exiting an inheritance flow

2006-03-08 Thread Eddy Young
Geert Bevin wrote: Yes, set inheritance=cancel on the flowlink. Is there a way to do that programmatically? I have a child trigger variable called sessionid. The validity of that id determines whether the child is triggered or not. If not, a login page is executed, and upon successful

Re: [Rife-users] Exiting an inheritance flow

2006-03-08 Thread Eddy Young
Geert Bevin wrote: However, when the inheritance flow has completed, the child request is restored, effectively restoring the invalid session id which causes the login page to be displayed again. I don't understand, so you say that the original session id is show after the child trigger

Re: [Rife-users] Comparing web frameworks : RIFE

2006-03-09 Thread Eddy Young
Looks like you're almost done :-) Is there any reason why you defined the site both programmatically and declaratively? Eddy Geert Bevin wrote: Hi everyone, Simon Brown started a web framework comparison effort a few months ago (http://weblogs.java.net/blog/simongbrown/) and yesterday, a

Re: [Rife-users] Comparing web frameworks : RIFE

2006-03-09 Thread Eddy Young
Geert Bevin wrote: Looks like you're almost done :-) Well, I need to write the article ... that's gonna take some effort. How many words for the article? While I'm on the topic, what is the typical length (in words) of a technical book, say, Tapestry in action, for example? (if anyone has

Re: [Rife-users] strange problem with pathinfo when using mod_jk

2006-03-17 Thread Eddy Young
hui wrote: yeah, check this: http://www.nxnx.net/mix/rife If that is not a demonstration of the true power of RIFE, I don't know what is :-) hui, how long did it take you to write this? Eddy -- http://coding.mu http://priscimon.com/blog ___

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

2006-03-17 Thread Eddy Young
Geert Bevin 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. I doubt that I will be able to deal with the schedule, full-time day job forbid

Re: [Rife-users] strange problem with pathinfo when using mod_jk

2006-03-20 Thread Eddy Young
I think this is a good time for someone who is just learning a web framework. Eddy On 21 Mar 2006, at 06:43, hui wrote: about 2 nights, and not finished yet. just my little practice for learning RIFE. On 3/17/06, Eddy Young [EMAIL PROTECTED] wrote: hui, how long did it take you to write

Re: [Rife-users] i18n patch

2006-03-28 Thread Eddy Young
Raoul Pierre wrote: Each element can specify a locale to be used in priority with L10N_REQUIRED_LANGUAGE property (and if needed L10N_REQUIRED_COUNTRY) Otherwise user locale is used if specified with L10N_USER_LANGUAGE input (and if needed L10N_USER_COUNTRY) . If no required or user locale

Re: [Rife-users] i18n patch

2006-03-28 Thread Eddy Young
Raoul Pierre wrote: Yes, it's a normal rife property, see http://rifers.org/wiki/display/RIFE/IOC+properties+support+inside+the+repository Cheers. Eddy -- http://coding.mu http://priscimon.com/blog ___ Rife-users mailing list Rife-users@uwyn.com

Re: [Rife-users] Is this a bug ?

2006-04-05 Thread Eddy Young
Geert Bevin wrote: Hi Wangwei, I'll look into this tomorrow. Today I spent the entire day playing with my new toy, a Macbook Pro :-) It is a great machine, isn't it? :-) Eddy -- http://coding.mu http://priscimon.com/blog ___ Rife-users mailing

[Rife-users] Classloader error

2006-04-10 Thread Eddy Young
Hi all, Is there a known classloader-related error between RIFE and Log4J? Eddy -- http://coding.mu http://priscimon.com/blog ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users

Re: [Rife-users] Classloader error

2006-04-12 Thread Eddy Young
Geert Bevin wrote: Do you have a relatively encapsulated testcase for me to trace this with? I do, but we will have to take this in private. We can still post the findings once we've sorted this out. I'll get in touch on IM. Eddy -- http://coding.mu http://priscimon.com/blog

Re: [Rife-users] Classloader error

2006-04-12 Thread Eddy Young
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

Re: [Rife-users] embedded elements - component example in Wiki

2006-04-13 Thread Eddy Young
Not at all. I would have done it myself had I not been busy with other things. Eddy On 13 Apr 2006, at 18:09, Frederic Daoud wrote: I kept referring to Eddy's example of using embedded elements to create a component: http://article.gmane.org/gmane.comp.java.rife.user/2284 so I added it

[Rife-users] Proper usage for inbean/ and outbean/

2006-05-26 Thread Eddy Young
Hi, I've been very busy lately, so there have been very few posts from me. I started looking at using inbean/ and outbean/ to pass more information from one element to another. Unfortunately, there is not much information as to how to use it properly on the Wiki. Can anyone help please?

Re: [Rife-users] Proper usage for inbean/ and outbean/

2006-05-26 Thread Eddy Young
Laki Roganovic wrote: In the subscriptionVIP implementation, don't forget : setNamedOutputBean(addBean, your bean); subscription_vip_ok.html : Your address is : !--V 'INPUT:add_addr1'/-- Hope this helps. Thanks, it helps a lot. I missed the setNamedOutputBean() method.

Re: [Rife-users] implementing a RIFE view component

2006-06-07 Thread Eddy Young
[EMAIL PROTECTED] wrote: Hi dear RIFErs, I've managed to implement a simple component which I call a view component, in the sense that it's not really an Element, just a reusable unit that renders a view from some data. In this case, it's an HTML table. My goal was to encapsulate how I display

Re: [Rife-users] implementing a RIFE view component

2006-06-07 Thread Eddy Young
Geert Bevin wrote: Hi Frederic, thanks for sharing this! Some people might rip you apart when you call this a component since it doesn't handle any encapsulation of state (which is what happened to me last time on JavaLobby), but anyway. Which is exactly why I find components cumbersome in

Re: [Rife-users] Re: implementing a RIFE view component

2006-06-07 Thread Eddy Young
On 7 Jun 2006, at 18:06, Frederic Daoud wrote: It is simply applying the Decorator design pattern to templates. See example. Interesting, interesting.. So you decorate your Template object, but how do you decorate the HTML template? Or, put another way, how do you encapsulate how you lay

Re: [Rife-users] Re: implementing a RIFE view component

2006-06-07 Thread Eddy Young
On 7 Jun 2006, at 18:14, Geert Bevin wrote: private static final class TasksListTemplate extends AbstractTemplate { Very minor comment, it's probably better to implement the Template interface instead. To be proper, I should have a base abstract class implementing Template, then

Re: [Rife-users] Re: implementing a RIFE view component

2006-06-07 Thread Eddy Young
On 7 Jun 2006, at 18:19, Frederic Daoud wrote: So, where is that thread on JavaLobby? It's already quite old: http://www.javalobby.org/java/forums/t70272.html Wait a minute.. I remember that thread! So you got ripped by whom, Wicket people? Being flamed by Wicket people is like a cow's

Re: [Rife-users] Re: implementing a RIFE view component

2006-06-07 Thread Eddy Young
On 7 Jun 2006, at 18:22, Geert Bevin wrote: Wait a minute.. I remember that thread! So you got ripped by whom, Wicket people? Being flamed by Wicket people Yeah, they actually went as far as having me implement an example of stateful components because they wouldn't believe me. RIFE,

Re: [Rife-users] Pending issues that a starting contributor could help out with

2006-06-09 Thread Eddy Young
Geert Bevin wrote: Hi everyone, I went over the issues in the issuetracker (http://uwyn.com/issues/browse/RIFE) and thought it might be a good idea to provide a list of issues that seem doable for someone that wants to start contributing to RIFE without knowing much about all the internals

Re: [Rife-users] Pending issues that a starting contributor could help out with

2006-06-09 Thread Eddy Young
Eddy Young wrote: Geert Bevin wrote: Hi everyone, I went over the issues in the issuetracker (http://uwyn.com/issues/browse/RIFE) and thought it might be a good idea to provide a list of issues that seem doable for someone that wants to start contributing to RIFE without knowing much about

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

2006-06-15 Thread Eddy Young
Emmanuel Okyere wrote: [snipped] 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

[Rife-users] RIFE-270 change

2006-06-15 Thread Eddy Young
All, I have implemented the enhancement logged under bug RIFE-270 in JIRA. Grateful if any could include the proposed patch in their copy of RIFE source and run the unit tests. This would remove the burden from Geert and allow us to address more issues/requests. I am waiting for feedback

Re: [Rife-users] Embedded element sortable table example

2006-06-15 Thread Eddy Young
On 15 Jun 2006, at 16:14, [EMAIL PROTECTED] wrote: I've added Using an embedded element to implement a sortable table example to the wiki: http://rifers.org/wiki/display/RIFE/TableElementExample I've added a link to it from the Embedded elements section:

Re: [Rife-users] A bit frustrated

2006-06-18 Thread Eddy Young
On 18 Jun 2006, at 09:20, Steven Grimm wrote: I feel like I'm fumbling around in the dark with RIFE. How are other people coming up to speed on this framework? I'm finding myself spending five times as long searching (often fruitlessly) for documentation as I'm spending actually getting

[Rife-users] globalvar exception

2006-06-26 Thread Eddy Young
Hi, How do I leave out a globalvar from certain URLs? I think I've seen/discussed this with Geert before, but at the moment I am completely clueless as to how to do that. Thanks, Eddy -- http://coding.mu http://priscimon.com/blog ___ Rife-users

Re: [Rife-users] globalvar exception

2006-06-26 Thread Eddy Young
Geert Bevin wrote: Hi Eddy, What exactly are you trying to do? As long as there's no output value present when a URL is generated, the value of the global variable will not be added to the query string. Is that sufficient? Best regards, Geert Hi Geert, That's not sufficient, but I just

Re: [Rife-users] globalvar exception

2006-06-26 Thread Eddy Young
Geert Bevin wrote: Hi Eddy, An exit with a flow link will always carry around the value of a global variable that is declared in the same scope. I'm happy if using an exit does what you were looking for, however I'm now even more unsure of what you're actually trying to do. Take care,

Re: [Rife-users] Interesting and wild idea

2006-07-05 Thread Eddy Young
Andrés González wrote: The idea is GREAT. I'm just working in unit testing some web applications and scratching my head trying to do it the right way, i mean, mess with the database and leave it as it was before running the tests (now i'm doing the lazy-option: at the end of each test i delete

Re: [Rife-users] Interesting and wild idea

2006-07-05 Thread Eddy Young
Andrés González wrote: Steven and Eddy: are you synchronized guys? :) Don't want to get mr Geert angry continuing this off-topic too long, but i have to say i think your idea is great. Didn't think in it before... But, we are using MySQL MyISAM tables here... so, no rollback available :(

[Rife-users] How to check if the current element is part of a continuation

2007-05-18 Thread Eddy Young
Hello, Does anyone know how to check if the current element is being processed as part of a continuation? I have a login element that either calls answer() or display a content block, depending on whether it was called with call() or accessed directly. In order to do that, it needs to

Re: [Rife-users] How to check if the current element is part of a continuation

2007-05-18 Thread Eddy Young
Quoting Geert Bevin [EMAIL PROTECTED]: Hi Eddy, this should help: http://rifers.org/docs/api/com/uwyn/rife/engine/ElementSupport.html#getContinuationId() Take care, Geert Thanks for the quick reply, Geert. I'm not sure that the continuation id will be a good indication, as every