Hi,
In the .properties file of your page (or component) you can add:
user_username=Username
...
and the table headers will automatically become the human-readable strings
that you have defined there.
In addition, there can be several .properties files that depend on the
locale in the standard way, e.g. page_zh.properties would contain the
chinese messages.
Does this work as desired?
-mb
Peter Dawn wrote:
>
> guys,
>
> i am running into this problem within my web app. please help me. i am
> using tap3.
>
> now i am retrieving column name information from my tables and
> displaying to the user in drop down menus. i retrieve the data using
> List columns = new ArrayList();
> int columnSize = columns.;
> while (rsColumns.next()) {
> columns.add(rsColumns.getString("COLUMN_NAME"));
> }
> String s = columns.toString();
> setColumnList(columns);
> rsColumns.close();
>
> so now s contains information like user_username, user_password etc
> this being my column names within a particular table. and this
> information is visible to the user in drop down menus within my web
> app.
>
> within my html i have something like,
> <select jwcid="[EMAIL PROTECTED]" style="width:180">
> <span jwcid="@Foreach" source="ognl:columnList" value="ognl:column">
> <option jwcid="@Option" label="ognl:column"
> selected="ognl:true"/>
> </span>
> </select>
>
> now my problem is that i can retrieve data properly, but i want to
> display user friendly information to the user. so instead of they
> viewing user_username i want to display Username etc. but at the same
> time when the select this particular option i want to maintain the
> information passed on back to my java code as the original column name
> (user_username).
>
> so essentially all i want to do is display user friendly labels but
> not change the underlying content. can some genius help me out. i also
> need to worry about multi-lingual stuff so somehow this info needs to
> be stored in properties files, which i can change on the fly.
>
> please help me.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Retrieving-table-column-names-tf2194011.html#a6072165
Sent from the Tapestry - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]