[Open Discussion] Scrollbar customization and combo box rec sel

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Open Discussion] Scrollbar customization and combo box rec sel

SourceForge.net

The following forum message was posted by gcarlo3 at http://sourceforge.net/projects/displaytag/forums/forum/249317/topic/3962456:

My Struts2 application needs the pagination functionality applied to some records,
but what I need to customize is the "Last 1 - 2 - 3 Next" appearance and also
have the ability to use a combo box for the selection of how many records should
be visible(10 - 20 - 30 - 40 -50). I have tried two way to accomplish this goal:
1) use display tag library, but I'm not able to customize the appearance, because
is auto-generated by the library, and I don't how implement the combo box for
select how many records should be visible 2) create my own code for accomplish
this functionality but is a job too long and not enough time due to the expiry.
My question is: exists some Struts2 library for realize this functionality?
Or, is possible to customize the display tag library for the page scroll bar
and the records combo box?

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
displaytag-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
Reply | Threaded
Open this post in threaded view
|

[Open Discussion] RE: Scrollbar customization and combo box rec sel

SourceForge.net

The following forum message was posted by  at http://sourceforge.net/projects/displaytag/forums/forum/249317/topic/3962456:

Pagination look can be easily changed by modifying in the properties file
(paging.banner.full, paging.banner.first, paging.banner.last, paging.banner.oneage).
I also modified the layout, adding number of items found both on top and after
the table, and also modified the export links looks and placed export links
on top in the right. The latter two i remembered required modifications inside
displaytag library.

As for the number of items per page, i used a separate implementation from
displaytag; basically i used a form with one textbox and one submit button for
each table. the struts action builds the paginated list with as many items per
page as specified in this field and displaytag shows the entries accordingly.

I will attach a picture with all these
mods.[img]http://img163.imageshack.us/img163/3130/tablea.jpg[/img]


------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
displaytag-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
Reply | Threaded
Open this post in threaded view
|

href problem with portlet actionurl

Julien Gribonvald
Hello,

I'm facing a problem with column href, i have 2/6 column href that
aren't generated and I can't find why, maybe someone here will be able
to help me.

here is the sample code :


For example i have these action URL declared :

<portlet:actionURL var="upURL">
<portlet:param name="action" value="incrementItem" />
<portlet:param name="tId" value="${topic.topicId}" />
<portlet:param name="increment" value="1" />
</portlet:actionURL>
<portlet:actionURL var="upTopURL">
<portlet:param name="action" value="incrementItem" />
<portlet:param name="tId" value="${topic.topicId}" />
<portlet:param name="increment" value="2" />
</portlet:actionURL>
<portlet:actionURL var="downURL">
<portlet:param name="action" value="incrementItem" />
<portlet:param name="tId" value="${topic.topicId}" />
<portlet:param name="increment" value="-1" />
</portlet:actionURL>
<portlet:actionURL var="downBottomURL">
<portlet:param name="action" value="incrementItem" />
<portlet:param name="tId" value="${topic.topicId}" />
<portlet:param name="increment" value="-2" />
</portlet:actionURL>

and somewhere after I have this part :

<d:table name="${itemList}" export="false" id="row" class="dataTable"
     pagesize="${nbItemsToShow}" cellspacing="1">
<d:column property="itemId" title="ID" class="hidden"
         headerClass="hidden" media="html" />
.... some other colunms
<c:choose>
<c:when test="${not (row_rowNum eq 1)}"><d:column href="${upURL}"
paramId="ptlp_id" paramProperty="itemId">
<img
                             title="<fmt:message
key='news.img.title.increase.disp.order'/>"
                             src="<html:imagesPath/>up.gif" border=0 />
</d:column></c:when>
<c:otherwise>
<d:column></d:column>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${not (row_rowNum eq 1)}"><d:column href="${upTopURL}"
paramId="ptlp_id" paramProperty="itemId">
<img
                         title="<fmt:message
key='news.img.title.increase.disp.order'/>"
                         src="<html:imagesPath/>double_up.gif" border=0 />
</d:column></c:when>
<c:otherwise>
<d:column></d:column>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${not (row_rowNum eq fn:length(itemList))}"><d:column
href="${downURL}" paramId="id" paramProperty="itemId">
<img
                         title="<fmt:message
key='news.img.title.decrease.disp.order'/>"
                         src="<html:imagesPath/>down.gif" border=0 />
</d:column></c:when>
<c:otherwise>
<d:column></d:column>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${not (row_rowNum eq fn:length(itemList))}"><d:column
href="${downBottomURL}" paramId="id" paramProperty="itemId">
<img
                         title="<fmt:message
key='news.img.title.decrease.disp.order'/>"
                         src="<html:imagesPath/>double_down.gif" border=0 />
</d:column></c:when>
<c:otherwise>
<d:column></d:column>
</c:otherwise>
</c:choose>

my problem is on the two first href, there is no <a href.... tag
generated, but if i remode the test to avoid to show the column href on
the first column it works perfectly. It seems to be a but with some libs
but which one ....

I found something related but it was on all links and was corrected with
the version of pluto.jar that we have on our portal :
https://issues.apache.org/jira/browse/PLUTO-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Thanks for your help.

Julien

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
displaytag-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-user