I believe that the only reason the example needs to access the session is to simulate database access. Ordinarily, one wouldn't have to. The only thing you'd really have to do is get the passed parameter value from the component.
- Brendan -----Original Message----- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 2:09 PM To: MyFaces Discussion Subject: Re: looking for a little crud sample Interesting, notice how the approach in the tutorial uses commandLink with the parameters being passed in the link. It makes a lot of sense to me to do it this way, but it seems that JSF doesn't really encourage the applications to be designed this way. Notice how you have to do this kind of stuff... /* * Get the session map of the external context */ Map session = FacesContext.getCurrentInstance().getExternalContext().getSessionMap(); /* * Find the UIParameter component by expression */ UIParameter component = (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 > > > > For others who need to begin with crud app ;) > > > > 2005/9/2, hicham abassi <[EMAIL PROTECTED]>: > > > Hello, > > > > > > I have problems to design a little crud into jsf. > > > I don't know how to pass from listPage to editPage. > > > Can someone explain the best way to pass id from a datatable to > > > another page for editing, or give me url for a little crud. > > > > > > Thanks. > > > > > > > > > -- > > > > hicham ABASSI > > [EMAIL PROTECTED] > > > > > -- > Rick > -- Rick