| Author |
Message |
|
|
Hey buddy,
I found the solution. I mean, its working with some changes. The button inside my ice:column tag is like;
Code:
<ice:commandButton action="#{page_name.action_event}" id="button1" value="Do Some Action"/>
I have used a DataModel of type 'CachedRowSetSortableDataModel' to bind the table with the values from database.
It works for me. Just try it, if it works for you.
Regards,
JSF GEEKS
|
 |
|
|
hi, all
i am getting following exception when selection row in datatable.
java.lang.NullPointerException
at com.icesoft.faces.component.ext.RowSelector.processDecodes(RowSelector.java:406)
at com.icesoft.faces.component.ext.HtmlDataTable.processKids(HtmlDataTable.java:338)
at com.icesoft.faces.component.ext.HtmlDataTable.iterate(HtmlDataTable.java:293)
at com.icesoft.faces.component.panelseries.UISeries.processDecodes(UISeries.java:305)
at javax.faces.component.UIForm.processDecodes(UIForm.java:203)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1001)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:493)
at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:122)
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:73)
at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:28)
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:22)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
MY code(jsp)Code:
<ice:dataTable id="dataTable1" style="left: 254px; top: 134px; position: absolute" value="#{testing.dataTable1CachedRowSetWrapperDataModel}" var="currentRow">
<ice:column id="column1">
<ice:outputText id="outputText1" value="#{currentRow['SubjectFieldId']}"/>
<f:facet name="header">
<ice:outputText id="outputText2" value="SubjectFieldId"/>
</f:facet>
<ice:rowSelector id="rowSelector1" value="#{currentRow.rowSelector1}" toggleOnClick="true" preStyleOnSelection="true" selectionListener="#{testing.rowSelector1_processAction}"/>
</ice:column>
<ice:column id="column2">
<ice:outputText id="outputText3" value="#{currentRow['SubjectFieldName']}"/>
<f:facet name="header">
<ice:outputText id="outputText4" value="SubjectFieldName"/>
</f:facet>
</ice:column>
<ice:column id="column3">
<ice:outputText id="outputText5" value="#{currentRow['langid']}"/>
<f:facet name="header">
<ice:outputText id="outputText6" value="langid"/>
</f:facet>
</ice:column>
</ice:dataTable>
javacode
Code:
public void rowSelector1_processAction(RowSelectorEvent rse) {
int selectedRowIndex = rse.getRow();
System.out.println(selectedRowIndex);
selectedrow[i++]=selectedRowIndex;
}
thanks
|
 |
|
|
hi,
Where can i find RowSelector.java file & how can i edit it any help?
thanks
|
 |
|
|
hi,
can anyone tell me where can i find this RowSelector.java in my project &
which type dataModel is best to use i am currently using CachedRowSetSortableDataModel for database to bean binding.
any help?
|
 |
|
|
hi,
can anyone plz send me a proper row selection example?
And What if i want to select all row by click on select all button any idea?
thanks ,
|
 |
|
|
Hi there,
Can you send me that package of pdf exporter? I want it, if you can.
If possible send it on jsfgeeks@gmail.com
Thanks in advance,
JSF GEEKS
|
 |
|
|
jsfgeeks wrote:
Hi all,
I am using dataTable. Now I want to use selectInputDate and inputText inside dataTable in separate columns. But as I use selectInputDate inside the dataTable, it stops working.
The properties I am setting for selectInputDate (located inside the dataTable) is like;
Code:
<ice:column id="column6">
<f:facet name="header">
<ice:outputText id="outputText18" value="Table_Column3"/>
</f:facet>
<ice:selectInputDate id="selectInputDate1" immediate="true" popupDateFormat="dd/MM/yyyy" renderAsPopup="true"
renderMonthAsDropdown="true" renderYearAsDropdown="true" visible="true"/>
</ice:column>
As I select any date from the calendar, it's NOT showing any date in the date field.
Am I doing any wrong thing ? Any help will be appreciated.
Thanks in advance,
JSF GEEKS
|
 |
|
|
|
Please see below.
|
 |
|
|
thanks,
i have tried it but still getting Argument type mismatch error.
can u plz send me code so i can get ideo of syntax
|
 |
|
|
|
sorry misplaced reply so sorry
|
 |
|
|
hello code for row selection
Code:
<ice:dataTable binding="#{test.dataTable2}" id="dataTable2" rows="4" style="left: 216px; top: 62px; position: absolute"
value="#{test.dataTable2Model}" var="currentRow">
<ice:column id="column1">
<ice:outputText id="outputText1" value="#{currentRow['subjectfield.SubjectFieldId']}"/>
<f:facet name="header">
<ice:outputText id="outputText11" value="table header"/>
</f:facet>
<f:facet name="footer">
<ice:commandButton id="listCreateId" styleClass="iceCmdBtn" value="Create1"/>
</f:facet>
<ice:rowSelector id="rowSelector2" selectionListener="#{test.rowSelectionListener}" preStyleOnSelection="true" toggleOnClick="true" value="#{currentRow.rowSelector2}"/>
</ice:column>
<ice:column id="column2">
<ice:outputText id="outputText3" value="#{currentRow['subjectfield.SubjectFieldName']}"/>
<f:facet name="header">
<ice:outputText id="outputText4" value="SubjectFieldName"/>
</f:facet>
</ice:column>
<ice:column id="column3">
<f:facet name="header">
<ice:outputText id="outputText6" value="new table column"/>
</f:facet>
<ice:commandButton action="#{test.button1_action}" id="button1"
style="border: 1px solid #3333ff; background-image: url(resources/images/all_button1.jpg); color: rgb(255, 255, 255)" value="submit"/>
</ice:column> </ice:dataTable>
bean code
Code:
public void rowSelectionListener(RowSelectorEvent event) {
System.out.println("selected row: "+event.getRow());
System.out.println("selected row: "+event.getRow());
}
|
 |
|
|
hello
code for row selection
Code:
<ice:dataTable binding="#{test.dataTable2}" id="dataTable2" rows="4" style="left: 216px; top: 62px; position: absolute"
value="#{test.dataTable2Model}" var="currentRow">
<ice:column id="column1">
<ice:outputText id="outputText1" value="#{currentRow['subjectfield.SubjectFieldId']}"/>
<f:facet name="header">
<ice:outputText id="outputText11" value="table header"/>
</f:facet>
<f:facet name="footer">
<ice:commandButton id="listCreateId" styleClass="iceCmdBtn" value="Create1"/>
</f:facet>
<ice:rowSelector id="rowSelector2" selectionListener="#{test.rowSelectionListener}" preStyleOnSelection="true" toggleOnClick="true" value="#{currentRow.rowSelector2}"/>
</ice:column>
<ice:column id="column2">
<ice:outputText id="outputText3" value="#{currentRow['subjectfield.SubjectFieldName']}"/>
<f:facet name="header">
<ice:outputText id="outputText4" value="SubjectFieldName"/>
</f:facet>
</ice:column>
<ice:column id="column3">
<f:facet name="header">
<ice:outputText id="outputText6" value="new table column"/>
</f:facet>
<ice:commandButton action="#{test.button1_action}" id="button1"
style="border: 1px solid #3333ff; background-image: url(resources/images/all_button1.jpg); color: rgb(255, 255, 255)" value="submit"/>
</ice:column> </ice:dataTable>
bean code
Code:
public void rowSelectionListener(RowSelectorEvent event) {
System.out.println("selected row: "+event.getRow());
System.out.println("selected row: "+event.getRow());
}
|
 |
|
|
Thank you for reply and time
Jsp Code:
Code:
<c:if test="#{contentview.h3.text!=null || content_view.h9.text!=null || content_view.h11.text!=null}">
<c:if test="#{contentview.h3.text!=null}">
<iframe id="iframe_links" style="border: 2px solid black; width: 100%; height: 100%; position: absolute;" url="${contentview.h3.text}"/>
</c:if>
<c:if test="#{contentview.h9.text!=null}">
<iframe id="iframe_keywords" style="border: 2px solid black; width: 100%; height: 100%; position: absolute;" url="${contentview.h9.text}"/>
</c:if>
<c:if test="#{contentview.h11.text!=null}">
<iframe id="iframe_lessons" style="border: 2px solid black; width: 100%; height: 100%; position: absolute;" url="${contentview.h11.text}"/>
</c:if>
</c:if>
//here contetnView is my bean name & h11,h9 etc are hidden fields.
i am using following tag library
xmlns:c="http://java.sun.com/jsf/jstl/core"
if use tag library
xmlns:c="http://java.sun.com/jsp/jstl/core"
then it gives error like argument type mismatch!!!!!
any help wil appreciate
|
 |
|
|
hi all,
Why C:if not working with icefaces?
i am using object & embed tag of html for flash & video play.Actualy i need to use html object & embed because we are using encrypted custome player so it only supports html object tag.
and for different types of media type like swf & video i am using c:if condidtion tag
i won't able to use render because of html object tag!!!!
any help
|
 |
|
|
hi,
I need datatable Row slection example
|
 |
|
|