Re: submit date in textfield with custom date format

2010-12-12 Thread cellterry
Yes, you are right. After searching online a while, I have the following conversion class: http://old.nabble.com/file/p30437359/DateTypeConverter.java DateTypeConverter.java However, when I convert a date, I get the following error. Note that the class is found and loaded as "test" in class co

submit date in textfield with custom date format

2010-12-06 Thread cellterry
Dear All, I am using struts textfield tag with a date field with date format "-MM-dd." I have seen the following link which also can display what I want. http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html

Re: Setting css of a row

2010-11-06 Thread cellterry
> > That said, I'm not a fan of mixing layers like that: * possibly* get > something business- oriented from the action and use CSS to style it... > but > a color from the action is poor design. > > Dave > On Nov 6, 2010 12:46 AM, "cellterry" wrote: >>

Setting css of a row

2010-11-05 Thread cellterry
Dear all, I want to set a table row with a color retrieved from an action class, could I do that? If yes, how to do that? Terry. -- View this message in context: http://old.nabble.com/Setting-css-of-a-row-tp30146983p30146983.html Sent from the Struts - User mailing list archive at Nabble.com

s:textfield or s:select with button

2010-10-31 Thread cellterry
Dear all, I have a question about s:textfield or s:select with a command button just following it. For example, I have tried this: I found that the button "..." is not following the selection box but is on the next line. Do anyone know how to correct the position so that it is just beside t

LazyInitializationException

2010-10-29 Thread cellterry
Dear all, I encountered LazyInitializationException today in my SSH project today as follows. >>>LOG4J<<< 1 2010-10-29 17:37:42,454 [http-8080-2] ERROR org.hibernate.LazyInitializationException - #org.hibernate.LazyInitializationException.(LazyInitializationException.java:19)# - failed

Re: The requested list key 'prices' could not be resolved as a collection/array/map/enumeration/iterator type.

2010-10-28 Thread cellterry
Thanks all, It is my fault. During rewriting the jsp, I found that I forgot to delete the hidden field: Terry. Li Ying wrote: > > You may need check: > (1)Which jsp pages is executed when you submit your page? > (2)Before the tag reference the list which named "prices", > are you sure you

Re: The requested list key 'prices' could not be resolved as a collection/array/map/enumeration/iterator type.

2010-10-28 Thread cellterry
l button... > > http://www.useit.com/alertbox/2416.html > > Dave > > On Thursday, October 28, 2010, cellterry wrote: >> >> Hello all, >> >> I encountered a strange problem today: >> >> so.detail.jsp: >> … >> >> … >>

Re: The requested list key 'prices' could not be resolved as a collection/array/map/enumeration/iterator type.

2010-10-28 Thread cellterry
Yes, sure, here in below: package action; import java.util.*; import javax.servlet.http.HttpServletRequest; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionSupport; @SuppressWarnings("serial") public cl

Re: The requested list key 'prices' could not be resolved as a collection/array/map/enumeration/iterator type.

2010-10-28 Thread cellterry
Yes, I create it inside the action but the error happened before running the first sentence of the "soDetail" action. Li Ying wrote: > > Did you create the list which is referenced in your JSP? > > > 2010/10/28 cellterry : >> >> Hello all, >&g

The requested list key 'prices' could not be resolved as a collection/array/map/enumeration/iterator type.

2010-10-28 Thread cellterry
Hello all, I encountered a strange problem today: so.detail.jsp: … … … … … The selection box got what I wanted when loading at first. When I pressed cancel button in so.detail.jsp, the following error occurred: org.apache.jasper.JasperExcept

Manually run the validation xml

2010-10-22 Thread cellterry
Hello, Could anyone tell me that could I manually run a validation xml rather than being intercepted when an user click OK button in my jsp? Terry. -- View this message in context: http://old.nabble.com/Manually-run-the-validation-xml-tp30033907p30033907.html Sent from the Struts - User mai

Re: Implement Edit and Delete functions in Struts jQuery Grid

2010-10-19 Thread cellterry
Here is my code: function formatLink(cellvalue, options, rowObject) { return ""; } Terry. Johannes Geppert wrote: > > great! > > can you contribute the sources? > if possible i add this to the wiki. > > > J

Re: Implement Edit and Delete functions in Struts jQuery Grid

2010-10-19 Thread cellterry
FormatGrid > > Johannes > > > cellterry wrote: >> >> Dear all, >> >> For Struts2 jQuery Plugin, >> >> could I add edit and delete buttons on each row of the table using sjg >> tag? >> >> If not, how do I implement edit & delet

Re: jqGrid with Struts and Spring

2010-10-18 Thread cellterry
t wrote: >> The only things I can think of to check would be, do you have the >> struts2-spring-plugin.jar file in your WEB-INF/lib directory? And have >> you >> set the struts.objectFactory property to "spring"? >> >> >> >>   (*Chris*) &g

Implement Edit and Delete function in Struts jQuery Grid

2010-10-16 Thread cellterry
Dear all, For Struts2 jQuery Plugin, could I add edit and delete buttons on each row of the table using sjg tag? If not, how do I implement edit & delete functions using this grid? Terry. -- View this message in context: http://old.nabble.com/Implement-Edit-and-Delete-function-in-Struts-jQ

[Solved] Re: sx:datetimepicker

2010-10-16 Thread cellterry
Finally I find out what happens by comparing showcase of the plugin with my codes: In web.xml, change org.apache.struts2.dispatcher.FilterDispatcher to org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter and then the datepicker work normally. Terry. -- View this message

struts file tag "accept" attribute

2010-10-14 Thread cellterry
Dear all, I find that accept attribute of struts file tag (s:file) seems to be not working. My code is: : : : : A file dialog is prompted, but there is no filter to image types jpeg. My struts core version is 2.1.8.1. Terry. -- View this message in context: http://old.nabble.com/struts-f

dynamic create jasper jrxml file

2010-10-13 Thread cellterry
Hello all, Is it a normal way to create jrxml file for jasperreport dynamically? I ask this because I want to skip all fields with null values so that the report looks more tight. Especially for the page header, which contains company information, for example, if the company has no web site or f

Re: Master-details JSP with Validation xml

2010-10-12 Thread cellterry
turns the inputnresult name. > > Dave > > On Tuesday, October 12, 2010, cellterry wrote: >> >> Thank you. >> >> This helps to solve the problem,, Li Ying. >> >> Terry. >> >> >> Li Ying-2 wrote: >>> >>> Hi cellterry: &

Re: Master-details JSP with Validation xml

2010-10-12 Thread cellterry
Thank you. This helps to solve the problem,, Li Ying. Terry. Li Ying-2 wrote: > > Hi cellterry: > > I think your problem is very general. > > What you need is a chance to reload some data, when the > validation get failed and the page is displayed again. > > I t

Master-details JSP with Validation xml

2010-10-11 Thread cellterry
Dear All, I have a form which is master-detail type containing customer information as master and also warehouse information as detail. For one customer it may contain more than one warehouse. The Customer model class is as follows: package model; : : public class Customer {

Re: sx:datetimepicker

2010-10-10 Thread cellterry
ny errors in the JavaScript console? It's important > to tell the details, otherwise it's really difficult to help. > > Dave > > On Sun, Oct 10, 2010 at 1:47 PM, cellterry wrote: > >> >> Dear all, >> >> So unlucky I encountered another pr

Re: sx:datetimepicker

2010-10-10 Thread cellterry
Dear all, So unlucky I encountered another problem to use struts-jquery-plugin (2.4.1). I found that the datepicker field looks the same as a textfield without any button beside it. My JSP is: : : <%...@taglib prefix="s" uri="/struts-tags"%> <%...@taglib prefix="sj" uri="/struts-jquery-tags"%

Re: sx:datetimepicker

2010-10-10 Thread cellterry
Thanks, Dave. It seems that I should turn to study jquery plugin. Terry. -- View this message in context: http://old.nabble.com/sx%3Adatetimepicker-tp29927463p29927727.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: sx:datetimepicker

2010-10-10 Thread cellterry
Hello, sx tag lib is deprecated? I do not think so. It is newly introduced since 2.1.x version. Dave Newton-6 wrote: > > Any errors in the JavaScript console? > > (Also, bear in mind that these tags are deprecated for a reason!) > > Dave > > On Sun, Oct 10, 20

sx:datetimepicker

2010-10-10 Thread cellterry
Dear all, Recently I am trying to use dojo compnent sx:datetimepicker in struts 2.1.8.1 with dojo plugin. I found even the render of field box cannot be obtained but the label appears. Actually I have done the following in my JSP file. 1. Include tag lib: <%...@taglib prefix="sx" uri="/struts