|
It loooks like the cmdkeys.jsp is ignoring the parameter. It has no effect on display. If you look at cmdkeys.jsp it is looking to see if you are in the AppArea and then doing a request.getAttribute to get the height, width, count, and title. Otherwise, it is using the WFCmdkeys bean to retrieve and set those values. On top of that i am not sure if i am in the AppArea. Thanks for being persistant Mike. Below is a copy of my pagebuilder.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"> <%/* The @page directive sets the charset to be UTF-8. This is required for WebFacing as all data is supplied to the browser in UTF-8 encoding. */%> <%@ page contentType="text/html; charset=utf-8" %> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <META http-equiv="Page-Enter" CONTENT="RevealTrans(Duration=0)"> <%/* The next line load the style sheet which will give this page it's colour and images. The prefix scriptlet to the href part of the tag will resolve to the relative webapp name. The first line is used by the editor and is commented out at runtime. */%> <%/* %> <link rel="stylesheet" type="text/css" href="../sage.css"> <%*/%> <link rel="stylesheet" type="text/css" href="styles/chrome/sage.css"> <META name="GENERATOR" content="IBM WebSphere Studio"> <title><%=request.getAttribute("ApplicationTitle")%></title> </head> <body> <table id="<%=(String)session.getAttribute("UniqueId")%>_Table" border="0" cellspacing="0" cellpadding="0" frame="box" height="100%" width="820"> <tbody> <tr> <td class=headc colspan=5 rowspan=1 width="99%" height="69"> <%/* From the request retrieve a text string that represents the title of the application. */%> <%=request.getAttribute("ApplicationTitle")%></td> </tr> <tr> <td class=theside colspan=1 rowspan=1 width="155" height="100" valign="top"> <!-- Include Client Script JSP --> <jsp:include page="/webfacing/jsp/common/html/ClientScript.jsp" flush="true"/> <%/* Here is the JSP that will insert the active command keys. */%> <!-- Include Command Keys JSP --> <jsp:include page="/webfacing/styles/chrome/html/CmdKeys.jsp" flush="true"/></td> <td class=theapp colspan=3 rowspan=1 width="650" height="100" valign="top"> <%/* This jsp include brings in the area that represents the webfaced application's screen. The apparea.css is included at runtime by ScreenBuilder.jsp. */%> <!-- Include Screen Builder JSP --> <jsp:include page='<%=(String)request.getAttribute("SB_Format_Path")%>' flush="true"/> <!-- Include Command Keys JSP --> <%/* request.setAttribute("count", "4"); */%> <jsp:include page="/webfacing/styles/chrome/html/CmdKeys.jsp?count=4" flush="true"> </jsp:include> </tr> <tr> <td class=theside colspan=1 rowspan=1 width="155" height="60%" valign="bottom" align="center"></td> <td class=theapp colspan=3 rowspan=1 width="650" height="60%" valign="top"> </td> </tr> </tbody> </table> </body> </html> Michael P. Gibbons Manager of Programming & Technical Services MARYWOOD UNIVERSITY 2300 Adams Ave. Scranton, PA 18509 -----Original Message----- From: Mike Hockings [mailto:hockings@xxxxxxxxxx] Sent: Wednesday, October 13, 2004 10:59 AM To: Websphere Development Studio Client for iSeries Subject: RE: [WDSCI-L] Additional Command Keys display Oh, sorry, <insert big 'duh' here> it should be just a ? not the & <jsp:include page="/webfacing/styles/chrome/html/CmdKeys.jsp?count=4" flush="true"> Mike Mike Hockings, P.Eng. WebSphere Development Tools for AS/400 - CODE/Designer & WebFacing ! IBM Canada Ltd. Laboratory hockings@xxxxxxxxxx "Gibbons, Michael" <bmis04@xxxxxxxxxxxxxxx> Sent by: wdsci-l-bounces@xxxxxxxxxxxx 2004-10-13 10:20 Please respond to Websphere Development Studio Client for iSeries To "'Websphere Development Studio Client for iSeries'" <wdsci-l@xxxxxxxxxxxx> cc Subject RE: [WDSCI-L] Additional Command Keys display Hi Mike, I had already tried that and it didn't work. I tried what you provided and got the following error. Error 404: File not found: null Then i tried <jsp:include page="/webfacing/styles/chrome/html/CmdKeys.jsp?&count=4" flush="true"> (Notice the ?) and they still come out vertically. I am wondering if an "Attribute" needs to be set before execution. Something like <% request.setAttribute("count", "4"); %> or <% session.setAttribute("count", "4"); /%> But i am unsure of the syntax Thanks For Your Help! Michael P. Gibbons Manager of Programming & Technical Services MARYWOOD UNIVERSITY 2300 Adams Ave. Scranton, PA 18509 -----Original Message----- From: Mike Hockings [mailto:hockings@xxxxxxxxxx] Sent: Wednesday, October 13, 2004 9:54 AM To: Websphere Development Studio Client for iSeries Subject: RE: [WDSCI-L] Additional Command Keys display Yup, I think you should be able to use the count=4 kind of thing in the jsp include, it should would the same. What was WFCommandKeysBuilder is CmdKeys.jsp now So in your example below you could do <jsp:include page="/webfacing/styles/chrome/html/CmdKeys.jsp&count=4" flush="true"> Mike Hockings, P.Eng. WebSphere Development Tools for AS/400 - CODE/Designer & WebFacing ! IBM Canada Ltd. Laboratory hockings@xxxxxxxxxx "Gibbons, Michael" <bmis04@xxxxxxxxxxxxxxx> Sent by: wdsci-l-bounces@xxxxxxxxxxxx 2004-10-12 16:25 Please respond to Websphere Development Studio Client for iSeries To "'Websphere Development Studio Client for iSeries'" <wdsci-l@xxxxxxxxxxxx> cc Subject RE: [WDSCI-L] Additional Command Keys display Mike, Thanks for answering. I tried that and got the same result. I have also tried doinfg the following. <!-- Include Command Keys JSP --> <% request.setAttribute("count", "4"); %> <jsp:include page="/webfacing/styles/chrome/html/CmdKeys.jsp" flush="true"> But no luck. I have searched the latest "Mastering Webfacing" guide and i found this on page 154 <jsp:include page="/WFCmdKeysBuilder?height=50&width=50&count=2&title=no" flush="true"/> but i cannot find WFCmdKeysBuilder. I am running 5.1.2 Michael P. Gibbons Manager of Programming & Technical Services MARYWOOD UNIVERSITY 2300 Adams Ave. Scranton, PA 18509 -----Original Message----- From: Mike Hockings [mailto:hockings@xxxxxxxxxx] Sent: Tuesday, October 12, 2004 4:06 PM To: Websphere Development Studio Client for iSeries Subject: Re: [WDSCI-L] Additional Command Keys display What about doing something like the following: Open the pagebuilder.jsp with PageDesigner in WDSC click on the line with the <jsp:include... for the cmdkeys.jsp click on the "attributes" tab in the bottom right pane click on the add button add an attribute with the name of bCount (I think that's the right name) and a value of 5. The count value defaults to 1and is the count of keys to put in each row of keys. save the pagebuilder.jsp, run it and adjust the count value to suit the style and button sizes that you are using. Mike Mike Hockings, P.Eng. WebSphere Development Tools for AS/400 - CODE/Designer & WebFacing ! IBM Canada Ltd. Laboratory hockings@xxxxxxxxxx "Gibbons, Michael" <bmis04@xxxxxxxxxxxxxxx> Sent by: wdsci-l-bounces@xxxxxxxxxxxx 2004-10-12 10:05 Please respond to Websphere Development Studio Client for iSeries To wdsci-l@xxxxxxxxxxxx cc Subject [WDSCI-L] Additional Command Keys display Hello, I am trying to get the same command key structure as the one place in my navigation bar to display along the bottom of the screen I have inserted the JSP:INCLUDE for the cmdkeys.jsp into the bottom of pagebuilder.jsp and the command keys are appearing correctly with one hitch. They display vertically rather than horizontally. From poking around in cmdkey.jsp it looks like there is a variable called "count" that controls the vertical and horizontal display. I am not sure what is the value and how to get cmdkeys.jsp to recognize it. I have tried to "setAttribute" before the include but I get an error at execution when compiling the jsp. (See below) C:\Documents and Settings\bmis04\My Documents\IBM\wdsc\bmis04\.metadata\.plugins\com.ibm.etools.server.core\tmp0 \cache\DefaultNode\server1\b01405EAR\b01405.war\webfacing\jsp\DDSrecords\MWD GPL\QDDSSRC\B01506FM\html\_B01506C.java:404: 'try' without 'catch' or 'finally'. } ^ 1 error Here is the code: <!-- Include Command Keys JSP --> <%request.setAttribute("count", "4");%> <jsp:include page="/webfacing/styles/chrome/html/CmdKeys.jsp?Count=04" flush="true"/> Thanks in Advance! Michael P. Gibbons Manager of Programming & Technical Services MARYWOOD UNIVERSITY 2300 Adams Ave. Scranton, PA 18509 _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l. _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l. _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l. _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l. _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l. _______________________________________________ This is the Websphere Development Studio Client for iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/wdsci-l or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.
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.