Re: Re: Re: onlinepayment

2010-04-07 Thread wicketyan
I tend to use chinabank.It's jsp solution is posting a form to http://localhost/chinabank/Receive.jsp ,like this send.jsp code: %@ page contentType=text/html; charset=gb2312 language=java% %@ page import=java.util.*% %@ page import=java.text.*% jsp:useBean id=MD5 scope=request

Re: Re: Re: onlinepayment

2010-04-07 Thread Jeremy Thomerson
You should do the form submission on the server side - not actually forcing the client to literally submit a form to their server. In other words, use HttpClient or similar and make the POST request to chinabank's servers yourself. -- Jeremy Thomerson http://www.wickettraining.com 2010/4/7

Re: Re: Re: onlinepayment

2010-04-07 Thread wicketyan
Thank you very much. 2010-04-07 wicketyan 发件人: Jeremy Thomerson 发送时间: 2010-04-07 14:12:42 收件人: users 抄送: 主题: Re: Re: Re: onlinepayment You should do the form submission on the server side - not actually forcing the client to literally submit a form to their server. In other

Re: What happens after browser's 'back' button?

2010-04-07 Thread Sergey Olefir
Hi, thanks for the reply and the suggestion. However I'm not sure it'll work (or else I'm misunderstanding what you're suggesting). As you said yourself, 'when the user hits back wicket will pull the old page instance from the pagemap and rerender it'. In my limited testing it seemed that when

Help with Reports

2010-04-07 Thread chinedu efoagui
please i would like help with the following 1. tutorial /example/code snippets on using Wicket with Jasper Reports 2.tutorial /example/code snippets on using Wicket with BIRT Reports. thank you - To unsubscribe, e-mail:

Re: ajaxfallback

2010-04-07 Thread fachhoch
I add to target at several places, lot of them , now changing all of these will certainly take time looking at each callback method . Need suggestions if aop can help me , or can I override some method in wicket which provides the AJaxRequestTarget even when java script is not enabled.

Re: Speaking about Wicket

2010-04-07 Thread Tomasz Dziurko
Although I won't be able to speak in Scotland from Poland I would be extremely interested in slides from this talk, if any exists :-) -- Best regards / Pozdrawiam, Tomasz Dziurko - To unsubscribe, e-mail:

Javascript Compression not working.

2010-04-07 Thread Apple Grew
Hi All, I have put all my JS files in WEB-INF. To let Wicket find them I have created my own ResourceStreamLocator. The locator on getting class scope as Application simply locates the JS files from 'WEB-INF/js'. The problem is how do I enable Wicket's built-in Javascript compression? I tried

Re: Help with Reports

2010-04-07 Thread McIlwee, Craig
Don't have any code handy right now, but I've used this before for jasper reports and it worked out well http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-jasperreports/ - Original Message - From: chinedu efoagui [mailto:chinedub...@gmail.com] To: users

Re: Wicket GAE performance

2010-04-07 Thread jbrookover
Finally! I've found others who are looking into Wicket on GAE. :) Something else to look into, that is frequently mentioned on the GAE/J lists but not here, is Objectify - a very thin layer over the GAE datastore. I was using JDO, PMF, etc and found Objectify to be a pretty easy switch.

Re: Forms in a base class

2010-04-07 Thread Iain Reddick
If you want to use inheritance: Put your base form in a panel with the associated markup for the base fields (making sure there is a wicket:child / tag in the correct place). Then just extend this panel, adding the required child form components and supplying the appropriate markup extension

Re: Javascript from panel does not work

2010-04-07 Thread Daniela Valero
2010/4/6 Jeremy Thomerson jer...@wickettraining.com Please make sure that your JS files are loading. I suspect you may be getting a 404 when loading the JS because you are not referencing them correctly (you're using a relative URL, which may not work depending on where your panel is

Re: Javascript Compression not working.

2010-04-07 Thread Apple Grew
To add on to the previous mail. I am in developement mode, but I have enabled default compression for javascript using the following code:- resourceSettings.setJavascriptCompressor(new DefaultJavascriptCompressor()); Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Wed, Apr 7, 2010

AW: Javascript from panel does not work

2010-04-07 Thread Stefan Lindner
To make it sure (it's better than just belive it): Take e.g. firefox with fiurebug-plugin. Inspect the head scetion of the page. There go to the script src=... tag and expand the tag. IF the js-file is referenced correctly and if it is loaded then the content should be visible in firebug. Or

Re: Javascript from panel does not work

2010-04-07 Thread Daniela Valero
You are right stefan, the JS file is not being loaded, on firebug i got Failed to load source for: http://localhost:8080/FrontEnd/views/js/ToggleHighLigh.js but, I tryed to acces directly to that url and I get the js 2010/4/7 Stefan Lindner lind...@visionet.de To make it sure (it's better

Re: Javascript from panel does not work

2010-04-07 Thread Daniela Valero
I got on firebug the same message from css file, but it is working fine. (it is being called from Page parent) 2010/4/7 Daniela Valero danielavalero...@gmail.com You are right stefan, the JS file is not being loaded, on firebug i got Failed to load source for:

Re: ajaxfallback

2010-04-07 Thread Jeremy Thomerson
changing isn't really that much work. it's a two line change. and you have to go through and replace each new AjaxLink with new AjaxFallbackLink anyway. It's a simple search and replace. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Apr 7, 2010 at 5:48 AM, fachhoch

Re: Javascript from panel does not work

2010-04-07 Thread Jeremy Thomerson
This is what I was trying to tell you. Please load your resources correctly. Either use a ResourceReference with a class to create the URL correctly, or wrap your script tags in wicket:link tags. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Apr 7, 2010 at 8:42 AM, Daniela Valero

Re: Javascript from panel does not work

2010-04-07 Thread Daniela Valero
I wrapped my JS on wicket:link, and I wrote the absolute url, like this script language=JavaScript1.2 src= http://localhost:8080/FrontEnd/views/js/jquery-1.3.2.min.js;/script Now, the files are loaded, I can see it from firebug, but still not workin : 2010/4/7 Jeremy Thomerson

Re: Javascript from panel does not work

2010-04-07 Thread Daniela Valero
I wrote the header constributor, and nothing public void renderHead(IHeaderResponse response) { response.renderJavascriptReference( http://localhost:8080/FrontEnd/views/js/ToggleHighLigh.js;); response.renderJavascriptReference(

Re: Javascript from panel does not work

2010-04-07 Thread Jeremy Thomerson
Again, do NOT generate hard-coded URL references. Please see the very first code line from: http://chillenious.wordpress.com/2006/05/03/wicket-header-contributions-with-behaviors/ http://chillenious.wordpress.com/2006/05/03/wicket-header-contributions-with-behaviors/Specifically, this line:

Re: Javascript from panel does not work

2010-04-07 Thread Daniela Valero
Thanks!!! Very much !!! I going to check this out now 2010/4/7 Jeremy Thomerson jer...@wickettraining.com Again, do NOT generate hard-coded URL references. Please see the very first code line from: http://chillenious.wordpress.com/2006/05/03/wicket-header-contributions-with-behaviors/

Re: Javascript Compression not working.

2010-04-07 Thread Alex Objelean
You could take a look at wro4j: http://code.google.com/p/wro4j/ . It helps you keep you javascripts (and css) organized in a single location, merge and minimize them. It is also very easy configurable (http://code.google.com/p/wro4j/wiki/GettingStarted) and extensible (allow provide your own

resource (css) loading

2010-04-07 Thread sahar rostami
Hi all, I want to know how wicket loads css files from location specified in HeaderContributer or using href in header? Thanks in advanced!

Re: Javascript Compression not working.

2010-04-07 Thread Apple Grew
Checked it out. This is good, but I am not sure how to integrate this with Wicket. Currently it seems that WRO's url is being override by WicketFilter, so I am not being able to access WRO resources. BTW going back to original problem. I tired to debug the Wicket code and it seems for shared

Re: resource (css) loading

2010-04-07 Thread MZemeck
One difference I am aware of (and community correct me if I am wrong), Wicket GZIPs resources. So if you directly link to the css using an href you will not have that feature. sahar rostami sahar.rost...@gmail.com 04/07/2010 11:16 AM Please respond to users@wicket.apache.org To Wicket

Select all options in a abstractchoice

2010-04-07 Thread Martin Makundi
This was so much fun ;) public class SelectAllChoice extends CheckBox implements IHeaderContributor { /** * @param id * @param abstractChoice */ public SelectAllChoice(String id, AbstractChoice?, ? abstractChoice) { super(id); add(WicketUtils.getAttribute(onchange, if

Re: resource (css) loading

2010-04-07 Thread sahar rostami
Thanks MZemeck But my question in another form is Where wicket load css (which class)? how wicket knows where look up a css file? i'm trying to override default location of css file and read them from path(s) specified in application start up ,but i can't because i don't know how wicket loads

Re: resource (css) loading

2010-04-07 Thread moèz ben rhouma
If I understand , you can use in constructor of class java the following code: add(new StyleSheetReference(stylesheet, BasePage.class, style.css)); and in the html page you add: link wicket:id=stylesheet 2010/4/7 sahar rostami sahar.rost...@gmail.com Thanks MZemeck But my question in another

Re: resource (css) loading

2010-04-07 Thread sahar rostami
No , i want to know how wicket knows where is style.css? On Wed, Apr 7, 2010 at 8:24 PM, moèz ben rhouma benrhouma.m...@gmail.comwrote: If I understand , you can use in constructor of class java the following code: add(new StyleSheetReference(stylesheet, BasePage.class, style.css)); and in

Re: resource (css) loading

2010-04-07 Thread moèz ben rhouma
In java add(new StyleSheetReference(stylesheet, BasePage.class, *style.css*)); style.css is the path of the file style.css (i.e you can write /stylesheets/style.css ...) 2010/4/7 sahar rostami sahar.rost...@gmail.com No , i want to know how wicket knows where is style.css? On Wed, Apr 7,

Implementing theme in wicket

2010-04-07 Thread sahar rostami
Hi all, we have a web application that used for some company and each of them needs own favorite style (colors, fonts,etc.). we found out that a way is setting style to session and then adding _styleName at the end of html file names(such as resource bundles). this method is suitable in some use

Re: resource (css) loading

2010-04-07 Thread sahar rostami
thank you moèz but i want to set the location for whole application not a specific file. On Wed, Apr 7, 2010 at 8:53 PM, moèz ben rhouma benrhouma.m...@gmail.comwrote: In java add(new StyleSheetReference(stylesheet, BasePage.class, *style.css*)); style.css is the path of the file style.css

AW: resource (css) loading

2010-04-07 Thread Stefan Lindner
You could e.g. write your own page class class MyCustomersPage extens Page { @Override public void renderHead(HtmlHeaderContainer container) { super.renderHead(container); cssResourceReference =

Re: Javascript Compression not working.

2010-04-07 Thread Alex Objelean
Actually you don't have to access the resources. The wro filter just handles the request for static resources, there no wicket specific integration. All you have to do, is to define the location of your resources in wro.xml (group descriptor). The location of resources can be virtually anything:

RE: Implementing theme in wicket

2010-04-07 Thread Jeremy Thomerson
Just write a custom header contributor that is aware of the theme and references css accordingly. Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -Original Message- From: sahar rostami sahar.rost...@gmail.com Sent: Wednesday, April 07, 2010 11:37 AM To:

Re: URL Encoding strategy

2010-04-07 Thread Alex Objelean
Hi Eric! I've noticed that you have already posted the solution on your blog (http://blog.jteam.nl/2010/02/24/wicket-root-mounts/). Thank you for sharing it with us. One question, why BookmarkablePageRequestTargetUrlCodingStrategy#encode method is still final even in wicket-1.4.7 if there is a

render a page for emailing and bookmarkablePageLink only rendering a partial url

2010-04-07 Thread Fernando Wermus
Hi all, I am using the code discused in this list for rendering email content (see below). Despite pages are rendering nicely, I have some BookmarkablePageLink in them which are rendering just the the context part of it. For instance, for link www.google.com/p1/p2, it renders just /p1/p2,

RE: What happens after browser's 'back' but ton?

2010-04-07 Thread Joseph Pachod
Regarding the commented out no-store, any idea why the wicket core developers didn't used it directly ? Having a consistent behavior across browser + ajax and back button working seem rather good. I wonder why it isn't included currently. joseph _ From: Craig McIlwee

Wicket Authorization (Using MetaDataKey)

2010-04-07 Thread Janani Sundarrajan
Hello, I am trying to implement a simple authorization strategy for my Wicket application. I am implemented my own AuthorizationStrategy (extending IAuthorizationStrategy). http://old.nabble.com/Authorization-strategy-help-td18948597.html After reading the above link, I figured it makes more

Re: Wicket Authorization (Using MetaDataKey)

2010-04-07 Thread Igor Vaynberg
public static MetaDataKeyRoleCheck priv = new MetaDataKeyRoleCheck(){}; -igor On Wed, Apr 7, 2010 at 2:23 PM, Janani Sundarrajan jsundarra...@percipenz.com wrote: Hello, I am trying to implement a simple authorization strategy for my Wicket application. I am implemented my own

RE: Wicket Authorization (Using MetaDataKey)

2010-04-07 Thread Janani Sundarrajan
Doesn't seem to work either! -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, April 07, 2010 4:48 PM To: users@wicket.apache.org Subject: Re: Wicket Authorization (Using MetaDataKey) public static MetaDataKeyRoleCheck priv = new

Re: Wicket Authorization (Using MetaDataKey)

2010-04-07 Thread Igor Vaynberg
well, there are plenty of uses of this in our code, have a look there -igor On Wed, Apr 7, 2010 at 2:51 PM, Janani Sundarrajan jsundarra...@percipenz.com wrote: Doesn't seem to work either! -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday,

RE: Wicket Authorization (Using MetaDataKey)

2010-04-07 Thread Janani Sundarrajan
I will do that. Thank you. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, April 07, 2010 4:55 PM To: users@wicket.apache.org Subject: Re: Wicket Authorization (Using MetaDataKey) well, there are plenty of uses of this in our code, have a look

Re: Javascript from panel does not work

2010-04-07 Thread Daniela Valero
Well, i tried everithing- Finally y do it almost work with wicket:link and JavascriptPackageResource, but now, it works only a few seconds when the panel is loaded, then it doest not work any more Here I post one way: String p1 = /views/js/ToggleHighLigh.js; String p2 =

Re: Forms in a base class

2010-04-07 Thread Steve Mactaggart
Using the getForm().add(...) solves my problems and I have been able to get really nice small and clean sub-classes that just have a few components working in them. The Feedback panel, save and cancel buttons along with the form and some default formatting are supplied in the parent class, then

Re: Javascript Compression not working.

2010-04-07 Thread Apple Grew
Hi Alex n All, I managed to get this working. It was failing because of missing Apache Commons IO. Now I am stuck at another place. JS are fine, but the CSS files are chosen as per user's theme. When I was serving the CSS files via my stream locator, it picked up the correct file based on the

Re: What happens after browser's 'back' button?

2010-04-07 Thread Apple Grew
It was done possibly to save performance hits (devs correct me if I am wrong). You can read here ( http://blogs.atlassian.com/developer/2007/12/cachecontrol_nostore_considere.html) for some possible insight. Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Thu, Apr 8, 2010 at 1:39

Re: Behaviour being also a Validator

2010-04-07 Thread Jeremy Thomerson
I don't see a problem with this. I think it would need to somehow be bi-directional, though. i.e., if you had your object currently cast as a behavior, and called add(IBehavior), that it would also need to add it as a validator. The problem, of course, being that you can't just add the exact

Re: resource (css) loading

2010-04-07 Thread Apple Grew
Maybe u can try writing a stream locator as I did. I am attaching my stream locator with this mail. The necessary plumbing required with this is:- resourceSettings.addResourceFolder(WEB-INF/res); resourceSettings.setResourceStreamLocator(new AppStreamLocator());

WiQuery Vertical Tabs

2010-04-07 Thread goosel
Hello, Is there an easy way to display WiQuery tabs vertically, rather than horizontally? Thanks

Re: WiQuery Vertical Tabs

2010-04-07 Thread Ernesto Reinaldo Barreiro
Do you mean something like [1]? Ernesto 1-http://jquery-ui.googlecode.com/svn/trunk/demos/tabs/vertical.html On Thu, Apr 8, 2010 at 6:29 AM, goosel gee...@gmail.com wrote: Hello, Is there an easy way to display WiQuery tabs vertically, rather than horizontally? Thanks