dev@jsftemplating.java.net

Re: JSFTemplating: Enhancement #10: Dynamic table

From: Karam Singh Badesha <Karam.Badesha_at_Sun.COM>
Date: Fri, 31 Aug 2007 11:34:40 -0700

Ken,
Attached are the newTable and oldTable snapshots. As you can see that
spacerColumn in the newTable has a sort icon. Eventhough I am passing
empty value for that column, just because of "sort" being there creates
those icons. That is why I was asking if there is way to ignore that if
some option can be passed so that it doesn't create those icons.
Also for tableColumn within tableColumn you can see that in the example
as well.

thanks
Karam

Ken Paulsen wrote:
>
> Hi Karam,
>
> I'm not sure if columns w/i columns is supported the way you want (or
> at all). You can try using a panelGrid / panelGroup to acheive this
> w/i a single column. This would have to be done using the createChild
> event that I showed you how to do in a previous email... or you might
> be able to do the same work-a-round you decided to do for your href's
> (embed the HTML directly in the markup). If you did this, you'd do
> something like:
>
> "<table><tr><td>#{td.value.foo}</td><td>...", "#{td.value.bar}", ...
>
> I'm not sure what you mean be the "spacerColumn". Is this a Woodstock
> feature? Or are you simply trying to provide a blank column? Perhaps
> if you send a screen shot it would help explain what you mean.
>
> You may also want to add the woodstock alias to some of these
> questions as I am certainly not a Woodstock table expert. :) Although
> I'm happy to try to help.
>
> Good luck!
>
> Ken
>
> Karam Singh Badesha wrote:
>> Ken,
>> Finally I have got all the data from database and showing properly in
>> the table. Only things I am not sure how to do are:
>>
>> - how would I create columns within columns?
>> - spacerColumn has sort icon (not a big issue currently). I think
>> since all the lists that I am passing have to be same number, even
>> though sort entry is empty, it still shows the icon. There needs to
>> be a way to ignore it if say the value is "null" or something.
>>
>> thanks
>> Karam
>>





newTable.JPG
(image/jpeg attachment: newTable.JPG)

oldTable.JPG
(image/jpeg attachment: oldTable.JPG)