Thanks Brendan, the description of using t:saveState sounds great. I look forward to trying it out shortly.
I'm still a bit confused on how you deal with links that go to
backing bean methods for standard links/buttons. As an example, imagine
the header on a page [..]=links...
John Doe [edit
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
You can pass the parameter as you have
done and get the value of the parameter as follows
FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(empID);
From: Rick Reumann
[mailto:[EMAIL PROTECTED]
Sent: Friday, August 26, 2005 2:49
PM
To:
You can also use dataTable.getRowData(), provided your model data is
consistent, and then you don't need to create or pass a parameter.
public void editRecord(ActionEvent event)
{
dataStore.editRecord(dataTable.getRowData());
}
On 8/26/05, Patel, Hitesh (Exchange) [EMAIL
Do you know of any way to do this if the underlying DataModel
is in a property of a request scoped bean and the you
couldn't use preserveDataModel=true, t:saveState, or any
other things beyond the spec itself ? I am in such a
situation and the only solution I see at this time is using
Nothing comes to mind, but allowing the end-user to specify the target
record by key (generally a database primary key) may cause security
issues. You'll have to validate the suitability of key provided when
used.
On 8/26/05, Dennis Byrne [EMAIL PROTECTED] wrote:
Do you know of any way to do
I found a way to address the security issues when the
navigation path is to and from the same JSP . I use a
converter where getAsString encrypts and encodes the id on
the way out, getAsObject decodes and decrypts the string
coming in. This however can't be used when navigating from
one view
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
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
Title: Message
There's a goodexample of getting row-specific events inthe
O'Reilly book JavaServer Faces (Hans Bergsten), pp. 173 - 178. The example
application throughout the book is to build an expense report application, and
it makes use of the summary-detaillinks you refer to.
However,
Not as long as the data model is contained in your component tree or
session rather than in some global location.
On 8/26/05, Rick Reumann [EMAIL PROTECTED] wrote:
On 8/26/05, Mike Kienenberger [EMAIL PROTECTED] wrote:
You can also use dataTable.getRowData(), provided your model data is
I'm a fan of the Struts ActionForm. If you wanted to populate an object with
query parameters, you might think about creating a managed bean and use the
setter injection stuff.
managed-bean
managed-bean-nameformBean/managed-bean-name
managed-bean-classxxx.FormBean/managed-bean-class
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
Title: Message
t:saveState is trivially simple to use, but it's a Godsend.
Wherever you want the state of a bean to be maintained across requests, just
declare the bean with request scope andput a t:saveSave
value="#{myBean}" on the pages that use it. The bean's state will be
maintained
14 matches
Mail list logo