Dear ??,
The problem is because you can not encode Chinese characters in
ISO-8859-1. You must use UTF-8 throughout your application.
> String newInput = new String(input.getBytes("iso8859-1"), "UTF-8");
first converts the string to ISO8859-1 and thereby replaces all Chinese
characters with a "
> You will not be able to see the difference between optimalization...
> String.equals() does exactly that, it test for length
Aha! This is new for me. The last time I checked (Java 1.3) there were
are least 2 instanceof operators in the implementation of
String.equals(String) and no length ch
> and where we just do this "".equals(value) without testing for null
> i will not rewrite those by first testing null to be able to call for
> length.
This is wrong, we never said so. Just meant switching from
[nullability-check] && !"".equals(value) to [nullability-check] &&
value.length() != 0.
Gwyn Evans wrote:
> What does "c.getMyOptionValue()" return?
>
> This...
> public HomePage() {
> add(new DropDownChoice(
> "options",
> new Model(getMyOptionValue()),
> OPTIONS)
> {
> protected String getDefaultChoice(
In fact, i use utf-8 as my coding.
The following is the content of the html.
Country:
I also tried many ways
1.keep meta charset or remove it.
2.keep or remove it.
I can't get the right result.
Another problem
You can copy a chinese word and paste to the AutoCompleteTextField, no eve
He is just saying he doesn't want to rewrite the cases that do not have
a null check.
Please re-read yourself ;)
Manuel Barzi schreef:
>> and where we just do this "".equals(value) without testing for null
>> i will not rewrite those by first testing null to be able to call for
>> length.
>>
Hi Matej,
Here is a quickstart showing the two problems I have encountered.
1) The following configuration is mandatory if you use the french
language with IE6 :
getRequestCycleSettings().setResponseRequestEncoding("ISO-8859-1");
Unless you use this, IE6 reports a Javascript error because th
Hello,
I missed the point that you are using the AutoCompleteTextField. Sorry,
can't help you there.
Erik.
王磊 schreef:
> In fact, i use utf-8 as my coding.
> The following is the content of the html.
>
>
>
>
>
>
>
>
> Country: />
>
>
>
> I also tried many ways
> 1.keep meta chars
> He is just saying he doesn't want to rewrite the cases that do not have
> a null check.
Very weill, but the question is: whoever promoted that idea? Seems to
be auto-promoted and auto-rejected... ;)
Anyway, have a nice day!
--
Ok that is good news, but we still have the problem that the licenses of TinyMCE and Wicket might be incompatible.On 9/22/06, Eelco Hillenius <
[EMAIL PROTECTED]> wrote:Checked it now, and the current release of tinymce does not work well.
However, this issuehttp://sourceforge.net/tracker/index.php
Indeed 8)
I should probably be denied write-access to this list for at least a
week. None of my e-mails seem to hit the mark at the moment.
Erik.
Manuel Barzi schreef:
>> He is just saying he doesn't want to rewrite the cases that do not have
>> a null check.
>>
>
> Very weill, but the
Hi,
i just took a closer look at the wicket-phonebook. can
anyone point me to the sourceode for it? - i can get the war from http://wicket-stuff.sourceforge.net/wicket-phonebook/ but
dont find a source for it... (maybe im just too
blind?).
Oh, and another thing: on the http://wicket-stuff
I use PriDE. It's extremely small and easy to learn - basically it
generates SQL for you.
http://pride.sourceforge.net/
I've designed a number of supporting classes and coding conventions that
give me some more advanced features (still light weight). I've been
meaning to look at what exists in
We have had some problems with Ajax and UTF-8 encoding. You'll have to
configure the uri encoding on your httpconnector to use UTF-8. In
tomcat that would go into your server.xml
Martijn
On 9/22/06, 王磊 <[EMAIL PROTECTED]> wrote:
> In fact, i use utf-8 as my coding.
> The following is the content
On 22/09/06, Korbinian Bachl <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> i just took a closer look at the wicket-phonebook. can anyone point me to
> the sourceode for it? - i can get the war from
> http://wicket-stuff.sourceforge.net/wicket-phonebook/ but
> dont find a source for it... (maybe im just
There's also wicket.util.string.Strings#isEmpty
(http://wicket.sourceforge.net/apidocs/wicket/util/string/Strings.html#isEmpty(java.lang.CharSequence)
to consider...
/Gwyn
On 22/09/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> Indeed 8)
> I should probably be denied write-access to this list f
Also it brings some trouble,but i can solve the problem of encoding.
But i can't know why there is not a event in the server while i input or paste
a chinese word in the AutoCompleteTextField.
I am not familiar with javascript.
Thanks for your advice .
- Original Message -
From: "Ma
What kind of integration are you talking about? Isn't it a good idea to
keep database/persistence code and application/gui code independent?/AndersIt makes sense to do that when you want to design a larger enteprise application but not for small web applications, why all the issues. when u see a fr
> There's also wicket.util.string.Strings#isEmpty
> (http://wicket.sourceforge.net/apidocs/wicket/util/string/Strings.html#isEmpty(java.lang.CharSequence)
> to consider...
Just FYI, what people from Apache does (matching Erik's optimization
proposal ;)... I guess wicket does the same.
[org.apache
i just checked an 1.3 String implementation and there the same thing was doneAs far as i know they have to do that. How else would you test for equals for a string?You have to walk the chars on both sides comparing it. So if you don't test
first for lenght the length can be different and if you wal
Hi all,We are trying to make a CMS and CMS-components for wicket and we were told that i could be helpful to use the JSR-170 to store the content. Have any of you used the JSR-170 and aspecially its implementation JackRabbit?
greets
--
How about...
add(new DropDownChoice(
"options2",
new Model(getDefaultSelection(getMyOptionValue())),
OPTIONS) {
protected String getDefaultChoice( final Object selected ) {
return ""; // remove "Choose One" prompt
almost: public static boolean isEmpty(final CharSequence string) { return string == null || string.length() == 0 || string.toString().trim().equals(""); }so we could also do this:
public static boolean isEmpty(final CharSequence string) { return string == null || strin
Sirs... WicketUsersMailingListStackOverflowException: discussion has
branched interesting, but to the infinite ;)
> i just checked an 1.3 String implementation and there the same thing was
> ...
> ...
-
Take Surveys. Earn
what can i say :) i like performance discussions.. :)Yourkit is running constantly on all my java programs that i run/debug on my laptop..On 9/22/06, Manuel Barzi
<[EMAIL PROTECTED]> wrote:Sirs... WicketUsersMailingListStackOverflowException: discussion has
branched interesting, but to the infinit
rails, you will understand why may be soon all web applications on the planet may be using ruby on rails because they keep the simple things really very simple.
i am all for simplicity! So lets do that in the javaworld also!johan
for this we need to have a sample case.Also i checked in a encoding problem in the 1.2.x branch (and 2.0 but i don't think that one is completely fixed yet...)So if you could build/test it from svn maybe it is fixed then.
johanOn 9/22/06, 王磊 <[EMAIL PROTECTED]> wrote:
Also it brings some trouble,bu
> what can i say :) i like performance discussions.. :)
:) That's fine, at the end it's very nutritive...
> Yourkit is running constantly on all my java programs that i run/debug on my
> laptop..
Good! should try it...
-
Ta
Oh yes - also take a look at http://www.wicket-wiki.org.uk/wiki/index.php/IBATIS
On 22/09/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
>
>
>
> >
> >
> > What kind of integration are you talking about? Isn't it a good idea to
> > keep database/persistence code and application/gui code independe
Sirs,
Trying to get all WebPages and inner components correctly and
univocally identified (wicket:id), I am using landing in a domain of
long-named wicket:ids as, for instance, "CaocAdminPage-checkg-1", to
identify a CheckGroup...
My question is: does long-named wicket:ids affect performance, or
I don't think so. I was working on header contribution and problem with
debug console calling document.write() (thus removing all head elements
from DOM).
This is something completely different, it's related to the component
rendered check. That's not my domain. I believe the problem are
compo
I've fixed the problem of disappearing item captions, but only for
tree-table. I'll have to look at tree css, I just had no time. It might
some serious changes to stylesheet to get this working for Tree.
So if this really is a showstopper for you, try to use tree table (with
the css from curren
Yes, but consider that you want to have border (non-scrolling) around
your tree. So you'll have to put overflow:auto to a element outside tree
(the one with border and width set).
-Matej
Marc-Andre Houle wrote:
> By default, from what I have seen in tree.css, it is already set to
> overflow:au
There is no such inner mapping and I don't think it really matters
performance wise.
Juergen
On 9/22/06, Manuel Barzi <[EMAIL PROTECTED]> wrote:
> Sirs,
>
> Trying to get all WebPages and inner components correctly and
> univocally identified (wicket:id), I am using landing in a domain of
> long-
I will try to answer it then ;)i don't think it will affect performance that much but it will increase memory consumption a bitand then on both sides with that i mean the static heap (because your html size is bigger in the markup cache)
and the garbage created because the wicket id's can be used t
Hello,
In the wicket examples there's a library example, if I can put it into
a TabbedPanel?
I need some pages, these pages have the same header and navigation, if
use TabbedPanel, I needn't to add the header each page, and it looks
like use the frame.
But if use the TabbedPanel, I can't redirec
Glad to learn it ;! Thanks, Johan.
> I will try to answer it then ;)
>
> i don't think it will affect performance that much but it will increase
> memory consumption a bit
> and then on both sides with that i mean the static heap (because your html
> size is bigger in the markup cache)
> and the g
I think this problem is caused by
javaSciprt.
Additionally, i can use textfield with
ajx.
There is no problems.
The following is the code.
The code are simple,most of them are the same as the
example of ajax.
Just with a println statement to show whether there is
a event while
This is wrong.This is mentioned before on the list: The model object that is the selected objectshould be the same kind of object that is in the choices (the list)that is just a one-one mapping.
so if your list is: final static List OPTIONS = Arrays.asList(new String[] {"Opt1", "Opt2", "Opt3"});th
1) The following configuration is mandatory if you use the frenchlanguage with IE6 :
getRequestCycleSettings().setResponseRequestEncoding("ISO-8859-1");Unless you use this, IE6 reports a _javascript_ error because the frenchscript with the monthes names reports an unterminated string for every
name
I have a simple signup page that does a setRedirect(true);
setResponsePage(ThankYouPage.class); as the last thing in the Form's
onSubmit(). People can still go back to the signup page and fill it in
again though and this results in all kinds of weird behaviour.
What is the wicket way to prevent do
page.getPageMap().removePage(page)Then your page with the form is removedand if they use the back button they will get a page expired.johanOn 9/22/06,
Stefan Arentz <[EMAIL PROTECTED]> wrote:
I have a simple signup page that does a setRedirect(true);setResponsePage(ThankYouPage.class); as the last
if you just want to have to same header and navigation on multiply pagesyou could use markup inheritanceSo have a base page with the header and navigationand then extend that page.johan
On 9/22/06, dragon deaf <[EMAIL PROTECTED]> wrote:
Hello,In the wicket examples there's a library example, if I c
The file calendar-fr.js is in DOS format. Is this OK? (By the way, it
also contains some spelling errors in messages, but this is another story.)
Pierre-Yves
Johan Compagner a écrit :
>
> 1) The following configuration is mandatory if you use the french
> language with IE6 :
>
> ge
It is not that important for now, I was just trying to know if the problem was on my side or on the wicket platform. Thanks for your help and I'm pleased to know someone better than me is working on that issue. I'm not really a master in CSS!
MarcOn 9/22/06, Matej Knopp <[EMAIL PROTECTED]> wrote:
lol, if there is one thing i learned from working on wicket it is that if you are going to discuss optimizations with johan you have to bring your a-game-IgorOn 9/22/06,
Johan Compagner <[EMAIL PROTECTED]> wrote:
what can i say :) i like performance discussions.. :)Yourkit is running constantly on
Matej,Does the TreeTable component in 1.2.2 suffer from the same image issue as the Tree component? I might just switch to the TreeTable.SteveOn 9/21/06,
Matej Knopp <[EMAIL PROTECTED]> wrote:Scrolling shouldn't be a problem.
Well. In 1.2.2 there was a problem with internet explorer in standa
bah, ruby on rails is too complex imho. lets use coldfusion instead. i can knock out any app in coldfusion probably 2x the speed of you knocking it out in ror :)-IgorOn 9/22/06,
Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
What kind of integration are you talking about? Isn't it a good idea to
ke
i thought you _were_ working on the component use check and ajax target stuff?-IgorOn 9/22/06, Matej Knopp <
[EMAIL PROTECTED]> wrote:I don't think so. I was working on header contribution and problem with
debug console calling document.write() (thus removing all head elementsfrom DOM).This is some
I believe in 1.2.2 it does. In svn it should be fixed. It's actually not
Tree/TreeTable bug, but it's a browser quirk (IE I believe)
-Matej
Steve Knight wrote:
> Matej,
>
> Does the TreeTable component in 1.2.2 suffer from the same image issue
> as the Tree component? I might just switch to t
you do know that the ids have to be unique only within the same parent right?this is perfectly legalMyPage() { add(new CheckGroup("group"); WebMarkupContainer c=new WebMarkupContainer("container");
container.add(new CheckGroup("group");-IgorOn 9/22/06, Manuel Barzi <
[EMAIL PROTECTED]> wrote:Si
Well, I was working on it. But only to the degree that I disabled the
disabling of check during ajax request, because it was no longer necessary.
Unfortunately head contribution is something else, I'm not sure how to
do it the best way, again, it's not my domain. I think that I've posted
mail a
;) ha! never give up...
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
Johan Compagner wrote:
> This is wrong.
>
> This is mentioned before on the list: The model object that is the
> selected object
> should be the same kind of object that is in the choices (the list)
>
> that is just a one-one mapping.
>
> so if your list is:
> final static List OPTIONS = Arrays
> you do know that the ids have to be unique only within the same parent
> right?
> this is perfectly legal
> MyPage() {
> add(new CheckGroup("group");
> WebMarkupContainer c=new WebMarkupContainer("container");
> container.add(new CheckGroup("group");
> -Igor
Already learnt-by-example, yes.
> any wicket example that uses EJB3 and Java Persistence 1.0
Nathan's Databinder will give you ideas and simplicity here ( if you
ignore the Maven thing, of course ;-) )
Note that the Hibernate Session and the JPA EntityManager are almost
indentical concepts.
In fact, if you use Hibernate a
so what is the much buzz about ror..i just did a small walkthrough that made everything look so easy :)however in the wicket-phonebook example, it was said that "All Hibernate session management and transaction management is handled by Spring"
sure the whole abstraction thing is good but that means
Here are two versions. Using the UTF8 file does not solve the encoding
problem since it will then break applications that use the ISO-8859-1
encoding setting. The javascript language file should be selected
according to the encoding used, or its content should be translated to
the appropriate e
The first time, sure. I'll agree with that. Once you have your boilerplate application setup, it's pretty easy to replicate it. On 9/22/06, Ayodeji Aladejebi
<[EMAIL PROTECTED]> wrote:so what is the much buzz about ror..i just did a small walkthrough that made everything look so easy :)
however
please is wicket-contrib-database fully mature?On 9/22/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
so what is the much buzz about ror..i just did a small walkthrough that made everything look so easy :)
however in the wicket-phonebook example, it was said that "All Hibernate session management
sure the whole abstraction thing is good but that means doing some database in wicket based on this example mandates learning some spring and some hibernate...meaning that the more paradigms the more complexity on setting up small web applications.
this is completely false. you should say "the more
On 9/22/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
sure the whole abstraction thing is good but that means doing some database in wicket based on this example mandates learning some spring and some hibernate...meaning that the more paradigms the more complexity on setting up small web application
Why are you using setRedirect directly like that btw?
So you want to block the login page after a user authenticated? Why
not just block the page for authenticated users e.g. with an
authorization strategy. Or maybe even better... in the submit method
of your login form, before you do anything, ch
IANAL, but this is really only a problem in the sense that we'll not
moving the component to Apache. But the wicket-stuff project is meant
to stay at sourceforge anyway.
I don't think it's a problem for end-users.
Eelco
On 9/22/06, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:
> Ok that is good news
Gustavo Santucho wrote:
> Nathan's Databinder will give you ideas and simplicity here ( if you
> ignore the Maven thing, of course ;-) )
Databinder says thanks for the compliment. Maven says it would like to
meet with you in cold, dark, JAR-strewn alley and settle this thing once
and for all
On 9/22/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Why are you using setRedirect directly like that btw?
>
> So you want to block the login page after a user authenticated? Why
> not just block the page for authenticated users e.g. with an
> authorization strategy. Or maybe even better... in
Hi all,
just a simple, stupid question:
i want to use a BookmarkablePageLink as button as described in the
wicket examples for links.
Additionaly i want to use a Model to fill the buttons value. How can i
put these things together?
For a short peace of code i would definitly be thankful. :-)
Th
please attach this to a patch: http://sourceforge.net/tracker/?group_id=119783&atid=684977(and say what files it exactl y are)because else it will get lost.
the standaard in java is not iso-8859-1 internally java is all utfbut saving to disk and reading java looks at the system what the encoding is
new Form(...) { boolean isVisible() { return getSession().getUser()==null; }}new AlreadyLoggedinPanel(...) { isVisible() { return getSession().getUser()!=null; }}-Igor
On 9/22/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Why are you using setRedirect directly like that btw?So you want to block th
class MyLink extends BookmarkabkePageLink { public MyLink(String id, IModel model) { add(new AttributeModifier("value", true, model)); }}-Igor
On 9/22/06, Peter Klassen <[EMAIL PROTECTED]> wrote:
Hi all,just a simple, stupid question:i want to use a BookmarkablePageLink as button as described in
I was talking about the default format for String output, which is
dependent upon the operating system character encoding (I guess 95% use
ISO-Latin-1). Java internal representation of characters is UNICODE
UTF-16 (in fact an obsolete version of this standard) and not UTF-8.
(Dealing with varia
Thank you for your help.
I had known the markup inheritance like the WicketExamplePage,
but the tag will be add each page.
If use TabbedPanel, I only to care the panel page's markup,
I ask if can redirect a panel to another panel,
only to avoid markup inheritance.
I like panel combination more,
try mail client(M2)that embed in FREE opera . it's also RSS reader, news
group reader, mailling list reader, chat.
features :
filter, tags ,..., (readed/unreaded/unvisited status)
i not try others but M2 allow you custom icon of contacts (useful for
special memebers)
Matej,
I've been wondering why you chose to implement the tree as
a set of floated divs rather than as a nested list? The list would be much
more semantic and fallback gracefully if the user has CSS turned off as
well. This is one of the better examples of this I've
seen:
http://www.silv
1) write all your screens using panels not pages2) create a container page that hosts the panel3) instead of using links to navigate to pages using setResponsePage(Page) you instead call getPage().getContentPanel().replaceWith(new MyNewPanel(...));
and thats itbut you really wont gain that much bec
75 matches
Mail list logo