RE: Best practice for storing application variables

2011-10-25 Thread Boyd, David (Corporate)
that file to set/use the properties. -Original Message- From: Jim May [mailto:jim.webg...@gmail.com] Sent: Monday, October 24, 2011 4:47 PM To: MyFaces Discussion Subject: Best practice for storing application variables I know this question is not directly associated with MyFaces, but

Re: Best practice for storing application variables

2011-10-25 Thread Me Self
be set programmatically as of servlet API 3.0. On Mon, Oct 24, 2011 at 10:46 PM, Jim May wrote: > I know this question is not directly associated with MyFaces, but more a > general web application question. > > What is the best practice for storing application variables tha

RE: Best practice for storing application variables

2011-10-24 Thread Visagie, Gerhard
We use a properties file, formatted by ant build file and deployed via a rpm spec file depending on the environment its in. -Original Message- From: Jim May [mailto:jim.webg...@gmail.com] Sent: 24 October 2011 10:47 PM To: MyFaces Discussion Subject: Best practice for storing application

Re: Best practice for storing application variables

2011-10-24 Thread Richard Yee
, at 1:46 PM, Jim May wrote: > I know this question is not directly associated with MyFaces, but more a > general web application question. > > What is the best practice for storing application variables that need to be > changed once deployed to an environment? I want to use these

Best practice for storing application variables

2011-10-24 Thread Jim May
I know this question is not directly associated with MyFaces, but more a general web application question. What is the best practice for storing application variables that need to be changed once deployed to an environment? I want to use these variables in my application scoped bean in the JSF

RE: MyFaces Spring Orchestra Best Practice

2009-09-21 Thread jid1
on-case configuration you are now able to pass the key > from one view to the other. > On the receiving side you have to use the parameterMap to fetch the key > and reload the entity then. > > It depends on your application if it is feasable to render the key in the > url. It

RE: MyFaces Spring Orchestra Best Practice

2009-09-18 Thread Mario Ivankovits
it is feasable to render the key in the url. It makes them bookmarkable, but also vulnerable. In this area it is hard to tell what is "best practice". I normally use 1 or 2 and sometimes 2a :-) Ciao, Mario -Ursprüngliche Nachricht- Von: jid1 [mailto:ideligian...

MyFaces Spring Orchestra Best Practice

2009-09-18 Thread jid1
(as it's not supposed to be best practice) Also I could use: But: a. The first component will access the second in the JSF domain b. I would like to do it from the backing bean so I can call Conversation.getCurrentInstance().invalidate(); Can you please tell me the 'best practice

Datatable usage best practice question.

2008-06-18 Thread techie_techie
|| isCsvFileUpdated()) { loadDataList(); // Reload to get most recent data. } return this.dataList; } Is this approach fine? Do you see any issue with this appraoch? TIA... -- View this message in context: http://www.nabble.com/Datatable-usage-best-practice-question

Re: Best Practice - Converting raw property values of Beans

2006-12-19 Thread Harry Co
trings stored somewhere in the presentation layer, for example in a message.properties file, which I can use in the JSP file. But how to do that efficiently and what"s the best practice for doing so? I frequently have this problem, not only with String types, but also with Java 1.5 Enum types….

Re: Best Practice - Converting raw property values of Beans

2006-12-18 Thread Torsten Krah
> > > > This would produce output like this on my webpage: > > > > ‘CatA’ or ‘CatB’ or ‘CatC’ > > > > The problem is that I don’t want to display these raw values of the > > JavaBean, instead I want to display specific strings stored somewhere > >

Re: Best Practice Suggestions

2006-11-16 Thread Craig McClanahan
tions). Disadvantages: Increased processing to create/recreate request-scoped beans. Increased processing, bandwidth and client memory required to use t:saveState. This stuff may well be obvious to most people viewing this forum, so if you think its obvious/rubbish/useful please let me know (and

Best Practice Suggestions

2006-11-16 Thread Nick77
s/rubbish/useful please let me know (and preferably why :-) all comments/feedback welcome... Thanks Nick -- View this message in context: http://www.nabble.com/Best-Practice-Suggestions-tf2644584.html#a7382547 Sent from the MyFaces - Users mailing list archive at Nabble.com.

AW: AW: Best Practice - Converting raw property values of Beans

2006-10-27 Thread Bieringer Dominik
26. Oktober 2006 17:22 An: MyFaces Discussion Betreff: Re: AW: Best Practice - Converting raw property values of Beans It is "cheating" because I put UI specific code in my enumeration (the bundle key). I didn't feel that great about it, but it worked well enough for me to use it. On 1

Re: AW: Best Practice - Converting raw property values of Beans

2006-10-26 Thread Andrew Robinson
ht- > Von: Andrew Robinson [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 25. Oktober 2006 22:30 > An: MyFaces Discussion > Betreff: Re: Best Practice - Converting raw property values of Beans > > I "cheated" and made an interface for enum types: (Why is this cheating

Re: AW: AW: Best Practice - Converting raw property values of Beans

2006-10-26 Thread Jonathan Harley
Bieringer Dominik wrote: Okay, Where can i find information about the technique you are talking about? As luck would have it, I wrote a blog entry about that technique (EL functions) last week, but hadn't got round to posting it up yet. Your question has motivated me to post it, so it's here:

AW: AW: Best Practice - Converting raw property values of Beans

2006-10-26 Thread Bieringer Dominik
:[EMAIL PROTECTED] Gesendet: Donnerstag, 26. Oktober 2006 00:23 An: MyFaces Discussion Betreff: Re: AW: Best Practice - Converting raw property values of Beans Bieringer Dominik wrote: > Hey cool... thx very much... I didn't knew about the possibility to access > the message from the

Re: AW: Best Practice - Converting raw property values of Beans

2006-10-25 Thread Jonathan Harley
age. -Ursprüngliche Nachricht- Von: Andrew Robinson [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Oktober 2006 22:30 An: MyFaces Discussion Betreff: Re: Best Practice - Converting raw property values of Beans I "cheated" and made an interface for enum types: (Why is

AW: Best Practice - Converting raw property values of Beans

2006-10-25 Thread Bieringer Dominik
Thx. Very much... I will read the docs tomorrow I think. It sounds really promising ;) -Ursprüngliche Nachricht- Von: Gert Vanthienen [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Oktober 2006 22:29 An: MyFaces Discussion Betreff: Re: Best Practice - Converting raw property values of

AW: Best Practice - Converting raw property values of Beans

2006-10-25 Thread Bieringer Dominik
treff: Re: Best Practice - Converting raw property values of Beans I "cheated" and made an interface for enum types: public interfaces EnumDescribed { public String getBundleKey(); } public enum TestEnum implements EnumDescribed { A("test.a"), B("test.b"

Re: Best Practice - Converting raw property values of Beans

2006-10-25 Thread Andrew Robinson
#x27;CatB' or 'CatC' The problem is that I don't want to display these raw values of the JavaBean, instead I want to display specific strings stored somewhere in the presentation layer, for example in a message.properties file, which I can use in the JSP file. But how to do that ef

Re: Best Practice - Converting raw property values of Beans

2006-10-25 Thread Gilles Demarty
values of the JavaBean, instead I want to display specific strings stored somewhere in the presentation layer, for example in a message.properties file, which I can use in the JSP file. But how to do that efficiently and what"s the best practice for doing so? I frequently have this problem, n

Re: Best Practice - Converting raw property values of Beans

2006-10-25 Thread Gert Vanthienen
er, for example in a message.properties file, which I can use in the JSP file. But how to do that efficiently and what”s the best practice for doing so? I frequently have this problem, not only with String types, but also with Java 1.5 Enum types…. At the moment I am solving the problem the followi

Best Practice - Converting raw property values of Beans

2006-10-25 Thread Bieringer Dominik
that I don’t want to display these raw values of the JavaBean, instead I want to display specific strings stored somewhere in the presentation layer, for example in a message.properties file, which I can use in the JSP file. But how to do that efficiently and what”s the best practice for doing so? I

Best practice for coding orphaned JSF after TomCat reboot

2006-06-07 Thread John
I hit refresh, I'd see the same behavior.   I know I could just judiciously log-out before a restart and circumvent the issue, however, end-users won't be so polite, they will just let their JSF stay open across server restarts and expired sessions, in a production environment.   S

Re: The best practice of remembering previous selections when doing paginating?

2006-03-25 Thread Emily Gu
ion is gone. It only knows> what selected in the current page. I have two questions now:>> 1. What is the best practice in doing such web pages. Should it remember > stuff selected from the first page?> 2. How to do it in using with ?>> In my opinion, it would be nice if we can

Re: The best practice of remembering previous selections when doing paginating?

2006-03-24 Thread Aleksei Valikov
Hi. I have one question for you. For the solution posted on wiki page of large data set , when you select several rows on the first page, then go to the next page, the selection is gone. It only knows what selected in the current page. I have two questions now: 1. What is the best practice

The best practice of remembering previous selections when doing paginating?

2006-03-23 Thread Emily Gu
Hi,   I have one question for you. For the solution posted on wiki page of large data set , when you select several rows on the first page, then go to the next page, the selection is gone. It only knows what selected in the current page. I have two questions now:   1. What is the best practice in

Re: RE : Thanks and a best practice question in regard to set up of backing bean Actions

2005-09-01 Thread Martin Marinschek
é : mercredi 31 août 2005 21:55 > À : MyFaces Discussion > Objet : RE: Thanks and a best practice question in regard to set up of > backing bean Actions > > > You'll also want an EmployeeBean as a managed bean, which can be defined as > having type EmployeeVO. > &g

RE : Thanks and a best practice question in regard to set up of backing bean Actions

2005-09-01 Thread Clément Maignien
used to believe the answer, but since this discussion nothing is really clear anymore. Thx Clément -Message d'origine- De : CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] Envoyé : mercredi 31 août 2005 21:55 À : MyFaces Discussion Objet : RE: Thanks and a best practice questi

RE: Thanks and a best practice question in regard to set up of backing bean Actions

2005-08-31 Thread CONNER, BRENDAN \(SBCSI\)
t: Wednesday, August 31, 2005 12:48 PM To: MyFaces Discussion Subject: Thanks and a best practice question in regard to set up of backing bean Actions Thanks everyone for your help with the crud demo app I've been working with. (Special thanks to Brendan for his fine "Car" example co

Thanks and a best practice question in regard to set up of backing bean Actions

2005-08-31 Thread Rick Reumann
Thanks everyone for your help with the crud demo app I've been working with. (Special thanks to Brendan for his fine "Car" example code that he posted in another thread). I want to start out on the right foot doing things in a 'correct' way before I get into some bad practices. Currently, I have

Best Practice redirecting?

2005-07-19 Thread Johannes Hiemer
Hi folks, I searched around for a few minutes now, regarding "redirection after successfull form submit" for example, and I found a few ways to do it. What I am wondering was, which way I should use in which situation and which ways is the "best practice" way. Perhaps thi

Re: Scope-Problem: session is too long, scope is too short - best practice?

2005-06-05 Thread Werner Punz
Werner Punz wrote: Some, but none of them is an easy plug and play thing. The scopes are one big hole in the current faces specs, as Martin has pointed out you can do it with x:saveState but then you need serialization. Another thing would be to remove the bean from the session as soon as you hi

Re: Scope-Problem: session is too long, scope is too short - best practice?

2005-06-05 Thread Werner Punz
Some, but none of them is an easy plug and play thing. The scopes are one big hole in the current faces specs, as Martin has pointed out you can do it with x:saveState but then you need serialization. Another thing would be to remove the bean from the session as soon as you hit the point where yo

Re: Scope-Problem: session is too long, scope is too short - best practice?

2005-06-05 Thread Hendrik Neumann
Oh thanks Martin, this sounds interesting! I'll take a look at the saveState-Tags tomorrow! Am Sonntag, 5. Juni 2005 21:40 schrieb Martin Marinschek: > what about the x:saveState tags in MyFaces? > > I use these tags extensively to store only those beans I need exactly > as long as they are neede

Re: Scope-Problem: session is too long, scope is too short - best practice?

2005-06-05 Thread Martin Marinschek
what about the x:saveState tags in MyFaces? I use these tags extensively to store only those beans I need exactly as long as they are needed... But also the request approach will work: not only the changed values are posted back to the server, but all values, so you get an initialized bean anyway

Scope-Problem: session is too long, scope is too short - best practice?

2005-06-05 Thread Hendrik Neumann
Hi guys, I have the following problem: lets suppose I have a managed-bean which should be filled with content by the database if the user requests some certain informations and then the content of this bean should be rendered in the JSF-page. Then, after it is rendered (after the first request)

Re: Best practice for validating null value of non required UIInput

2005-05-30 Thread Sean Schofield
Isn't there a commons validator that does something like this? If so, shale has adapted all of those validators to make them available in JSF. I haven't tried it but I believe you could use that portion of shale without configuring the rest of the shale stuff (in other words, it works independent

Re: Best practice for validating null value of non required UIInput

2005-05-27 Thread Csík Norbert
> Anyone who knows something different? I would put a custom validator on the company name which checks the other fields if the company name was null. -- Norbert Csík

Re: Best practice for validating null value of non required UIInput

2005-05-25 Thread Martin Marinschek
No, not that I would know of some better way to handle that. JSF generally just supports validators with a relationship to one field, for everything else you need to work yourself. Anyone who knows something different? regards, Martin On 5/25/05, Jan Bols <[EMAIL PROTECTED]> wrote: > I have a

Best practice for validating null value of non required UIInput

2005-05-25 Thread Jan Bols
I have a form containing (among others) a field to fill in a company name and fields to fill in the address of the company (street, nr, bus, zip, city, country). I want to give an error message when the user fills one of the address fileds but not the company name. The way I solved the prob

Re: Best practice?

2005-05-24 Thread Bjørn T Johansen
nal Message- > From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 7:04 PM > To: MyFaces Discussion > Subject: Re: Best practice? > > But how to you fill the data in the MB from DAO? > > Jesse Alexander (KBSA 21) wrote: > >>Well we call

RE: Best practice?

2005-05-24 Thread Jesse Alexander (KBSA 21)
l the UserDetails... in the JSP the details then can be accessed "normally": #{myManagedBean.userDetails.lastName} and so on... -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 7:04 PM To: MyFaces Discussion Subject: Re: Best

Re: Best practice?

2005-05-24 Thread Bjørn T Johansen
hansen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 6:18 PM > To: MyFaces Discussion > Subject: Re: Best practice? > > Yes, that's what I was thinking about... But I am not sure if I should pass > the managed > bean just to my business layer and use VO from BO

RE: Best practice?

2005-05-24 Thread Jesse Alexander (KBSA 21)
Well we call the the Business-Layer from the managed beans, therefor we have no need to pass the MB to the backend... Alexander -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 6:18 PM To: MyFaces Discussion Subject: Re: Best practice

RE: Best practice?

2005-05-24 Thread Deadman, Hal
2005 12:17 PM > To: MyFaces Discussion > Subject: Re: Best practice? > > I have looked at the website before, but I haven't tried it yet... But > isn't Shale still > at it's early development state? > > Matthias Wessendorf wrote: > > Bjørn, > > >

Re: Best practice?

2005-05-24 Thread Bjørn T Johansen
t;best practise"? I do not know, but it works (so >> far) for our project on which 4 people are working full time plus one >> JSF component developer. >> >> hth >> Alexander >> >> -Original Message- >> From: Bjørn T Johansen [mailto:[EMAIL P

Re: Best practice?

2005-05-24 Thread Bjørn T Johansen
are working full time plus one JSF component > developer. > > hth > Alexander > > -Original Message- > From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] > Sent: Monday, May 23, 2005 8:52 AM > To: MyFaces Discussion > Subject: Best practice? > > I was wondering

Re: Best practice?

2005-05-24 Thread Bjørn T Johansen
I have looked at the website before, but I haven't tried it yet... But isn't Shale still at it's early development state? Matthias Wessendorf wrote: > Bjørn, > > it is now worth to look at Shale. > > Shale provides an interface that each backing bean *could* implement > it provides a init() met

Re: Best practice?

2005-05-24 Thread Jonas Jacobi
e"? I do not know, but it works (so far) for our project on which 4 people are working full time plus one JSF component developer. hth Alexander -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 8:52 AM To: MyFaces Discussion Subject

Re: Best practice?

2005-05-24 Thread Matthias Wessendorf
Bjørn,it is now worth to look at Shale.Shale provides an interface that each backing bean *could* implementit provides a init() method for initializing stuff like you want.(see: http://people.apache.org/~craigmcc/shale-core-javadocs/org/apache/shale/ViewController.html)There is use case app, that

RE: Best practice?

2005-05-24 Thread Jesse Alexander (KBSA 21)
component developer. hth Alexander -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 8:52 AM To: MyFaces Discussion Subject: Best practice? I was wondering what's the best way of handling the following: - A managed bean need to be

Best practice?

2005-05-22 Thread Bjørn T Johansen
I was wondering what's the best way of handling the following: - A managed bean need to be "filled" with data from a database using DAO methods; is it best just to pass the managed bean as parameter og should one use another VO bean and populate the managed bean from the VO bean? - when moving

Re: Best practice for reusing a jsp(x)?

2005-05-06 Thread gvanmatre
> On 5/6/05, Sylvain Vieujot <[EMAIL PROTECTED]>wrote: > > I don't know if this really helps in your case, but have a look at the > > x:aliasBean tag. > > I use it to have generic subforms, and it works pretty well. > > Thanks. I'll look for an example on Monday. > > > > On 5/6/05, [EMAIL PROTECTE

Re: Best practice for reusing a jsp(x)?

2005-05-06 Thread Mike Kienenberger
On 5/6/05, Sylvain Vieujot <[EMAIL PROTECTED]> wrote: > I don't know if this really helps in your case, but have a look at the > x:aliasBean tag. > I use it to have generic subforms, and it works pretty well. Thanks. I'll look for an example on Monday. On 5/6/05, [EMAIL PROTECTED] <[EMAIL P

Re: Best practice for reusing a jsp(x)?

2005-05-06 Thread gvanmatre
> Well, it appears that simple reuse like this isn't possible under JSF. You might check out the Clay component under Struts Shale: http://cvs.apache.org/builds/struts/nightly/struts-shale/clay-plugin This component will allow you to define a sub-tree within a jsp page where the component meta

Re: Best practice for reusing a jsp(x)?

2005-05-06 Thread Sylvain Vieujot
I don't know if this really helps in your case, but have a look at the x:aliasBean tag. I use it to have generic subforms, and it works pretty well. On Fri, 2005-05-06 at 16:28 -0400, Mike Kienenberger wrote: Well, it appears that simple reuse like this isn't possible under JSF. What would

Re: Best practice for reusing a jsp(x)?

2005-05-06 Thread Mike Kienenberger
Well, it appears that simple reuse like this isn't possible under JSF. What would have been a five-minute task under WebObjects, and maybe a five-hour task with Struts/Velocity became a 30-hour ordeal of creating a custom composite component (HtmlDataTable/UIColumn/UIColumns/UICommand) in JSF, and

Best practice for reusing a jsp(x)?

2005-05-02 Thread Mike Kienenberger
I've got a "RowAndColumnRelationshipsPage.jspx" with an associated RowAndColumnRelationshipsPage backing bean. I have a large number of row-and-column-based "data source" classes that implement a RowAndColumnRelationshipData interface which will provide the actual data displayed on the page. Howe

Re: Link - Best practice

2005-03-02 Thread Heath Borders
14:00:32 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > > What is the best practice for the following scenario : > > I have a page that can display different events. From the menu > (JSCookMenu) you should be able select a specicif event, and be sent to > th

Link - Best practice

2005-03-02 Thread hermod . opstvedt
Hi What is the best practice for the following scenario : I have a page that can display different events. From the menu (JSCookMenu) you should be able select a specicif event, and be sent to this page which in turn would display the data for that event. In good ol' Struts you would do

Re: Best Practice, saving state

2005-02-12 Thread Sean Schofield
where saving to a database might be more appropriate. sean On Fri, 11 Feb 2005 05:37:14 -0800 (PST), mfaine <[EMAIL PROTECTED]> wrote: > In a web application I am writing a user edits an object in a multi-step > process. What would be the best practice of the two: > > A. Save a

Best Practice, saving state

2005-02-11 Thread mfaine
In a web application I am writing a user edits an object in a multi-step process. What would be the best practice of the two: A. Save and Restore the state to/from the database at each step. B. Save and Restore the state to/from the session and only save to the database at the end of the