首页
\
问答
\
如何从特定PrimeFaces中删除边框p:panelGrid?(How to remove border from specific PrimeFaces p:panelGrid?)
如何从特定PrimeFaces中删除边框p:panelGrid?(How to remove border from specific PrimeFaces p:panelGrid?)
我很难从特定的PrimeFaces
<p:panelGrid>
中删除边框。<p:panelGrid styleClass="companyHeaderGrid"> <p:row> <p:column> Some tags </p:column> <p:column> Some tags </p:column> </p:row> </p:panelGrid>
我已经能够从单元格中删除边框:
.companyHeaderGrid td { border: none; }
但
.companyHeaderGrid { border: none; }
不行
I have difficulty in removing border from a specific PrimeFaces
<p:panelGrid>
.<p:panelGrid styleClass="companyHeaderGrid"> <p:row> <p:column> Some tags </p:column> <p:column> Some tags </p:column> </p:row> </p:panelGrid>
I have been able to remove border from the cells with:
.companyHeaderGrid td { border: none; }
But
.companyHeaderGrid { border: none; }
Does not work.
原文:https://stackoverflow.com/questions/10421581
更新时间:2023-04-20 18:04
最满意答案
在onCreateDialog()函数中,您可以保持引用要切换到的标题视图的对话框视图。 点击列表视图的点击事件。
lv.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position,long id) { //Toggle your title here } });
In the onCreateDialog() function, you can hold the dialog view which referencing to title view which you want to toggle on. On click event of listview.
lv.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position,long id) { //Toggle your title here } });
相关问答
更多-
调用show()后在对话框片段中修改膨胀的膨胀视图(Modfiying inflated inflated view in a dialogfragment after calling show())[2024-02-20]
在onCreateDialog()函数中,您可以保持引用要切换到的标题视图的对话框视图。 点击列表视图的点击事件。 lv.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position,long id) { //Toggle your title here } }); ... -
你调用了错误的方法,你应该在你的片段中调用getView()而不是getRootView() 。 ViewGroup的代码ViewGroup导致stackoverflow: /** * @hide */ @Override public void resetResolvedLayoutDirection() { super.resetResolvedLayoutDirection(); int count = getChildCou ...
-
如何在android片段中保存多个膨胀的布局视图状态?(how to save multiple inflated layouts view state in android fragment?)[2022-02-21]
我猜你在onCreate中尝试过setRetainInstance(true)吗? 尽管如此,如果不削减它,我认为你将不得不以某种方式持久化状态,无论是数据库还是包含模型数据的文件。 然后在onCreate中检查数据库/文件并相应地增加布局。 I guess you did try setRetainInstance(true) in onCreate? Nonetheless if that does not cut it I think you will have to persist the stat ... -
我的一位同事建议通过手动将视图添加到容器来解决此问题。 这是编辑过的代码: LayoutInflater layoutInflater= LayoutInflater.from(context); for (ProfileServiceCategory.ProfileService service : profileServiceCategory.getServices()) { View view = layoutInflater.inflate(R.lay ...
-
循环中的多个膨胀视图(Multiple inflated views in loop for)[2022-12-09]
根据您提供的信息,我猜您的LinearLayout设置为水平(默认值),因此您的所有标题/列表视图实际上都已添加,但您无法看到它们,因为它们不在旁边。 通过添加修复 android:orientation="vertical" 到您的LinearLayout XML标记。 如果这不是问题,请发布相关的XML布局。 From the information you've given, I would guess that your LinearLayout is set to horizontal (the ... -
我找到了这种情况的解决方法并解决了我的问题。 正如我所说,相同的代码工作正常并显示ContextMenu,如果我在我在setContentView()方法中设置的XML中定义ImageView。 我只是使用该imageView的对象来注册contextMenu并在点击膨胀项目时显示ContextMenu。 以下是示例代码: @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) ...
-
试试这样: imageView = (ImageView) intilt .findViewById(R.id.contimg); Try like this: imageView = (ImageView) intilt .findViewById(R.id.contimg);
-
我经历过一些属性可以覆盖layout_width-attribute。 尝试从RelativeLayout中删除layout_centerHorizontal,layout_centerVertical和scaleType。 据我所知,他们无论如何都没有任何目的。 I have experienced that some attributes can override the layout_width-attribute. Try to remove layout_centerHorizontal, lay ...
-
我只用一个更改复制了你的代码:我删除了 tools:context="${relativePackage}.${activityClass}" 来自activity_verbs,它对我来说就像一个魅力: 我将带有代码的测试项目上传到DropBox,随时可以下载: https ://www.dropbox.com/s/8fcdab3rmx8zb57/ElaPinkSO.zip?dl = 0 PS结构很好的问题,干得好! I copied your code with only one change: I ...
-
getId()将返回布局中顶级View的id。 因此,例如,如果你在my_layout.xml中有这样的布局文件:
相关文章
更多- 利用Decommission从Hadoop集群中Remove节点
- 微信支付http://www.cnblogs.com/True_to_me/p/3565039.html
- 微软做一个p2p通信基础平台会怎么样?
- 微信公众账号开发教程(一) 基本原理及微信公众账号注册 ——转自http://www.cnblogs.com/yank/p/3364827.html
- 微信公众账号开发教程(四)自定义菜单(含实例源码)——转自http://www.cnblogs.com/yank/p/3418194.html
- solr部署(转http://www.cnblogs.com/qiyebao/p/3880121.html)
- HADOOP实践101:在Hadoop集群中添加机器和删除机器
- mongodb删除文档操作-使用shell和java操作mongodb文档
- [google面试CTCI] 1-5.替换字符串中特定字符
- qq,旺旺,微信在线代码
最新问答
更多- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)
- 是否可以嵌套hazelcast IMaps?(Is it possible to nest hazelcast IMaps? And whick side effects can I expect? Is it a good Idea anyway?)
- UIViewAnimationOptionRepeat在两个动画之间暂停(UIViewAnimationOptionRepeat pausing in between two animations)
- 在x-kendo-template中使用Razor查询(Using Razor query within x-kendo-template)
- 在BeautifulSoup中替换文本而不转义(Replace text without escaping in BeautifulSoup)
- 如何在存根或模拟不存在的方法时配置Rspec以引发错误?(How can I configure Rspec to raise error when stubbing or mocking non-existing methods?)
- asp用javascript(asp with javascript)
- “%()s”在sql查询中的含义是什么?(What does “%()s” means in sql query?)
- 如何为其编辑的内容提供自定义UITableViewCell上下文?(How to give a custom UITableViewCell context of what it is editing?)
- c ++十进制到二进制,然后使用操作,然后回到十进制(c++ Decimal to binary, then use operation, then back to decimal)
- 以编程方式创建视频?(Create videos programmatically?)
- 无法在BeautifulSoup中正确解析数据(Unable to parse data correctly in BeautifulSoup)
- webform和mvc的区别 知乎
- 如何使用wadl2java生成REST服务模板,其中POST / PUT方法具有参数?(How do you generate REST service template with wadl2java where POST/PUT methods have parameters?)
- 我无法理解我的travis构建有什么问题(I am having trouble understanding what is wrong with my travis build)
- iOS9 Scope Bar出现在Search Bar后面或旁边(iOS9 Scope Bar appears either behind or beside Search Bar)
- 为什么开机慢上面还显示;Inetrnet,Explorer
- 有关调用远程WCF服务的超时问题(Timeout Question about Invoking a Remote WCF Service)