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
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
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
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
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:
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
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;
}
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() {
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
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
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.
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
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
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
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
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
, 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
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
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
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
=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
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:
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
;)
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
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
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
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:
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
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
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
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
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()
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
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 -
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
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
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
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.
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
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
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
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
42 matches
Mail list logo