Ok,
I've just looked through the patch. A few questions -
why do you specify the source of the image as a value-binding?
Couldn't that come from a parameter of dataTable?
Couldn't we - even better - instead of building the UI for the
expand/collapse column in the backend-source - build the UI in the
JSP-file via a facet, with that, we'd have a lot more flexibility on
what this column would look like?
(See the collapsible panel, datascroller or tree2 for an example of
how this works)
regards,
Martin
On 1/22/06, Claudio Tasso <[EMAIL PROTECTED]> wrote:
> Hi Martin,
> we talked about a new feature for t:datatable (the original message
> which explains it is at the end of this message).
> Now, the patch is here!
> The PATCH_DATA.ZIP contains:
>
> * The patch for the source code
> * Two images (these are resources and they are placed in the correct
> place inside the source tree, so you should just copy the root directory)
>
> I also send you a WAR which contains a demo of the new feature, so you
> can try it immediatly (I hope is not too big for your mailbox).
>
> I'm completely open to any suggestion or correction you may notice and
> I'll be very happy to improve what I've produced until now.
> Please, let me know what you think about this work.
>
> Thank you very much for your time.
>
> ------------------------------------------------------------------------
> Sounds interesting.
>
> I've had this problem before, and did solve it in a non-perfect way.
>
> Essentially, I had to get rid of all columns - rendered out one
> column, and made sure the columns of different rows would align by
> using CSS and did the rest by hand.
>
> I like the idea, though! Maybe you should add a feature request or go
> even further and send us a patch?
>
> regards,
>
> Martin
>
> On 12/26/05, Claudio Tasso <[EMAIL PROTECTED]> wrote:
>
> >> Hi,
> >> I'm starting using Tomahawk components and I find them very useful. My
> >> previuous experience dealt with Oracle ADF components, but they are full
> >> of bugs and not flexible.
> >> But there's one feature of ADF table which is very nice.
> >> Inside a datatable it is possible specifying a facet called
> >> "detailStamp". This is an example:
> >>
> >> <af:table value="#{myManagedBean.allEmployees}"
> >> var="emp">
> >> <f:facet name="detailStamp">
> >> <h:outputText value="#{emp.address}"/>
> >> </f:facet>
> >> <h:column>
> >> <f:facet name="header">
> >> <h:outputText value="Name"/>
> >> </f:facet>
> >> <h:outputText value="#{emp.address}"/>
> >> </h:column>
> >> </af:table>
> >>
> >>
> >> The result is this: there's a column called "details" which contains a
> >> button, this button shows/hide the detail. Suppose that there are two
> >> rows. The initial state of the rendered table is this:
> >>
> >> <table>
> >> <tr>
> >> <th>details</th>
> >> <th>Name</th>
> >> </tr>
> >> <tr>
> >> <td><a href="SHOW_DETAIL"><img src="show.gif"/></a></td>
> >> <td>John Smith</td>
> >> </tr>
> >> <tr>
> >> <td><a href="SHOW_DETAIL"><img src="show.gif"/></a></td>
> >> <td>Ed Ross</td>
> >> </tr>
> >> </table>
> >>
> >> When the user clicks on the detail of the first row, a new row is
> >> displayed below the current row, so this is the result:
> >>
> >> <table>
> >> <tr>
> >> <th>details</th>
> >> <th>Name</th>
> >> </tr>
> >> <tr>
> >> <td><a href="HIDE_DETAIL"><img src="hide.gif"/></a></td>
> >> <td>John Smith</td>
> >> </tr>
> >> <tr>
> >> <td colspan="2">Washington Avenue, Springfield, USA</td>
> >> </tr>
> >> <tr>
> >> <td><a href="SHOW_DETAIL"><img src="show.gif"/></a></td>
> >> <td>Ed Ross</td>
> >> </tr>
> >> </table>
> >>
> >>
> >> The idea behind this component can be summurized as follows: every row
> >> in the table can be associated to a detail, which can be visibile or
> >> hidden according to the user action. When the user clicks on the show
> >> button, the content of the facet is displayed as a new ROW under the
> >> current row.
> >>
> >> Now I'm wondering if something similar exists in Tomahawk or Sandbox.
> >> Pheraps, composing the existing components may produce the same result.
> >> If it doesn't exist, I suppose that implementing it could be very
> >> useful.
> >> Please, tell me your opinions.
> >>
> >>
> >
> >
>
>
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces