Tony
Another way you can do it is by using a decorator:
http://displaytag.sourceforge.net/10/tut_links.html
Arvinder


Michael Horwitz wrote:
> 
> If you want to add more than one parameter (note that you can always
> return
> the username from the id, so this is not strictly necessary), you need to
> specify an id or uid in the table tag and build the link dynamically in
> the
> column body. The checkbox column from the AppFuse user list shows how this
> could be done:
> 
> <display:table id="users" ... >
> ...
>      <display:column sortProperty="enabled" sortable="true" titleKey="
> user.enabled" style="width: 16%; padding-left: 15px" media="html">
>         <input type="checkbox" disabled="disabled" <c:if test="${
> users.enabled}">checked="checked"</c:if>/>
>     </display:column>
> 
> Just replace the <input ...> with an   tag.
> 
> Mike
> 
> On 8/15/07, Tony.Cesc <[EMAIL PROTECTED]> wrote:
>>
>>
>> Excellent! Thanks Mike.
>>
>> May I have another question related. If I want to put username parameter
>> and
>> id parameter at the same time how can I do it?
>>
>> Greatly appreciate your effort
>>
>> Regards,
>> Tony
>>
>>
>> Michael Horwitz wrote:
>> >
>> > The user list page from AppFuse has a good example of how this can be
>> > done:
>> >
>> > <display:column property="username" escapeXml="true" sortable="true"
>> > titleKey="user.username" style="width: 25%"
>> >         url="/userform.html?from=list" paramId="id"
>> paramProperty="id"/>
>> >
>> > Rather than try and hide a column, simply remove the column and add the
>> > parameter to a link on the next column - the relevant elements are url,
>> > paramId and paramProperty.
>> >
>> > Mike.
>> >
>> > On 8/15/07, Tony.Cesc <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Hi all,
>> >>
>> >> In Person List, the Id will be shown in the first column. Is it
>> possible
>> >> to
>> >> hide it but still keep them in the url when forward to another page? (
>> e.g
>> >> http://localhost:8080/private.html?id=1)
>> >> I am trying to find out any property of display:column tag to hide
>> value
>> >> but
>> >> it seem doesn't have.
>> >>
>> >> Thanks,
>> >> Tony
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Hidden-Id-in-the-List-tf4271873s2369.html#a12158518
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Hidden-Id-in-the-List-tf4271873s2369.html#a12159163
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hidden-Id-in-the-List-tf4271873s2369.html#a12171987
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to