Gaurav Vaish said:
> What will I write in the parameter-value?
>
> <display:column parameter="viewID".... href="<portlet:actionURL>
> <portlet:param name="name" value=${??}/></porlet:actionURL>" />
>
> Would I write the value as ${myObject.viewID} ?? And it is expected to be
> processed the way I want...?

It really depends on what objects are in scope and what you're trying to
get at.  In general, it works just the same way as specifying an object
and its property when declaring your <display:table> tag, e.g.:

<display:table name="sessionScope.objectName.property" ...>

The scope is optional (defaults to request), objectName is, oddly enough,
the name of your object, and property is the property that returns the
list that displaytag will use (accessed through a getProperty() getter
method).  So for your example, if your object is called myObject, and the
param value that you want to use is retrieved by calling getViewID() on
that object, then I think that your formulation is correct.

> I haven't tried it out as yet...

Well, that's really the next step :^)  Give it a shot.  I'll be honest, I
haven't really done squat with EL yet, since I'm only using them with my
own personal projects and not at work (and I don't get NEAR enough time to
work on my own personal projects).  But it's pretty straightforward, so
once you have it working, I don't think you'll have too much trouble
figuring out the right syntax for that.  The trickier part is getting the
right objects in scope at the right time and using the EL expressions in
places that accept them properly.

-- 
Rick Herrick
[EMAIL PROTECTED]

I haven't got time for inner peace.

Get out of control, but appear under control. It's not bad to alarm other
people, though--it's good for them.--Hunter S. Thompson


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to