jsf-1.2

Rich TabPanel's getters invoked when tab content not rendered

て烟熏妆下的殇ゞ 提交于 2019-12-03 20:44:00
I have a question about RichFace's (3.3.3) TabPanel. I have worked on two projects that have used the TabPanel. On each project, I have noticed that components that are on tabs that are not visible still have their "getter" methods called. For example, the first tab has a datatable on in and any time requests are made from any of the other tabs (including ajax requests) the bean that is bound to the datatable on the first tab still has its getter called. I assume this happens (even though the tab is currently not rendered in the UI) because the component is still in the component hierarchy? In

auto -instantiate a session bean?

断了今生、忘了曾经 提交于 2019-12-02 06:24:51
问题 I have a session bean <managed-bean> <managed-bean-name>vdcAddBean</managed-bean-name> <managed-bean-class>com.cloud.appsportfolio.jsf.vdc.beans.VDCAddBean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> Now, I am injecting this bean into a request one: <managed-bean> <managed-bean-name>providerSelectionBean</managed-bean-name> <managed-bean-class>com.cloud.appsportfolio.jsf.sourcing.ProviderSelectionBean</managed-bean-class> <managed-bean-scope>request<

JSF 1.2 custom component from jsp:include

情到浓时终转凉″ 提交于 2019-12-02 04:53:47
问题 Before I get started with my question, here are my unfortunate limitations: I'm using JSF 1.2, not 2; so no composite component. I'm using JSP for rendering instead of facelets; so none of those composite components either. I'm not allowed to use any 3rd-party tag libraries (richFaces, iceFaces, etc.) These limitations are set in stone. Now moving onto my question. Currently, we have a JSP subview which handles creating an address. There is a lot of javascript that goes along with this, along

Input value not processed in request scoped bean when using conditional rendering

。_饼干妹妹 提交于 2019-12-02 03:48:11
问题 I know this type of question has been asked million times here, but I couldn't find a solution for my problem in relevant posts. JSF 1.2 I have a request-scoped bean with a method used as valueChangeListener: class DoStuff{ ... public void step1ChkStuffIncluded_CheckedChanged(ValueChangeEvent event){ StuffDocument cd = (StuffDocument)getInfo("StuffDocument"); if(cd == null){ Logger.Error("DoStuff", "step1ChkStuffIncluded_CheckedChanged", "No stuff document (null)"); return; } if

auto -instantiate a session bean?

杀马特。学长 韩版系。学妹 提交于 2019-12-02 03:40:50
I have a session bean <managed-bean> <managed-bean-name>vdcAddBean</managed-bean-name> <managed-bean-class>com.cloud.appsportfolio.jsf.vdc.beans.VDCAddBean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean> Now, I am injecting this bean into a request one: <managed-bean> <managed-bean-name>providerSelectionBean</managed-bean-name> <managed-bean-class>com.cloud.appsportfolio.jsf.sourcing.ProviderSelectionBean</managed-bean-class> <managed-bean-scope>request</managed-bean-scope> <managed-property> <property-name>vdcAddBean</property-name> <property-class>com

ToolTip for each SelectOneMenu Items in jsf

爱⌒轻易说出口 提交于 2019-12-02 01:09:19
My requirement is to provide a tooltip for every option in the SelectOneMenu because label of option is so large that it's not possible to provide such a large size SelectOneMenu .So the label is cutting. Thats why i need tooltip to show the whole value on mouse over of the options in the SelectOneMenu . Any ideas will be appreciated. You can use javascript . Assume your selectOneMenu as below. <h:form id="form1"> <h:selectOneMenu id="combo1"> <f:selectItem itemLabel="First Label"/> <f:selectItem itemLabel="Second Label"/> <f:selectItem itemLabel="Third Label"/> </h:selectOneMenu> </h:form>

a4j:commandButton reRendering rich:datatable

左心房为你撑大大i 提交于 2019-12-01 18:43:30
My issue is that I am trying to have a column in my datatable show an outputtext by default, and replace that with an inputtext when the commandbutton is pressed. Have not found a solution. First post by the way. I have an a4j:commandButton that I am looking to reRender this part of my dataTable <a4j:commandButton reRender="yieldTable" action="#{yieldSearch.activateVisible()}" id="modify" styleClass="editLargeIcon" value="Modify"> </a4j:commandButton> <rich:dataTable id="yieldTable" value="#{yieldSearch.yfitem.yielditem}" var="_yield"> <rich:column> <f:facet name="header">%-YLD</f:facet> <h

a4j:commandButton reRendering rich:datatable

主宰稳场 提交于 2019-12-01 17:27:46
问题 My issue is that I am trying to have a column in my datatable show an outputtext by default, and replace that with an inputtext when the commandbutton is pressed. Have not found a solution. First post by the way. I have an a4j:commandButton that I am looking to reRender this part of my dataTable <a4j:commandButton reRender="yieldTable" action="#{yieldSearch.activateVisible()}" id="modify" styleClass="editLargeIcon" value="Modify"> </a4j:commandButton> <rich:dataTable id="yieldTable" value="#

JSF 1.2 - iterate over a Map that contains Collections

拥有回忆 提交于 2019-12-01 16:42:50
Using JSF 1.2 and JSP .... Is it possible to iterate over a Map whose values contain Collections? I have a Map that looks like this: Map<String, List<Foo>> myMap; I would like to iterate over myMap and draw a separate table for each key. Each table will contaim multiple rows. Each row will represent a Foo object from the ArrayList mapped to the current key. Sadly we are using JSF 1.2 and JSP. I was hoping I could use a nested <h:dataTable> tag, but I'm not having any success. Edit : Here is my current JSP code after consulting BalusC's answer: <c:forEach items="#{someModule$someBean.prefMap}"

JSF 1.2 - iterate over a Map that contains Collections

心不动则不痛 提交于 2019-12-01 15:51:46
问题 Using JSF 1.2 and JSP .... Is it possible to iterate over a Map whose values contain Collections? I have a Map that looks like this: Map<String, List<Foo>> myMap; I would like to iterate over myMap and draw a separate table for each key. Each table will contaim multiple rows. Each row will represent a Foo object from the ArrayList mapped to the current key. Sadly we are using JSF 1.2 and JSP. I was hoping I could use a nested <h:dataTable> tag, but I'm not having any success. Edit : Here is