Re: questions about CheckGroupSelector's behavior?

2012-01-13 Thread rolandpeng
yes, Sven. it's the same issue of wicket-4279 https://issues.apache.org/jira/browse/WICKET-4279 I'll download wicket 1.5.4 after release, thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/questions-about-CheckGroupSelector-s-behavior-tp4291374p4291630.html

questions about CheckGroupSelector's behavior?

2012-01-12 Thread rolandpeng
CheckGroupSelector is very useful to select all/none, but I found there is one condition that the behavior of CheckGroupSelector becomes strange. I'm not sure whether it's a bug or not. When the CheckGroup contains more than two check items, it's fine for any function. But when it contains only

Re: IndicatingAjaxSubmitLink missing?

2011-02-03 Thread rolandpeng
It's really simple.Thanks for your hint! public abstract class IndicatingAjaxSubmitLink extends AjaxSubmitLink implements IAjaxIndicatorAware { private static final long serialVersionUID = 1L; private final AjaxIndicatorAppender indicatorAppender = new

Re: How to do setResponsePage after alert message pressed ok?

2011-02-02 Thread rolandpeng
Excuse me,I have one more question. After I press ajax onsubmit, decorateOnSuccessScript is always executed if no exception occurred. how do I stop and not to run decorateOnSuccessScript if the validator finds some components validate failed? (The onsubmit action will not be executed while

IndicatingAjaxSubmitLink missing?

2011-02-02 Thread rolandpeng
Will any later version of wicket add IndicatingAjaxSubmitLink? It seems this class was missed. Or any other Class similar to this IndicatingAjaxSubmitButton, but only for link? Thank you. Roland. -- View this message in context:

Re: How to do setResponsePage after alert message pressed ok?

2011-02-02 Thread rolandpeng
reply by myself. I use target.appendJavascript to solve my problem. @Override protected void onSubmit(AjaxRequestTarget target, Form? form) { onConfirm(target, form); target.appendJavascript(alert(' + responseMessage_ + ');); if

Re: How to do setResponsePage after alert message pressed ok?

2011-01-30 Thread rolandpeng
This is what I have done and that works fine.Thank you for your hint! new AjaxCallDecorator() { @Override public CharSequence decorateScript(CharSequence script) { return if(!confirm('確定返回嗎?')){return false;}; + script; }

Re: Use Byte for CheckBox instead of Boolean

2011-01-26 Thread rolandpeng
Hi, this is YesNoCheckBox referred from previous posts. You can modify to fit your need. Roland. -- public class YesNoCheckBox extends CheckBox { public YesNoCheckBox(String id) { super(id); } @Override protected IModel initModel() {

How to do setResponsePage after alert message pressed ok?

2011-01-20 Thread rolandpeng
Hi, After doing insert or update,I'd like to show some alert message,such as insert succeed. or update succeed.,and then do setResponsePage() to data listing page. But I wonder how to do it under wicket. Would anyone give me some hint? Thank you! use case: insert or update--alert

Re: how to validate a ListView?

2010-12-15 Thread rolandpeng
thanks for your reply.I'd like to try your second suggestion. But after looking into AbstractFormValidator and other related examples, I find that in my case I don't have any FormComponet to pass to error(FormComponent fc) after validate. Is there any way or examples to validate without

Re: how to validate a ListView?

2010-12-15 Thread rolandpeng
That's really what I want!Thank you very much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-ListView-tp3088381p3090257.html Sent from the Users forum mailing list archive at Nabble.com.

how to validate a ListView?

2010-12-14 Thread rolandpeng
Hi, I've a Listview and the content of list is selected by a modal window. The content of list should be validate to be required. I've tried to create a custom validator , but I have no idea how to bind the validator to the Listview. Is it possible to validate the Listview as required before

how to validate a Label?

2010-12-13 Thread rolandpeng
Hi, I need to validate a readonly Label with required which displays some selection from a modalwindow. But a Label is not a formcomponent , so I cannot use setRequired() to fulfill my requirement. If I use a TextField/setEnable(false)/setRequired(true) for instead, the validator also

Re: how to validate a Label?

2010-12-13 Thread rolandpeng
I've tried a Label + TextField/setVisible(false)/setRequired(true) as well. But as the TextField is hidden,the required validation also disable ,either. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-Label-tp3086348p3086378.html Sent from the

Re: how to validate a Label?

2010-12-13 Thread rolandpeng
oh, thank you for the hint. I find a HiddenField in the form package. I'll try this component later. Thank you again! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-validate-a-Label-tp3086348p3086380.html Sent from the Users forum mailing list archive at

How to setResponsePage with a classname string parameter?

2010-08-03 Thread rolandpeng
Hi,I want to redirect to a dynamic webpage,but I can only get the destination as a fullpath classname string .The sample code like below, String pageClass=task.getFormResourceName(); WebPage page=null; if(pageClass.equals(com.sandbox.Page1)){ page=new Page1(); }else

Re: How to setResponsePage with a classname string parameter?

2010-08-03 Thread rolandpeng
, rolandpeng rolandp...@cht.com.tw wrote: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-setResponsePage-with-a-classname-string-parameter-tp2312847p2312876.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: How to setResponsePage with a classname string parameter?

2010-08-03 Thread rolandpeng
oh,I've figured it out...I should cast it with generic class. thank you :) try { setResponsePage((ClassPage)Class.forName(pageClass)); } catch (ClassNotFoundException e) { e.printStackTrace(); } rolandpeng wrote: I've also tried casting like this. setResponsePage((Page

Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread rolandpeng
That works , thank you! But I have another question: when I use requestLogger.getLiveSessions() to get the live sessions,the number of sessions always increased after I call the render api. Is it possible to render page of html source in the same session(not create a new one)? Thank you! Scott

Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread rolandpeng
Thank you. I have tested your implementation class,but it still the same(live sessions increasing) while I call requestLogger.getLiveSessions(). Does anyone have other advice? Thank you so much in advance. Xavier López-2 wrote: Oops, forgot to mention that code has a pair of bugs in it. Here

Re: Render a Wicket page to a string for HTML email

2010-03-16 Thread rolandpeng
=7cc3d77e_12766bcf8eb__7ffd (strange,created by call reder api) I use wicket 1.4.6 for developing. rolandpeng wrote: Thank you. I have tested your implementation class,but it still the same(live sessions increasing) while I call requestLogger.getLiveSessions(). Does anyone have other advice? Thank you so much

Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-19 Thread rolandpeng
After checking the strange behavior with Sander,we find that in deployment mode to run the quickstart will be okay. This strange problem only took place in development mode. Thanks Sander helping me to figure out this problem. -- View this message in context:

Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-16 Thread rolandpeng
hi wicket poles, Does anyone know who still works around the maintenance of the wicket-tinymce in wicketstuff? I'd like to pass my problem to the group. thank you. Roland. rolandpeng wrote: thanks for your teach,igor. I've find the way to build the quickstart with tinymce included

Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-16 Thread rolandpeng
;) On Thu, Jul 16, 2009 at 6:42 PM, rolandpeng rolandp...@cht.com.tw wrote: hi wicket poles, Does anyone know who still works around the maintenance of the wicket-tinymce in wicketstuff? I'd like to pass my problem to the group. thank you. Roland. rolandpeng wrote: thanks

Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-15 Thread rolandpeng
thanks for your teach,igor. I've find the way to build the quickstart with tinymce included. The quickstart project is attached,and can be run with 'mvn jetty:run' . the url: http://localhost:8080/quickstart my quickstart brief: there are two webpages,one with ajaxlink and the other with

RE: DropDownChoice missing in IE6 when has AJAX

2009-07-15 Thread rolandpeng
I also get the same problem,do anyone have the resolution about this? I've made a quickstart to simulate this problem as the attachment. I will be very obliged if someone can help to find the resolution.Thanks. Roland. Alex.Borba wrote: Thank you for the suggestion, most of you are saying

Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-14 Thread rolandpeng
thanks igor, I have added dependency below into pom.xml dependency groupIdorg.wicketstuff/groupId artifactIdtinymce/artifactId version1.4-SNAPSHOT/version /dependency but after execute 'maven package',I got error below: -- Project ID: null:tinymce:jar:null Reason: Cannot find parent:

Re: Going back to a previous URL?

2009-07-08 Thread rolandpeng
hi cu uwe, I've tried your mentioned method below to setResponsePage for keeping state in BookmarkablePage. But it doesn't work. here is my implemented codes: -- PageParameters oParam=new PageParameters(); oParam.add(product_oid,String.valueOf(oProduct.getOid())); DetailProduct targetPage=new

Re: Could TinyMCE Upload pictures or files

2009-06-05 Thread rolandpeng
I meet this requirement,too. anyone have solutions? or any comments will be welcome. thanks. Nino.Martinez wrote: Add a upload field to the page.. And reference that from tinymce? Mead wrote: Hello All, Could TinyMCE upload pictures or files? I run the example of TinyMCE(from wicket

Re: Possible to retrieve previous page from PageMap

2009-03-12 Thread rolandpeng
thanks john, but how to define variable lastPageIdVersionKey? It seems you missed the statement in the original post. thanks. Roland. John Patterson wrote: HashMapString,PageIdVersion lastPageMap = getSession().getMetaData(lastPageIdVersionKey); -- View

Re: Possible to retrieve previous page from PageMap

2009-03-12 Thread rolandpeng
great! after delare a ineer class below: class PageIdVersion { public int id; public int version; public PageIdVersion last; } then the track function works. John Patterson wrote: // must declare hash map because meta

tinymce question: how to switch default language?

2009-03-07 Thread rolandpeng
There are many languages supported by tinymce. The default lanuage of my tinymce is zh. -- TinyMCESettings settings = new TinyMCESettings( TinyMCESettings.Theme.advanced); Language language = settings.getLanguage(); System.out.println(language.name()); == result: zh -- I can't find setLanguage()

Re: tinymce question: how to switch default language?

2009-03-07 Thread rolandpeng
Got it.I missed the part of constructor. The way to set my lanuage works. -- TinyMCESettings settings=new TinyMCESettings(TinyMCESettings.Theme.advanced,Language.tw); -- thank you! pointbreak+wicketstuff wrote: The default language is based on the locale of the session. Which is normally

Re: WYSIWYG component

2009-03-06 Thread rolandpeng
I use wicket 1.4-rc2 and meet the same problem. you can download jazzy.jar here to solve the exception. http://sourceforge.net/projects/jazzy/ then all the program works. -- View this message in context: http://www.nabble.com/WYSIWYG-component-tp22214000p22369491.html Sent from the Wicket -

A Bug in SqlDateConverter?

2009-02-22 Thread rolandpeng
Now I use wicket 1.3.5. There is a date field in my webpage.and it is not required. The date class type is java.sql.date But I alway have a NullPointerException while the input of this optional field is empty. the exceptions below: Caused by: java.lang.NullPointerException at

Re: A Bug in SqlDateConverter?

2009-02-22 Thread rolandpeng
Thanks for your quick response. Now I have updated my lib into wicket1.4-rc2. Rerun the date input functoin and I have another exception.(the date field is not empty) -- Caused by: java.lang.ClassCastException: java.util.Date at

Re: A Bug in SqlDateConverter?

2009-02-22 Thread rolandpeng
Here you are. html and java files are both uploaded as attachments for your reference. Data type of the date field in my entity is also java.sql.Date. By the way,instead of above method, Now I have a try to change all the date type of Date from java.sql.Date into java.util.Date. Then everything

Re: A Bug in SqlDateConverter?

2009-02-22 Thread rolandpeng
igor, I'm not sure if the datepickers removed will make the error go away. Since all of my programs have been refactorred from java.sql.Date to java.util.Date,I can't try your assumption in my application now. Anyway,now I adopt java.util.Date instead of java.sql.Date,and everything goes well.

Re: set the feedback message to js function

2008-10-31 Thread rolandpeng
of maybe what I've done with the scriptaculous toaster. rolandpeng wrote: thank you,igor here is my try and that work. But how could I display message only in alert dialog instead of both feedback panel and alert dialog? thanks. roland. -- HeaderContributor alert = new HeaderContributor

Re: set the feedback message to js function

2008-10-30 Thread rolandpeng
thank you,igor here is my try and that work. But how could I display message only in alert dialog instead of both feedback panel and alert dialog? thanks. roland. -- HeaderContributor alert = new HeaderContributor( new IHeaderContributor() { public void renderHead(IHeaderResponse

a way to show jfreechart tooltip on the image

2008-10-09 Thread rolandpeng
This is my sample code to to show jfreechart tooltip on the image. The key is to override onComponentTagBody() and use replaceComponentTagBody(). Just post my tried to share. There should be better way to tune the performance. --source code here-- public class JFreeChartImage extends

a way to show jfreechart tooltip on the image

2008-10-08 Thread rolandpeng
This is my sample code to to show jfreechart tooltip on the image. The key is to override onComponentTagBody() and use replaceComponentTagBody(). the parameter imageMapId used in ChartUtilities.getImageMap(imageMapId, info); should also markded in html file ,for example