5 Replies Latest reply: Nov 21, 2003 5:49 PM by 55663 RSS

    why cant I get Images in jsp (uix)

    407392
      hi,
      I am using uix tags in jsp page. For some tags like the shuttle and the ListOfValues I do not get the images or the lines that are shown in the demo examples. Do i have to use these tags in a uix page to get them working or am I missing anything from the cabo files??

      regards,
      vasanth
        • 1. Re: why cant I get Images in jsp (uix)
          55663
          look in your public_html directory of your project and
          see if there is a cabo directory inside it with a bunch
          of subfolders and files. If not create a UIX XML file
          in your project (which will automatically populate that
          directory) or find the uix2-install.zip file in the
          redist directory of the jdev install and unzip that into
          the public html directory. If that doesn't work please
          post your jsp page so I can see if there are any other
          errors.
          • 2. Re: why cant I get Images in jsp (uix)
            407392
            I have them in my cabo. so here is the jsp file.
            <%-- $Id: controlView.jsp,v 1.5 2003/10/24 00:44:49 je Exp $ --%>
            <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix"%>
            <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
            <%@ page import="java.util.*, com.avega.portlets.domain.*, com.avega.portlets.view.*;" %>
            <%@ page contentType="text/html;charset=windows-1252" %>
            
            
            <uix:form method="GET" name ="portletForm" >
            
               <!-- implementation of shuttle -->
            
                <uix:stackLayout>
                    <uix:text text="Dimensions"></uix:text>
                    <uix:stackLayout>
                    <uix:contents childDataBinding="httpSession.pageBean.controlViewBean.panelDimensions">
                      <c:set var="dim" value="${ uix.current['.'] }" />
                      <c:out value ="${ dim }" />
                        <uix:styledText textBinding="uix.current.portletDimension.name" />
                        <uix:choice nameBinding="uix.current.portletDimension.name" >
                          <uix:contents childDataBinding="httpSession.pageBean.controlViewBean.membersByPanelDimension[ uix.current['.'] ]" >
                            <uix:option selectedBinding="uix.current['.'] eq 'httpSession.pageBean.controlViewBean.selectedMemberByDimension[  ]'" 
                            textBinding="uix.current['.']" valueBinding="uix.current['.']"  />
                          </uix:contents>
                        </uix:choice>
                      </uix:contents>
                    </uix:stackLayout>
                  </uix:stackLayout>
            
                
                <uix:shuttle name ="measureShuttle" leadingHeader="Available Measures" 
                          trailingHeader="Selected Measures" >
                   
                          <uix:leading >
                            <uix:list multiple="true" name="leadList">
                              <uix:contents childDataBinding="httpSession.pageBean.controlViewBean.availableMeasures" >
                                <uix:option textBinding="uix.current.portletMeasure.name" valueBinding="uix.current.portletMeasure.name" />
                              </uix:contents >                    
                            </uix:list>
                          </uix:leading>
                          <uix:trailing>
                            <uix:list multiple="true" name="trailList" >
                              <uix:contents childDataBinding="httpSession.pageBean.controlViewBean.selectedMeasures" >
                                <uix:option textBinding="uix.current.portletMeasure.name" valueBinding="uix.current.portletMeasure.name" />
                              </uix:contents >                    
                            </uix:list>
                          </uix:trailing>
                        </uix:shuttle>
              
                <uix:dateField name="dateBox" />
                
                <uix:stackLayout>
                  <uix:contents>
                     <uix:separator />
                     <uix:separator />
                  </uix:contents>
                </uix:stackLayout>
                
                <uix:flowLayout>
                  <uix:separator >
                    <uix:spacer width="10" height="1" />
                  </uix:separator >
            
                  <uix:contents>
                    <uix:submitButton name="Submit" text="Submit" formName="portletForm" value="Refresh" />
                    <uix:submitButton name="hideControls" text="Hide Controls" value="hideControls" /> 
                  </uix:contents>
                </uix:flowLayout>
                
                </contents>
                
                
                
            </uix:form>
            
            
            
            <p><b>Parameters</b></p>
            <ul>
            <c:forEach var="parameter" items="${ param }" >
                 <li>
                      <c:out value="${ parameter.key }" /> = <c:out value="${ parameter.value }" />
                 </li>
            </c:forEach>
            </ul>
            • 3. Re: why cant I get Images in jsp (uix)
              55663
              It doesn't appear that you have an html element or head/body
              either. That might be the problem. Try adding your form
              inside the following:

              <uix:document>
              <uix:body>
              <!-- insert form here -->
              </uix:body>
              </uix:document>
              • 4. Re: why cant I get Images in jsp (uix)
                407392
                frank,
                yes I did that and still nothing. Actually when i see the debugger it says this

                03/11/21 13:42:25 ShuttleBean, localName='shuttle': oracle.cabo.image: Initializing image cache: C:\JDeveloperProjects\ShuttleDate\Project\public_html\cabo\images\cache\ ...

                03/11/21 13:42:25 ShuttleBean, localName='shuttle': oracle.cabo.image: Loading image 0 of 13 from image cache: C:\JDeveloperProjects\ShuttleDate\Project\public_html\cabo\images\cache\

                03/11/21 13:42:26 ShuttleBean, localName='shuttle': oracle.cabo.image: Finished initializing image cache: C:\JDeveloperProjects\ShuttleDate\Project\public_html\cabo\images\cache\

                03/11/21 13:42:26 SubmitButtonBean, localName='submitButton': oracle.cabo.image: Initializing image cache: C:\JDeveloperProjects\ShuttleDate\Project\public_html\cabo\images\cache\en\ ...

                03/11/21 13:42:26 SubmitButtonBean, localName='submitButton': oracle.cabo.image: Loading image 0 of 6 from image cache: C:\JDeveloperProjects\ShuttleDate\Project\public_html\cabo\images\cache\en\

                03/11/21 13:42:26 SubmitButtonBean, localName='submitButton': oracle.cabo.image: Finished initializing image cache: C:\JDeveloperProjects\ShuttleDate\Project\public_html\cabo\images\cache\en\

                notice that where ever there has to be an image there is something like "loading 0 of "some number: from image cache.

                thanks,
                vasanth
                • 5. Re: why cant I get Images in jsp (uix)
                  55663
                  you'll need to wrap everything in a uix:document
                  and use the uix:metaContainer with the uix:head element.
                  The head element is the one that include the blaf css
                  file to get the correct images/buttons. Here is a simple
                  jsp that shows a shuttle:

                  <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix"%>
                  <%@ page contentType="text/html;charset=windows-1252"%>
                  <uix:document>
                  <uix:metaContainer>
                  <uix:head></uix:head>
                  </uix:metaContainer>
                  <uix:form>
                  <uix:shuttle trailingHeader="selected:"
                  leadingHeader="Available:">
                  <uix:leading>
                  <uix:list>
                  <uix:option text="foo"></uix:option>
                  </uix:list>
                  </uix:leading>
                  <uix:trailing>
                  <uix:list>
                  <uix:option text="bar"></uix:option>
                  </uix:list>
                  </uix:trailing>
                  </uix:shuttle>
                  </uix:form>
                  </uix:document>

                  Hope this helps.