Non display of Repeater Tag in browser outside weblogic
Hi.
I've got an app that uses a repeater tag to display a list/matrix of data. When
I run it using the weblogic browser, it works fine. But as soon as I use IE or
Netscape, for some reason, the repeater tag no longer gets displayed. All the
labels and buttons outside the tag is fine, but everything inside the tag is gone.
I've tried everything I could think of but without any success. I've got a feeling
that its got something to do with the data I return, or rather accessing the database.
Any help would really appreciated.
Thanx
Elbert
Never mind. I'm just talking to myself this morning. Sticking
the repeater in a canvas tag solved the problem
Similar Messages
-
How to Display string array in jsp page using netui-data:repeater tag ??
hi,
I am trying to display a string array in a table using the netui-data:repeater tag.
I have to use a page flow controller Array(1 Dimensional) to be displayed in the jsp.
Can any one tell me how to print the array in a table of 3rows & 5 columns.
Here is the code on which I am crrently working on.
<netui-data:repeater dataSource="{pageFlow.strWorkObject_Array}">
<netui-data:repeaterHeader>
<table cellpadding="4" border="1" class="tablebody">
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<tr>
<td><netui:label value="{container.item}" >
</netui:label></td>
<td><netui:label value="{container.item}">
</netui:label></td>
<td><netui:label value="{container.item}">
</netui:label></td>
</tr>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
</table>
</netui-data:repeaterFooter>
</netui-data:repeater>weblogic.developer.interest.workshop
Mansoor Naseem wrote:
I would like to know where the pageflow newsgroup is.
These are all the groups in weblogic.developer.interest:
weblogic.developer.interest.60beta.* (5 groups) weblogic.developer.interest.management
weblogic.developer.interest.61beta.* (2 groups) weblogic.developer.interest.misc
weblogic.developer.interest.clustering.* (1 group) weblogic.developer.interest.performance
weblogic.developer.interest.commerce weblogic.developer.interest.personalization
weblogic.developer.interest.ejb.* (3 groups) weblogic.developer.interest.portal
weblogic.developer.interest.environment weblogic.developer.interest.rmi-iiop
weblogic.developer.interest.jdbc weblogic.developer.interest.security
weblogic.developer.interest.jms weblogic.developer.interest.servlet
weblogic.developer.interest.jndi weblogic.developer.interest.tools
weblogic.developer.interest.jsp weblogic.developer.interest.weblogicenterprise
MN -
Display string array in a table using netui-data:repeater tags
hi,
I am trying to display a string array in a table using the netui-data:repeater tag.
I have to use a page flow controller Array(1 Dimensional) to be displayed in the jsp.
Can any one tell me how to print the array in a table of 3rows & 5 columns.
Here is the code on which I am crrently working on.
<netui-data:repeater dataSource="{pageFlow.strWorkObject_Array}">
<netui-data:repeaterHeader>
<table cellpadding="4" border="1" class="tablebody">
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<tr>
<td><netui:label value="{container.item}" >
</netui:label></td>
<td><netui:label value="{container.item}">
</netui:label></td>
<td><netui:label value="{container.item}">
</netui:label></td>
</tr>
</netui-data:repeaterItem>
<netui-data:repeaterFooter>
</table>
</netui-data:repeaterFooter>
</netui-data:repeater>weblogic.developer.interest.workshop
Mansoor Naseem wrote:
I would like to know where the pageflow newsgroup is.
These are all the groups in weblogic.developer.interest:
weblogic.developer.interest.60beta.* (5 groups) weblogic.developer.interest.management
weblogic.developer.interest.61beta.* (2 groups) weblogic.developer.interest.misc
weblogic.developer.interest.clustering.* (1 group) weblogic.developer.interest.performance
weblogic.developer.interest.commerce weblogic.developer.interest.personalization
weblogic.developer.interest.ejb.* (3 groups) weblogic.developer.interest.portal
weblogic.developer.interest.environment weblogic.developer.interest.rmi-iiop
weblogic.developer.interest.jdbc weblogic.developer.interest.security
weblogic.developer.interest.jms weblogic.developer.interest.servlet
weblogic.developer.interest.jndi weblogic.developer.interest.tools
weblogic.developer.interest.jsp weblogic.developer.interest.weblogicenterprise
MN -
I am trying to get this example here working in my applcation
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=595
If I take the repeater tag and try to place it inside a
canvas tag (in a TabNavigator), all of the items are on top of each
other.
But outside the canvas tag, they display fine.
Has anybody see this happen before with a repeater tag?
Thanks
MathiasNever mind. I'm just talking to myself this morning. Sticking
the repeater in a canvas tag solved the problem -
Problem with netui:data repeater tag
Hi,
I have 10 checkboxes in a form. It is represented as array of boolean in the form.
The form and the checkbox values are initialised in the JPF class. Using repeater
tag to display the checkboxes.
When the user clicks on first check box, all other check boxes should be selected.
Need to do this with client side validation.
Can someone tell me how to do this?Hi kunal,
Thanks for your immediate response.
But, if I use , I am getting an saying that the file does not exist.
I have included your code, can you check it. Also, I just want the link to be displayed, not the values that I am getting through the netui-data:repeaterItem tag. Can you please help me.
I am attaching my code here:
<netui-data:repeater dataSource="{pageFlow.results2}">
<netui-data:repeaterHeader></netui-data:repeaterHeader>
<netui-data:repeaterItem >
<netui:label value="{container.item.title}" defaultValue=" " ></netui:label>
</netui-data:repeaterItem>
<netui-data:repeaterItem>
<netui:label value="{container.item.link}" defaultValue=" " ></netui:label>
</netui-data:repeaterItem>
<netui-data:repeaterItem>
<netui:label value="{container.item.title}" defaultValue=" "></netui:label>
</netui-data:repeaterItem>
<netui-data:repeaterFooter></ol></netui-data:repeaterFooter>
</netui-data:repeater>
Thanks,
Latha -
Firefox 4 displays closing CDATA tag ]] on the screen for object tag
With the recent Firefox 4 version. I am facing following problems with the website I am developing:
1. For svg objects inside html page with Firefox 4 it now displays closing CDATA tag on the screen.
It only displays ]]> on the screen.
I have object specified using
<pre><nowiki><object class="svgobj batteryGraphObj" type="image/svg+xml">
<![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
]]>......
</object></nowiki></pre>
2. When the svg is added using div tags it doesn't display on the screen if the width is more than browser width. It was working on Firefox 3.6 but have stopped working with 4. We had a overflow specified with scrolling effect on the screen if user wants to view next section.A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
The helpers at that forum are more knowledgeable about web development issues.<br />
You need to register at the mozillaZine forum site in order to post at that forum.
See http://forums.mozillazine.org/viewforum.php?f=25 -
PDF locking when displaying it in iFrame in browser
Hi guys,
I have a webpage written in ASP.NET which displays a PDF in the browser using an iFrame. Relevant ASPX code is below:
<iframe id="ifrmPDF" src='<%=sFile %>'></iframe>
Where the variable sFile is the path to the PDF that I am displaying.
But for some reason displaying the PDF in this way is having the effect of locking the file so it cannot be updated on the server while somebody is viewing it. I was under the impression that when you view a PDF in a browser a copy was downloaded to the local machine and it was that which was being viewed but this doesn't appear to be the case.
Can anyone tell me of another way to display a PDF in a browser which will allow the file to be overwritten in the background?
Any help would be greatly appreciated and if you need anymore info then please let me know.
Thanks,
AlHi,
have a look at following message
This UI element is too broken to be really useful and cannot be fixed.
For integration of non-Web Dynpro applications, please use the Enterprise Portal instead.For embedding (help) texts and the like, please use the appropriate mechanisms, e.g. TextView, FormattedTextView, Explanation etc.
Portal layouts are way to presenting your iviews in portals.
Ashu -
Hi,
I am trying to create links by using netui-data:repeater tag. But, I am getting all the links in the same line like:
1 Link#1 2 Link#2 3 Link#3
Can anyone let me know how can I get each value in a new line. I am adding my code here:
netui-data:repeaterItem>
<netui:label value="{container.item.articleID}" defaultValue=" " ></netui:label>
<netui:anchor href="{container.item.link}" >
<b><netui:label value="{container.item.title}" defaultValue="@nbsp;" ></b></netui:label></netui:anchor>
</netui-data:repeaterItem>
Thanks,
LathaWhen you drag complex data onto jsp, Repeater wizard pops up, if you select "Next" instead of "Create", you will be prompted with different display options that you can select from like option "list" or "table" from the Data Format options.
-
Hi,
I am using <netui-data:repeater> tag to display array of object.
This array has 20 elements and I am displaying only 5 elements at one time and
providing next and previous button to the user.
Can I specify the starting index and the end index in repeater tag so that I
display
the processing array object values in my repeater tag.Tim,
I had a similar issue and I could not find a way via the start index and end index
as you would expect.
However, what you can do is write a method in your JPF and access it via <netui-data:choiceMethod...>
tag.Disdavntage being the repeater tag would still loop through rthe entire set,
but would display only what you want.
<netui-data:repeaterItem>
<netui-data:choiceMethod object="{pageFlow}" method="isLineCounterMaxed">
<netui-data:methodParameter value="{container.index}"/>
<netui-data:methodParameter value="{pageContext.lastLineNumber}"/>
</netui-data:choiceMethod>
<netui-data:choice value="true">
........DIsplay Your Data Here.......
</netui-data:choice >
</netui-data:repeaterItem>
Thanks
Rishi
"Tim" <[email protected]> wrote:
>
Hi,
I am using <netui-data:repeater> tag to display array of object.
This array has 20 elements and I am displaying only 5 elements at one
time and
providing next and previous button to the user.
Can I specify the starting index and the end index in repeater tag so
that I
display
the processing array object values in my repeater tag. -
Netui-data repeater tag question
Hi,
I am using netui-data:repeater tag to iterate through the results. I am adding a small code snippet:
<netui-data:repeater dataSource="{pageFlow.results2}">
<netui-data:repeaterItem>
<netui:label value="{container.item.title}" defaultValue=" " ></netui:label>
<netui:label value="{container.item.link}" defaultValue=" " ></netui:label>
</netui-data:repeaterItem>
Once, I get the link and the title, I want to construct a href, using the above values. Can anyone tell me how this can be done.
Thanks,
LathaHi kunal,
Thanks for your immediate response.
But, if I use , I am getting an saying that the file does not exist.
I have included your code, can you check it. Also, I just want the link to be displayed, not the values that I am getting through the netui-data:repeaterItem tag. Can you please help me.
I am attaching my code here:
<netui-data:repeater dataSource="{pageFlow.results2}">
<netui-data:repeaterHeader></netui-data:repeaterHeader>
<netui-data:repeaterItem >
<netui:label value="{container.item.title}" defaultValue=" " ></netui:label>
</netui-data:repeaterItem>
<netui-data:repeaterItem>
<netui:label value="{container.item.link}" defaultValue=" " ></netui:label>
</netui-data:repeaterItem>
<netui-data:repeaterItem>
<netui:label value="{container.item.title}" defaultValue=" "></netui:label>
</netui-data:repeaterItem>
<netui-data:repeaterFooter></ol></netui-data:repeaterFooter>
</netui-data:repeater>
Thanks,
Latha -
REQ: Repeated tags in m4a songs
Requesting features for future iTunes updates
Allow iTunes manage repeated tags from m4a songs for add more than one artist or more than one composer, for example
M4A format is able to store repeated tags in same file (two or more tags for "Artist", for example) but iTunes isn't able to read this ones. Image a duet. Could be amazing storing two Artist tags, one for each artist and no only one with format "artist1 feat. artist2" or "artist1 & artist2". This become more powerful for composer field. Usually, a song has more than one composer. If one file had various Composer tags, I would be able to search all songs from a composer (where he compose the song alone or with more composers) and I wouldn't **** my mind in itunes searching a messy list with fields like: "composer1/composer2/composer3", "composer1, composer2 & composer3"I'm assuming you used some other program to change the id3 tags. If you used itunes, itunes updates its own database with any changes you make. However once you start using itunes, itunes does not work well if you make changes to it's library (any file listed in itunes) outside of the itunes interface. There are some third party tagging programs that are designed to basically notify itunes when they change tags for a file, but most will not, causing itunes to lose track of the file, and its info. Itunes does not actively scan your library for any changes you make.
-
Using WEB Output HTML Gallery and uploading using ftp upload the HTML page views correctly but images only display the alt tag in the browser window?
After a little investigation, I discovered that PNGs also do not render correctly in IE7 in similar circumstances.
I ended up using Levels in Photoshop to bring the output blacks up to "5", saved the images as PNGs, modified the HTML from .jpg to .png, and that seems to have covered up the problem well enough.
By the way, I did confirm that IE8 beta 2 renders the images correctly.
Brian -
None display rows not working when we export to pdf /excel
I have used combined request and took subtotal -version:11.1.1.5
My report looks likes this
Interest A---10
Interest B---20
**Interst total-30
income-20
**Income total-20
last 2 lines gives same result,since subtotal is common for both request my result looks repeated,so i have given none display in CSS style using column properties for those rows
My result look like this after display:none
Interest A---10
Interest B---20
**Interst total-30
**Income total-20
But when i export to excel or pdf,i can find hidden rows,how to avoid this,is there any other way to hide those rows?I have used conditional format to make display:none,can i know how we can do with pivot table?
income 20 can be done using new caluclated item? but this row cannot be moved top,so i have use combine request
can you help me how to do this
Edited by: 944346 on Aug 8, 2012 3:56 AM -
Netui:repeater tags with ranges (aka prev/next)
Is there some way to implement ranges using the <netui:data-repeater> tags? By
ranges, I mean where you have 123 items in a list and you only display numbers
1-50. Clicking NEXT would give you items 51-100. When you're there, clicking PREV
would take you back to 1-50.
Sample code would be nice. I think it could be done with the <netui:data-choiceMethod>
tags, but what I am envisioning would be pretty uglyI am still stuck. I have the pager working fine. But, I have a checkbox that needs
to be bound with the recordid. When the form is submitted after selecting records
on multilple pages, I want to retrieve the recordids of records that were checked.
How do I do that? A chckbox datasource can only be a one-value String property
of a form. But, I need to save an array of ids that were checked. I am so lost.
Please help.
"bindu" <[email protected]> wrote:
>
So sorry Eddie,
My bad I dint scroll down all the way. Thanks so much.
Bindu
Eddie O'Neil <[email protected]> wrote:
John--
Here's an example of implementing a paged repeater.
Briefly, here's how it works:
The entire data set (a Product[]) is stored in the JPF. When paging
through this data set, a
sliding window (also stored as a Product[]) is used to contain the "current"
set of products to
render in the page. The sliding window Product[] is of size PAGE_SIZE.
When transitioning between
pages, this window is recalculated for each page.
Also calculated are the "currentPage", "lastPage", "prevPage", and
"nextPage", which are used to
render a pager like this:
Page <currentPage> of <lastPage> <anchor to prevPage> <anchor to
nextPage>
The JPF and JSP are pretty well documented. To run the Page Flow,
drop the JPF and JSP into a
directory called "repeaterPaging" in an 8.1 SP2 webapp.
There are lots of other ways this could be done (and certainly some
that are more efficient :),
but hopefully this helps get you started.
Eddie
Eddie O'Neil wrote:
John--
Yep, I did promise that, and nope, it hasn't been done yet. :)
But, thanks for calling me on it.
Will try to do that and distribute it to the list in the next fewdays.
Eddie
John H wrote:
Eddie,
You mentioned putting together an example of paging a repeater in
this
thread.
Did you ever get a chance to put one together? Would really loveto
see it if
you did.
Thanks,
John
Eddie O'Neil <[email protected]> wrote:
Jan--
We're talking about adding a pager to the repeater in a future
release of Workshop, but I don't believe that it will appear inan
8.1
service pack.
Additionally in 8.1, we are not exposing a NetUI tag SDK.
That being said, it isn't that difficult ot build a pager from
scratch with the <netu:anchor> / <netui:parameter> tags and a little
code in a JPF.
You'd want to have "prev" and "next" actions in the JPF to which
anchors in the JSP are bound. Then, you can keep track of the "current"
page in the URL and build the previous and next page indices fromthe
value that is availble in the request. Finally, create an intermediate
data structure that contains the data to display in the "current"page
and bind the repeater to this data structure. You'd build the contents
depending on whether the prev or next links were clicked. For example,
if your data set has 100 items in it and you only want to displayitems
20-29, you'd be on page 2 (depending on whether you start countingat
0 :) and the intermediate list would contain exactly these items.
Might sound complicated, but I think this would work out prettywell.
Hope that helps...
Eddie
Jan Noppen wrote:
Are there any plans to include the pager tag with the repeater
in
the
next service packs or releases of WebLogic?
If not, is there a way to build on the netui:taglibs to extend
their
functionality?
I know the grid has paging functionality but it ties you to rowsetsfor input, whereas the repeater is much more flexible.
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
<%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
<%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
<netui-data:declarePageInput name="displayProducts" type="repeaterPaging.Controller.Product[]"/>
<netui:html>
<head>
<title>Paging with the Repeater</title>
</head>
<body>
<p>
<b>Paging with the Repeater</b>
>>
>> <!-- Pager Text -->
<netui:label value="Page {request.currentPage} of {request.lastPage}"/>
<!-- Previous page anchor -->
<%if(request.getAttribute("prevPage") != null) { %>
<netui:anchor action="page">
Previous
<netui:parameter name="_page" value="{request.prevPage}"/>
</netui:anchor>
<% } else {%>
<!-- don't render the anchor when there is no previous
page -->
<netui:label value="Previous"/>
<% } %>
<!-- Next page anchor -->
<% if(request.getAttribute("nextPage") != null) { %>
<netui:anchor action="page">
Next
<netui:parameter name="_page" value="{request.nextPage}"/>
</netui:anchor>
<% } else {%>
<!-- don't render the anchor when there is no next page
-->
<netui:label value="Next"/>
<% } %>
>> <!-- display the current window into the data set -->
<netui-data:repeater dataSource="{pageInput.displayProducts}"
ignoreNulls="true">
<netui-data:repeaterHeader>
<table class="tablebody" border="1" width="60%">
<tr class="tablehead" valign="top">
<th width="30%">Product ID</th>
<th>Name</th>
</tr>
</netui-data:repeaterHeader>
<netui-data:repeaterItem>
<tr valign="top">
<td align="center"><netui:label value="{container.item.id}"
defaultValue=" "></netui:label></td>
<td><netui:label value="{container.item.name}"
defaultValue=" "></netui:label></td>
</tr>
</netui-data:repeaterItem>
<netui-data:repeaterFooter></table></netui-data:repeaterFooter>
</netui-data:repeater>
</p>
</body>
</netui:html>
package repeaterPaging;
import com.bea.wlw.netui.pageflow.Forward;
import com.bea.wlw.netui.pageflow.PageFlowController;
* @jpf:controller
* @jpf:forward name="success" path="index.jsp"
* @jpf:forward name="page" path="page.do"
* @jpf:view-properties view-properties::
* <!-- This data is auto-generated. Hand-editing this section is not
recommended. -->
* <view-properties>
* <pageflow-object id="pageflow:/repeaterPaging/Controller.jpf"/>
* <pageflow-object id="action:begin.do">
* <property value="80" name="x"/>
* <property value="100" name="y"/>
* </pageflow-object>
* <pageflow-object id="action:page.do">
* <property value="120" name="x"/>
* <property value="100" name="y"/>
* </pageflow-object>
* <pageflow-object id="action-call:@page:index.jsp@#@action:page.do@">
* <property value="204,180,180,156" name="elbowsX"/>
* <property value="81,81,92,92" name="elbowsY"/>
* <property value="West_0" name="fromPort"/>
* <property value="East_1" name="toPort"/>
* </pageflow-object>
* <pageflow-object id="page:index.jsp">
* <property value="240" name="x"/>
* <property value="100" name="y"/>
* </pageflow-object>
* <pageflow-object id="forward:path#success#index.jsp"/>
* <pageflow-object id="forward:path#page#page.do"/>
* </view-properties>
public class Controller extends PageFlowController
// number of items to show on a single page
private static final int PAGE_SIZE = 5;
// URL parameter key for the value that will store the current page
private static final String PAGE_PARAM_KEY = "_page";
// Array to hold the entire data set
private Product[] products = null;
* Forward to the "page" action to set-up the first page of
* data to display in index.jsp.
* @jpf:action
protected Forward begin()
return new Forward("page");
* Change the page of data that is displayed in index.jsp. This
action
* is used if paging to either the previous or to the next page.
* @jpf:action
protected Forward page()
Forward f = new Forward("success");
page(f);
return f;
* Implement data set paging. This method uses a simple _page paramater
on the URL
* to indicate the correct "page" to display when "Prev" or "Next"
are clicked
* in the JSP. The key principle at work here is a sliding window
of size PAGE_SIZE
* that is moved forward and backward through the complete dataset.
This window
* contains the set of items to render for a single "page" in the
repeater. As
* the current page changes, this window (an array of size PAGE_SIZE)
is
* reconstructed.
* The pager consists of three parts:
* - a simple "Page # of #" label
* - a previous anchor that is enabled when there is a previouspage
* - a next anchor that is enabled when there is a next page
* To render a "page" of data, the _page parameter is convertedfrom
a String
* to an int. Using the page integer, the start and end of a window
into the
* complete data set is calculated. This windows slides back and
forth along the
* data set in PAGE_SIZE increments depending on the value of the
current page.
* In this case, with a PAGE_SIZE of 5 and data set size of 17,the
possible windows
* are:
* products[0] -> products[4]
* products[5] -> products[9]
* products[10] -> products[14]
* products[15] -> products[16]
* Thus, the lastPage value is 4, which is calculated with the Math.ceil(...)
* call below.
* Given the start and end of this window, a temporary array ofsize
PAGE_SIZE
* is created to hold references to the items that should render
from the complete
* data set. This array is passed to the page as a JPF page input
and is rendered
* with the <netui-data:repeater/>.
* Finally, four additional values are made available to the page
in the request
* and are used to render "Page # of #" and to provide parameters
to anchors that
* will display the previous and next pages:
* - Page # of # -- the first # is "currentPage" and the second#
is "lastPage"
* - prevPage -- the int value of the previous page. If there is
no previous page,
* this value is null in the request
* - nextPage -- the int value of the next page. If there is no
next page, this value
* is null in the request.
* Notes:
* - In order to have multiple repeaters on a page operating independently,
* the "_page" parameter would need to change to include a namespace
that
* would be used when finding the current page for a data set.
* - This JPF is implemented with a single "page" action that performs
both
* next and previous paging. This could also be implemented with
"prevPage" and
* "nextPage" actions that implement additional logic that runs
on the previous
* and next transitions.
* - No real error checking is done to ensure that the PAGE_SIZE
is greater than 0.
* Handling errors:
* - If parsing _page from the request fails to convert to an int,
a NumberFormatException
* is shown in the console and the first page will is used.
* - If the current page value is greater than the number of pages,
the last page will
* be displayed.
private void page(Forward f)
assert PAGE_SIZE > 0;
// calculate the last page
int lastPage = (int)Math.ceil((float)products.length / (float)PAGE_SIZE);
int currentPage = 1; // default page is page 1
Product[] displayProducts = new Product[PAGE_SIZE];
String currentPageStr = getRequest().getParameter(PAGE_PARAM_KEY);
if(currentPageStr != null)
try
currentPage = Integer.parseInt(currentPageStr);
catch(NumberFormatException nfe)
nfe.printStackTrace();
// continue with a current page of 1
// ensure the current page is not greater than the number
of pages
if(currentPage > lastPage)
currentPage = lastPage;
// index into the entire data set at which the window starts
// page indices are 1 based, adjust to be 0 based for accessing
// the Product[]
int start = (currentPage-1) * PAGE_SIZE;
// index into the entire data set at which the window ends or
the index
// of the last item when rendering the last page
int end = (currentPage != lastPage ? start + PAGE_SIZE : products.length);
// fill-up the set of Product objects to render up to PAGE_SIZE
// but don't run off the end of the products array
for(int i = 0; i < PAGE_SIZE && (start+i < products.length);
i++)
displayProducts[i] = products[start + i];
// set the previous page
int prevPage = currentPage-1;
if(prevPage > 0)
getRequest().setAttribute("prevPage", new Integer(prevPage));
// set the next page
int nextPage = currentPage+1;
if(nextPage <= lastPage)
getRequest().setAttribute("nextPage", new Integer(nextPage));
// set the current and last pages in the request in order to
show "Page # of #"
getRequest().setAttribute("currentPage", new Integer(currentPage));
getRequest().setAttribute("lastPage", new Integer(lastPage));
// set the current window in to the data set as a page input
f.addPageInput("displayProducts", displayProducts);
return;
* Initialize a simple, sample data set that contains
* 17 products with IDs running from 1-17 and text "Widget 1" to
* "Widget 17".
public void onCreate()
int size = 17;
products = new Product[size];
for(int i = 1; i <= size; i++)
products[i-1] = new Product("Widget " + i, i);
* Simple JavaBean that contains production information.
public static class Product
implements java.io.Serializable
private String name;
private int id;
public Product(String name, int id)
this.name = name;
this.id = id;
public String getName() {return name;}
public int getId() {return id;} -
ZenCast -- Using / Displaying IDv3 Meta Tag Informati
Hi there.
Was wondering if anyone knows a way to get the Creative Zen Vision: M in the ZenCast folder to display the Meta-Tag information within the audio/video files. It clearly manages to do it in the Music Library, but rather than place my podcasts there, obviously I want them organised to the ZenCast folder section.
For example... I download "Best of Moyles" BBC Radio podcasts and their file names are something stupid like:
<EM>bestofmoyles_20060428-0700_40_pc.mp3</EM>
<EM></EM>
...now, when I'm browsing through lots of these in the folder, I have no idea whats on them. In the ZenCast software, it actually shows what the file is about under the 'Item' column.... So basically does anyone know how to get whats in the "Item" colum to display on the player -- 'cos it works in the <EM>Music Library</EM> folder... just not in ZenCast.
....Oh, and if anyone is aware of hiding the file-type extensions from the Vision:M ... do let me knowThe problem is that the file stored on the device by ZenCast in the ZenCast folder is not an MP3 with an ID3 tag. It is a Motion JPEG file. I am not sure what meta info is stored in the motion jpeg by ZenCast. The ZVM doesn't show any meta info for any video file (as far as I can tell.
They need to fix this, there has been a lot of talk in these forums about getting ZenCast to copy over an audio file, and not a Motion JPEG.
The way I listen to podcasts is I copy them over the device after I download (or get ZenCast to download them), I then edit a playlist called "New Podcasts" and add in my newly download podcasts. Then I can quickly find my new podcasts.
Maybe you are looking for
-
Is it still possible to create a 32-bit only iOS app?
With the latest AIR release (17), is there any way to still create a 32-bit only iOS app for testing on the iPad 1? It's currently not possible to install an app with 64-bit support on an iPad 1 to test the app. My understanding, however, is that App
-
I made the fatal mistake of updating to Firefox 5.0, and I hate it. None of the tool bars I had work and are now gone, I don't like the layout of the homepage, I really want my 4.0 back, but every time I try to download version 4.o, it routes me to t
-
How to use a PDF template with OA Framework
I have a question that is hopefully quite simple. I am using JDeveloper to add a button to a page that will create a PDF document. According the the documentation it should be quite easy to merge a PDF template file with an XML data file to produce a
-
I've been having a problem with InDesign, Photoshop, Illustrator, and Dreamweaver automatically hiding themselves (switching between programs or Finder), and then they won't re-show (via Command-Tab or the Finder dock). I always have to Force Quit th
-
Problem in navigating between iviews
Hi, I have a webdynpro application and a jsp file, I have deployed the webdynpro application into the portal by using webdynpro iview and the jsp file using url iview. I have created a page containing both the iviews. I need to know how to navigate