Hi Rick

Yes I do have control over the list so can just add it on the server side...
so if there is no other solution, this is what I will do... it isn't a
massive problem...

Thanks

Ben

-----Original Message-----
From: Rick Herrick [mailto:[EMAIL PROTECTED]
Sent: 25 February 2005 16:36
To: [email protected]
Subject: Re: [displaytag-user] display:header?


Ben,

I'm not sure how much control you have over the List passed to the table. 
Can you just post-process the list and add that row to it (e.g.
myList.add(0, noneObject))?  The big problem with that would be dealing
with sorting it properly, I'd guess.

Outside of that, I don't really see any way to do this... sorry...

Ben Gill said:
> Hi,
>
> I would like to have the first row in my table statically defined in the
> JSP
> page...
>
> So, the first employee in the list always 'None', so the user can select
> 'None' if no employee is relevant...
>
> I know there are a ways around this problem...
>
> But is there anyway I can get this html:
>
> <tr>
>       <td>
>               <html:radio
> property="incidentsEmployeeForm.employeeForm.employeeUuid" value=""/>
>       </td>
>       <td>
>               None
>       </td>
> </tr>
>
>
> into the first row of my table?  ie. I dont think I can just cut + paste
> the
> html into it...
>
>
>
> ie.
>
>               <display:table name="${employees}" cellspacing="0"
> cellpadding="0"
>                       id="employee" pagesize="15" styleClass="list"
> export="false" requestURI="">
>
>                       <display:column sort="true" headerClass="sortable"
>                               property="fullName"
> titleKey="incidents.parameters.driver"/>
>               </display:table>
>
>
> Ben
>
>
>
> This message has been checked for all known viruses by the MessageLabs
> Virus Control Centre.
>
>
> *********************************************************************
>
> Notice:  This email is confidential and may contain copyright material of
> Ocado Limited (the "Company"). Opinions and views expressed in this
> message may not necessarily reflect the opinions and views of the Company.
> If you are not the intended recipient, please notify us immediately and
> delete all copies of this message. Please note that it is your
> responsibility to scan this message for viruses.
>
> Company reg. no. 3875000.
> Ocado Limited
> Titan Court
> 3 Bishops Square
> Hatfield Business Park
> Hatfield
> Herts
> AL10 9NE
>
>
> *********************************************************************
>
>
> -------------------------------------------------------
> 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
>


-- 
Rick Herrick
[EMAIL PROTECTED]

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

_____________________________________________________________________
This message has been checked for all known viruses by the 
MessageLabs Virus Control Centre.

This message has been checked for all known viruses by the MessageLabs Virus 
Control Centre.

        
*********************************************************************

Notice:  This email is confidential and may contain copyright material of Ocado 
Limited (the "Company"). Opinions and views expressed in this message may not 
necessarily reflect the opinions and views of the Company.
If you are not the intended recipient, please notify us immediately and delete 
all copies of this message. Please note that it is your responsibility to scan 
this message for viruses.

Company reg. no. 3875000.
Ocado Limited
Titan Court
3 Bishops Square
Hatfield Business Park
Hatfield
Herts
AL10 9NE


*********************************************************************


-------------------------------------------------------
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