tabview

Primefaces tabview tabChange event fired after displaying tab

你。 提交于 2019-12-19 09:46:34
问题 I am working on a project using Primefaces 3.5 & JSF2.1 (Mojarra) I have created a primefaces <p:tabView id="tabsVw" dynamic="false"> with two tabs inside and each tab has a primefaces datatable <h:form> <p:tabView dynamic="false"> <p:ajax event="tabChange" listener="#{tstTab.onDtlTabChanged}" /> <p:tab title="tab1"> <p:dataTable value="#{tstTab.list1}" var="v1"> <p:column> <h:outputText value="#{v1}"/> </p:column> </p:dataTable> </p:tab> <p:tab title="tab2"> <p:dataTable value="#{tstTab

Android listview inside tab layout inside dialog can't get scroll bars to show up

末鹿安然 提交于 2019-12-19 04:39:18
问题 I have a custom dialog class that extends Dialog. Inside this I have a Tab Layout with 2 tabs. In each tab I have a list view. Everything works but I can't get scroll bars to show up. Here is my XML: <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/TabHost01" android:layout_width="300dp" android:layout_height="300dp"> <LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height

Android listview inside tab layout inside dialog can't get scroll bars to show up

时间秒杀一切 提交于 2019-12-19 04:39:10
问题 I have a custom dialog class that extends Dialog. Inside this I have a Tab Layout with 2 tabs. In each tab I have a list view. Everything works but I can't get scroll bars to show up. Here is my XML: <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/TabHost01" android:layout_width="300dp" android:layout_height="300dp"> <LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height

Is it realizable on Android?

余生颓废 提交于 2019-12-18 07:23:30
问题 I've just started working on Android. Could you please give me a tip if it's possible to realize the following screen: http://i.stack.imgur.com/0Hy6W.png In the left side there is listview and in the right there is TabView with listviews in each tab. And if it`s possible, what elements and activities should I use? 回答1: main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width=

Combination of fixed and dynamic tabs in PrimeFaces TabView

徘徊边缘 提交于 2019-12-13 16:21:22
问题 Is it possible to combine fixed and dynamic tabs in a PF TabView? My use case is creating a tab for each object in an object list dynamically. A fixed tab will hold a form for creating a new object. Once the form is submitted, a new tab with a new object must be added to the TabView. So far I managed to implement this functionality only with two views - one for displaying objects dynamically and the other one with a form for a new object. I tried to write a new TabView Renderer that would be

pre-create row views before creating a listview activity?

為{幸葍}努か 提交于 2019-12-13 05:42:07
问题 I have an activity that has two tabs and a list view in each. I want to make loading and opening of the activities very fast. I'm worried that populating both list tabs will cause the app to lag when that acivity opens. I'm thinking of loading data from my database during the splash screen of my app and creating an array of views, then simply throwing them onto the listviews once that acivity is launched. Is this worth the effort? I can't seem to find a simple way to do something like this. I

Showing recursive lists inside a tab view

穿精又带淫゛_ 提交于 2019-12-13 03:44:50
问题 Algorithm question here. I'm creating an app that shows a legal document, with tabs for navigation (TOC, bookmarks, etc). Inside the TOC tab, I need to show a multilevel table of contents. At the 'leaf' of the toc, I need to show a TextView So, I could have: tab1: List -> List -> List -> List -> List -> TextView or tab1: List -> List -> List -> TextView or tab1: List -> TextView depending on the chapter, section, subsection, subsubsection structure of the book I'm showing. Now, it doesn't

How to get result of child activities in a parent tab activity?

 ̄綄美尐妖づ 提交于 2019-12-13 03:31:24
问题 I have Activity2 which is a TabActivity having child activities Activity3 and Activity4.Acticity2 is called from Activity1.I want results from child activity(Activity3 or Activity4) in Activity2.Any help on this...? 回答1: Use startActivityForResult instead of startActivity to start Activity3 and Activity4. Use setResult in your child activity to return data to the predecessor activity Use onActivityResult in your parent activity to receive the result from the child activity Edit: Added bundle

navigate to another screen from tab-view screen not working

假如想象 提交于 2019-12-12 04:07:41
问题 following is my code:- posting full code index.android.js import React, { Component } from 'react'; import { AppRegistry, Text, StyleSheet, View, NetInfo, Alert, AsyncStorage } from 'react-native'; import Splash from './app/screens/Splash' import { StackNavigator } from 'react-navigation' import Login from './app/screens/Login' import Register from './app/screens/Register' import Check from './app/screens/Check' import Qwerty from './app/screens/Qwerty' import Home from './app/screens/Home'

PrimeFaces button on scrollpanel which is in tabview

我与影子孤独终老i 提交于 2019-12-11 04:29:59
问题 I have view in Dialog: <p:scrollPanel style="height: 610px; width: 740px;"> <p:messages id="messages" showDetail="false" autoUpdate="false" closable="true" /> <p:tabView id="tabs"> <p:tab id="header" title="Ogólne"> <ui:include src="Header.xhtml" /> </p:tab> <p:tab id="source" title="Pomiary" > <ui:include src="Source.xhtml" /> </p:tab> </p:tabView> </p:scrollPanel> And source: <h:panelGroup> <p:scrollPanel style="height: 530px;"> <p:panelGrid > <p:row> <p:column > <p:commandButton