I am using my actionBean as follows, hope this helps:

<display:table sort="list" name="actionBean.results"
decorator="org.myProject.scm.displaytag.decorator.SCMTableDecorator"
pagesize="50" requestURI="/reqs/Search.action" class="reqList">
    <display:column property="reqNumLink" title="Req #" class="reqNum"
sortProperty="reqNum" sortable="true" defaultorder="descending"/>
    <display:column property="poNum" title="PO #" class="poNum"/>
    <display:column property="delivrToDeptCode" title="Del"
class="del"/>
    <display:column property="chrgToDeptCode" title="Chg" class="chg"/>
    <display:column property="srceLocation" title="Src" class="src"/>
    <display:column property="purchDeptCode" title="Pur" class="pur"/>
    <display:column property="recStatus" title="St" class="st"/>
    <display:column property="createdBy" title="Created By"
class="created"/>
    <display:column property="assignedTo" title="Assign To"
class="assigned"/>
    <display:column property="reqTypeValue" title="Typ" class="typ"/>
    <display:column property="vendorCatNum" title="Vendor Cat #"
class="vnd"/>
    <display:column property="itemNum" title="Item #" class="item"/>    
</display:table> 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
srins
Sent: Wednesday, May 21, 2008 9:29 AM
To: displaytag-user@lists.sourceforge.net
Subject: [displaytag-user] How to use formbean property in
<display:table name = ? >


Hi,

I need to use form bean property in display table name field instead
from request attribute.

My ListForm - >form bean has setter and getter method as,

public List listing = new ArrayList();

public List getListing() {

return this.listing;

}


public void setListing(List listing) {

this.listing = listing;

}

I tried to access my form bean property in,

<display:table id="comlist" name="ListForm.listing" sort="external"
pagesize="15" defaultsort="1" class="hitable" requestURI="listing.do"
partialList="true" size="matchCount">

But ,I am not getting anything displayed from my list .

I setted the list in my Action Class from my DAO's values.

inForm.setListing(listing);

So,List is not empty.It has some values.But I am getting as.

Nothing found to display. 

I need to get the list from form bean instead of getting the list from
the request attribute from my action class.

I have tried pageScope.ListForm.listing as well as
sessionScope.ListForm.listing.

Also,I tried to use ${pageScope.ListForm.listing} and
${ListForm.listing}.

Can someone help in this regard what I am doing wrong here.

Thanks,
Srins.


--
View this message in context:
http://www.nabble.com/How-to-use-formbean-property-in-%3Cdisplay%3Atable
-name-%3D---%3E-tp17364271p17364271.html
Sent from the DisplayTag - General mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user




The information contained in this message and any attachments is intended only 
for the use of the individual or entity to which it is addressed, and may 
contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from 
disclosure under applicable law.  If you are not the intended recipient, you 
are prohibited from copying, distributing, or using the information.  Please 
contact the sender immediately by return e-mail and delete the original message 
from your system.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to