RE: savestate question

2006-02-06 Thread Tom Butler
rence scopebean on page2 you will get the values from page1, before the value of the submit are applied to the bean (if at all)." How do I position the t:saveState within the 2nd .jsf page so that will be restored at the beginning of the phase cycle? thanks -Original Message----- From:

RE: savestate question

2006-02-06 Thread Tom Butler
means that the information is stored with the state associated to a page. Now if you change to another page, and come back to the first one, the state of the first page has been lost, and the state of the saveState as well. regards, Martin On 2/6/06, Tom Butler <[EMAIL PROTECTED]>

saving state on client and bean constructors?

2006-02-06 Thread Tom Butler
Can anyone please help or point me to example to show how to set up constructor on beans or any other changes required to java backing beans when state_saving_method is set to the client?   I just switched my web.xml to save state on the client:          javax.faces.STATE_SAVING_ME

RE: browser back button in JSF?

2006-02-05 Thread Tom Butler
x27;client'. javax.faces.STATE_SAVING_METHOD client ... or start using a nightly build, as MyFaces has fixed this. Dennis Byrne >-Original Message- >From: Tom Butler [mailto:[EMAIL PROTECTED] >Sent: Sunday, February 5, 2006 11:06 PM >To: users@

browser back button in JSF?

2006-02-05 Thread Tom Butler
Can anyone point me to a wiki or other to help me understand  how to handle the user pressing  the browser back button in a JSF application?   I’ve read this is a weakness of JSF, and from the testing I’ve done it does appear to be a problem.  Looking for any ways to gracefully handle thi

RE: savestate question

2006-02-05 Thread Tom Butler
?  Why would I need to re-serialize the bean again on the second page?  Anyways, if this works I’ll leave it as is – I’d just like to understand the ‘why?’.   From: Tom Butler [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 05, 2006 10:09 PM To: users@myfaces.apache.org Subject: t:savestate

t:savestate question

2006-02-05 Thread Tom Butler
Within .jsp page I use t:saveState to save the backing bean.   t:saveState works to some degree, because when I remove it, t:datascroller can not display the datamodel (property on backing bean) when I scroll from the first page to the second page - with t:saveState enabled, this works.

myfaces & Oracle ADF (or other component libraries)

2006-02-05 Thread Tom Butler
Can I use Oracle ADF components together within a MyFaces application?  Same question for other component libraries?  Or, are these mutually exclusive (use a different front controller)?   Also, anyone know when Tobago first release will be?  I was looking at their website – some pretty

RE: returning to same position within a datascroller?

2006-02-05 Thread Tom Butler
public int getPageindex() { return pageindex;  } public int getDisplayrows() {  return displayrows; }     3.  Detail page (linked to from page containing datatable) //  when return to datatable page, will be placed at same position within the datascroller   // navigation specified in faces-c

returning to same position within a datascroller?

2006-02-04 Thread Tom Butler
Is it possible to return to the same position within a datascroller after leaving the page and returning (i.e., datatable displays a large result set; user has scrolled through the data and is on the 3rd page of data; user selects a record which links them to a detail page; now want to retu

need help - t:savestate not saving datamodel values

2006-02-03 Thread Tom Butler
I’m having trouble getting t:savestate to save the datamodel contents:   1. “Master View page” snippet – search page displays results in a datatable // searchisp bean is backing bean in request scope; dm_searchresults is datamodel property on bean > // search form // display sear

RE: Returning to same page within t:dataScroller?

2006-02-01 Thread Tom Butler
ubject: Re: Returning to same page within t:dataScroller? Hi, I don't know it's the best practice around, but Use binding with f:view tag to your backing bean, write the Object into your session and restore it from there Regards, Onur On 2/1/06, Tom Butler <[EMAIL PROTECTED]> wr

RE: Returning to same page within t:dataScroller?

2006-01-31 Thread Tom Butler
words) cleared and no datatable displayed (same as when user first enters the page.)   Thanks for any help with this. Tom       From: Tom Butler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 31, 2006 11:23 PM To: 'MyFaces Discussion' Subject: Returning to same page within

RE: can anyone see problem with navigation code?

2006-01-31 Thread Tom Butler
Fixed this issue.   From: Tom Butler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 31, 2006 11:28 PM To: 'MyFaces Discussion' Subject: can anyone see problem with navigation code?   On the ‘myisp.jsp’ page below I include a command button that when pressed sho

can anyone see problem with navigation code?

2006-01-31 Thread Tom Butler
On the ‘myisp.jsp’ page below I include a command button that when pressed should return the user to the ‘searchisp.jsp’ page.  Instead, nothing happens when the button is pressed (stays on myisp.jsp page) – can anyone see what may be wrong?  I also tried a commandLink which did not work ei

Returning to same page within t:dataScroller?

2006-01-31 Thread Tom Butler
I have a page displaying database results using a t:dataTable and a t:dataScroller – when the user selects one of the records, they are taken to a separate page to show the details.     At the bottom of the details page, I want to place a button to link back to the exact same position wit

having trouble with navigation

2006-01-29 Thread Tom Butler
On the ‘myisp.jsp’ page below I include a command button that when pressed should return the user to the ‘searchisp.jsp’ page.  Instead, nothing happens when the button is pressed (stays on myisp.jsp page) – can anyone see what may be wrong?  I also tried a commandLink which did not work ei

RE: form fields clearing on validation errors

2006-01-27 Thread Tom Butler
Issue Resolved - had error in the .jsp page (had a misplaced tag) -Original Message- From: Tom Butler [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 10:43 PM To: 'MyFaces Discussion' Subject: RE: form fields clearing on validation errors I'm not sure how t:

RE: form fields clearing on validation errors

2006-01-27 Thread Tom Butler
These model values are in request scope, right ? Dennis Byrne >-Original Message- >From: Tom Butler [mailto:[EMAIL PROTECTED] >Sent: Friday, January 27, 2006 12:28 AM >To: ''MyFaces Discussion'' >Subject: RE: form fields clearing on validation errors > >P

RE: form fields clearing on validation errors

2006-01-26 Thread Tom Butler
the .jsf form calls the getters in the backing bean which return null values (values not yet set.)  Is this interpretation correct?  If so, what techniques can I use to maintain the data inputted by the user without have the form fields clearing?       From: Tom Butler [mailto:[EMAIL

form fields clearing on validation errors

2006-01-26 Thread Tom Butler
I am using validators within my form – when a validation error occurs, all the form fields are cleared when the validation error messages are displayed?  If there are not validation errors, everything is passed to the bean correctly.  The issue only occurs when there is a validation error a

no renderer found for component?

2006-01-26 Thread Tom Butler
I have a very straightforward .JSP page that uses myfaces/tomahawk –when the page is loaded in Tomcat, I receive the following warnings – am I missing a configuration item or what are the common causes?     Jan 26, 2006 10:55:43 PM org.apache.catalina.core.ApplicationContext log INFO: N

RE: Newbie questions - database calls and caching data

2006-01-20 Thread Tom Butler
Civici – thanks for the information, this is helpful.   I have questions about the methods to read the DB: trackList = getDBHelper().readTrackListFromDB();   –   are these methods in your request-scope backing bean?  or are they methods in another object – if so, is it a managed-re

application vs. request scope and performance

2006-01-19 Thread Tom Butler
The initial page of my app is a search page.  The app may have up to 100+ concurrent users.   I was considering whether it would be better for performance to set the backing bean for the search page within the application scope (bean is multi-threaded and same bean accessed by all users),

RE: Pattern for shared data access object?

2006-01-17 Thread Tom Butler
n Tue, 2006-01-17 at 21:00 -0500, Tom Butler wrote: > Where I need help understanding is how to set up the scope for the > managed beans and data access object. Currently, I have the backing > bean within the session scope (using the facesconfig.xml file). My > main question is how to

Pattern for shared data access object?

2006-01-17 Thread Tom Butler
I have a question / need help understanding how to configure backing bean and model objects so that memory and object creation/deletion is done as efficiently as possible.    1.  I have a .jsf page with a form and a commandbutton that submits the form inputs to a backing bean (enrollispb

RE: dataScroller

2006-01-12 Thread Tom Butler
Is there an easy way to further control the datascroller functionality – specifically, not display the ‘previous’ or ‘first’ control if on the first page of data (and also not display the ‘next’ or ‘last’ control if on the last page of data)?   From: Miller, John [mailto:[EMAIL PR

RE: dataScroller

2006-01-12 Thread Tom Butler
Is there an easy way to further control the datascroller functionality – specifically, not display the ‘previous’ or ‘first’ control if on the first page of data (and also not display the ‘next’ or ‘last’ control if on the last page of data)?   From: Miller, John [mailto:[EMAIL PR

RE: Newbie questions - database calls and caching data

2006-01-08 Thread Tom Butler
also do the read during backing bean initialisation, but I don't really see the point of that. I vaguely remember someone noting that Shale has utilities to help managed database access, but don't know much about that. Regards, Simon On Sat, 2006-01-07 at 23:23 -0500, Tom Butl

RE: referencing a managed bean property problem

2006-01-07 Thread Tom Butler
set the getter/setters for the employee member properties in the employee class file? I'm not sure what is meant by a valueobject and if this is affecting my issue below (note there was not any documentation for valueobject from the link). -Original Message----- From: Tom Butler [mailto:[EM

RE: referencing a managed bean property problem

2006-01-07 Thread Tom Butler
use it is an action listener, it will fire *before* the action. It is better to do the second part in an action because it involves a db transaction; this gives you navigational opportunities in the event of a problem, something not available in a listener. Does that help? >-Original Mess

RE: Newbie questions - database calls and caching data

2006-01-07 Thread Tom Butler
Chapter 10 within ‘Core Java Server Faces’ (david geary) covers database access – that may be a good place to start, especially if you are using Tomcat since that is the web container used in the examples – this chapter describes connection pooling which is useful if you have multiple users

RE: referencing a managed bean property problem

2006-01-04 Thread Tom Butler
it involves a db transaction; this gives you navigational opportunities in the event of a problem, something not available in a listener. Does that help? >-Original Message- >From: Tom Butler [mailto:[EMAIL PROTECTED] >Sent: Wednesday, January 4, 2006 12:57 AM >To: '&#

RE: referencing a managed bean property problem

2006-01-03 Thread Tom Butler
e: referencing a managed bean property problem > >There is a wiki article on this. My favorite is #2. > >>-Original Message- >>From: Tom Butler [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, January 4, 2006 12:13 AM >>To: ''MyFaces Discussion

RE: referencing a managed bean property problem

2006-01-03 Thread Tom Butler
a wiki article on this. My favorite is #2. > >>-Original Message- >>From: Tom Butler [mailto:[EMAIL PROTECTED] >>Sent: Wednesday, January 4, 2006 12:13 AM >>To: ''MyFaces Discussion'' >>Subject: RE: referencing a managed bean proper

RE: referencing a managed bean property problem

2006-01-03 Thread Tom Butler
Simon, I have a follow up question to this: I have a .jsf page that displays a datatable (listdatamodel) showing rows of names. At the end of each row I display a commandlink with the value 'select' that allows the user to select a name. After they select a name, I want to take them to a second

RE: Data Table Sorting still not working

2006-01-01 Thread Tom Butler
As I mentioned earlier, I'm also not a fan of methods that mysteriously manipulate the state of an object, like the "sort" methods do, so it would be nice to change that too. Regards, Simon On Sun, 2006-01-01 at 17:52 -0500, Tom Butler wrote: > Thanks for your help with this

RE: HURRAY!!! SORTING IS WORKING!!!!

2006-01-01 Thread Tom Butler
Mike - I have 'automatic build' set with myEclipse, however, I occasionally shutdown Tomcat, do a Proect|Clean, and manually re-deploy (force a re-deploy) just to be sure the latest code is deployed to Tomcat. I've only experienced one time so far trouble with myEclipse updating the deployment dir

GUI Design Input

2006-01-01 Thread Tom Butler
This is more of a subjective design question, but I thought I would put it out to the group for any input:   Here is what I’m trying to accomplish: user searches the database (using keywords and user location (zip code)) search results (list of data columns from the database

RE: Data Table Sorting still not working

2006-01-01 Thread Tom Butler
the initial sort column -- nothing > to do with me clicking a particular colulmn. > > My up arrow is always pointed down and it always stays on the first > column even when I click the second "sortable" column. > > Also, my getSortColumn() never gets called. > >

RE: Data Table Sorting still not working

2006-01-01 Thread Tom Butler
Thanks Geeta – this was very helpful to me in getting my datatable column sort functionality to work.   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 30, 2005 11:41 PM To: MyFaces Discussion Subject: RE: Data Table Sorting still not working   Mik

RE: Paging Control

2006-01-01 Thread Tom Butler
Mike, I was able to get the paging control to work fairly easily (much easier than the column sort which took a few days) - here's my code that I leveraged from the examples:

RE: Data Table Sorting still not working

2005-12-30 Thread Tom Butler
ts talk about a "backing bean". I think this is really the same, but, yet another question mark. Sigh I'll write again tomorrow with my results from running, 'er, attempting to run, the source example. Write with any results you get too.     Mike Tom Butl

RE: Data Table Sorting still not working

2005-12-30 Thread Tom Butler
Mike – are you calling the sort method from within your getUpdates getter method in your bean (I’m assuming Updates is your arraylist/datamodel since you have value ="#{TD.updates}" ?   Note I’m not sure if this is needed or not – you are ahead of where I am with regards to getting this w