You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/07/11 14:40:01 UTC

[OT] Display tag pbs

Subject: [OT] Display tag pbs
From: "Andrej Sobkowski" <as...@clamart.oilfield.slb.com>
 ===
All,

sorry to post this message here but apparently the "display tag" has been
designed (initially) as a Struts-related tag (BTW, I AM using Struts on my
project). Please don't hesitate to point me to other resources.

- how can I display a column that is not related to a bean property?
Ideally, I'd like to do something like

<display:table width="100%" name="results" scope="request" pagesize="15"
requestURI="/cemfluids/basefluids/list.do?command=initList">
  <display:column property="name" />
  <display:column property="concentration" />
  <display:column>
        <title><bean:message key="operations" /></title>
        <content>
                <a href="/modify.do">Modify</a>
                <a href="/delete.do">Delete</a>
        </content>
  </display:column>
</display:table>

I know I can use the "value" property but it doesn't allow too much
flexibility.

- support for I18N: how can I control the language of labels such as "Next",
"Previous" and so on?

- I'm using a DispatchAction to call my actions so my URI looks like
.../action.do?command=init. When using the paging functionality, the tag
appends "?page=x" which makes my URI invalid as there are 2 '?'. I saw that
in TableTag there is a check for the presence of a '?' for the href
attribute, so I guess the same could be done for the "Next" of the paging,
right?

If the above can't be done,  I'll be glad to try to implement it ...

Thanks!

Andrej



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>