Re: page expired warning

2008-09-04 Thread wenm
could come by and assist you if wanted? replying inline for some of your stuff. wenm wrote: Hi I have tried to upgrade to 1.3.4, but it doesn't help. WebApplication protected void init() { super.init(); getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1

Re: page expired warning

2008-09-04 Thread wenm
use the maven wicket quickstart archetype) and make it available i'll take a peek at it. I find in many cases just doing the quickstart makes it obvious where I've made an error. wenm wrote: Hi, I use wicket authorization annotations. So even though the page is mounted, user can't

page expired warning

2008-09-03 Thread wenm
I have read many posts about page expired, but I still can't get what's the problem in my case. We have three page: 1) login page 2) navigation page 3) function page. All three pages are mounted by using HybridUrlCodingStrategy in webapplication init(). The flow is: after authenticate the user

Re: page expired warning

2008-09-03 Thread wenm
Hi I have tried to upgrade to 1.3.4, but it doesn't help. WebApplication protected void init() { super.init(); getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1); getResourceSettings().setThrowExceptionOnMissingResource(false); mount(new

Re: validation message

2008-06-16 Thread wenm
. Also see this page: http://cwiki.apache.org/WICKET/form-validation-messages.html Hope that explains it Richard wenm wrote: I try to validate component by using setRequired(). and I would like to define the feedback messages in application level properties file. For example

validation message

2008-06-13 Thread wenm
I try to validate component by using setRequired(). and I would like to define the feedback messages in application level properties file. For example, the application structure is like myApplication -basePage -myPage extends basePage -myForm -myTextField I tried to overwrite the default

problem when reading properties file

2008-06-02 Thread wenm
I want to read a properties file test.properties, and show the value which is defined in properties file in a lable. But I can't read the properties file I have tried property.load(ClassLoader.getSystemResourceAsStream(test.properties));

Re: problem when reading properties file

2008-06-02 Thread wenm
Thanks. But still the lable will show different messages according to different error situation. So even to make it show up conditionally can't solve the problem. Gabor Szokoli wrote: On 6/2/08, wenm [EMAIL PROTECTED] wrote: But my label only show the message when the web service returns

Re: problem when reading properties file

2008-06-02 Thread wenm
Thanks Eyal. I have tried with resourceModel before, it works fine. But my label only show the message when the web service returns error, not constant showing. So it is not a good idea to use resourceModel. -- View this message in context:

Re: problem when reading properties file

2008-06-02 Thread wenm
:) The problem is that I have to get different massages from properties file, and then comes to my original question. so the problem is that you can get different messages? if so, why not use isVisible() as Gabor suggested. And for the String itself, why not use a utility that converts the

Re: problem when reading properties file

2008-06-02 Thread wenm
Sure. Maybe I need to explain more explicitly. I will get the unique error code from web service if there is something wrong. And then I would like to map the error codes to user-friendly messages (which are in properties file), and show the messages conditionally based on the error type in a

Re: problem when reading properties file

2008-06-02 Thread wenm
lol :) I haven't get it so far, so I don't know how's the properties' massage. mis-typing, sorry. Johan Compagner wrote: :) The problem is that I have to get different massages from properties file, and then comes to my original question. hmm i tried Chinese, Thais and some others.

Re: problem when reading properties file

2008-06-02 Thread wenm
yup, it works. But I would like to know the way to read the file, for studying and also maybe future use. jwcarman wrote: Have you looked at org.apache.wicket.model.ResourceModel? You could do: new Label(a, new ResourceModel(key1))

Re: Customerize captcha image

2008-04-04 Thread wenm
want. It's even better. No one will be able to reuse the algorithm to teach a neuronet :) On Thu, Apr 3, 2008 at 2:32 PM, wenm [EMAIL PROTECTED] wrote: Does anybody have an idea how to change the background image and font size etc of wicket captcha image? -- View this message

Customerize captcha image

2008-04-03 Thread wenm
Does anybody have an idea how to change the background image and font size etc of wicket captcha image? -- View this message in context: http://www.nabble.com/Customerize-captcha-image-tp16467447p16467447.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: TreeTable escape HTML does not work

2008-03-17 Thread wenm
the column I would like to disable the escape. igor.vaynberg wrote: you should call escapemodelstrings on the component that the column generates, not the treetable itself -igor On Fri, Mar 14, 2008 at 2:36 AM, wenm [EMAIL PROTECTED] wrote: Hi, I create a treetable, for one

TreeTable escape HTML does not work

2008-03-14 Thread wenm
Hi, I create a treetable, for one of the columns I would like to show the HTML tags, such as , so I try to disable the HTML escape using treeTable.setEscapeModelStrings(false); But it does not work at all, it stick to escape the and . I use wicket 1.3.1, and I have tested with another