about update file form!
well, I wanne insert a data-item with some files to update, and record the filePath in the data-item. the form is like that: (following is a form) field1: title field2: content field3: update files path -- update button --(here wanne a update form) submit button well I find wicket not support 'two' forms in one page. It throws some Rending Exception. How to deal this problem? Maybe, use two page, one update form, one data-item form, and after update files, save the file path in the session. it's that OK?
how to create the component dynamic?
Well, I wanne build a Survey-System! Now there're some Questions in the Survey-System, and will default some answer-item for user to choice! following is the example of Question 1,It's the weather good today?(A.B.C. would be radio) A.yes, Sunny B.no, Rainy C.so so I think all the component shall be created at run time! but some question has 5 items some has 3 items, some is a TextField which filled by user, some is CheckBox or Radio. How to do with this? Mead
Is there any Color Picker ? like the calendar.DatePicker
Is there Color Picker ? I can choice any color, than return the color code(like FF 00) thanks Mead
when the value is null, wanne judge "null" adn translate the type to string
Hi, I have a entity POJO contain some property, the Type is Data, Character, Interger,String I wanne to display then in Tag, When the String Type is null, the wicket is display ok. but the Date Type, Character Type is null, it cause some NullPoint Error in the browser. so that, I write a Translate Class like this: public class TransUtil { public static String char2String(Character c) { if(c==null){ return "Yes"; } if (c.equals('1')) { return "Yes"; } else { return "No"; } } public static String int2String(Integer i){ if(i==null){ return "defaultMsgID_UnDefault"; } return i.toString(); } public static String date2String(Date date){ if(date==null){ return "defaultMsgID_UnDefault"; } return date.toString(); } } I don't think is a pretty solution, and I wanne know others how to solve this problem? Mead
It is there any Component not translate the HTML tag, and display the right format
Hi All, now, I have integrated a wyswyg Editor with Wicket,and I save a lot of HTML tag into DataBase. The problem is, HTML tag could not show correct form, but display the ESC(transferred) tag for example: in the database there is : rr in the html source code there is:rr
and It can see rr in the browser,lost format So, It is there any Component not translate the HTML tag, and display the right format BestRegards, Mead