Thank Aaron,

Will try this out and let you know.

Tim

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Aaron Bartell
Sent: Tuesday, January 08, 2008 1:54 PM
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] EGL onprerender function using Forward statement issue

Hi Tim,

I use a commandLink within a dataTable to accomplish what you are trying to
do. See the relative portions of code below.

<x:dataTable var="user" value="#{UserCtl.userListDataModel}">
...
<h:commandLink id="edit" action="#{UserCtl.updateUserPage}" value="edit" />

...

public String updateUserPage() {
curUsr = (User) UIHelper.getReqMapObj("user");
return "edit";// This "edit" is mapped to the useredit.jsf page in
the faces-config.xml file. Which is how the redirect happens. I use a
single controller for multiple screens which is why I am storing the
selected row in curUsr which will then be used on the useredit.jsf screen.
}

...

public static Object getReqMapObj(String obj) {
return
FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get(o
bj);
}

HTH,
Aaron Bartell
http://mowyourlawn.com


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of tim
Sent: Tuesday, January 08, 2008 11:19 AM
To: 'Web Enabling the AS400 / iSeries'
Subject: Re: [WEB400] EGL onprerender function using Forward statement issue

Walden,

I am using ajax on this page for other links. I was hoping to use the same
logic for 2 other links I have on the page.

I don't need to use ajax to perform this function. I could use <a
href=newpage.faces?user=tim> in html to perform what I need to do, but not
sure how to do this with EGL.

So, the "forward" statements use in the onprerender function is not really
the issue if I can find out how to do this with egl/jsf.

Tim



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Walden H. Leverich
Sent: Tuesday, January 08, 2008 12:03 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] EGL onprerender function using Forward statement issue

Tim,

Why would you use Ajax for that at all? That's basic web, load a list of
rows where each row has a link (or group of links).

Now, if you had two divs on the page, say left-hand and right-hand you
could use Ajax to update the right-had div w/the appropriate info based
on what was clicked on the left-hand div (almost frame-like), and ever
auto-refresh the right-hand div every xxx seconds. But that's not what
you're looking for I don't think.

-Walden


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.