Re: Tiles and JSF Wiki entry

2005-09-19 Thread Rick Reumann
Awesome. Thanks Robert. ( By the way the above URL is really http://wiki.apache.org/myfaces/Tiles_and_JSF )On 9/18/05, Robert Taylor [EMAIL PROTECTED] wrote: It was recommended by a few users that a wiki entry be created for myrecent adventures in learning how to use Tiles with MyFaces. See

Re: [newbie] Forward to launch page

2005-09-17 Thread Rick Reumann
for inner application navigation. Regards Rick Reumann wrote:Well I believe your index page of:jsp:forward page=/launch.faces/Is going to try to find /launch.jsp in the root but you don't have launch there so make it:jsp:forward page=/pages/launch.faces/ and you should be all set.Also

Re: [newbie] How to pass a parameter from one page to another

2005-09-17 Thread Rick Reumann
Martin Marinschek wrote the following on 9/17/2005 12:12 PM: Very good entry, the one thing missing IMHO in the end is mentioning setting preserveDataModel to true on your t:dataTable element. With that, you can even omit using the t:saveState tag. Does that only preserve it for the next

Re: [newbie] Forward to launch page (w/Tiles) [SOLVED]

2005-09-17 Thread Rick Reumann
Yea Robert, PLEASE put your findings in the wiki. An entry on how to get started using Tiles with JSF would be extremely helpful. I'm going to be tapping you for tiles help now:) On 9/17/05, Martin Marinschek [EMAIL PROTECTED] wrote:I think something like this belongs onto the Wiki if you can

Re: commandLink with action inside Table

2005-09-16 Thread Rick Reumann
Christian Froelich wrote the following on 9/16/2005 5:31 AM: h:column id=columnBrowsTab1 rendered=#{foo.secondBoolean} x:saveState id=listenerObid value=#{listener.obid}/ x:saveState id=fooObid value=#{foo.obid}/ h:commandLink id=TMIL action=#{listener.sort}

Re: [newbie] How to pass a parameter from one page to another

2005-09-16 Thread Rick Reumann
Martin Marinschek wrote the following on 9/16/2005 8:25 AM: A cool MyFaces specific feature is the t:updateActionListener tag - you can set a value onto a backing bean if a command has been executed. I'm very interested in seeing this tag used or some docs on it. I looked under the

Re: [newbie] Forward to launch page

2005-09-16 Thread Rick Reumann
Robert Taylor wrote the following on 9/15/2005 6:12 PM: Greetings, I'm a current Struts user interested in learning and using MyFaces and JSF. My dev. env. consists of Tomcat 5.5.9, MyFaces 1.0.9, JDK 1.4.2, Win2K. I've configured MyFaces to use Tiles for view-handler. What I want to do is

Re: [newbie] How to pass a parameter from one page to another

2005-09-16 Thread Rick Reumann
this construct and that if you had a property in the Action called foo it would be automagically populated using the tag. This would be very nice - so nice, that I think it should be part of standard JSF. to make yourBean available on next page. regards, Thomas On 9/16/05, *Rick Reumann* [EMAIL

Re: [newbie] How to pass a parameter from one page to another

2005-09-16 Thread Rick Reumann
Thomas Spiegl wrote the following on 9/16/2005 11:08 AM: Rick, My answer was related to Esther Leimbeck's question. When using the updateActionListener nested inside a commandLink, the backing bean will automatically be updated. Have a look at the Master-Detail example:

Re: [newbie] How to display dynamic content from a database

2005-09-16 Thread Rick Reumann
On 9/16/05, Esther Leimbeck [EMAIL PROTECTED] wrote: I would like to write a JSF-application that displays a data-list from a database. The amount of entries in that list, however, differs. My question is: I assume I have to place that data into the backing bean BEFORE the page is rendered. How

Re: [newbie] Forward to launch page

2005-09-16 Thread Rick Reumann
Well I believe your index page of: jsp:forward page=/launch.faces/ Is going to try to find /launch.jsp in the root but you don't have launch there so make it: jsp:forward page=/pages/launch.faces/ and you should be all set. Also this rule: navigation-rule navigation-case

Re: [newbie] How to pass a parameter from one page to another

2005-09-16 Thread Rick Reumann
On 9/16/05, Martin Marinschek [EMAIL PROTECTED] wrote: If you like it,you might want to document it ;) Created a wiki entry here on it, plus some other techniques. I'm sure I made some mistakes so any corrections welcome. http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters --

Re: commandLink with action inside Table

2005-09-15 Thread Rick Reumann
Mike Kienenberger wrote the following on 9/15/2005 12:18 PM: Take a look at this thread for both a discussion on the situation and solutions. Note that the earlier part of the thread didn't address the real issue, so I started you somewhere in the middle.

Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann
I currently have a DataTable built from a ListDataModel that takes my List. I want to implement column sorting, so I'm just beginning to look at the Car sort example of MyFaces. Will the sort work on the front end if you use a ListDataModel vs a direct List in your DataTable? -- Rick

t:column width issue, was: Re: Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann
Mathias Brökelmann wrote the following on 9/13/2005 11:32 AM: Yes it should work. This is odd. I'm using the nightly build of myfaces-all, but when the table resorts it doesn't produce the 'width' attribute on the td: t:column width=280 Before clicking on a column to sort, the table

Re: Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann
Mathias Brökelmann wrote the following on 9/13/2005 11:32 AM: Yes it should work. Things are also getting really screwed up after a sort takes place and then I try to get a handle the row selected by doing... this.employee =

Re: Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann
Rick Reumann wrote the following on 9/13/2005 2:57 PM: Mathias Brökelmann wrote the following on 9/13/2005 11:32 AM: Yes it should work. Things are also getting really screwed up after a sort takes place and then I try to get a handle the row selected by doing... this.employee

Re: Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann
Removing preserveState='true' from the DataTable seemed to fix the problem. Rick Reumann wrote the following on 9/13/2005 3:08 PM: Rick Reumann wrote the following on 9/13/2005 2:57 PM: Mathias Brökelmann wrote the following on 9/13/2005 11:32 AM: Yes it should work. Things are also

Re: Looking at CarSort example.. will it work with ListDataModel?

2005-09-13 Thread Rick Reumann
Rick Reumann wrote the following on 9/13/2005 3:47 PM: Removing preserveState='true' from the DataTable seemed to fix the problem. However I'm still having the problem where t:column width=280 is not being preserved after the resort (attribute width not shoing up in source code) -- Rick

Possible Bug in nightly build - t:column width attribute?

2005-09-13 Thread Rick Reumann
Not sure if this is a bug or something odd with my code.. Using the nightly myfaces-all build from 9/11, if I have: t:column width=300 and t:column style=width:300px; Both will render correctly on the first display of the page. However, I've impelemented some column sorting, similar to the

How to set the width of just one column in dataTable

2005-09-12 Thread Rick Reumann
Say I have 10 columns in a table. I need to set the width of just the 5 column. It seems like I'd have to make up classes for each column (or at least the first 4) just so that I can define a style for the 5th column to give it a width? Shouldn't h:column except a style attribute so I can

Re: How to set the width of just one column in dataTable

2005-09-12 Thread Rick Reumann
Mathias Brökelmann wrote the following on 9/12/2005 4:47 PM: Use t:datatable and a for the 5th column t:column width=xyz You have to use the latest nightly to work with t:column. You can also define style or styleClass for t:column Awesome Mathias! Exactly what I was hoping to be able to do.

How to setup and display non-error messages

2005-09-09 Thread Rick Reumann
I'm looking in the section of Core JSF on messages but I don't see how to create a typical Your update of John Doe was Successful type of message to be used on a JSP. How do you accomplish this with JSF/MyFaces? It seems like h:message and h:messages is really only geard for error type

Re: How to setup and display non-error messages

2005-09-09 Thread Rick Reumann
)); optionalRelatedComponentReference.getClientId(facesContext) can be replaced with null if you want a global message. On 9/9/05, Rick Reumann [EMAIL PROTECTED] wrote: I'm looking in the section of Core JSF on messages but I don't see how to create a typical Your update of John Doe

Re: render based on user and his/her roles

2005-09-09 Thread Rick Reumann
Why don't you have your backingBean also have a handle to some kind of Session based object that has the userRoles etc. Then when you call backingBean.render() , render could then just check what it needs from that bean? On 9/9/05, Dave [EMAIL PROTECTED] wrote: Hello, In a page, I need to

[OT] testing gmail reply-to. Ignore.

2005-09-09 Thread Rick Reumann
Just a test to see how gmail is setting up the reply-to address. Please ignore. -- Rick

understanding the impact of 'rendered'

2005-09-09 Thread Rick Reumann
I am trying to use the rendered attribute to decide whether to display an insert button or a save button (in reality they will end up both saying just save, but the action associated with them is different). Here is how I have the buttons set up: h:commandButton type=submit id=insert

Re: understanding the impact of 'rendered'

2005-09-09 Thread Rick Reumann
CONNER, BRENDAN (SBCSI) wrote the following on 9/9/2005 3:28 PM: It would be interesting to see whether reversing the order of your buttons results in the reverse outcome. In other words, if you specify: then it would be interesting to see if that makes the update action inoperable. If that

Re: understanding the impact of 'rendered'

2005-09-09 Thread Rick Reumann
is still true (and possibly in this case it isn't?). If that's the case I don't really understand the logic behind implementing it that way. But I'm not sure that's the problem though. - Brendan -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Friday, September

Re: understanding the impact of 'rendered'

2005-09-09 Thread Rick Reumann
Mike Kienenberger wrote the following on 9/9/2005 4:26 PM: Yes, that's exactly what I'm saying. At the start of every phase for every component, the result of isRendered() is computed. If it's false, nothing happens during that phase. Ok thanks, I'll have to play around with that and figure

Re: understanding the impact of 'rendered'

2005-09-09 Thread Rick Reumann
CONNER, BRENDAN (SBCSI) wrote the following on 9/9/2005 5:03 PM: I think the key here is that the rendered condition is checked *after* the button has been clicked, and, if you haven't saved the state of the bean that contains the boolean value, it will get re-initialized with null values (and

Re: Best way to use object properties from a List to create Select Items?

2005-09-08 Thread Rick Reumann
On 9/8/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: BTW, the List (or, more generally, the Collection) is assumed to contain SelectItem instances. Ok, I guess I'll have to make methods to covert my Collections to new Collections/Maps or probably just convert them to a SelectItem[]

I'm also having trouble with commandLink within dataTable

2005-09-07 Thread Rick Reumann
My commandLink will work when it's outside of the dataTable, but when it's within the dataTable it is not working (it just refreshes the same page, minus the model data, and doesn't even hit the action method in the backing bean). I have... x:saveState id=employeesListBean

Re: I'm also having trouble with commandLink within dataTable

2005-09-07 Thread Rick Reumann
the case, but is your h:commandLink is inside a column or facet? I don't think it can be a direct child of dataTable. On 9/7/05, Rick Reumann [EMAIL PROTECTED] wrote: My commandLink will work when it's outside of the dataTable, but when it's within the dataTable it is not working (it just

Re: I'm also having trouble with commandLink within dataTable

2005-09-07 Thread Rick Reumann
[EMAIL PROTECTED] wrote: It's probably the case, but is your h:commandLink is inside a column or facet? I don't think it can be a direct child of dataTable. On 9/7/05, Rick Reumann [EMAIL PROTECTED] wrote: My commandLink will work when it's outside of the dataTable, but when it's within

Error message stating something other than Value..

2005-09-07 Thread Rick Reumann
At one point when I first looked at MyFaces I remember seeing a way to provide an arg so that a required message wouldn't read: name:Value is required. Instead I want to see Name is required Instead of age: Specified value is not a valid number. I'd like to see... Age must be a valid number

MyFaces equivalent of using JSTL 'if' and choose/when within JSF compoents?

2005-09-05 Thread Rick Reumann
If I'm using a DataTable or any of the other JSF/MyFaces components that iterate over a collection, how do I do custom logic based on info in some other backing bean (for example a backinBean in session scope)? I'm looking for what gives me the nice c:if c:choose/when logic from within JSF

Re: looking for a little crud sample

2005-09-02 Thread Rick Reumann
= (UIParameter) event.getComponent().findComponent(deleteId); On 9/2/05, Rick Reumann [EMAIL PROTECTED] wrote: Thanks! I look foward to checking this out. On 9/2/05, hicham abassi [EMAIL PROTECTED] wrote: There is what i need : http://www.laliluna.de/first-java-server-faces-tutorial.html

Re: saveState confusion/question

2005-09-01 Thread Rick Reumann
On 8/31/05, Mike Kienenberger [EMAIL PROTECTED] wrote: How's it breaking? The little info that you've provided seems fine. What's not working is when I get to the 'saveAction' method of my backingBean the 'id' of the Employee object in my backingBean (EmployeeAction) is null. I would think that

Re: more on architecture really confused on something (shocker:)

2005-09-01 Thread Rick Reumann
On 9/1/05, Zhong Li [EMAIL PROTECTED] wrote: Back to the topic, the key thing is if you want use JSF, you have to keep database operation far from JSF beans. I agree totally, but this doesn't help much with this question too much. I'm using a ListDataModel just to display the stuff in

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 a

Re: url query string parameters as input to JSF action - not possible??

2005-08-30 Thread Rick Reumann
On 8/30/05, Craig McClanahan [EMAIL PROTECTED] wrote: Why, out of curiousity, do you insist on getting your hands dirty with low level HTTP protocol details like dynamically constructing URL patterns? Why, out of curiousity, do you insist on using GET queries (and thereby throw away nearly

Concerning DataModel usage plus overhead?

2005-08-29 Thread Rick Reumann
I haven't really used the DataModel class yet, but as described by Brendan in another thread, I have a couple of questions about the concepts behind it... First a simple example... Want to display on a page a list of employees. User should be able to click on employee and brought to an edit page

Re: url query string parameters as input to JSF action - not possible??

2005-08-29 Thread Rick Reumann
On 8/28/05, Sverker Abrahamsson [EMAIL PROTECTED] wrote: Hi I'm new to JSF so this may be a stupid question but I've been reading a lot of tutorials and parts of the spec and come to the conclusion that JSF only support forms with method=post. The only motivation for that I've seen is

Re: url query string parameters as input to JSF action - not possible??

2005-08-29 Thread Rick Reumann
On 8/29/05, Craig McClanahan [EMAIL PROTECTED] wrote: That is indeed a GET request.You can fire a GET request at a JSPpage just fine (including query parameters) ... the thing you give upis state restoration, since your request won't include any stateinformation. But what's the most efficient

Re: Concerning DataModel usage plus overhead?

2005-08-29 Thread Rick Reumann
On 8/29/05, Kevin Galligan [EMAIL PROTECTED] wrote: If you use the standard dataTable, you have tokeep your values in session between the time you show the list and whenthey click on the value.If you get the values from the db each time,you open the possibility that the index will have changed,

Re: Concerning DataModel usage plus overhead?

2005-08-29 Thread Rick Reumann
On 8/29/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: Yes, you could do your own parameter passing. It's just that JSF offers the DataModel abstraction such that, whenthe userclicks on your link, your program just has to askDataModel for rowIndex to locate the row that was

using browser back button with MyFaces examples creates problems..

2005-08-29 Thread Rick Reumann
Example... Load up exmaples http://localhost:8080/myfaces-examples/home.jsf , click on examples -- components -- Master Detail example. click Austria use browser back button Select another menu option like Selectboxes use browser back button Click on Master Detail example --- result ugly

Re: Concerning DataModel usage plus overhead?

2005-08-29 Thread Rick Reumann
On 8/29/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: You set up employee to have a managed reference toemployees. Then, once control reaches Employee.edit(),its reference to employees will have been set up already by JSF. But employee has its managed bean reference to employee

Re: Concerning DataModel usage plus overhead?

2005-08-29 Thread Rick Reumann
On 8/29/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: I probably just got confused by your naming convention. Can you repeat your question with clearer names? Sure. Let me change the names and concepts.. First page you come to is a list of cars on cars.jsp. Cars is populated as

Re: Concerning DataModel usage plus overhead?

2005-08-29 Thread Rick Reumann
, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: Can you send a snippet of your faces-config.xml showing your managed bean definitions and your navigations, just to make sure I have the picture right? - Brendan -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Monday

Re: Concerning DataModel usage plus overhead?

2005-08-29 Thread Rick Reumann
() method, you'd have something like: public String getCar() { Car selectedCar = (Car) getCarListBean().getCarModel().getRowData(); ... } Hope that helps. - Brendan -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Monday, August 29, 2005 4:02

Re: Dealing with links/buttons to fire off an action? confusion on how to set this up

2005-08-27 Thread Rick Reumann
: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Friday, August 26, 2005 4:41 PMTo: MyFaces DiscussionSubject: Re: Dealing with links/buttons to fire off an action? confusion on how to set this up On 8/26/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: However, I believe

Re: How to call a method in the backing bean from a JSF page

2005-08-26 Thread Rick Reumann
I did it by just making the managedBean name the same as the jsp. So in your case: managed-bean managed-bean-namefooBar/managed-bean-name On 8/26/05, Saul Qunming Yuan [EMAIL PROTECTED] wrote: This sounds like it may work for me. I never used Shale, so how do I mapthe backingbean from fooBar to

Dealing with links/buttons to fire off an action? confusion on how to set this up

2005-08-26 Thread Rick Reumann
I was wondering how to d something that I would think would be a common situation, yet I'm not finding any examples at the moment... scenario:... list of employees. You want to be able to click on one of the employees and go to an editEmployee backing bean method that would retrieve the employee

Re: Dealing with links/buttons to fire off an action? confusion on how to set this up

2005-08-26 Thread Rick Reumann
On 8/26/05, Patel, Hitesh (Exchange) [EMAIL PROTECTED] wrote: You can pass the parameter as you have done and get the value of the parameter as follows FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(empID); I would guess this common to have to

Re: Dealing with links/buttons to fire off an action? confusion on how to set this up

2005-08-26 Thread Rick Reumann
On 8/26/05, Mike Kienenberger [EMAIL PROTECTED] wrote: You can also use dataTable.getRowData(), provided your model data isconsistent, and then you don't need to create or pass a parameter.public void editRecord(ActionEvent event){dataStore.editRecord (dataTable.getRowData());} Can you explain

Re: Dealing with links/buttons to fire off an action? confusion on how to set this up

2005-08-26 Thread Rick Reumann
On 8/26/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: However, I believe that, using this mechanism, there's no real way to get around usingsomething liket:saveState or having a session-scoped bean. Just out of curiosity, what is the objection to using t:saveState? Well I haven't

Re: How to call a method in the backing bean from a JSF page

2005-08-25 Thread Rick Reumann
On 8/24/05, Saul Qunming Yuan [EMAIL PROTECTED] wrote: Thanks for your response. I guess I didn't make me clear here. My questionis how to call a method in the backing bean from a JSF page withoutrendering out anything to the screen. I would suggest using Shale with JSF. Use the Shale jars and

I know annoying when someone posts a stacktrace, but any help ?

2005-08-25 Thread Rick Reumann
I feel stupid posting this, but his stack trace doesn't seem to help me pinpoint why my navigation to a follow up page after a backingbean method is invoked is not working. (I've checked the spelling this time, and the employeeForm.jsp is in the root dir)... navigation-rule navigation-case

Re: I know annoying when someone posts a stacktrace, but any help ?

2005-08-25 Thread Rick Reumann
On 8/25/05, David Haynes [EMAIL PROTECTED] wrote: Rick Reumann wrote: I feel stupid posting this, but his stack trace doesn't seem to help me pinpoint why my navigation to a follow up page after a backingbean method is invoked is not working. (I've checked the spelling this time

Re: I know annoying when someone posts a stacktrace, but any help ?

2005-08-25 Thread Rick Reumann
, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: Did you wrap your JSF code in f:view.../f:view? - Brendan -Original Message-From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 25, 2005 9:01 AMTo: MyFaces DiscussionSubject: I know annoying when someone

Re: I know annoying when someone posts a stacktrace, but any help ?

2005-08-25 Thread Rick Reumann
up).On 8/25/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: Did you wrap your JSF code in f:view.../f:view? - Brendan -Original Message-From: Rick Reumann [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 25, 2005 9:01 AMTo: MyFaces DiscussionSubject: I know

Re: I know annoying when someone posts a stacktrace, but any help ?

2005-08-25 Thread Rick Reumann
Thanks Craig. That was the problem.On 8/25/05, Craig McClanahan [EMAIL PROTECTED] wrote: On 8/25/05, Craig McClanahan [EMAIL PROTECTED] wrote: On 8/25/05, Rick Reumann [EMAIL PROTECTED] wrote: I do have the shale fliter in place and it is working because the prerender is being called in my

Any implementations of DataTable let you use a Map?

2005-08-25 Thread Rick Reumann
Are there any components that let me build a DataTable from a Map? (currently it's sort of a pain having to covert my Map to a List to be used by the DataTable). -- Rick

Re: confusion on best practices in regard to a VO in BackingBean

2005-08-24 Thread Rick Reumann
On 8/24/05, Sean Schofield [EMAIL PROTECTED] wrote: You could also use a facade pattern.We have one in our Struts appand we're planning on keeping the facade when we move to JSF.Before you had ...Facade::getInvoiceInvoiceForm::setInvoice, etc. InvoiceAction::executeNow you have

Re: confusion on best practices in regard to a VO in BackingBean

2005-08-24 Thread Rick Reumann
On 8/24/05, David Haynes [EMAIL PROTECTED] wrote: Rick Hightower does this in his Clearing the FUD about JSFhttp://www-128.ibm.com/developerworks/java/library/j-jsf1/He has the XyzBeand and XyzController with the controller containing: XyzBean xyzBean = new XyzBean();and then supporting the

Re: confusion on best practices in regard to a VO in BackingBean

2005-08-24 Thread Rick Reumann
On 8/24/05, David Haynes [EMAIL PROTECTED] wrote: I'm confused here. If the EmployeeBean object is embedded in theEmployeeController and all the methods of EmployeeBean are available viathe EmployeeController, why do you need the EmployeeBean directly? Well for example after you used your backing

Re: confusion on best practices in regard to a VO in BackingBean

2005-08-24 Thread Rick Reumann
On 8/24/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: Our CalculatorBean would be a simple JavaBean containing firstNumber,secondNumber, and result.Our CalculatorAction class would have a field called calcBean (and itsgetter and setter), which is set by JSF, plus the methods add() and

Re: confusion on best practices in regard to a VO in BackingBean

2005-08-24 Thread Rick Reumann
On 8/24/05, David Haynes [EMAIL PROTECTED] wrote: [in employeeBackingBean]...EmployeeBean eb = new EmployeeBean();...public String getName() {return eb.getName();}...So, all the elements of the EmployeeBean are available via the employeeBackingBean in an unambiguous way. Or am I still missing the

Does a doc exist describing the MyFaces features?

2005-08-24 Thread Rick Reumann
Someone mentioned using x:dataList in place of JSTL for each. I'm curious, is there a document that shows a list of all the different features MyFaces supplies? I know the MyFaces example app shows a lot (maybe all?), but it would be nice to see all these features and a quick example of usage in a

Re: confusion on best practices in regard to a VO in BackingBean

2005-08-24 Thread Rick Reumann
On 8/24/05, David Haynes [EMAIL PROTECTED] wrote: So, if you have already created an instance of employeeBackingBean (andit is defined as having a session scope), it should be available for allsubsequent pages in the session. Correct. But I wouldn't think I'd need to have to give my backing bean

was Re: confusion on best practices in regard to a VO in BackingBean

2005-08-24 Thread Rick Reumann
On 8/24/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: (BTW, if you need something more than request scope but less than session scope, use the handy t:saveState tag that MyFaces gives you to carry along the bean for as many pages as you need to. Then you can simply declare it with

Any idea what I'm doing wrong here?

2005-08-24 Thread Rick Reumann
I'm sort of stumped since the error logs aren't revealing much to me. I'm just working on page flow test and I'm on 'emloyees.jsp' and I'm clicking on a button that should access another managed bean and then forward me to 'employeeForm.jsp'. Error first then some relevant souce code to follow:

Re: Any idea what I'm doing wrong here?

2005-08-24 Thread Rick Reumann
: empoloyees.jsp and empoloyeesForm.jsp in the faces-config. -MattOn 8/24/05, Rick Reumann [EMAIL PROTECTED] wrote: I'm sort of stumped since the error logs aren't revealing much to me. I'm just working on page flow test and I'm on 'emloyees.jsp' and I'm clicking on a button that should access another

Re: confusion on best practices in regard to a VO in BackingBean

2005-08-24 Thread Rick Reumann
On 8/24/05, Slawek [EMAIL PROTECTED] wrote: but Rick says in his article that:view is only jsp page, controler is backing bean and model has businesslogic I take it by article you mean 'e-mail post' ? I don't think I posted any comments on JSF architecture since I obviously am just learning it

Re: Populating a web page?

2005-08-23 Thread Rick Reumann
I think this is where something like Shale will help - having your backingBean implement ViewControlloer http://struts.apache.org/shale/features.html#view You would use the prerender() method to populate your form with what you needed. I'm new to all of this (JSF/Shale) but in the process of

Having trouble with JSTL inside JSF

2005-08-23 Thread Rick Reumann
I understand the below won't work as is without the backing bean put in scope with a useBean construct...but I'm more curious why I can not get c:out to evaluate (or really I should also just be able to use ${..} without the c:out since using tomcat5). What I end up getting is the literal text

confusion on best practices in regard to a VO in BackingBean

2005-08-23 Thread Rick Reumann
For sake of this discussion imagine a case where user needs to click on a button to get and invoice based off an invoice ID. Now coming from struts I'm used to going to a 'getInvoice' dispatch method which would return to me an Invoice object (after making a backend call) and then that Invoice

Re: confusion on best practices in regard to a VO in BackingBean

2005-08-23 Thread Rick Reumann
On 8/23/05, CONNER, BRENDAN (SBCSI) [EMAIL PROTECTED] wrote: As another alternative, the practice we've been following is to have anXyzAction class and a separate XyzBean class.The Action class has amanaged reference to the Bean class and has all the logic in it.The Bean class is just a straight

feel like an idiot... basic tiles question

2005-08-19 Thread Rick Reumann
Man, this is annoying since I know this has to be simple. I'm looking at both the Core JSF book and the MyFaces tiles example application. Question... How is the definition name in your tiles defiition related to your 'to-view-id'? I don't see this documented anywhere. For example in the

Re: scope for backing beans

2005-02-14 Thread Rick Reumann
Craig McClanahan wrote the following on 2/11/2005 11:45 AM: My recommendation is to use request scope for backing beans in a JSF application, storing stuff in session and appiication scope only where it's needed: * Session scope for per-user state that changes, or for passing data across

Re: scope for backing beans

2005-02-14 Thread Rick Reumann
Sean Schofield wrote the following on 2/14/2005 11:23 AM: With the application scope beans in JSF I have been toying with the idea of using them instead. I was thinking that it might be possible to invalidate the bean (by setting the value to null) whenever a new item is added. I haven't worked

Re: Plans to include at least parts of MyFaces into JSF?

2005-01-12 Thread Rick Reumann
Sean Schofield wrote the following on 1/12/2005 11:12 AM: There is also a JSF mailing list on Sun's java forums that seems to have some of the spec people lurking around. It still amazes me that there is no regular mailing list for JSF. I hate those forum approaches. Email is so much more

Re: Tiles Performance

2005-01-11 Thread Rick Reumann
Martin Marinschek wrote the following on 1/11/2005 11:40 AM: Interesting - we just got an OutOfMemoryException and sluggish performance in our application when we were rendering 4000+ Data rows in a datatable. Just a heads-up, do NOT use SiteMesh in it's current state if you are going to return