Javascript baby :-)

When you click on a row and you need to do something in javascript you
often need info that uniquely identifies a choice.

Ex. A wizard where user can enter a new value or pick one from a
table.  User clicks (or doubleclicks an entry in the table.)  You want
to move on to the next step but you need to post the user's choice.

sean

On 8/11/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> what do you need that for?
>  
>  just curious?
>  
>  regards,
>  
>  martin
> 
>  
> 
> On 8/11/05, Sean Schofield <[EMAIL PROTECTED]> wrote:
> > Nice!  I hadn't thought of that.
> > 
> > BTW, I'm going to add a JIRA issue on a new t:dataTable attribute:
> > rowId.  This will allow you to use EL to determine the id of the <TR>
> > element.  This will be helpful right? 
> > 
> > sean
> > 
> > 
> > 
> > On 8/11/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> > > you need to get to the rowIndex attribute like this:
> > >
> > >  <x:dataTable styleClass="mainTable"
> > >                       var="auctionHolder"
> > >                       value="#{currentAuctionList.auctionList}"
> > >                       preserveDataModel="true"
> > >                       rowIndexVar="rowIdx"
> > >                       cellspacing="5">
> > >
> > >  and then do this in the column:
> > >
> > >  <x:column
> styleClass="#{rowIdx%2==0?'oddRow':'evenRow'}">
> > >
> > >  regards,
> > >
> > >  Martin
> > >
> > > On 8/11/05, Enrique Medina <[EMAIL PROTECTED]> wrote:
> > > > I'm currently subscribed, so it's my fault...
> > > >
> > > > However, from my Javascript solution I could use different colors for
> odd 
> > > and even rows...
> > > >
> > > > How can I do this with the new DataTable?
> > > >
> > > >
> > > > 2005/8/11, Sean Schofield < [EMAIL PROTECTED] >:
> > > >
> > > > > Make sure to subscribe to the dev list and follow all of the JIRA
> > > > > traffic there if you want to be ontop of the latest and greatest.
> > > > > <t:dataTable> and related components like t:columns are changing 
> > > > > almost daily (for the better.)
> > > > >
> > > > > For this feature see:
> > > > >
> > > > > http://issues.apache.org/jira/browse/MYFACES-175 
> > > > >
> > > > > See also:
> > > > >
> > > > > http://issues.apache.org/jira/browse/MYFACES-343
> > > > >
> > > > > sean 
> > > > >
> > > >
> > > >
> > >
> > >
> > 
> 
>

Reply via email to