Re: DownloadLink, BIRT report

2009-01-01 Thread reiern70
Another thing: if your excel is not very complex you could also consider using [1] to generate it. Best, Ernesto 1-http://jexcelapi.sourceforge.net/ newbieabc wrote: > > The generation of the excel report. > I am really new to BIRT and wicket.. > I've created the BIRT report (report.rptdesi

Re: DateTimeField Error and Question

2009-01-01 Thread Gerolf Seitz
you can override the method newDateTextField(String, PropertyModel) and return a customized DateTextField object. gerolf On Thu, Jan 1, 2009 at 6:44 AM, tbt wrote: > > > Hi > > I am not sure if the DateTextField attribute in the DateTimeField class can > be modified to change the calendar beh

Re: DateTimeField Error and Question

2009-01-01 Thread Adriano dos Santos Fernandes
As following: protected DateTextField newDateTextField(String id, PropertyModel dateFieldModel) { return DateTextField.forDateStyle(id, dateFieldModel, "M-"); } Adriano Gerolf Seitz wrote: you can override the method newDateTextField(String, PropertyModel) and return a custo

Re: [GMAP2] Map can not display in AjaxTabbedPanel

2009-01-01 Thread Martin Funk
maybe this helps: http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/gmap2-parent/gmap2-examples/src/main/java/wicket/contrib/examples/gmap/many/ManyPage.java?r=4445#l45 2008/12/30 新希望软件 -- 俞宏伟 > first, sorry for my poor englist. > > in normal page, GMAP can display well, b

Wicket - page with params and threads

2009-01-01 Thread Vitek.Tajzich
Hi, I having problem with wicket. I created page wich has a constructor with parameters. It is OK, it is work as I expected. But I have noticed that this constructor is called many times for the same request wich has caused that application is very slow. I entered debug mode and saw that there a

Happy New Year Wickers

2009-01-01 Thread Francisco Diaz Trepat - gmail
>From Argentina to all you wicket users and developers. Thanks for all the help and improvements. Hope you all have a fulfilling 2009, and may all your hopes and wishes come true. Cheers, f(t)

Re: Happy New Year Wickers

2009-01-01 Thread Nino Martinez
Yeah happy new year to all :) And may it be yet another year of Wicket Greatness :) Francisco Diaz Trepat - gmail wrote: From Argentina to all you wicket users and developers. Thanks for all the help and improvements. Hope you all have a fulfilling 2009, and may all your hopes and wishes come

Re: Wicket - page with params and threads

2009-01-01 Thread Martijn Dashorst
make sure you don't have an img tag with empty src attribute. This confuses browsers and causes them to request the page multiple times. Martijn On 1/1/09, Vitek.Tajzich wrote: > > Hi, > > I having problem with wicket. I created page wich has a constructor with > parameters. It is OK, it is work

Limited length html label

2009-01-01 Thread jchappelle
I have strings in a databse that are raw html text and it is being displayed on a blog page. Users are able to edit the text using the TinyMCE component and therefore add formatting to their blog entries. I am using the setEscapeModelStrings(false) to correctly display the html formatting. However

Re: Limited length html label

2009-01-01 Thread Jeremy Thomerson
To do this correctly, you're going to basically need to do one of two things: 1 - strip all HTML out of the shortened version and only show plain text (convert and tags to new lines, then use regex to remove all HTML, then truncate to length). 2 - parse the HTML, count the non-html characters,

Redirecting to external URL

2009-01-01 Thread Warren Bell
I need to redirect to an external page. I saw this solution, but was not sure how to use it. Where does this exception get thrown? I do not want to instantiate some kind of dummy page. public class RedirectToExternalException extends AbstractRestartResponseException { private static final

Re: Limited length html label

2009-01-01 Thread Stephen Swinsburg
One problem you are also going to run into when limiting the number of characters is what happens when someone enters a large number of new lines. Ie one person could enter some text that appears ok within the boundaries you define, but another could enter the same text littered with line b

Re: Redirecting to external URL

2009-01-01 Thread Jeremy Thomerson
Where are you redirecting from? You don't mention where you want to use it. Nearly anywhere in your processing you can just do this: throw new RestartResponseAtInterceptPageException(new RedirectPage(" http://www.example.com";)); Or if it's a link and you know the URL ahead of time, just use Ext

Re: Redirecting to external URL

2009-01-01 Thread Jonathan Locke
try: RequestCycle.get().setRequestTarget(new RedirectRequestTarget(url)); Warren Bell wrote: > > I need to redirect to an external page. I saw this solution, but was not > sure how to use it. Where does this exception get thrown? I do not want > to instantiate some kind of dummy page. > > p

Re: Redirecting to external URL

2009-01-01 Thread Warren Bell
I need to explain myself a little better. This is the situation, I have several locations that are on different subnets. They are all connected with a VPN. Each subnet has its own server running this wicket app. The app clients are running on mobile scanning PDAs. These PDAs get moved between e

Re: Redirecting to external URL

2009-01-01 Thread Jonathan Locke
isn't this outside the scope of wicket? it sounds like it might be solvable with some kind of load balancer, router or DNS resolver... Warren Bell wrote: > > I need to explain myself a little better. This is the situation, I have > several locations that are on different subnets. They are all

Re: Redirecting to external URL

2009-01-01 Thread Jonathan Locke
the code i gave you above does, by the way, redirect to an arbitrary url. Jonathan Locke wrote: > > > isn't this outside the scope of wicket? it sounds like it might be > solvable > with some kind of load balancer, router or DNS resolver... > > > Warren Bell wrote: >> >> I need to explain

Re: Twenty Six Wicket Tricks

2009-01-01 Thread walnutmon
A component that takes some domain object, and for every property dynamically loads an appropriate form element. @Test { private class DomainObject{ List prop1s; Boolean prop2; } panel = new DynamicPropertyPanel(new DomainObject()); assertComponent("panel:form:form

Re: Redirecting to external URL

2009-01-01 Thread Warren Bell
I don't always have access to those resources. I will try the setRequestTarget code. I would still have to set-up a dummy page to do this, since I am coming in from an external source, correct? Where else could I place this code? public class DummyPage extends ... { public DummyPage() {

Re: Twenty Six Wicket Tricks

2009-01-01 Thread Jonathan Locke
yes. this is a good one, but it might be too big for the book... although i've been pondering the possibility of something more general which is more in the neighborhood of "arbitrarily- driven component factories" (where property editors and bean editors are specializations). for property/bea

Re: Redirecting to external URL

2009-01-01 Thread Jonathan Locke
yes, that's right. only it's not really a dummy page. it's a redirect page whose function is to locate the right server. public class ServerLocatorPage extends WebPage { ... // what you said } btw, you can do anything in Wicket you can do in a servlet because you can always drill down to the H

Re: Redirecting to external URL

2009-01-01 Thread Jeremy Thomerson
You could do it Jon's route. Here are a couple other options: 1 - use Apache rules to do the redirect 2 - create a servlet to do it (not sure why you have the aversion to a page for it, but this is an alternative since it's a single action app FWIW, I'd probably go with number one. -- Jeremy Th

Re: Happy New Year Wickers

2009-01-01 Thread James Carman
I believe the proper term is "Wicketeers" On Thu, Jan 1, 2009 at 10:05 AM, Francisco Diaz Trepat - gmail wrote: > From Argentina to all you wicket users and developers. > > Thanks for all the help and improvements. > > Hope you all have a fulfilling 2009, and may all your hopes and wishes come >