| Author |
Message |
|
|
|
I found the issue to be that the tomahawk components are incompatible with the ecruiser comonents. Just add the tomahawk jar file attached to your project.
|
 |
|
|
|
Not that I can fine. I will try and isolate it entirely in its own project.
|
 |
|
|
|
Attached files throws exception when you click on calendar
|
 |
|
|
|
JSF 1.2. No parent and did not set converter programically. I have the value the dateinput bound to a java.util.Date in managed bean, a date in the POJO object bound in bean. This seems related to the issue you fixed for 1.9. Are you using 1.8 or the fixed code. The pattern is set to MM/dd/yyyy but I can't tell from exception if the framework change format to MMM and therefore throws parse exception on month.
|
 |
|
|
Running 1.1.8.
endVac date populated from DB with value 11/24/2008. Click on calendar to change the date:
ajax response error: For input string: "Nov 24, 2008"
java.lang.NumberFormatException: For input string: "Nov 24, 2008"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:4
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.valueOf(Integer.java:553)
at ecruiser.advanced.calendar.render.html.HTML_CalendarRenderer.getJSParams(Unknown Source)
at ecruiser.advanced.calendar.render.html.HTML_CalendarRenderer.encodeEnd(Unknown Source)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
at ecruiser.render.html.HTML_ContentRenderer.encodeChildren(Unknown Source)
at ecruiser.render.html.HTML_PopupDivRenderer.ajaxEncode(Unknown Source)
at ecruiser.advanced.calendar.render.html.HTML_DateInputRenderer.ajaxEncode(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeRecursive(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.encodeComponent(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.ajaxResponse(Unknown Source)
at ecruiser.ajax.AjaxPhaseListener.beforePhase(Unknown Source)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:19
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:19
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:19
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:28
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:56
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.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
|
 |
|
|
|
So if I understand you onchange="true" means you can implement public void onchange(ActionEvent ae) in the managed bean or is it a value change event.
|
 |
|
|
|
Thanks Adina
|
 |
|
|
|
Please disregard. Going through the API doc I realized you need to bind a dataModel which contains the List<SelectItem>. Only thing I have not figured out is what the onchange tag attribute is all about.
|
 |
|
|
|
I have 3 e:selects. One for month one for year. The third select is the number of weeks in the selected month/year. I was hoping to use the e:select component to dynamically set week select component. However, the weekSelect.setItems(SelectItem[]) does not render the SelectItems, weekSelect.addItem also does not work as anticipated. I was also supprised that you can not use <f:selectItems> only <f:selectItem>.
|
 |
|
|
|
We are using 1.17. I just downloaded 1.1.8. The rendering of the popup calendar is much better, especially since I rendered the calendar icon on the left. However, I am unable to select the date that is defaulted in the calendar. For instance when the calendar pops up and today's date is highlighted with the box border, if you click on that date no event is fired the calendar just stays open. Is there a way to not select any date when the calendar pops up? The issue with changing a date manually in the date input field still exists. Change the mock up date getter to return the current date. Then try and change the date in the input field, don't use the calendar pop up. My example is a populated date of 11/10/2008 is displayed in the date input and when I change it to 11/13/2008 using the keyboard the date reverts back to 11/10/2008 when the focus is lost on the input field.
|
 |
|
|
Dateinput will not update value in Bean when you type the date. Works fine when you use the popup calendar. Additionally I have a dateinput rendered in grid table in edit mode. The dateinput is at the end of a horizontal scrolled row. When the edit mode is entered the calendar pops up to the bottom right of the column but is not accessible because it is not on top of the gridtable and you can't scroll right to see it. What controls location of the popup calendar.
<e:dateinput id="cutDt"
autoPopup="false"
value="#{groomBean.cutDate}"
pattern="MM/dd/yyyy"
styleClass="fieldInput"
style="width:50px;"
inputStyle="fieldInput">
private Date cutDate;
public Date getCutDate() {
return this.cutDate;
}
public void setCutDate(Date cutDate) {
this.cutDate = cutDate;
}
|
 |
|
|
|
Can you tell me what the values for the timeZone attribute are. CST does not work and true/false does not work. Also is there an attribute to hide the minutes and how do you get the time to correctly display the time from the date object its bound to.
|
 |
|
|
I figured it out. When you bind the model to the list it does not pass a reference to the list in the parent object but creates a deep copy. I can see the objects being updated on the onEndEdit event and when I look at them via the model I get the updated objects.
ArrayList<ChildPojo> muxList = (ArrayList<ChildPojo>) gridModel.getWrappedData();
|
 |
|
|
Is there any way to obtain only rows that have been modified once the user submits the form requesting changes be persisted?
ArrayList<ChildPojo> childList;
model = new WrappedDataModel(new ListDataModel(parentPojo.getChildList()));
<e:gridtable id="gList"
align="center"
rendered="#{bean.renderDetail}"
dataModel="#{bean.model}"
binding="#{bean.table}"
headerStyle="dataTableHeader"
fixedColumnCount="0"
innerBorder="1"
pageSize="-1"
editStyle="fieldInput"
minRows="1"
rendersChildren="true"
style="Filter: Gray; border-width: 1px; border-style: solid; border-color: #000000;"
width="935">
<e:dataTr>
<e:dataTd>
<h:commandLink actionListener="#{bean.editChild}"
value="Detail"
styleClass="tableListLink">
<f:attribute name="childId" value="#{ROW.id}"/>
</h:commandLink>
</e:dataTd>
<e:gridTd id="attr1" labelText="ATTR_1"
value="#{ROW.attr1}"
onendedit="#{bean.updateAttr1}">
</e:gridTd>
<e:gridTd id="attr2" labelText="ATTR_2"
value="#{ROW.attr2}"
onendedit="#{bean.updateAttr2}">
<f:facet name="editMode">
<h:selectOneMenu value="#{ROW.attr2}" styleClass="fieldInput">
<f:selectItems value="#{bean.attr2List}"/>
</h:selectOneMenu>
</f:facet>
</e:gridTd>
<e:gridTd id="date894" labelText="DATE 894"
value="#{ROW.date894}"
onendedit="#{gean.update894}">
<h:outputText styleClass="dataTablePrintColumn"
value="#{ROW.date894}"
style="text-align:left;">
<f:convertDateTime pattern="MM/dd/yyyy"/>
</h:outputText>
<f:facet name="editMode">
<e:dateinput value="#{ROW.date894}" style="border:1px solid;"
pattern="MM/dd/yyyy"/>
</f:facet>
</e:gridTd>
|
 |
|
|
|
I am having problems with the gridtable not updating a POJO object in the bound dataModel. I have even implemented the onendedit and manually called the setter on the object but when I persist the list of objects in the table not one of the values entered have been captured. Its as if the gridCell is updating a new instance of the data. Gridtable binds ArrayList<POJO> gridTd id="#{ROW.attr}" does not set value in POJO. Adding facet with selectOneMenu value=#{ROW.attr}" does not set value in POJO. gridTd onendEdit=#{bean.setManually}" does not set the value.
|
 |
|
|