Using a commandLink with the id/PK is not an option for navigation to the detail. First, it has to be passed as a hidden field over the HTML page - HTTP request. How are you going to get at that argument? (we solved this, but it is ugly). Second, you still go to the same "viewId" when clicking a command link, and this means all components for all rows in the datamodel are still accessed for all phases on the submit. So you still need the data, and iterating over large collections takes oodles of time.

We're doing this too now, but actually, it doesn't solve didley.

We will be looking at using outputLink in a few days. This WILL mean that the URL changes, and that the id/PK will be visible to the end user.

On 1 Sep 2005, at 21:44, Rick Reumann wrote:

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 the the table
since everyone seemed to agree that using DataModel and getting out
the selected row is better than my initial plan to simply pass the
"id/primary key" from a commandLink on the row you want to click on.

Zhong,

I'm confused what you are stating, do you not use the DataModel
approach? How do you get from your master list of items to the edit
detail page?


<x-tad-smaller>Met vriendelijke groeten,

Jan Dockx
</x-tad-smaller><x-tad-smaller>
PeopleWare NV - Head Office</x-tad-smaller>
<x-tad-smaller>
Cdt.Weynsstraat 85
B-2660 Hoboken
Tel: +32 3 448.33.38
Fax: +32 3 448.32.66 </x-tad-smaller>
<x-tad-bigger>
</x-tad-bigger>
<x-tad-smaller>
PeopleWare NV - Branch Office Geel</x-tad-smaller>
<x-tad-smaller>
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25</x-tad-smaller>
<x-tad-bigger>
</x-tad-bigger>
<x-tad-smaller>
http://www.peopleware.be/
</x-tad-smaller><x-tad-smaller>http://www.mobileware.be/</x-tad-smaller>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to