myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Herbrand Hofker <herbrandhof...@yahoo.com>
Subject Proposed improvement to x:dataTable
Date Wed, 13 Apr 2005 05:29:50 GMT
Hello guys,
 
You are working on this <x:columns> extension:
 
I have such a solution working in sun's JSF.
 
I could not get the  "c" core taglibrary working with myfaces and Tomcat (why?)  so still
working on getting all running with MyFaces.
 
It is part of a much bigger approach so sending more, needs much more explanation.
I put a lot in the colum and in a domain object:
 
Here is a snapshot of classes that I use:
 
public class Column extends SuperColumn {
    final Domain domain;
    final String defValue;
    final String checkStmnt;
    final Integer indexno; //here if this a primary /secondary key
   (can be used for further user interface refinement)
....
}
 
and
 
public class Domain {
    final Integer id;
    final String name;
    final Datatype datatype;
    final String inputType;   //here it can be selectBoolean etc.
    final Integer size;
    final Integer maxLength;
    final String defValue;
    final Boolean mandatory;
    final String checkStmnt;
    final String domainValidatorId;
    final String inputValues;
...
}
 
I hope to have time this weekend to join your efforts.
 
Herbrand Hofker
 


Sean Schofield <sean.schofield@gmail.com> wrote:
Neal,

Please report back here about what you learn and how you make out. We
are in the process of investigating this too.

sean


On Apr 12, 2005 4:31 PM, Neal Haggard wrote:
> Mathias,
> 
> That is a very ingenious way to manage that. I like it. We'll play around with that and
see how it works for us. Thanks for the idea.
> 
> Neal
> 
> -----Original Message-----
> From: Broekelmann, Mathias [mailto:MBroekelmann@PSI.DE]
> Sent: Tuesday, April 12, 2005 9:55 AM
> To: MyFaces Development
> Subject: RE: Proposed improvement to x:dataTable
> 
> Hi Neal,
> 
> > -----Original Message-----
> > From: Neal Haggard [mailto:Neal.Haggard@sas.com]
> > Sent: Tuesday, April 12, 2005 3:20 PM
> > To: MyFaces Development
> > Subject: RE: Proposed improvement to x:dataTable
> >
> >
> > Mathias,
> >
> > While your x:columns is very nice, it does not answer Sean's
> > request to have something where the columns can be independently
> > formatted. All of your columns in x:columns must have the same
> > output, so we can't have one column that provides a link to an outside
> > source, or is otherwise dynamically rendered.
> 
> You can put everything into a columns component. I use the rendered flag to switch the
components defined in the jsp on or off. So everything is defined in the columns component
(through includes of other jsps).
> 
> >
> > We also evaluated using x:columns and are on the road to writing
> > our own custom table & column components to meet our user
> > requirements. Our users are wanting to be able to dynamically
> > re-order the columns in the table, and pick and choose which ones to
> > show. We're currently planning on implementing this by having the JSP
> > define all the possible columns, and specify on the column what index
> > the columns should have (to specify column ordering, to be sorted &
> > handled by our DataTable). We're also adding a rendered attribute to
> > the column, to allow columns to be shown/hidden as needed.
> 
> Our users do the same with the columns component. They choose the columns they want and
the content is rendered in depend of the data which contains the column. How the content is
rendered is defined through one of the nested panelgroups inside the columns component.
> 
> >
> > If anyone has any ideas of how we can meet our user requirements
> > with some available component out there, we'd love to hear about it.
> >
> 
> Here is an example how we use the columns component:
> 
> Content of overview.jsp which shows the datatable
> 
> > styleClass="data" border="0" frame="box"
> value="#{overview.resourcesModel}" var="line" >
> 
> 
> > action="#{overview.create}">
> > value="/public/images/admin/erstellen.gif" alt="Erstellen"
> />
> 
> 
> > action="#{overview.modify}">
> > 
> value="/public/images/admin/bearbeiten.gif" alt="Bearbeiten" />
> 
> 
> 
> 
> 
> 
> 
> > different content -->
> 
> > null}">
> 
> 
> 
> > url="/public/images/admin/activeCheckBox.gif"
> rendered="#{attr.value}" />
> > url="/public/images/admin/inactiveCheckBox.gif"
> rendered="#{!attr.value}" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> > action="#{overview.selectAttributes}" />
> 
> 
> 
>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
View raw message