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:
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]>
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
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@
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
? 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
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.
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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),
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
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
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
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
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
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
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
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
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: '
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
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
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
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
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
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
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.
>
>
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
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:
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
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
44 matches
Mail list logo