Re: Wicket HTML before graphics design with CSS ...

2009-10-28 Thread Jason Novotny
My best experiences have been when the designer has full reign to do what they need on the CSS/HTML front on a blank canvas-- obviously after doing wireframes with something like OmniGraffle, Balsamiq or Fireworks. It helps if they add things like static error messages or a highlighted

Re: Wicket and JQuery

2009-10-28 Thread Jason Novotny
Bingo!! I've been hitting this wall, and pulling my hair out-- in fact I may ditch jQuery for this very reason since I can't find a suitable workaround :-( Martin Makundi wrote: ... and expect trouble with ajaxifying jquery plugins that skin html components. They will not work properly

Re: urlFor(ResourceReference) strangeness

2009-10-28 Thread Alex Objelean
I am pretty sure, it is a bug. The reason why the urlFor(ResourceReference) is not working properly is because you are using BookmarkablePageRequestTargetUrlCodingStrategy for page mounting or a similar strategy which encodes the params like this: http://server/context/param1/value1/param2/value2

Re: images not cached

2009-10-28 Thread Alex Objelean
You could add a shared resource to your application, like this: Application.get().getSharedResources().add(name, WebResource)... in the WebResource implementation you can control the response headers by adding expire headers or etag.. This is pretty clean approach. Alex Objelean Fernando

Question Wicket Pages and Directories

2009-10-28 Thread Lester Chua
Hi, I think I'm the minority here but I like how wicket's default behaviour of placing html with the page. I have a problem that I hope someone has encountered and solved before. Basically, I current my source structure to be as follows com/acme/web/HomePage.java com/acme/web/HomePage.html

Re: wizard step window size / width

2009-10-28 Thread Sam Zilverberg
thanks, I did something similiar to this. I used the wizard constructor with the false argument so that addDefaultCss wouldnt be called, then in each wizard step I did add(CSSPackageResource.getHeaderContribution(... to add the appropiate css for the wizard step, basicly I just took the original

Re: Question Wicket Pages and Directories

2009-10-28 Thread Martijn Dashorst
Use normal BookmarkablePageLinks instead of wicket:link. The latter is just convenience and only supports the most basic stuff. Martijn On Wed, Oct 28, 2009 at 7:55 AM, Lester Chua cicowic...@gmail.com wrote: Hi, I think I'm the minority here but I like how wicket's default behaviour of

Re: urlFor(ResourceReference) strangeness

2009-10-28 Thread pieter claassen
Alex, The problem went away. I had some pages mounted (I landed on a mounted page) and others not so as soon as I removed all the mounted pages, the problem went away). Rgds, Pieter On Wed, Oct 28, 2009 at 7:31 AM, Alex Objelean alex_objel...@yahoo.comwrote: I am pretty sure, it is a bug.

Re: Wicket-stuff site down?

2009-10-28 Thread Martin Grigorov
hi Johan this should be fixed with my first commit yesterday: snapshotRepository idwicketstuff-org-maven/id urlscpexe://wicketstuff.org/home/wicket/tomcat/webapps/maven/repository/url uniqueVersionfalse/uniqueVersion ADDED /snapshotRepository Here is a little Perl magic

Re: Question Wicket Pages and Directories

2009-10-28 Thread Lester Chua
Thanks Martijn, I think I stumbled on the solution just before I saw your hint =). Please help me take a look and see if the way I approached the problem is too cumbersome. Basically my HTML, in my NavigationalPanel.html: span wicket:id=links a href=# wicket:id=linkspan

presentation changes when switching to deployment mode

2009-10-28 Thread Pi Trash
Hi all, I developed a simple Wicket application containing just one page with some tables. In development mode everything is working and looking fine. But when I switch to deployment mode the presentation of the page changes dramatically. For example borders of tables are not visible any

Re: Question Wicket Pages and Directories

2009-10-28 Thread Martijn Dashorst
I'd rather use RepeatingView, together with a utility method for adding the menu items. A ListView refreshes the menu on each render, and your menu is rather static. something like: RepeatingView rv = new RepeatingView(menu); addMenuItem(rv, Name of menuitem, PageThatIsLinkedTo.class); private

Re: urlFor(ResourceReference) strangeness

2009-10-28 Thread Alex Objelean
Still, is this acceptable for you? Is my statement about mounting true? If it is, could you create a jira issue for this? Alex pieter claassen-2 wrote: Alex, The problem went away. I had some pages mounted (I landed on a mounted page) and others not so as soon as I removed all the

Re: Wicket and JQuery

2009-10-28 Thread richardwilko
Hi Jeffery, I would be interested to know what put you off about wiquery, any feedback is always welcome. Anyway, for ajax communication, add an AbstractAajxBehaviour to your page / component, and use the url this generates to pass to your jquery ajax something like this: String callbackurl =

Re: Question Wicket Pages and Directories

2009-10-28 Thread Lester Chua
Thanks! I was just wondering how to cache it as the performance immediately took quite a bad hit when I used ListView, RepeatingView is much much better for my nav purposes. Regards, Lester Martijn Dashorst wrote: I'd rather use RepeatingView, together with a utility method for adding the

Re: Wicket GAE Performance

2009-10-28 Thread Alexander Elsholz
Hi, i dont have any profiler. the problem is, that the application is slow when running on googles application engine. local, where i could profile aeverything is fine. where ist the best place in wicket to hoock performance measures? or are there any debug-messages which i could activate?

How to have a RenderedDynamicImageResource with transparent background?

2009-10-28 Thread Reinhard Vornholt
Hello, I like to have a RenderedDynamicImageResource with a transparent background. I tried serveral things google came up with. But none worked so far. Let me show you what I do: public RenderedDynamicImageResource getCity(final Long cityId){ RenderedDynamicImageResource

RE: Wicket and JQuery

2009-10-28 Thread Jeffrey Schneller
Can you expand on this? The plan was to replace components via ajax [using wicket's ajax support] and have the jquery+plugins skin the components. For example: Have a jQuery accordion that in each accordion step allows the user to click a button or a link. The button or the link would

RE: Wicket and JQuery

2009-10-28 Thread Jeffrey Schneller
Richard, You lost me a bit with the AbstractAjaxBehaviour stuff. Was this to get wiquery to work or to not use wiquery. The problems I saw with wiquery when I first looked [a few weeks back] at were: 1) seemed a bit of a work-in-progress / proof of concept, 2) lack of samples + a good base of

input filed mask

2009-10-28 Thread tubin gen
Is there any textfield to format number to currency , I need a currency text field is there any available ?

Re: presentation changes when switching to deployment mode

2009-10-28 Thread Igor Vaynberg
your css may depend on wicket tags, such as wicket:container, wicket:extend, etc. these tags are stripped in deployment mode. -igor On Wed, Oct 28, 2009 at 2:13 AM, Pi Trash ptr...@web.de wrote: Hi all, I developed a simple Wicket application containing just one page with some tables. In

Re: How to have a RenderedDynamicImageResource with transparent background?

2009-10-28 Thread Michael O'Cleirigh
Hi Reinhard, You need to seperate your image generating logic from the wicket Image Resource. I'd create a test program or unit test to build verify that the image you want is being built correctly and then bind it into wicket. For example you can just use a BufferedDynamicImageResource

RE: Wicket and JQuery

2009-10-28 Thread richardwilko
Hi Jeffrey, AbstractAjaxBehaviour bit is nothing to do with wiquery, although it is the method I use when I want to use jquery ajax when writing wiquery components. Essentially, AbstractAjaxBehaviour is a behaviour that you add to the page or component and you can call

Re: Force page expiration

2009-10-28 Thread Tomás Rossi
Ok... Our page had a StatelessForm inside. We changed it to just Form. When the form was submitted, we had a bookmarkable page as a response page and now we changed the call to produce a non-bookmarkable page. This is: onSubmit() { ... //setResponsePage(MyResponsePage.class); // - REMOVED

AW: input filed mask

2009-10-28 Thread Giambalvo, Christian
Look at http://wicket.apache.org/docs/1.4/org/apache/wicket/util/convert/package -summary.html. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Force page expiration

2009-10-28 Thread Pedro Santos
1) Why setting bookmarkable or not bookmarkable response page makes the difference between expiring and not expiring the current page? Basically, the page instances are versioned to framework be able to get them back. The default versioning implementation encode page version information at url. As

Re: Wicket and JQuery

2009-10-28 Thread Jeremy Thomerson
I use custom event binding quite a bit within jQuery... for instance: $(document).bind('fooUpdated', function() { // here I make a textfield within foo into an autocomplete textfield }); Then, when I call to AJAX that replaces foo, I just do: $(document).trigger('fooUpdated'); This works

Re: Force page expiration

2009-10-28 Thread Tomás Rossi
1) So, what does the fact that it creates a new pagemap (or not) has to do with the current page been expired or not? I mean, I understand the URL encode for the page versioning stuff, but I don't get why the page is not expired. Maybe because when I hit the back button, the URL points to the

setResponsePage chaining

2009-10-28 Thread Ryan
If you have a page,P1, with a form which has an onSubmit() that calls setResponsePage(new P2()) and the constructor in P2 calls setResponsePage(new P3()) the page that is rendered is P2. However, P3 is rendered if the onSubmit calls setResponsePage(P2.class) and the P2 constructor calls

Bug in DatePicker behavior regarding the back button of the browser

2009-10-28 Thread Martin Bigio
Hi, I've opened a bug in Jira (https://issues.apache.org/jira/browse/WICKET-2550) regarding the DatePicker behavior (in Wicket 1.4.1 and above). The issue includes a QuickStart in order to reproduce the bug. It seems that the DatePicker introduces a bug when it's included in a WebPage that can

Bug in WicketTester when submitting forms

2009-10-28 Thread Martin Bigio
Hi I've opened a bug in Jira (https://issues.apache.org/jira/browse/WICKET-2551) regarding a bug with the WicketTester (1.4.1 and above) when submiting forms. The issue includes a QuickStart in order to reproduce the bug. This bug is only present when using CryptedUrlWebRequestCodingStrategy. It

Re: setResponsePage chaining

2009-10-28 Thread Ryan
Throwing RestartResponseException works as expected, but I'm still not sure if the setResponsePage behavior is correct... On Wed, Oct 28, 2009 at 11:52:09AM -0600, Ryan exclaimed: If you have a page,P1, with a form which has an onSubmit() that calls setResponsePage(new P2()) and the constructor

Re: Force page expiration

2009-10-28 Thread Tomás Rossi
Thank you for your time. Now we know that all of our pages must be stateless AND we need it to expire them anyway. Maybe Wicket is not prepared for this so we'll try it manually. Pedro Santos escribió: 1) The browser keep the page url on his history. If that url don't has any historical

Any issues using @SpringBean in WebApplication

2009-10-28 Thread Steve Hiller
Hi All, Are there any issues associated with using the @SpringBean annotation in a class that inherits from WebApplication or AuthenticatedWebApplication? Thanks, Steve

Re: Any issues using @SpringBean in WebApplication

2009-10-28 Thread Igor Vaynberg
no -igor On Wed, Oct 28, 2009 at 1:22 PM, Steve Hiller sh...@bellsouth.net wrote: Hi All, Are there any issues associated with using the @SpringBean annotation in a class that inherits from WebApplication or AuthenticatedWebApplication? Thanks, Steve

Re: Any issues using @SpringBean in WebApplication

2009-10-28 Thread shetc
Thanks Igor! -- View this message in context: http://www.nabble.com/Any-issues-using-%40SpringBean-in-WebApplication-tp26101512p26101590.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe,

Re: Any issues using @SpringBean in WebApplication

2009-10-28 Thread Pieter Degraeuwe
Hmm, I was always thinking that the @SpringBean annotation should be used in Pages and/or components. You should inject your dependencies in your Application directly in your spring.xml. your spring.xml should contain something like this: bean class=foo.bar.MyApplication property

Re: Any issues using @SpringBean in WebApplication

2009-10-28 Thread Igor Vaynberg
ah, woops. i misread in as with you will have to inject the application class manually. after you install the spring component injector. -igor On Wed, Oct 28, 2009 at 1:29 PM, shetc sh...@bellsouth.net wrote: Thanks Igor! -- View this message in context:

Re: Any issues using @SpringBean in WebApplication

2009-10-28 Thread Michael O'Cleirigh
You could use the @Autowired Spring annotation and the autowire=byType attribute to the bean definition to support autowiring to get the same effect as @SpringBean brings in Components. e.g. bean class=foo.bar.MyApplication autowire=byType / Regards, Mike I was always thinking that

Replacing a panel with another panel

2009-10-28 Thread Jeffrey Schneller
I am trying to replace a panel with another panel. The replacement works the first time. The next time I click on the replacement link, I get an exception. java.lang.IllegalStateException: This method can only be called on a component that has already been added to its parent. You will

Re: Replacing a panel with another panel

2009-10-28 Thread Eelco Hillenius
I am trying to replace a panel with another panel.  The replacement works the first time.  The next time I click on the replacement link, I get an exception. java.lang.IllegalStateException: This method can only be called on a component that has already been added to its parent. My guess is

Re: Fw: new to wicket

2009-10-28 Thread rpraveen
Hi Khadeer, You have to copy your wicket.jar into WEB-INF\lib and deploy it. khadeer wrote: Hi,   i am resending this message .i thought question would be missed since iam not subscribed to the list .since i sent the message for subscription i hope the

Tree markup

2009-10-28 Thread bvroling
I'm using the wicket tree, which works nice. However, when the tree element is longer than the width of the tree, the line just continues 'invisible' behind it. I have been trying for hours now to get a scrollbar to appear, but no luck so far. Any ideas?

Re: Tree markup

2009-10-28 Thread Haulyn R. Jason
Hi, I just want to lear something here. I do not know how to solve your problem, but can you tell me how can you add links to the tree component? Thanks. On Thu, Oct 29, 2009 at 6:52 AM, bvrol...@cmbi.ru.nl wrote: I'm using the wicket tree, which works nice. However, when the tree element is

Wicket Maven in Netbean 6.7

2009-10-28 Thread Tomáš Mihok
Hi there, year ago when I started with wicket I had Netbeans 6.5 and after installing Maven I had option to create Wicket Quickstart Archetype. Yesterday I downloaded Netbean 6.7.1 which has built in Maven support but I can't find the wicket archetype. When I tried to add new archetype with

Re: Wicket Maven in Netbean 6.7

2009-10-28 Thread Ben Tilford
Netbeans has maven built in but it will use an external installation if you tell it to. It sounds like you have it configured to use an external maven installation but don't have maven installed. In Netbeans go to ToolsOptionsMiscMaven and see if you have set it up to use an external maven Then

Re: Wicket Maven in Netbean 6.7

2009-10-28 Thread Tomáš Mihok
Thank you wery much, pointing to external maven location worked flawlessly. Even the Wicket Archtype came out. tm Ben Tilford wrote / napísal(a): Netbeans has maven built in but it will use an external installation if you tell it to. It sounds like you have it configured to use an external

Re: Tree markup

2009-10-28 Thread Haulyn R. Jason
Hi, I know how to add links. override newLink method. Thanks again. On Thu, Oct 29, 2009 at 7:35 AM, Haulyn R. Jason saharab...@gmail.com wrote: Hi, I just want to lear something here. I do not know how to solve your problem, but can you tell me how can you add links to the tree component?

Re: setResponsePage chaining

2009-10-28 Thread bgooren
Well, new P2() is executed _before_ it's result (a P2 instance) is passed to setResponsePage(), so this behavior is perfectly normal: setResponsePage( new P3() ) is executed before the resulting P2 instance is passed to setResponsePage(). Timeline: 1. new P2() is executed 2. P2 constructor is

RE: Replacing a panel with another panel

2009-10-28 Thread Jeffrey Schneller
So how would I reference B rather than A on all subsequent calls after the first. Is it as simple as checking to see if A does not have some property set? Then just use an if/then/else statement to use the correct panel. Thanks. -Original Message- From: Eelco Hillenius

Re: Any issues using @SpringBean in WebApplication

2009-10-28 Thread James Carman
On Wed, Oct 28, 2009 at 5:29 PM, Michael O'Cleirigh michael.ocleir...@rivulet.ca wrote: You could use the @Autowired Spring annotation and the  autowire=byType attribute to the bean definition to support autowiring to get the same effect as @SpringBean brings in Components. Not exactly,

Re: Replacing a panel with another panel

2009-10-28 Thread Igor Vaynberg
class mycomponent { component A; void onclick() { component B=new something(A.getId()); A.replaceWith(B); A=B; } } the A=B is what you are missing. -igor On Wed, Oct 28, 2009 at 7:06 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: So how would I reference B

Re: Fw: new to wicket

2009-10-28 Thread sharief Mohammed
As of now i am getting below error   10/28/09 22:43:26:894 EDT] 001d WebApp    E   [Servlet Error]-[Filter [WebApplication]: could not be initialized]: java.lang.LinkageError: LinkageError while defining class: HelloWorldApplication Could not be defined due to: (HelloWorldApplication)

Re: Setup for stepping into wicket source in eclipse

2009-10-28 Thread Flavius
Nicolas, yes my build automatically is checked. Pedro, that fixed it! Thank you very much! Pedro H. O. dos Santos wrote: Debug Configuration your server configuration Source tab remove older source codes from it if there is one On Tue, Oct 27, 2009 at 10:55 AM, Nicolas Melendez