我想知道是否有任何方法在ah中有多个页脚行:dataTable(或t:datatable)我想做这样的事情(不编译)
<h:dataTable ... var="row">
<h:column>
<f:facet name="header">
Header
</f:facet>
<h:outputText value="#{row.value}"/>
<f:facet name="footer">
FirstFooter
</f:facet>
<f:facet name="footer">
Second Footer in a new tr
</f:facet>
</h:column>
</h:dataTable>
Run Code Online (Sandbox Code Playgroud)
结果是这样的事情
<table border=1 style="border:1px solid">
<thead><tr><th>Header</th></tr></thead>
<tbody><tr><td>Data Value 1</td></tr>
<tr><td>Data Value 2</td></tr>
<tr><td>Data Value ...</td></tr>
<tr><td>Data Value n</td></tr>
</tbody>
<tfoot>
<tr><td>FirstFooter</td></tr>
<tr><td>Second Footer in a new tr</td></tr>
</tfoot>
</table>
Run Code Online (Sandbox Code Playgroud)
任何想法如何最好地实现这一目标?谢谢.
编辑:如果我可以避免使用自定义控件/自定义渲染器,那将是很好的
这是一个有用的例程,当您想知道正在创建的内容以及它的位置时,您可以在iOS应用程序中使用该例程来遍历视图层次结构.
此例程将视图层次结构转储到NSLog()从传入的视图开始.子视图在子视图数组中显示它们的索引,所有超类按顺序用冒号分隔,最后是帧大小.
要转储应用程序的整个视图层次结构,请调用以下方法:
dumpViews([[UIApplication sharedApplication] keyWindow], @"", @"");
Run Code Online (Sandbox Code Playgroud)
要显示摄像机视图的层次结构,请在控制器中覆盖此方法: navigationController:willShowViewController:viewController:animated:
并像这样调用转储例程:
dumpViews(self.modalViewController.view, @"", @"");
Run Code Online (Sandbox Code Playgroud)
对于所有其他观点:
dumpViews(myView, @"", @"");
Run Code Online (Sandbox Code Playgroud)
void dumpViews(UIView* view, NSString *text, NSString *indent)
{
Class cl = [view class];
NSString *classDescription = [cl description];
while ([cl superclass])
{
cl = [cl superclass];
classDescription = [classDescription stringByAppendingFormat:@":%@", [cl description]];
}
if ([text compare:@""] == NSOrderedSame)
NSLog(@"%@ %@", classDescription, NSStringFromCGRect(view.frame));
else
NSLog(@"%@ %@ %@", text, classDescription, NSStringFromCGRect(view.frame));
for (NSUInteger i = 0; i < [view.subviews count]; i++) …Run Code Online (Sandbox Code Playgroud) 在下面的代码中,我希望在调用Class构造函数时将数组定义为大小为x的数组.我怎样才能做到这一点?
class Class
{
public:
int array[];
Class(int x) : ??? { }
}
Run Code Online (Sandbox Code Playgroud) 如果我在我的HTML页面中包含一个JavaScript文件,那么我的JavaScript文件中声明的变量是否也在<script />我的HTML页面的标签中有作用域?例如,在我包含的JS文件中,我声明了一个变量:
var myVar = "test";
Run Code Online (Sandbox Code Playgroud)
然后在我的HTML页面中,这将产生什么(如果它在我的include脚本标记之后)?
alert(myVar);
Run Code Online (Sandbox Code Playgroud) 在使用Mono开发应用程序以在Windows和Mac OSX(以及可能是Linux)上运行时,您会建议使用WinForms或GtkSharp用于GUI以及为什么?
非常感谢具体的例子和成功/恐怖故事.
我需要从字符串中获取类对象,包含运行时类的名称.我发现了一个名为objc_getClass的函数,但我不确定它是否真的是我搜索的内容.
我能这样实现吗?NSString*name = @"AnyClass"; Class*myClass = objc_getClass([name UTF8String]);
有没有办法在最小化时将控制台应用程序放在系统托盘中?
我使用.Net 3.5和c#
我们开始在我们的网络应用程序中广泛使用谷歌地图.它在开始时运行良好,但随着我们添加更多标记,我们发现性能并不完全存在.虽然我很确定我们不会以最有效的方式使用它.
我正在寻找有关Google地图最佳做法和提示的信息.有什么建议?
假设我有一个我正在构建的二进制文件,并且我包含了一堆从未实际使用过的文件,并且后续链接到这些包含文件所描述的库?(再次,这些库从未使用过)
除了增加编译时间之外,这有什么负面影响?
c++ ×2
javascript ×2
.net-3.5 ×1
arrays ×1
c# ×1
class ×1
cocoa-touch ×1
console ×1
constructor ×1
datatable ×1
debugging ×1
g++ ×1
google-maps ×1
gtk# ×1
html ×1
ios ×1
java ×1
jsf ×1
ld ×1
linker ×1
linux ×1
mono ×1
objective-c ×1
runtime ×1
string ×1
system-tray ×1
vb.net ×1
winforms ×1