Re: Noob question: error on quickstart project with maven 2.1.0 and wicket 1.3.6

2009-06-12 Thread Null kühl
Check this out:
http://ilearnzone.com/wicket.html

On Sat, Jun 13, 2009 at 6:44 AM, Igor Vaynberg wrote:

> eclipse issue is easily fixed if you search the archives
>
> -igor
>
> On Fri, Jun 12, 2009 at 8:15 PM, Neil Bartlett
> wrote:
> > Thx Bruno. I've tried it under pure Maven. I recreated the quickstart
> > but did a mvn jetty:run in the project directory and all works fine.
> > Seems to be an issue with my Eclipse set-up.
> >
> >
> >
> > - Original Message -
> > From: "Bruno Ledesma" 
> > To: users@wicket.apache.org
> > Date: Fri, Jun 12, 2009 at 10:40 PM
> > Subject: Noob question: error on quickstart project with maven 2.1.0
> > and wicket 1.3.6
> >
> >> For the first exception that you posted, i would say that you're missing
> >> HomePage.html. Maybe the filename is a little bit different from the
> class
> >> name. But in the end you have commented that you already checked this.
> You
> >> could try a mvn clean install just to make sure the jetty plugin is with
> >>  syncronized files.
> >> Bruno Ledesma
> >>
> >> 2009/6/12 Neil Bartlett 
> >> - Show quoted text -
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Noob question: error on quickstart project with maven 2.1.0 and wicket 1.3.6

2009-06-12 Thread Igor Vaynberg
eclipse issue is easily fixed if you search the archives

-igor

On Fri, Jun 12, 2009 at 8:15 PM, Neil Bartlett wrote:
> Thx Bruno. I've tried it under pure Maven. I recreated the quickstart
> but did a mvn jetty:run in the project directory and all works fine.
> Seems to be an issue with my Eclipse set-up.
>
>
>
> - Original Message -
> From: "Bruno Ledesma" 
> To: users@wicket.apache.org
> Date: Fri, Jun 12, 2009 at 10:40 PM
> Subject: Noob question: error on quickstart project with maven 2.1.0
> and wicket 1.3.6
>
>> For the first exception that you posted, i would say that you're missing
>> HomePage.html. Maybe the filename is a little bit different from the class
>> name. But in the end you have commented that you already checked this. You
>> could try a mvn clean install just to make sure the jetty plugin is with
>>  syncronized files.
>> Bruno Ledesma
>>
>> 2009/6/12 Neil Bartlett 
>> - Show quoted text -
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



markup inheritance redirect issue

2009-06-12 Thread Edward Zarecor
We're integrating a third party web-based authentication service that
requires that we redirect from Wicket and then handle a redirect back from
the service.

The API requires passing in the raw  HTTPServletRequest and
HTTPServletResponse.

Our page hierarchy looks like this:

   BasePage
  AuthenticatedBasePage
   UserHomePage

Within the AuthenticatedBasePage we check to see if the user in the session
is null and, if so, execute the following:

   authenticator.authenticate(getHttpServletRequest(),
getHttpServletResponse());

Within this code the redirect is done in the typical way:
response.sendRedirect("http://foo.com";);

The issue we are seeing is that upon returning from the redirect back to our
application we get the following duplication on the initial landing page:

header
footer
header
body
footer

Upon reloading with F5 we get:

header
body
footer

So my assumption is that some output is getting committed to the response
before we redirect.  However, calling getResponse().reset() prior to the
redirect doesn't fix the issue.

This worked before we did some significant refactoring, so I suspect
something in our super page classes is causing this.  Any idea what we
should look for here?

Thanks.

Ed.


Re: Noob question: error on quickstart project with maven 2.1.0 and wicket 1.3.6

2009-06-12 Thread Neil Bartlett
Thx Bruno. I've tried it under pure Maven. I recreated the quickstart
but did a mvn jetty:run in the project directory and all works fine.
Seems to be an issue with my Eclipse set-up.



- Original Message -
From: "Bruno Ledesma" 
To: users@wicket.apache.org
Date: Fri, Jun 12, 2009 at 10:40 PM
Subject: Noob question: error on quickstart project with maven 2.1.0
and wicket 1.3.6

> For the first exception that you posted, i would say that you're missing
> HomePage.html. Maybe the filename is a little bit different from the class
> name. But in the end you have commented that you already checked this. You
> could try a mvn clean install just to make sure the jetty plugin is with
>  syncronized files.
> Bruno Ledesma
>
> 2009/6/12 Neil Bartlett 
> - Show quoted text -
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Noob question: error on quickstart project with maven 2.1.0 and wicket 1.3.6

2009-06-12 Thread Bruno Ledesma
For the first exception that you posted, i would say that you're missing
HomePage.html. Maybe the filename is a little bit different from the class
name. But in the end you have commented that you already checked this. You
could try a mvn clean install just to make sure the jetty plugin is with
 syncronized files.
Bruno Ledesma

2009/6/12 Neil Bartlett 

> I thought I'd give Wicket a whirl on a new project. Till now I've
> predominantly used Spring, but I'm doing a small project so I thought
> I'd see what wicket could do.
>
> I'm getting an exception on the quickstart maven project.
>
> The exception is
>
> org.apache.wicket.markup.MarkupNotFoundException: Markup of type
> 'html' for component 'com.walpr.HomePage' not found.
>
> All I believe I have done is run the quickstart. Here is the complete
> list of commands I have typed :
>
> $ mvn --version
> Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400)
> Java version: 1.6.0_07
> Java home: c:\Program Files\Java\jdk1.6.0_07\jre
> Default locale: en_CA, platform encoding: Cp1252
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>
> $ mvn archetype:create -DarchetypeGroupId=org.apache.wicket
> -DarchetypeArtifactId=wicket-archetype-quickstart
> -DarchetypeVersion=1.3.6 -DgroupId=com.walpr -DartifactId=walpr
> #This created the project as expected
>
> $ mvn eclipse:eclipse -DdownloadSources
> # this operated as expected it created an clipse project and
> downloaded various sources in to the .m2/repository directory in my
> home directory.
>
> I imported the above created project into eclipse (Ganymede Version:
> 3.4.1 Build id: M20080911-1700).
>
> It had some build errors. I set my eclipse M2_REPO environment variable as
>
> M2_REPO C:/Users/neilb/.m2/repository
>
> Build was then successful.
>
> I ran "Debug As" on Start.java and Jetty failed to start due to a port
> conflict.
> I edited Start.java anc changed the port to 8088
> connector.setPort(8088);
>
> Build worked successfully.
>
> I ran "Debug As" on Start.java and Jetty successfully started.
>
> So far so good.
>
> Now the problem:
>
> If I run "Debug As" on TestHomePage.java and I get the exception error.
> If I browse to http://localhost:8088, I get the exception error.
> (curiously I was expecting the webapp to be bound to
> http://localhost:8080/walpr but it it not -- maybe a clue there?)
>
>
> I then edited the log4j.properties to
> log4j.logger.org.apache.wicket.util.resource=DEBUG
>
> and, if I debug TesHomePage or browse to the webapp, I now get a bunch
> of ResourceStreamLocator debugs...
>
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'com/walpr/HomePage_en_CA.html' on path [folders = [], webapppaths:
> []]
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'com/walpr/HomePage_en_CA.html' using classloader
> sun.misc.launcher$appclassloa...@fabe9
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'com/walpr/HomePage_en.html' on path [folders = [], webapppaths: []]
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'com/walpr/HomePage_en.html' using classloader
> sun.misc.launcher$appclassloa...@fabe9
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'com/walpr/HomePage.html' on path [folders = [], webapppaths: []]
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'com/walpr/HomePage.html' using classloader
> sun.misc.launcher$appclassloa...@fabe9
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'org/apache/wicket/markup/html/WebPage_en_CA.html' on path [folders =
> [], webapppaths: []]
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'org/apache/wicket/markup/html/WebPage_en_CA.html' using classloader
> sun.misc.launcher$appclassloa...@fabe9
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'org/apache/wicket/markup/html/WebPage_en.html' on path [folders = [],
> webapppaths: []]
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'org/apache/wicket/markup/html/WebPage_en.html' using classloader
> sun.misc.launcher$appclassloa...@fabe9
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'org/apache/wicket/markup/html/WebPage.html' on path [folders = [],
> webapppaths: []]
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'org/apache/wicket/markup/html/WebPage.html' using classloader
> sun.misc.launcher$appclassloa...@fabe9
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'org/apache/wicket/Page_en_CA.html' on path [folders = [],
> webapppaths: []]
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'org/apache/wicket/Page_en_CA.html' using classloader
> sun.misc.launcher$appclassloa...@fabe9
> DEBUG - ResourceStreamLocator  - Attempting to locate resource
> 'org/apache/wicket/Page_en.html' on path [folders = [], webapppaths:
> []]
> DEBUG - ResourceStreamLocator  - Attem

tabbedpanel search form must update another panel view area

2009-06-12 Thread jorge Bo
Hi, i have a page that has 2 areas, a formArea anda a viewArea

1) In the formArea, there is a Ajaxtabbedpanel with 2 tabs, each of
them has a form with a search button, they are for diferent seaches.
2) In the viewArea, the results of each search must appear in turn

I was wondering which is the correct way to manage this case? Has
anybody done something similar? I have problems in accesing the
viewArea to be updated.
The viewArea is used for every navigation link, as a target area, to
show the current view.


-- 
"To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master"

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Noob question: error on quickstart project with maven 2.1.0 and wicket 1.3.6

2009-06-12 Thread Neil Bartlett
I thought I'd give Wicket a whirl on a new project. Till now I've
predominantly used Spring, but I'm doing a small project so I thought
I'd see what wicket could do.

I'm getting an exception on the quickstart maven project.

The exception is

org.apache.wicket.markup.MarkupNotFoundException: Markup of type
'html' for component 'com.walpr.HomePage' not found.

All I believe I have done is run the quickstart. Here is the complete
list of commands I have typed :

$ mvn --version
Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400)
Java version: 1.6.0_07
Java home: c:\Program Files\Java\jdk1.6.0_07\jre
Default locale: en_CA, platform encoding: Cp1252
OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"

$ mvn archetype:create -DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart
-DarchetypeVersion=1.3.6 -DgroupId=com.walpr -DartifactId=walpr
#This created the project as expected

$ mvn eclipse:eclipse -DdownloadSources
# this operated as expected it created an clipse project and
downloaded various sources in to the .m2/repository directory in my
home directory.

I imported the above created project into eclipse (Ganymede Version:
3.4.1 Build id: M20080911-1700).

It had some build errors. I set my eclipse M2_REPO environment variable as

M2_REPO C:/Users/neilb/.m2/repository

Build was then successful.

I ran "Debug As" on Start.java and Jetty failed to start due to a port conflict.
I edited Start.java anc changed the port to 8088
connector.setPort(8088);

Build worked successfully.

I ran "Debug As" on Start.java and Jetty successfully started.

So far so good.

Now the problem:

If I run "Debug As" on TestHomePage.java and I get the exception error.
If I browse to http://localhost:8088, I get the exception error.
(curiously I was expecting the webapp to be bound to
http://localhost:8080/walpr but it it not -- maybe a clue there?)


I then edited the log4j.properties to
log4j.logger.org.apache.wicket.util.resource=DEBUG

and, if I debug TesHomePage or browse to the webapp, I now get a bunch
of ResourceStreamLocator debugs...

DEBUG - ResourceStreamLocator  - Attempting to locate resource
'com/walpr/HomePage_en_CA.html' on path [folders = [], webapppaths:
[]]
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'com/walpr/HomePage_en_CA.html' using classloader
sun.misc.launcher$appclassloa...@fabe9
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'com/walpr/HomePage_en.html' on path [folders = [], webapppaths: []]
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'com/walpr/HomePage_en.html' using classloader
sun.misc.launcher$appclassloa...@fabe9
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'com/walpr/HomePage.html' on path [folders = [], webapppaths: []]
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'com/walpr/HomePage.html' using classloader
sun.misc.launcher$appclassloa...@fabe9
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/markup/html/WebPage_en_CA.html' on path [folders =
[], webapppaths: []]
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/markup/html/WebPage_en_CA.html' using classloader
sun.misc.launcher$appclassloa...@fabe9
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/markup/html/WebPage_en.html' on path [folders = [],
webapppaths: []]
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/markup/html/WebPage_en.html' using classloader
sun.misc.launcher$appclassloa...@fabe9
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/markup/html/WebPage.html' on path [folders = [],
webapppaths: []]
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/markup/html/WebPage.html' using classloader
sun.misc.launcher$appclassloa...@fabe9
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/Page_en_CA.html' on path [folders = [],
webapppaths: []]
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/Page_en_CA.html' using classloader
sun.misc.launcher$appclassloa...@fabe9
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/Page_en.html' on path [folders = [], webapppaths:
[]]
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/Page_en.html' using classloader
sun.misc.launcher$appclassloa...@fabe9
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/Page.html' on path [folders = [], webapppaths: []]
DEBUG - ResourceStreamLocator  - Attempting to locate resource
'org/apache/wicket/Page.html' using classloader
sun.misc.launcher$appclassloa...@fabe9
ERROR - RequestCycle   - Markup of type 'html' for
component 'com.walpr.HomePage' not found. Enable debug messages for
org.apache.wicket

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Luther Baker
On Fri, Jun 12, 2009 at 5:57 PM, Jeremy Thomerson  wrote:

> Those designs aren't what make me like CSS - most of them are
> necessarily-filled with hacks to make them work, especially across
> browsers.
>

Sure. My comment was a joking plea to Johan to reconsider CSS :)

> css is really crap

And to your point, it isn't always the CSS, per se, that is the struggle -
but rather, varying browser implementations.

I think those csszengarden pages, browser hacks or not, do help a bit, to
illustrate what is possible with CSS. In general, the *hacks* on those pages
really simulate what CSS is designed to do - not compensate for it. I think
that is a subtle but important point.

>  I still like the separation of markup for presentation and java for code

Amen. And I think Wicket really elucidates those lines.

@Johan
It's not much consoluation but HTML has a twisted history - and CSS was
really an afterthought. HTML wasn't necessarily designed for what it is
being used for today/tomorrow. CSS is really - quite an elegant solution
(conceptually at least) to the general problem we're stuck with.

-Luther


Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Luther Baker
As an aside, I think the art-form takes a great stride forward every time we
arrive at a framework that, by its very use, improves general design and
implementation.

For example, I think the concepts around Spring are a huge step forward.
Most young developers don't understand what *dependencies* are, don't
understand why flat inheritance hierarchies are better than taller ones,
don't understand how to write code you can test in 5 minutes, don't
understand what test *driven* actually means, don't understand why the web
Controller layer shouldn't include business logic ... but lock them in a
room with Spring and force them to use it, wave your hands and say
abracadabra ... and whalah, that singular exasperating experience will
actually do more for them in one month than months/years of long-drawn out
conversations about IoC, dependencies, injection and design by
contract/interface.

Likewise, give me a few newbies, JSPs, Spring Tags, JSTL, servlets and
actions and watch the nastiness that will follow. It is just wa-a-ay to open
ended. Anything goes - and anything does!

Now, ** drum roll please **, after a few years of this initial, required,
nonsense,  more drum rolling , someone dreams of a better way. A
framework, that, *by its very usage*, teaches/enforces/begats better coding
technique.

Wicket is not just front end ... it is perspective. It is self-regulating.
It is structure. It teaches. It limits. It liberates. In short, it is a huge
step forward.

> Wicket is the thing that actually made GUI programming fun for me.

No surprise to me!

Thank you Wicket for changing the way we _think_ about (GUI) development. :)

-Luther



On Fri, Jun 12, 2009 at 10:11 AM, Jeremy Thomerson <
jer...@wickettraining.com> wrote:

> I used to hate HTML / CSS and had designers to do the layout.  In the
> past couple years, I've had to do all my own layouts from photoshop
> images of what it should look like, and have become fairly proficient
> with HTML / CSS.  To the point where I actually sort of like it.  Not
> as much as coding the domain, service and lower layers, but I think
> Wicket is the thing that actually made GUI programming fun for me.
> Before that we had used Tapestry, which I hated.
>
> Anyway, I guess it's all familiarity.  Someone's first web pages are
> generally ugly too, just like my first Swing apps - just look at
> MySpace - you'll see what I mean!
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Fri, Jun 12, 2009 at 2:03 AM, Johan Compagner
> wrote:
> > Ha this is funny,
> > I hear things like swing is horrible to design, from users that use
> > wicket so html apps. I guess those dont design the webapps themselfs,
> > because if i have to choose i would choose swing or swt over html/css
> > any day.. I really hate css
> >
> > For swing apps just have a good ui builder like windows builder or
> > matisse. Windows builder also supports SWT
> >
> > With grouplayout making nice ui's that always looks good over multiply
> > os'ses or jvms is pretty easy
> >
> > You could try to use JavaFX but i havent experiences with that. But it
> > should be way easier to creaty flashy ui apps..
> >
> >
> >
> > On 11/06/2009, Jeremy Thomerson  wrote:
> >> I would like to build a nice-looking java desktop application.  I hope
> >> that isn't an oxymoron  :).  I have built some desktop apps before - a
> >> lot of command line utilities in various languages, and some GUI apps
> >> (perl, java, python, php, even vb (yikes!), c# etc...).
> >>
> >> The question is - what framework do you use for your UI components and
> >> layout on a desktop app?  I would like to use Java because I'll be
> >> most efficient with it and it will work for me on linux machines and
> >> others on Windoze, etc..  But when I've built Swing apps in the past,
> >> I have hated having to layout everything in the code and I can never
> >> make anything aesthetically pleasing.  So
> >>
> >> 1 - do you have any recommendations on a good framework for nice
> >> looking desktop apps?
> >> 2 - any other recommendations for desktop apps in general?
> >> 3 - It should be a lightweight, easy install - and I would prefer to
> >> stay away from using the Eclipse framework for building the app (I use
> >> the IDE but it doesn't need to be something that heavy for the GUI)
> >> 4 - I have even thought about building an app that opens a swing
> >> window that contains an embedded browser and jetty servlet running the
> >> app so that I can use Wicket.  Has anyone thought of or done this
> >> before?
> >>
> >> Basically, it's a CRUD application, but containing personal data that
> >> the user should not store on someone else's server.  I would use an
> >> embedded database that stores the data with encryption.
> >>
> >> Ideas?
> >>
> >> --
> >> Jeremy Thomerson
> >> http://www.wickettraining.com
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.

Re: Wicket generics?

2009-06-12 Thread James Carman
But, the compiler only knows what you're allowed to do by the type of
the variable.  You do not need to declare your variables with the
wildcards.

On Fri, Jun 12, 2009 at 6:31 PM, Cristi Manole wrote:
> declaration is not the problem. from what i remember from generics (I might
> be wrong), you're not allowed to instantiate "generically". you have to tell
> the compiler exactly what type you want. at runtime it has no idea about
> generics.
>
> On Sat, Jun 13, 2009 at 12:41 AM, James Carman
> wrote:
>
>> Just because the constructor is declared that way (with the ?) doesn't mean
>> you have to declare your variables that way.
>>
>> On Jun 12, 2009 4:43 PM, "Martin Makundi" <
>> martin.maku...@koodaripalvelut.com> wrote:
>>
>> > new DropDownChoice ?
>>
>> Maybe ...
>>
>> **
>> Martin
>>
>> > > On Fri, Jun 12, 2009 at 6:06 AM, Martin > Makundi<
>> martin.maku...@koodaripalvelut.com> wrote: >>...
>>
>
>
>
> --
> Cristi Manole
>
> Nova Creator Software
> www.novacreator.com
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Jeremy Thomerson
Those designs aren't what make me like CSS - most of them are
necessarily-filled with hacks to make them work, especially across
browsers.

Again I think it all comes down to familiarity.  I still like the
separation of markup for presentation and java for code - which is
what draws me to Wicket and makes me dislike swing at first taste.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 5:51 PM, Luther Baker wrote:
> Admittedly - it may not be standard, easy or necessarily intuitive ... but
> CSS ain't all bad is it? :)
>
> http://www.mezzoblue.com/zengarden/alldesigns/
>
> -Luther
>
>
>
> On Fri, Jun 12, 2009 at 10:34 AM, Johan Compagner wrote:
>
>> css is really crap (until i really can use box-sizing: border-box
>> everywhere
>> that will be a great relieve)
>>
>> who ever thought about that content-box should be shot and not through the
>> head
>> but shot at various places so that he will die a very painfull and slow
>> death.
>>
>> its completely counter intuitive and i really can understand that microsoft
>> did implement it first wrong (quirks mode)
>> because who in there right minds comes up with something like that.
>>
>> johan
>>
>>
>>
>>
>> On Fri, Jun 12, 2009 at 17:11, Jeremy Thomerson
>> wrote:
>>
>> > I used to hate HTML / CSS and had designers to do the layout.  In the
>> > past couple years, I've had to do all my own layouts from photoshop
>> > images of what it should look like, and have become fairly proficient
>> > with HTML / CSS.  To the point where I actually sort of like it.  Not
>> > as much as coding the domain, service and lower layers, but I think
>> > Wicket is the thing that actually made GUI programming fun for me.
>> > Before that we had used Tapestry, which I hated.
>> >
>> > Anyway, I guess it's all familiarity.  Someone's first web pages are
>> > generally ugly too, just like my first Swing apps - just look at
>> > MySpace - you'll see what I mean!
>> >
>> > --
>> > Jeremy Thomerson
>> > http://www.wickettraining.com
>> >
>> >
>> >
>> >
>> >  On Fri, Jun 12, 2009 at 2:03 AM, Johan Compagner
>> > wrote:
>> > > Ha this is funny,
>> > > I hear things like swing is horrible to design, from users that use
>> > > wicket so html apps. I guess those dont design the webapps themselfs,
>> > > because if i have to choose i would choose swing or swt over html/css
>> > > any day.. I really hate css
>> > >
>> > > For swing apps just have a good ui builder like windows builder or
>> > > matisse. Windows builder also supports SWT
>> > >
>> > > With grouplayout making nice ui's that always looks good over multiply
>> > > os'ses or jvms is pretty easy
>> > >
>> > > You could try to use JavaFX but i havent experiences with that. But it
>> > > should be way easier to creaty flashy ui apps..
>> > >
>> > >
>> > >
>> > > On 11/06/2009, Jeremy Thomerson  wrote:
>> > >> I would like to build a nice-looking java desktop application.  I hope
>> > >> that isn't an oxymoron  :).  I have built some desktop apps before - a
>> > >> lot of command line utilities in various languages, and some GUI apps
>> > >> (perl, java, python, php, even vb (yikes!), c# etc...).
>> > >>
>> > >> The question is - what framework do you use for your UI components and
>> > >> layout on a desktop app?  I would like to use Java because I'll be
>> > >> most efficient with it and it will work for me on linux machines and
>> > >> others on Windoze, etc..  But when I've built Swing apps in the past,
>> > >> I have hated having to layout everything in the code and I can never
>> > >> make anything aesthetically pleasing.  So
>> > >>
>> > >> 1 - do you have any recommendations on a good framework for nice
>> > >> looking desktop apps?
>> > >> 2 - any other recommendations for desktop apps in general?
>> > >> 3 - It should be a lightweight, easy install - and I would prefer to
>> > >> stay away from using the Eclipse framework for building the app (I use
>> > >> the IDE but it doesn't need to be something that heavy for the GUI)
>> > >> 4 - I have even thought about building an app that opens a swing
>> > >> window that contains an embedded browser and jetty servlet running the
>> > >> app so that I can use Wicket.  Has anyone thought of or done this
>> > >> before?
>> > >>
>> > >> Basically, it's a CRUD application, but containing personal data that
>> > >> the user should not store on someone else's server.  I would use an
>> > >> embedded database that stores the data with encryption.
>> > >>
>> > >> Ideas?
>> > >>
>> > >> --
>> > >> Jeremy Thomerson
>> > >> http://www.wickettraining.com
>> > >>
>> > >> -
>> > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > >> For additional commands, e-mail: users-h...@wicket.apache.org
>> > >>
>> > >>
>> > >
>> > > -
>> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > > For additional c

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Luther Baker
Admittedly - it may not be standard, easy or necessarily intuitive ... but
CSS ain't all bad is it? :)

http://www.mezzoblue.com/zengarden/alldesigns/

-Luther



On Fri, Jun 12, 2009 at 10:34 AM, Johan Compagner wrote:

> css is really crap (until i really can use box-sizing: border-box
> everywhere
> that will be a great relieve)
>
> who ever thought about that content-box should be shot and not through the
> head
> but shot at various places so that he will die a very painfull and slow
> death.
>
> its completely counter intuitive and i really can understand that microsoft
> did implement it first wrong (quirks mode)
> because who in there right minds comes up with something like that.
>
> johan
>
>
>
>
> On Fri, Jun 12, 2009 at 17:11, Jeremy Thomerson
> wrote:
>
> > I used to hate HTML / CSS and had designers to do the layout.  In the
> > past couple years, I've had to do all my own layouts from photoshop
> > images of what it should look like, and have become fairly proficient
> > with HTML / CSS.  To the point where I actually sort of like it.  Not
> > as much as coding the domain, service and lower layers, but I think
> > Wicket is the thing that actually made GUI programming fun for me.
> > Before that we had used Tapestry, which I hated.
> >
> > Anyway, I guess it's all familiarity.  Someone's first web pages are
> > generally ugly too, just like my first Swing apps - just look at
> > MySpace - you'll see what I mean!
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
> >
> >
> >  On Fri, Jun 12, 2009 at 2:03 AM, Johan Compagner
> > wrote:
> > > Ha this is funny,
> > > I hear things like swing is horrible to design, from users that use
> > > wicket so html apps. I guess those dont design the webapps themselfs,
> > > because if i have to choose i would choose swing or swt over html/css
> > > any day.. I really hate css
> > >
> > > For swing apps just have a good ui builder like windows builder or
> > > matisse. Windows builder also supports SWT
> > >
> > > With grouplayout making nice ui's that always looks good over multiply
> > > os'ses or jvms is pretty easy
> > >
> > > You could try to use JavaFX but i havent experiences with that. But it
> > > should be way easier to creaty flashy ui apps..
> > >
> > >
> > >
> > > On 11/06/2009, Jeremy Thomerson  wrote:
> > >> I would like to build a nice-looking java desktop application.  I hope
> > >> that isn't an oxymoron  :).  I have built some desktop apps before - a
> > >> lot of command line utilities in various languages, and some GUI apps
> > >> (perl, java, python, php, even vb (yikes!), c# etc...).
> > >>
> > >> The question is - what framework do you use for your UI components and
> > >> layout on a desktop app?  I would like to use Java because I'll be
> > >> most efficient with it and it will work for me on linux machines and
> > >> others on Windoze, etc..  But when I've built Swing apps in the past,
> > >> I have hated having to layout everything in the code and I can never
> > >> make anything aesthetically pleasing.  So
> > >>
> > >> 1 - do you have any recommendations on a good framework for nice
> > >> looking desktop apps?
> > >> 2 - any other recommendations for desktop apps in general?
> > >> 3 - It should be a lightweight, easy install - and I would prefer to
> > >> stay away from using the Eclipse framework for building the app (I use
> > >> the IDE but it doesn't need to be something that heavy for the GUI)
> > >> 4 - I have even thought about building an app that opens a swing
> > >> window that contains an embedded browser and jetty servlet running the
> > >> app so that I can use Wicket.  Has anyone thought of or done this
> > >> before?
> > >>
> > >> Basically, it's a CRUD application, but containing personal data that
> > >> the user should not store on someone else's server.  I would use an
> > >> embedded database that stores the data with encryption.
> > >>
> > >> Ideas?
> > >>
> > >> --
> > >> Jeremy Thomerson
> > >> http://www.wickettraining.com
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > >> For additional commands, e-mail: users-h...@wicket.apache.org
> > >>
> > >>
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: Wicket generics?

2009-06-12 Thread Cristi Manole
declaration is not the problem. from what i remember from generics (I might
be wrong), you're not allowed to instantiate "generically". you have to tell
the compiler exactly what type you want. at runtime it has no idea about
generics.

On Sat, Jun 13, 2009 at 12:41 AM, James Carman
wrote:

> Just because the constructor is declared that way (with the ?) doesn't mean
> you have to declare your variables that way.
>
> On Jun 12, 2009 4:43 PM, "Martin Makundi" <
> martin.maku...@koodaripalvelut.com> wrote:
>
> > new DropDownChoice ?
>
> Maybe ...
>
> **
> Martin
>
> > > On Fri, Jun 12, 2009 at 6:06 AM, Martin > Makundi<
> martin.maku...@koodaripalvelut.com> wrote: >>...
>



-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Wicket generics?

2009-06-12 Thread James Carman
Just because the constructor is declared that way (with the ?) doesn't mean
you have to declare your variables that way.

On Jun 12, 2009 4:43 PM, "Martin Makundi" <
martin.maku...@koodaripalvelut.com> wrote:

> new DropDownChoice ?

Maybe ...

**
Martin

> > On Fri, Jun 12, 2009 at 6:06 AM, Martin > Makundi<
martin.maku...@koodaripalvelut.com> wrote: >>...


Re: Wicket generics?

2009-06-12 Thread Martin Makundi
> new DropDownChoice ?

Maybe ...

**
Martin

>
> On Fri, Jun 12, 2009 at 6:06 AM, Martin
> Makundi wrote:
>> I have casting problem:
>>
>> dropDown = new DropDownChoice(, new
>> ChoiceRenderer(...));
>>
>> dropDown.getChoiceRenderer().getDisplayValue(dropDown.getModelObject());
>> <-- DOES NOT COMPILE
>>
>> Is this a wicket bug or bug in me?
>>
>> **
>> Martin
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Returning to the original page after session timeout / login

2009-06-12 Thread Johan Compagner
What you describe i already replied
Thats the hybrid approache if pages can be stateless then wicket can
generate already urls that can generate the page again if expired and
the call the event

On 12/06/2009, Martin Sachs  wrote:
> I wonder why this is so a big problem. On bookmarkable Webpages (e.g.
> Productpages) the user dont need to login and the session can destroyed
> via timeout. Each Ajax-Request throw would throw a PageExpiredException.
> This is the worst thing in wicket, IMHO.
>
> My tryout was the following in a quickstart-project:
>
> I modified the Homepage:
>
> public class HomePage extends WebPage {
>
>   private static final long serialVersionUID = 1L;
>
>   // TODO Add any page properties or variables here
>   private int   i= 0;
>
>   /**
>* Constructor that is invoked when page is invoked without a session.
>*
>* @param parameters
>*  Page parameters
>*/
>   public HomePage(final PageParameters parameters) {
>
> // Add the simplest type of label
> final Label label = new Label("message", "If you see this message
> wicket is properly configured and running" + i);
> label.setOutputMarkupId(true);
> add(label);
> setStatelessHint(true);
> setVersioned(false);
>
> AjaxEventBehavior ajaxEventBehavior = new AjaxEventBehavior("onclick") {
>
>   @Override
>   protected CharSequence getCallbackScript() {
> return super.getCallbackScript() + ";return false;";
>   }
>
>   @Override
>   protected void onEvent(AjaxRequestTarget target) {
> i++;
> target.addComponent(label);
>   }
>
> };
> BookmarkablePageLink link = new
> BookmarkablePageLink("link", this.getPageClass());
> link.add(ajaxEventBehavior);
> add(link);
>
>   }
>
>   @Override
>   public boolean isBookmarkable() {
> return true;
>   }
>
>   @Override
>   public boolean isVersioned() {
> return false;
>   }
>
>   @Override
>   public boolean isPageStateless() {
> return true;
>   }
>
> and overide the resolveRenderedPage() -Method of
> WebRequestCycleProcessor to handle the case, if the page is null. I just
> create a Page and call beforeRender on it. So the hierachie was build.
>
> The Ajax-request found a component and it work ! The State is coded in
> URL at bookmarkable pages, so who cares about lost state, just create a
> new one. This could also work for stateless pages, for which i overide
> isPageStateless. The component-hierachie must not be scaned and you can
> use ajax.
>
> Alternative: Maybe you can create a new RequestCycle to handle ajaxcalls
> without creating the hole hierarchie. Just create the panel with the
> state coded in the URL?
>
> What are the reasons for not doing it ?
>
> After login you can use the intercepting mechanism. But is the best why
> to intercept multiple times and return to the originals step by step
> (like stack-beheaviour) ?
>
>
> Martin
>
> Christopher L Merrill schrieb:
>> I've changed out PageExpiredErrorPage to be the login page for our app.
>> Does wicket have any support built-in to help return the user to where
>> they were after re-authenticating?
>>
>> From my modest understanding of Wicket, it would need to be a
>> bookmarkable
>> page, which will be ok for a good percentage of the pages in our system.
>>
>> Any suggestions?
>> TIA!
>> Chris
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Returning to the original page after session timeout / login

2009-06-12 Thread Martin Sachs
I wonder why this is so a big problem. On bookmarkable Webpages (e.g.
Productpages) the user dont need to login and the session can destroyed
via timeout. Each Ajax-Request throw would throw a PageExpiredException.
This is the worst thing in wicket, IMHO.

My tryout was the following in a quickstart-project:

I modified the Homepage:

public class HomePage extends WebPage {

  private static final long serialVersionUID = 1L;

  // TODO Add any page properties or variables here
  private int   i= 0;

  /**
   * Constructor that is invoked when page is invoked without a session.
   *
   * @param parameters
   *  Page parameters
   */
  public HomePage(final PageParameters parameters) {

// Add the simplest type of label
final Label label = new Label("message", "If you see this message
wicket is properly configured and running" + i);
label.setOutputMarkupId(true);
add(label);
setStatelessHint(true);
setVersioned(false);

AjaxEventBehavior ajaxEventBehavior = new AjaxEventBehavior("onclick") {

  @Override
  protected CharSequence getCallbackScript() {
return super.getCallbackScript() + ";return false;";
  }

  @Override
  protected void onEvent(AjaxRequestTarget target) {
i++;
target.addComponent(label);
  }

};
BookmarkablePageLink link = new
BookmarkablePageLink("link", this.getPageClass());
link.add(ajaxEventBehavior);
add(link);

  }

  @Override
  public boolean isBookmarkable() {
return true;
  }

  @Override
  public boolean isVersioned() {
return false;
  }

  @Override
  public boolean isPageStateless() {
return true;
  }

and overide the resolveRenderedPage() -Method of
WebRequestCycleProcessor to handle the case, if the page is null. I just
create a Page and call beforeRender on it. So the hierachie was build.

The Ajax-request found a component and it work ! The State is coded in
URL at bookmarkable pages, so who cares about lost state, just create a
new one. This could also work for stateless pages, for which i overide
isPageStateless. The component-hierachie must not be scaned and you can
use ajax.

Alternative: Maybe you can create a new RequestCycle to handle ajaxcalls
without creating the hole hierarchie. Just create the panel with the
state coded in the URL?

What are the reasons for not doing it ?

After login you can use the intercepting mechanism. But is the best why
to intercept multiple times and return to the originals step by step
(like stack-beheaviour) ?


Martin

Christopher L Merrill schrieb:
> I've changed out PageExpiredErrorPage to be the login page for our app.
> Does wicket have any support built-in to help return the user to where
> they were after re-authenticating?
>
> From my modest understanding of Wicket, it would need to be a
> bookmarkable
> page, which will be ok for a good percentage of the pages in our system.
>
> Any suggestions?
> TIA!
> Chris
>
>


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Returning to the original page after session timeout / login

2009-06-12 Thread Johan Compagner
Yes if you dont want to have page expires you could try to use
bookmarkable pages all the way and use the hybrid coding to get mixed
book/session pages.

Or store something in the db record the last page for every user...

On 12/06/2009, Jeremy Thomerson  wrote:
> the path is stored in the session, so as long as your app server
> reloads existing sessions on restart, it should (iirc).  however, in
> your dev environment, the app server probably blows away sessions
>
> hr, i just re-read and realized that you said this is for the
> PageExpired which is typically encountered when you lost your
> session - so this won't work for that.  But it will work if I go back
> twenty pages and click a link - not super helpful.  Sorry.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Fri, Jun 12, 2009 at 2:13 PM, Christopher L
> Merrill wrote:
>> Wow, I hope it's really that easy!?!
>>
>> Should this work through an appserver restart?  E.g. if I
>> 1) login to the app
>> 2) restart the app server
>> 3) click a page link in the browser
>>
>> Should this work?  It didn't for me.  Based on my limited understanding of
>> how wicket works and stepping into the code, it kinda looks like it might
>> not?
>>
>> Chris
>>
>>
>>
>>
>> Jeremy Thomerson wrote:
>>>
>>> in your login form submit, call continueToOriginalDestination()
>>>
>>> onSubmit() {
>>> if (false == continueToOriginalDestination()) {
>>> setReturnPage(SomeOtherPage.class);
>>> }
>>> }
>>>
>>> --
>>> Jeremy Thomerson
>>> http://www.wickettraining.com
>>>
>>>
>>>
>>>
>>> On Fri, Jun 12, 2009 at 1:45 PM, Christopher L
>>> Merrill wrote:

 I've changed out PageExpiredErrorPage to be the login page for our app.
 Does wicket have any support built-in to help return the user to where
 they were after re-authenticating?

 From my modest understanding of Wicket, it would need to be a
 bookmarkable
 page, which will be ok for a good percentage of the pages in our system.

 Any suggestions?
 TIA!
 Chris


 --
 
 -
 Chris Merrill                           |  Web Performance, Inc.
 ch...@webperformance.com                |  http://webperformance.com
 919-433-1762                            |  919-845-7601

 Website Load Testing and Stress Testing Software & Services
 
 -


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>> --
>>  -
>> Chris Merrill                           |  Web Performance, Inc.
>> ch...@webperformance.com                |  http://webperformance.com
>> 919-433-1762                            |  919-845-7601
>>
>> Website Load Testing and Stress Testing Software & Services
>>  -
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Returning to the original page after session timeout / login

2009-06-12 Thread Jeremy Thomerson
Or implement a "remember me" feature in the request cycle.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 2:38 PM, Jeremy
Thomerson wrote:
> Just lengthen the session timeout - how to do this depends on your
> servlet container.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Fri, Jun 12, 2009 at 2:37 PM, Christopher L
> Merrill wrote:
>> Jeremy Thomerson wrote:
>>>
>>> the path is stored in the session, so as long as your app server
>>> reloads existing sessions on restart, it should (iirc).  however, in
>>> your dev environment, the app server probably blows away sessions
>>>
>>> hr, i just re-read and realized that you said this is for the
>>> PageExpired which is typically encountered when you lost your
>>> session - so this won't work for that.  But it will work if I go back
>>> twenty pages and click a link - not super helpful.  Sorry.
>>
>> Ahhh...you had me all excited!   :>
>>
>> So maybe my question is really about controlling session duration.
>> We don't want our user to be forced to re-authenticate throughout the
>> day - so maybe I'm asking the wrong question...Is there another way
>> I should be approaching that problem?
>>
>>
>>
>>
>> --
>>  -
>> Chris Merrill                           |  Web Performance, Inc.
>> ch...@webperformance.com                |  http://webperformance.com
>> 919-433-1762                            |  919-845-7601
>>
>> Website Load Testing and Stress Testing Software & Services
>>  -
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Returning to the original page after session timeout / login

2009-06-12 Thread Jeremy Thomerson
Just lengthen the session timeout - how to do this depends on your
servlet container.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 2:37 PM, Christopher L
Merrill wrote:
> Jeremy Thomerson wrote:
>>
>> the path is stored in the session, so as long as your app server
>> reloads existing sessions on restart, it should (iirc).  however, in
>> your dev environment, the app server probably blows away sessions
>>
>> hr, i just re-read and realized that you said this is for the
>> PageExpired which is typically encountered when you lost your
>> session - so this won't work for that.  But it will work if I go back
>> twenty pages and click a link - not super helpful.  Sorry.
>
> Ahhh...you had me all excited!   :>
>
> So maybe my question is really about controlling session duration.
> We don't want our user to be forced to re-authenticate throughout the
> day - so maybe I'm asking the wrong question...Is there another way
> I should be approaching that problem?
>
>
>
>
> --
>  -
> Chris Merrill                           |  Web Performance, Inc.
> ch...@webperformance.com                |  http://webperformance.com
> 919-433-1762                            |  919-845-7601
>
> Website Load Testing and Stress Testing Software & Services
>  -
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Returning to the original page after session timeout / login

2009-06-12 Thread Christopher L Merrill

Jeremy Thomerson wrote:

the path is stored in the session, so as long as your app server
reloads existing sessions on restart, it should (iirc).  however, in
your dev environment, the app server probably blows away sessions

hr, i just re-read and realized that you said this is for the
PageExpired which is typically encountered when you lost your
session - so this won't work for that.  But it will work if I go back
twenty pages and click a link - not super helpful.  Sorry.


Ahhh...you had me all excited!   :>

So maybe my question is really about controlling session duration.
We don't want our user to be forced to re-authenticate throughout the
day - so maybe I'm asking the wrong question...Is there another way
I should be approaching that problem?




--
 -
Chris Merrill   |  Web Performance, Inc.
ch...@webperformance.com|  http://webperformance.com
919-433-1762|  919-845-7601

Website Load Testing and Stress Testing Software & Services
 -

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to avoid multiple session for the same username

2009-06-12 Thread Juan Carlos Garcia M.

You're right i got confused, probably was thinking on something else when i
replied. 
=)
 
Thanks 


Jeremy Thomerson-5 wrote:
> 
> it wouldn't need to grow - it could be a single column in the users
> table - next to userid.
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> 
> On Fri, Jun 12, 2009 at 12:57 PM, Juan Carlos Garcia
> M. wrote:
>>
>> Also attach some HttpSessionListener to your web application in order to
>> remove old sessions from the database whenever they get destroyed and
>> prevent that table for growing without control.
>>
>>
>> Jeremy Thomerson-5 wrote:
>>>
>>> Store the session ID in your DB whenever someone signs in.  Then if
>>> someone signs in, and the session ID is not the same, you can either
>>> block them from signing in, or you can have something in the request
>>> cycle that checks on every request to make sure that this session ID
>>> is still allowed to be signed in.  If it's not, sign out.
>>>
>>> --
>>> Jeremy Thomerson
>>> http://www.wickettraining.com
>>>
>>>
>>>
>>>
>>> On Fri, Jun 12, 2009 at 12:30 PM, tubin gen wrote:
 I need suggestions on implementing single user login , like My system
 has
 a
 user with a username    jdavid and my application should not allow two
 different sessions for the same username jdavid , can  one session
  peep
 into all other session
 to see if the any has a  usernaem jdavid, I am basically looking for
 some
 pattern if  any available for  restricting  multiple session for the
 same
 username .

>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-avoid-multiple-session-for-the-same-username-tp24003169p24003587.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-avoid-multiple-session-for-the-same-username-tp24003169p24004841.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Returning to the original page after session timeout / login

2009-06-12 Thread Jeremy Thomerson
the path is stored in the session, so as long as your app server
reloads existing sessions on restart, it should (iirc).  however, in
your dev environment, the app server probably blows away sessions

hr, i just re-read and realized that you said this is for the
PageExpired which is typically encountered when you lost your
session - so this won't work for that.  But it will work if I go back
twenty pages and click a link - not super helpful.  Sorry.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 2:13 PM, Christopher L
Merrill wrote:
> Wow, I hope it's really that easy!?!
>
> Should this work through an appserver restart?  E.g. if I
> 1) login to the app
> 2) restart the app server
> 3) click a page link in the browser
>
> Should this work?  It didn't for me.  Based on my limited understanding of
> how wicket works and stepping into the code, it kinda looks like it might
> not?
>
> Chris
>
>
>
>
> Jeremy Thomerson wrote:
>>
>> in your login form submit, call continueToOriginalDestination()
>>
>> onSubmit() {
>> if (false == continueToOriginalDestination()) {
>> setReturnPage(SomeOtherPage.class);
>> }
>> }
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Fri, Jun 12, 2009 at 1:45 PM, Christopher L
>> Merrill wrote:
>>>
>>> I've changed out PageExpiredErrorPage to be the login page for our app.
>>> Does wicket have any support built-in to help return the user to where
>>> they were after re-authenticating?
>>>
>>> From my modest understanding of Wicket, it would need to be a
>>> bookmarkable
>>> page, which will be ok for a good percentage of the pages in our system.
>>>
>>> Any suggestions?
>>> TIA!
>>> Chris
>>>
>>>
>>> --
>>> 
>>> -
>>> Chris Merrill                           |  Web Performance, Inc.
>>> ch...@webperformance.com                |  http://webperformance.com
>>> 919-433-1762                            |  919-845-7601
>>>
>>> Website Load Testing and Stress Testing Software & Services
>>> 
>>> -
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
>  -
> Chris Merrill                           |  Web Performance, Inc.
> ch...@webperformance.com                |  http://webperformance.com
> 919-433-1762                            |  919-845-7601
>
> Website Load Testing and Stress Testing Software & Services
>  -
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Returning to the original page after session timeout / login

2009-06-12 Thread Christopher L Merrill

Wow, I hope it's really that easy!?!

Should this work through an appserver restart?  E.g. if I
1) login to the app
2) restart the app server
3) click a page link in the browser

Should this work?  It didn't for me.  Based on my limited understanding of
how wicket works and stepping into the code, it kinda looks like it might
not?

Chris




Jeremy Thomerson wrote:

in your login form submit, call continueToOriginalDestination()

onSubmit() {
if (false == continueToOriginalDestination()) {
setReturnPage(SomeOtherPage.class);
}
}

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 1:45 PM, Christopher L
Merrill wrote:

I've changed out PageExpiredErrorPage to be the login page for our app.
Does wicket have any support built-in to help return the user to where
they were after re-authenticating?

From my modest understanding of Wicket, it would need to be a bookmarkable
page, which will be ok for a good percentage of the pages in our system.

Any suggestions?
TIA!
Chris


--
 -
Chris Merrill   |  Web Performance, Inc.
ch...@webperformance.com|  http://webperformance.com
919-433-1762|  919-845-7601

Website Load Testing and Stress Testing Software & Services
 -


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





--
 -
Chris Merrill   |  Web Performance, Inc.
ch...@webperformance.com|  http://webperformance.com
919-433-1762|  919-845-7601

Website Load Testing and Stress Testing Software & Services
 -

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Returning to the original page after session timeout / login

2009-06-12 Thread Jeremy Thomerson
in your login form submit, call continueToOriginalDestination()

onSubmit() {
if (false == continueToOriginalDestination()) {
setReturnPage(SomeOtherPage.class);
}
}

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 1:45 PM, Christopher L
Merrill wrote:
> I've changed out PageExpiredErrorPage to be the login page for our app.
> Does wicket have any support built-in to help return the user to where
> they were after re-authenticating?
>
> From my modest understanding of Wicket, it would need to be a bookmarkable
> page, which will be ok for a good percentage of the pages in our system.
>
> Any suggestions?
> TIA!
> Chris
>
>
> --
>  -
> Chris Merrill                           |  Web Performance, Inc.
> ch...@webperformance.com                |  http://webperformance.com
> 919-433-1762                            |  919-845-7601
>
> Website Load Testing and Stress Testing Software & Services
>  -
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Returning to the original page after session timeout / login

2009-06-12 Thread Christopher L Merrill

I've changed out PageExpiredErrorPage to be the login page for our app.
Does wicket have any support built-in to help return the user to where
they were after re-authenticating?

From my modest understanding of Wicket, it would need to be a bookmarkable
page, which will be ok for a good percentage of the pages in our system.

Any suggestions?
TIA!
Chris


--
 -
Chris Merrill   |  Web Performance, Inc.
ch...@webperformance.com|  http://webperformance.com
919-433-1762|  919-845-7601

Website Load Testing and Stress Testing Software & Services
 -


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: how to avoid multiple session for the same username

2009-06-12 Thread Ames, Tim
Be careful not to confuse sessions with opening new windows.  I got bit by this 
recently.

For example; an application is a link from a portal.  This portal opens a new 
window (i.e. target="_blank") that launches your wicket or servlet app. A new 
session is created upon first log in.  The user then launches a duplicate of 
the same app from the portal.  You may think that at this point a new session 
is created for the duplicate app, but it is not it will use the same session id 
as the original launch. This will occur even if the user closes the original 
window then launches the app again - at least until the session expires 
normally.  So the session ID will remain the same even if multiple windows have 
been opened.

Wicket has a multiple windows feature, but this only works if the user decides 
to manually open a window via the File --> New Window or using keyboard 
shortcuts within the browser.

A way around this would be to force the user to always do a Close or Log Out 
button; at which time you could invalidate the session.  But, I do not know how 
to deactivate the standard X in the right top corner of the browser or the File 
--> Exit menu option.  Maybe there is a way, or my knowledge of this is very 
limited?






-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
Sent: Friday, June 12, 2009 1:34 PM
To: users@wicket.apache.org
Subject: Re: how to avoid multiple session for the same username

Store the session ID in your DB whenever someone signs in.  Then if
someone signs in, and the session ID is not the same, you can either
block them from signing in, or you can have something in the request
cycle that checks on every request to make sure that this session ID
is still allowed to be signed in.  If it's not, sign out.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 12:30 PM, tubin gen wrote:
> I need suggestions on implementing single user login , like My system has a
> user with a usernamejdavid and my application should not allow two
> different sessions for the same username jdavid , can  one session  peep
> into all other session
> to see if the any has a  usernaem jdavid, I am basically looking for some
> pattern if  any available for  restricting  multiple session for the same
> username .
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

EMAIL CONFIDENTIALITY NOTICE 

This Email message, and any attachments, may contain confidential 
patient health information that is legally protected. This information 
is intended only for the use of the individual or entity named above. 
The authorized recipient of this information is prohibited from disclosing 
this information to any other party unless required to do so by law 
or regulation and is required to destroy the information after its stated 
need has been fulfilled. If you are not the intended recipient, you are 
hereby notified that any disclosure, copying, distribution, or action 
taken in reliance on the contents of this message is strictly prohibited. 

If you have received this information in error, please notify 
the sender immediately by replying to this message and delete the 
message from your system.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to avoid multiple session for the same username

2009-06-12 Thread Jeremy Thomerson
it wouldn't need to grow - it could be a single column in the users
table - next to userid.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 12:57 PM, Juan Carlos Garcia
M. wrote:
>
> Also attach some HttpSessionListener to your web application in order to
> remove old sessions from the database whenever they get destroyed and
> prevent that table for growing without control.
>
>
> Jeremy Thomerson-5 wrote:
>>
>> Store the session ID in your DB whenever someone signs in.  Then if
>> someone signs in, and the session ID is not the same, you can either
>> block them from signing in, or you can have something in the request
>> cycle that checks on every request to make sure that this session ID
>> is still allowed to be signed in.  If it's not, sign out.
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Fri, Jun 12, 2009 at 12:30 PM, tubin gen wrote:
>>> I need suggestions on implementing single user login , like My system has
>>> a
>>> user with a username    jdavid and my application should not allow two
>>> different sessions for the same username jdavid , can  one session  peep
>>> into all other session
>>> to see if the any has a  usernaem jdavid, I am basically looking for some
>>> pattern if  any available for  restricting  multiple session for the same
>>> username .
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/how-to-avoid-multiple-session-for-the-same-username-tp24003169p24003587.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to avoid multiple session for the same username

2009-06-12 Thread Juan Carlos Garcia M.

Also attach some HttpSessionListener to your web application in order to
remove old sessions from the database whenever they get destroyed and
prevent that table for growing without control.


Jeremy Thomerson-5 wrote:
> 
> Store the session ID in your DB whenever someone signs in.  Then if
> someone signs in, and the session ID is not the same, you can either
> block them from signing in, or you can have something in the request
> cycle that checks on every request to make sure that this session ID
> is still allowed to be signed in.  If it's not, sign out.
> 
> --
> Jeremy Thomerson
> http://www.wickettraining.com
> 
> 
> 
> 
> On Fri, Jun 12, 2009 at 12:30 PM, tubin gen wrote:
>> I need suggestions on implementing single user login , like My system has
>> a
>> user with a username    jdavid and my application should not allow two
>> different sessions for the same username jdavid , can  one session  peep
>> into all other session
>> to see if the any has a  usernaem jdavid, I am basically looking for some
>> pattern if  any available for  restricting  multiple session for the same
>> username .
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-avoid-multiple-session-for-the-same-username-tp24003169p24003587.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to avoid multiple session for the same username

2009-06-12 Thread Jeremy Thomerson
Store the session ID in your DB whenever someone signs in.  Then if
someone signs in, and the session ID is not the same, you can either
block them from signing in, or you can have something in the request
cycle that checks on every request to make sure that this session ID
is still allowed to be signed in.  If it's not, sign out.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 12:30 PM, tubin gen wrote:
> I need suggestions on implementing single user login , like My system has a
> user with a username    jdavid and my application should not allow two
> different sessions for the same username jdavid , can  one session  peep
> into all other session
> to see if the any has a  usernaem jdavid, I am basically looking for some
> pattern if  any available for  restricting  multiple session for the same
> username .
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



how to avoid multiple session for the same username

2009-06-12 Thread tubin gen
I need suggestions on implementing single user login , like My system has a
user with a usernamejdavid and my application should not allow two
different sessions for the same username jdavid , can  one session  peep
into all other session
to see if the any has a  usernaem jdavid, I am basically looking for some
pattern if  any available for  restricting  multiple session for the same
username .


Re: AW: inserting urls in script variables

2009-06-12 Thread Bas Vroling

wicked :) Thanks alot, saved my day!

On Jun 12, 2009, at 17:33 , Jeremy Thomerson wrote:


Yes - don't use a simple attribute modifier.  Use an
"AttributeModifier" that takes a model.  Return the URL in the model.

pseudo code:

container.add(new AttributeModifier("value", true, new
AbstractReadOnlyModel()) {
 public CharSequence getObject() {
   return getRequestCycle().urlFor(dlink, ILinkListener.INTERFACE));
 }
});

You're trying to get the URL before the page is constructed / added to
page map - as the error mentions.  This delays the URL retrieval until
render time.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 4:35 AM, Bas Vroling  
wrote:

Thanks, I looked at the source and did the following:

public JalViewPanel(String id, DefaultMutableTreeNode treeNode) {
   super(id);
   activeNode = treeNode;

   dlink = new DownloadLink("downloadMsf",
currentJalviewAlignment) {
   @Override
   public void onClick() {
   String alignment = (String)
currentJalviewAlignment.getObject();
   byte[] bytes = alignment.getBytes();

   getRequestCycle().setRequestTarget(
   new
AlignmentRequestTarget(bytes, "alignment.fasta"));
   }
   };

   add(dlink);

   WebMarkupContainer container = new
WebMarkupContainer("filename");
   SimpleAttributeModifier modifier = new
SimpleAttributeModifier("value",
   getRequestCycle().urlFor(dlink,
ILinkListener.INTERFACE));
   container.add(modifier);
   add(container);
   }

the " getRequestCycle().urlFor(dlink, ILinkListener.INTERFACE) "  
part works,
when I put this is a label it renders the correct url which if i  
paste it in

the address bar goes to download the file.
However, in the way it is now wicket throws an IllegalStateException:

java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = downloadMsf]]

Any ideas?



On 11 Jun, at 23:23, Jeremy Thomerson wrote:


Look at the source - it has getURL which is a protected method.  If
you really can't figure out how to use urlFor(...) from the source -
then override getURL as such:

public CharSequence getURL() {
return super.getURL();
}

Make it public and use it to get the URL.  You can ascertain all of
this from the source.


--
Jeremy Thomerson
http://www.wickettraining.com




On Thu, Jun 11, 2009 at 4:18 AM, Bas Vroling  
wrote:


So does anyone have an idea how to fix this?


On 10 Jun, at 12:42, Bas Vroling wrote:

Thanks for the extensive feedback, but urlFor() does not accept  
that as

input...
I tried being smart and did this (please correct me if this is
nonsense):

add(new WebMarkupContainer("filename").add(new  
SimpleAttributeModifier(

  "value",
dlink.urlFor(ILinkListener.INTERFACE;

when I access the pages it gives the following error:

java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = downloadMsf]]
  at org.apache.wicket.Component.getPage(Component.java:1755)

although the component is added to the panel. Here's the  
complete code:


public JalViewPanel(String id, DefaultMutableTreeNode treeNode) {
  super(id);
  activeNode = treeNode;

  DownloadLink dlink = new DownloadLink("downloadMsf",
currentJalviewAlignment) {
  @Override
  public void onClick() {
  String alignment = (String)
currentJalviewAlignment.getObject();
  byte[] bytes = alignment.getBytes();
   
getRequestCycle().setRequestTarget(new

AlignmentRequestTarget(bytes, "alignment.fasta"));
  }
  };

  add(dlink);
  add(new WebMarkupContainer("filename").add(new
SimpleAttributeModifier(
  "value",
dlink.urlFor(ILinkListener.INTERFACE;
  }

On 10 Jun, at 12:10, Martijn Dashorst wrote:

You could always look at the source for how Link does it:  
getURL()

calls:

  /**
   * Gets the url to use for this link.
   *
   * @return The URL that this link links to
   */
  protected CharSequence getURL()
  {
  return urlFor(ILinkListener.INTERFACE);
  }

which calls:

Component#urlFor(this, ILinkListener.INTERFACE)

so you should call:

urlFor(dlink, ILinkListener.INTERFACE)

Martijn

On Wed, Jun 10, 2009 at 11:59 AM, Bas  
Vroling

wrote:


I'm feeling not really smart here, but that doesn't work.  
urlFor needs

something like a irequesttarget. I tried something like this:

add(new WebMarkupContainer("filename").add(new
SimpleAttributeModifier(
"value",
urlFor(dlink.getR

Re: page load timer

2009-06-12 Thread Igor Vaynberg
dont remember offhand, look in the source.

-igor

On Fri, Jun 12, 2009 at 9:29 AM, Steve
Swinsburg wrote:
> Thats the one I was after. A question though, what units are the
> measurements displayed in? time/totaltime in milliseconds, session size in
> bytes?
>
> thanks,
> Steve
>
> On 12 Jun 2009, at 16:54, Igor Vaynberg wrote:
>
>> getRequestLoggerSettings().setRequestLoggerEnabled(true);
>>
>> -igor
>>
>> On Fri, Jun 12, 2009 at 3:04 AM, Steve
>> Swinsburg wrote:
>>>
>>> Hi all,
>>>
>>> I vaguely remember seeing a component or setting that times how long it
>>> takes to completely render a page then outputs the result in a Label, can
>>> someone point me in the right direction?
>>>
>>> Or is it as simple as just setting the start time in my BasePage, then
>>> checking again at the end of the page in question? (I wouldn't think that
>>> would be exact though as other Wickety things might occur after the
>>> components on my page have been constructed.)
>>>
>>>
>>> thanks,
>>> Steve
>>>
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: page load timer

2009-06-12 Thread Steve Swinsburg
Thats the one I was after. A question though, what units are the  
measurements displayed in? time/totaltime in milliseconds, session  
size in bytes?


thanks,
Steve

On 12 Jun 2009, at 16:54, Igor Vaynberg wrote:


getRequestLoggerSettings().setRequestLoggerEnabled(true);

-igor

On Fri, Jun 12, 2009 at 3:04 AM, Steve
Swinsburg wrote:


Hi all,

I vaguely remember seeing a component or setting that times how  
long it
takes to completely render a page then outputs the result in a  
Label, can

someone point me in the right direction?

Or is it as simple as just setting the start time in my BasePage,  
then
checking again at the end of the page in question? (I wouldn't  
think that

would be exact though as other Wickety things might occur after the
components on my page have been constructed.)


thanks,
Steve





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





smime.p7s
Description: S/MIME cryptographic signature


Re: Wicket generics?

2009-06-12 Thread Igor Vaynberg
new DropDownChoice ?

-igor

On Fri, Jun 12, 2009 at 6:06 AM, Martin
Makundi wrote:
> I have casting problem:
>
> dropDown = new DropDownChoice(, new
> ChoiceRenderer(...));
>
> dropDown.getChoiceRenderer().getDisplayValue(dropDown.getModelObject());
> <-- DOES NOT COMPILE
>
> Is this a wicket bug or bug in me?
>
> **
> Martin
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: page load timer

2009-06-12 Thread Igor Vaynberg
getRequestLoggerSettings().setRequestLoggerEnabled(true);

-igor

On Fri, Jun 12, 2009 at 3:04 AM, Steve
Swinsburg wrote:
>
> Hi all,
>
> I vaguely remember seeing a component or setting that times how long it
> takes to completely render a page then outputs the result in a Label, can
> someone point me in the right direction?
>
> Or is it as simple as just setting the start time in my BasePage, then
> checking again at the end of the page in question? (I wouldn't think that
> would be exact though as other Wickety things might occur after the
> components on my page have been constructed.)
>
>
> thanks,
> Steve
>
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [VOTE] Release Wicket 1.4-rc5

2009-06-12 Thread Jeremy Thomerson
This vote is closed.  We will be releasing 1.4-rc5.

13 yes votes, 3 of which are binding.
1 sort of no vote, non-binding - Bernard didn't really say no, but
raised an objection

I'll work on completing the release later today.  Announcements will follow.

--
Jeremy Thomerson
http://www.wickettraining.com




On Tue, Jun 9, 2009 at 10:08 AM, Jeremy
Thomerson wrote:
> I've created a release for Wicket 1.4-rc5.  Until it is officially
> released, you can download from the following locations:
>
> SVN Tag: http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4-rc5/
> M2 Repo: 
> http://people.apache.org/~jrthomerson/releases/apache-wicket-1.4-rc5/m2-repo/
> Dist folder: 
> http://people.apache.org/~jrthomerson/releases/apache-wicket-1.4-rc5/dist/
>
> Your vote please (lasts 72h):
>
> [ ] Yes release 1.4-rc5
> [ ] No, don't release it
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> Announcement:
>
> The Apache Wicket team is proud to announce the availability of the
> fifth release candidate for the newest version of Wicket - 1.4.  A lot
> of bugs have been squashed and several improvements implemented.  If
> you are already using earlier versions of 1.4, it is recommended you
> update to Wicket 1.4-rc5 at your earliest convenience.
>
> Eager people click here to download the distribution, others can read further:
>
> http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc5
>
> We thank you for your patience and support.
>
> - The Wicket Team
>
>
> Apache Wicket
>
> Apache Wicket is a component oriented Java web application framework.
> With proper mark-up/logic separation, a POJO data model, and a
> refreshing lack of XML, Apache Wicket makes developing web-apps simple
> and enjoyable again. Swap the boilerplate, complex debugging and
> brittle code for powerful, reusable components written with plain Java
> and HTML.
>
> You can find out more about Apache Wicket on our website:
>
> http://wicket.apache.org
>
>
> This release
>
> This release is the fifth release candidate for the Wicket 1.4
> product.  This release fixes several bugs and adds some minor
> improvements.  You can find out about the changes at the bottom of
> this announcement.
>
>
> Migrating from 1.3
>
> If you are coming from Wicket 1.3, you really want to read our
> migration guide found on the wiki:
>
> http://cwiki.apache.org/WICKET/migrate-14.html
>
>
> Downloading the release:
>
> You can download the release from the official Apache mirror system,
> and you can find it through the following link:
>
> http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc5/
>
> For the Maven and Ivy fans out there: update your pom's to the
> following, and everything will be downloaded automatically:
>
> 
>  org.apache.wicket
>  wicket
>  1.4-rc5
> 
>
> Substitute the artifact ID with the projects of your liking to get the
> other projects.
>
> Please note that we don't prescribe a Logging implementation for
> SLF4J. You need to specify yourself which one you prefer. Read more
> about SLF4J here:
>
> http://slf4j.org
>
>
> Validating the release
>
> The release has been signed by Jeremy Thomerson, your release manager
> for today. The public key can be found in the KEYS file in the
> download area.  Download the KEYS file only from the Apache website.
>
> http://www.apache.org/dist/wicket/1.4-rc5/KEYS
>
> Instructions on how to validate the release can be found here:
>
> http://www.apache.org/dev/release-signing.html#check-integrity
>
>
> Reporting bugs
>
> In case you do encounter a bug, we would appreciate a report in our JIRA:
>
> http://issues.apache.org/jira/browse/WICKET
>
>
> The distribution
>
> In the distribution you will find a README. The README contains
> instructions on how to build from source yourself. You also find a
> CHANEGELOG-1.4 which contains a list of all things that have been
> fixed, added and/or removed since the 1.4 branch was created.
>
>
> Release Notes - Wicket - Version 1.4-RC5
>
> ** Bug
>    * [WICKET-1912] - StatelessForm problems with query string
>    * [WICKET-1922] - AbstractTree - setting root to null causes
> NullPointerException
>    * [WICKET-2033] - & instead of & in javascript
>    * [WICKET-2123] -
> org.apache.wicket.util.convert.converters.SqlTimestampConverter only
> renders the time part of the timestamp
>    * [WICKET-2133] - DatePicker inserts incorrect format date
>    * [WICKET-2188] - PropertyResolver$ArrayPropertyGetSet does not
> call setAccessible(true) on method
>    * [WICKET-2245] - PageParameters always non-empty
>    * [WICKET-2259] - The JavaDoc for IPageLink still holds a
> reference to PageLink which is deprecated
>    * [WICKET-2261] - wicketTester.executeAjaxEvent(combo,
> "onchange"); works with 1.4-rc1 but not anymore with 1.4-rc2
>    * [WICKET-2270] - GET/POST mismatch with stateless page/form.
>    * [WICKET-2272] - open/close div tags are rendered erroneously
>    * [WICKET-2273] - wicket-devutils is missing in
> wicket-assembly-all.xml and not mentioned in README
>  

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Johan Compagner
css is really crap (until i really can use box-sizing: border-box everywhere
that will be a great relieve)

who ever thought about that content-box should be shot and not through the
head
but shot at various places so that he will die a very painfull and slow
death.

its completely counter intuitive and i really can understand that microsoft
did implement it first wrong (quirks mode)
because who in there right minds comes up with something like that.

johan




On Fri, Jun 12, 2009 at 17:11, Jeremy Thomerson
wrote:

> I used to hate HTML / CSS and had designers to do the layout.  In the
> past couple years, I've had to do all my own layouts from photoshop
> images of what it should look like, and have become fairly proficient
> with HTML / CSS.  To the point where I actually sort of like it.  Not
> as much as coding the domain, service and lower layers, but I think
> Wicket is the thing that actually made GUI programming fun for me.
> Before that we had used Tapestry, which I hated.
>
> Anyway, I guess it's all familiarity.  Someone's first web pages are
> generally ugly too, just like my first Swing apps - just look at
> MySpace - you'll see what I mean!
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
>  On Fri, Jun 12, 2009 at 2:03 AM, Johan Compagner
> wrote:
> > Ha this is funny,
> > I hear things like swing is horrible to design, from users that use
> > wicket so html apps. I guess those dont design the webapps themselfs,
> > because if i have to choose i would choose swing or swt over html/css
> > any day.. I really hate css
> >
> > For swing apps just have a good ui builder like windows builder or
> > matisse. Windows builder also supports SWT
> >
> > With grouplayout making nice ui's that always looks good over multiply
> > os'ses or jvms is pretty easy
> >
> > You could try to use JavaFX but i havent experiences with that. But it
> > should be way easier to creaty flashy ui apps..
> >
> >
> >
> > On 11/06/2009, Jeremy Thomerson  wrote:
> >> I would like to build a nice-looking java desktop application.  I hope
> >> that isn't an oxymoron  :).  I have built some desktop apps before - a
> >> lot of command line utilities in various languages, and some GUI apps
> >> (perl, java, python, php, even vb (yikes!), c# etc...).
> >>
> >> The question is - what framework do you use for your UI components and
> >> layout on a desktop app?  I would like to use Java because I'll be
> >> most efficient with it and it will work for me on linux machines and
> >> others on Windoze, etc..  But when I've built Swing apps in the past,
> >> I have hated having to layout everything in the code and I can never
> >> make anything aesthetically pleasing.  So
> >>
> >> 1 - do you have any recommendations on a good framework for nice
> >> looking desktop apps?
> >> 2 - any other recommendations for desktop apps in general?
> >> 3 - It should be a lightweight, easy install - and I would prefer to
> >> stay away from using the Eclipse framework for building the app (I use
> >> the IDE but it doesn't need to be something that heavy for the GUI)
> >> 4 - I have even thought about building an app that opens a swing
> >> window that contains an embedded browser and jetty servlet running the
> >> app so that I can use Wicket.  Has anyone thought of or done this
> >> before?
> >>
> >> Basically, it's a CRUD application, but containing personal data that
> >> the user should not store on someone else's server.  I would use an
> >> embedded database that stores the data with encryption.
> >>
> >> Ideas?
> >>
> >> --
> >> Jeremy Thomerson
> >> http://www.wickettraining.com
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: AW: inserting urls in script variables

2009-06-12 Thread Jeremy Thomerson
Yes - don't use a simple attribute modifier.  Use an
"AttributeModifier" that takes a model.  Return the URL in the model.

pseudo code:

container.add(new AttributeModifier("value", true, new
AbstractReadOnlyModel()) {
  public CharSequence getObject() {
return getRequestCycle().urlFor(dlink, ILinkListener.INTERFACE));
  }
});

You're trying to get the URL before the page is constructed / added to
page map - as the error mentions.  This delays the URL retrieval until
render time.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 4:35 AM, Bas Vroling wrote:
> Thanks, I looked at the source and did the following:
>
> public JalViewPanel(String id, DefaultMutableTreeNode treeNode) {
>                super(id);
>                activeNode = treeNode;
>
>                dlink = new DownloadLink("downloadMsf",
> currentJalviewAlignment) {
>                       �...@override
>                        public void onClick() {
>                                String alignment = (String)
> currentJalviewAlignment.getObject();
>                                byte[] bytes = alignment.getBytes();
>
>                                getRequestCycle().setRequestTarget(
>                                                new
> AlignmentRequestTarget(bytes, "alignment.fasta"));
>                        }
>                };
>
>                add(dlink);
>
>                WebMarkupContainer container = new
> WebMarkupContainer("filename");
>                SimpleAttributeModifier modifier = new
> SimpleAttributeModifier("value",
>                                getRequestCycle().urlFor(dlink,
> ILinkListener.INTERFACE));
>                container.add(modifier);
>                add(container);
>        }
>
> the " getRequestCycle().urlFor(dlink, ILinkListener.INTERFACE) " part works,
> when I put this is a label it renders the correct url which if i paste it in
> the address bar goes to download the file.
> However, in the way it is now wicket throws an IllegalStateException:
>
> java.lang.IllegalStateException: No Page found for component
> [MarkupContainer [Component id = downloadMsf]]
>
> Any ideas?
>
>
>
> On 11 Jun, at 23:23, Jeremy Thomerson wrote:
>
>> Look at the source - it has getURL which is a protected method.  If
>> you really can't figure out how to use urlFor(...) from the source -
>> then override getURL as such:
>>
>> public CharSequence getURL() {
>> return super.getURL();
>> }
>>
>> Make it public and use it to get the URL.  You can ascertain all of
>> this from the source.
>>
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Thu, Jun 11, 2009 at 4:18 AM, Bas Vroling wrote:
>>>
>>> So does anyone have an idea how to fix this?
>>>
>>>
>>> On 10 Jun, at 12:42, Bas Vroling wrote:
>>>
 Thanks for the extensive feedback, but urlFor() does not accept that as
 input...
 I tried being smart and did this (please correct me if this is
 nonsense):

 add(new WebMarkupContainer("filename").add(new SimpleAttributeModifier(
                               "value",
 dlink.urlFor(ILinkListener.INTERFACE;

 when I access the pages it gives the following error:

 java.lang.IllegalStateException: No Page found for component
 [MarkupContainer [Component id = downloadMsf]]
   at org.apache.wicket.Component.getPage(Component.java:1755)

 although the component is added to the panel. Here's the complete code:

 public JalViewPanel(String id, DefaultMutableTreeNode treeNode) {
               super(id);
               activeNode = treeNode;

               DownloadLink dlink = new DownloadLink("downloadMsf",
 currentJalviewAlignment) {
                       @Override
                       public void onClick() {
                               String alignment = (String)
 currentJalviewAlignment.getObject();
                               byte[] bytes = alignment.getBytes();
                               getRequestCycle().setRequestTarget(new
 AlignmentRequestTarget(bytes, "alignment.fasta"));
                       }
               };

               add(dlink);
               add(new WebMarkupContainer("filename").add(new
 SimpleAttributeModifier(
                               "value",
 dlink.urlFor(ILinkListener.INTERFACE;
       }

 On 10 Jun, at 12:10, Martijn Dashorst wrote:

> You could always look at the source for how Link does it: getURL()
> calls:
>
>       /**
>        * Gets the url to use for this link.
>        *
>        * @return The URL that this link links to
>        */
>       protected CharSequence getURL()
>       {
>               return urlFor(ILinkListener.INTERFACE);
>       }
>
> which calls:
>
> Component#urlFor(this, ILinkListener.INTERFACE)
>
> so you should call:
>
> urlFor(dlink, IL

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Jeremy Thomerson
Yeah - but the other parts of the app I know that I can proficiently
make - the business logic, tasks, etc...  The only part that I don't
have experience in is the desktop GUI - which is why I ask for help on
that specific piece.

And I have received a lot of helpful pointers!  Thanks to everyone!
If you have other suggestions, I'm all ears.

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 2:35 AM, Thomas Singer wrote:
> Yes, this is indeed very funny. People think, that making a good (desktop)
> user interface is just about making the right choice of the used
> architecture or GUI builder. That's plain wrong. You also can't
> automatically make good looking and behaving web applications, just because
> you know how html and css work and how to use DreamWeaver.
>
> --
> Thomas
>
>
> Johan Compagner wrote:
>> Ha this is funny,
>> I hear things like swing is horrible to design, from users that use
>> wicket so html apps. I guess those dont design the webapps themselfs,
>> because if i have to choose i would choose swing or swt over html/css
>> any day.. I really hate css
>>
>> For swing apps just have a good ui builder like windows builder or
>> matisse. Windows builder also supports SWT
>>
>> With grouplayout making nice ui's that always looks good over multiply
>> os'ses or jvms is pretty easy
>>
>> You could try to use JavaFX but i havent experiences with that. But it
>> should be way easier to creaty flashy ui apps..
>>
>>
>>
>> On 11/06/2009, Jeremy Thomerson  wrote:
>>> I would like to build a nice-looking java desktop application.  I hope
>>> that isn't an oxymoron  :).  I have built some desktop apps before - a
>>> lot of command line utilities in various languages, and some GUI apps
>>> (perl, java, python, php, even vb (yikes!), c# etc...).
>>>
>>> The question is - what framework do you use for your UI components and
>>> layout on a desktop app?  I would like to use Java because I'll be
>>> most efficient with it and it will work for me on linux machines and
>>> others on Windoze, etc..  But when I've built Swing apps in the past,
>>> I have hated having to layout everything in the code and I can never
>>> make anything aesthetically pleasing.  So
>>>
>>> 1 - do you have any recommendations on a good framework for nice
>>> looking desktop apps?
>>> 2 - any other recommendations for desktop apps in general?
>>> 3 - It should be a lightweight, easy install - and I would prefer to
>>> stay away from using the Eclipse framework for building the app (I use
>>> the IDE but it doesn't need to be something that heavy for the GUI)
>>> 4 - I have even thought about building an app that opens a swing
>>> window that contains an embedded browser and jetty servlet running the
>>> app so that I can use Wicket.  Has anyone thought of or done this
>>> before?
>>>
>>> Basically, it's a CRUD application, but containing personal data that
>>> the user should not store on someone else's server.  I would use an
>>> embedded database that stores the data with encryption.
>>>
>>> Ideas?
>>>
>>> --
>>> Jeremy Thomerson
>>> http://www.wickettraining.com
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Jeremy Thomerson
I used to hate HTML / CSS and had designers to do the layout.  In the
past couple years, I've had to do all my own layouts from photoshop
images of what it should look like, and have become fairly proficient
with HTML / CSS.  To the point where I actually sort of like it.  Not
as much as coding the domain, service and lower layers, but I think
Wicket is the thing that actually made GUI programming fun for me.
Before that we had used Tapestry, which I hated.

Anyway, I guess it's all familiarity.  Someone's first web pages are
generally ugly too, just like my first Swing apps - just look at
MySpace - you'll see what I mean!

--
Jeremy Thomerson
http://www.wickettraining.com




On Fri, Jun 12, 2009 at 2:03 AM, Johan Compagner wrote:
> Ha this is funny,
> I hear things like swing is horrible to design, from users that use
> wicket so html apps. I guess those dont design the webapps themselfs,
> because if i have to choose i would choose swing or swt over html/css
> any day.. I really hate css
>
> For swing apps just have a good ui builder like windows builder or
> matisse. Windows builder also supports SWT
>
> With grouplayout making nice ui's that always looks good over multiply
> os'ses or jvms is pretty easy
>
> You could try to use JavaFX but i havent experiences with that. But it
> should be way easier to creaty flashy ui apps..
>
>
>
> On 11/06/2009, Jeremy Thomerson  wrote:
>> I would like to build a nice-looking java desktop application.  I hope
>> that isn't an oxymoron  :).  I have built some desktop apps before - a
>> lot of command line utilities in various languages, and some GUI apps
>> (perl, java, python, php, even vb (yikes!), c# etc...).
>>
>> The question is - what framework do you use for your UI components and
>> layout on a desktop app?  I would like to use Java because I'll be
>> most efficient with it and it will work for me on linux machines and
>> others on Windoze, etc..  But when I've built Swing apps in the past,
>> I have hated having to layout everything in the code and I can never
>> make anything aesthetically pleasing.  So
>>
>> 1 - do you have any recommendations on a good framework for nice
>> looking desktop apps?
>> 2 - any other recommendations for desktop apps in general?
>> 3 - It should be a lightweight, easy install - and I would prefer to
>> stay away from using the Eclipse framework for building the app (I use
>> the IDE but it doesn't need to be something that heavy for the GUI)
>> 4 - I have even thought about building an app that opens a swing
>> window that contains an embedded browser and jetty servlet running the
>> app so that I can use Wicket.  Has anyone thought of or done this
>> before?
>>
>> Basically, it's a CRUD application, but containing personal data that
>> the user should not store on someone else's server.  I would use an
>> embedded database that stores the data with encryption.
>>
>> Ideas?
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inserting urls in script variables

2009-06-12 Thread Wilhelmsen Tor Iver
>   

Put some wicket:id on that, then add a WebComponent for it that you add
an AttributeModifier to, which sets the "value" attribute.

> When I try to do the obvious, replace the {{URL_HERE}} part 
> with   it complains 
> about non-valid XML and such.

There are basically two groups of web frameworks: 

The "strict" group parses the HTML in the templates and (if they use
their own tags) requires the templates to conform to XHTML syntax. Tags
and attributes specific to the framework form parts of "proper" XML
namespaces. Wicket, Facelets and Tapestry belong to this group as far as
I know. These are the more powerfuil since they can manipulate the DOM
at render time while maintaining a designer-friendly template without
too much mess. 

The "lenient" group only bothers with its own tags/commands etc. and
treats the rest of the template as just text that should be outputted to
the stream without a question about structure. JSP, Velocity, Webmacro
and many others belong to this group, which is large because it is far
easier to write parsers for this approach, for some definitions of
"easier" :). This is the reason you can do e.g.  in
JSP because JSP turns that into outputting of the string "". It never "sees" the a element.
However, since it deals with JSP and JSTL tags in the same step, you
cannot do e.g.  but need to use EL
instead. 

(Did I mention that JSP is a horrid mess and EL is just mascara on a
pig? Well, consider it mentioned. :) )

- Tor Iver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: dropdownchoice crashes IE7

2009-06-12 Thread Stefan Malmesjö
I think I found the answer to this - it has nothing to do with wicket at 
all. But, in case anyone wonders:


http://www.techtalkz.com/internet-explorer/56120-ie7-drop-down-menus-crash-browser.html

The users haven't tried the proposed solution yet, but at least it seems 
like it's not a wicket problem I have at hand :)


/Stefan

On 2009-06-12 12:57, Stefan Malmesjö wrote:

Hi!

A couple of my users have reported that their IE7 crashes when they 
fiddle around with a dropdown in my app. The browser just shuts down 
completely when they make a choice in the drowpdownchoice box. It is 
ajax enabled.


I have the exact same version of IE7, and I cannot repeat the problem 
at my end.


Has anyone else experienced this? Any hints on what I might have done 
wrong or where/how I can start to troubleshoot?


/Stefan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Erik van Oosten
I have some time ago.  It doesn't get much priority from Spring Source 
so don't expect miracles. The main author is mostly tied up on Spring 
Webflow.


Unrelated: I forgot to mention that you should absolutely use Glazed 
Lists when you're doing a Swing project.


Regards,
   Erik.

Jeremy Thomerson schreef:

Also - has anyone looked at Spring Rich Client [1]?  I used a very
early version of it once a couple years ago for a very small project,
but have not dealt with it since.  I'm also not sure if it will
continue to be supported since it hasn't been released or updated in
over a year.

[1] - http://spring-rich-c.sourceforge.net/1.0.0/index.html

--
Jeremy Thomerson
http://www.wickettraining.com

  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Erik van Oosten

Major Péter wrote:

I didn't actually used it, but this could be helpful for you:
http://www.jformdesigner.com/


I have used JFormDesigner extensively, it is an excellent product. 
Simle, yet it has all layout features you need. Costs are not high. 
Works with open source JFormLayout layout manager from same author. 
(JFormLayout is similar to Matisse.)


If you need to have an easy tool to create screens and panels in, *and* 
have readable generated code then look no further. (Note: the generated 
code only has limited round-tripping.)


I recently looked at MIG Layout, this layout manager might overcome your 
rightful aversion for layouting in code. http://www.miglayout.com/


Regards,
   Erik.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: refresh page

2009-06-12 Thread Luther Baker
Ok, so that 'almost' wraps this up. HypbridUrlCodingStrategy works perfectly
for the Ajax-added data.

My last problem is related to the form fields. In
AjaxFallbackButton.onSubmit ... I clean out the input that holds the value
I've just added to the database and redisplayed in a list to the user. But,
on subsequent manual browser refresh, the INPUT that I wiped refreshes with
the user's LAST INPUT.

I don't mind this for the title, content or other input fields on the page -
but I don't want values showing up that I manually removed. I think this is
part of standard browser/form fields behavior.

I think Mike's approach would work here: ie: javascript that clears this
input out on load. I 'never' want any values in this input on load. I know
how to write an IHeaderContributor - is there something similar to add a
body=onload? If not, my specific page (Java/html) doesn't really create the
 tag ... what is the best way to grab it so that I can possibly add a
behavior that would create an onLoad handler.

Or, is there a better, wicket way to make sure this input is empty on
browser refresh?

Thanks,

-Luther


// add a category to the view
// and clean out input that supplied it
// dbase code intentionally left out

final AjaxFallbackButton addCategoryButton = new
AjaxFallbackButton("add-category", new ResourceModel("m-add-category"),
this)
{
private static final long serialVersionUID = 1L;

@Override
protected void onSubmit(final AjaxRequestTarget target,
final Form form)
{
final IModel model =
categoryCandidate.getModel();
final String text = model.getObject();

// make sure we should actually do something
if (text == null)
{
return;
}

// cleans out the form.INPUT
model.setObject(new String());

// add the new text to the categoriesModel (custom Set)
categoriesModel.add(text);

// redraw the form.INPUT
target.addComponent(categoryCandidate);

// redraw the  of categories
target.addComponent(categoriesParent);
}

};


To test the idea ... this works when placed in the markup after the input I
want to clean out:


document.getElementById("category_candidate1e").value =
'';


But I can't leave this embedded in the HTML ... and I guess the ID can
change per wicket's whim. I need to add this to an body.onload event as a
behavior --- how to do I get ahold of the  element from within my
Page.java?


Wicket generics?

2009-06-12 Thread Martin Makundi
I have casting problem:

dropDown = new DropDownChoice(, new
ChoiceRenderer(...));

dropDown.getChoiceRenderer().getDisplayValue(dropDown.getModelObject());
<-- DOES NOT COMPILE

Is this a wicket bug or bug in me?

**
Martin

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Strange page behavior after getting UTF page parameters (for Wicket 1.4 RC2)

2009-06-12 Thread Uladzimir
Hello, Everybody

 

There is very simple code: form with input line and submit button (to get
words for searching):

 

public void onSubmit() {

 

PageParameters parameters = new PageParameters();

parameters.put( "searchLine", "words to search" );

setResponsePage( SearchPage.class, parameters );

   }

 

And there is a SearchPage to display searching results. It is very simple
too:

 

public SearchPage(  PageParameters parameters  ) {

.

String wordsToFind = parameters.getString( "searchLine" );

.

}

 

This page is mounted by standard way:

 

mountBookmarkablePage( "search", SearchPage.class );

 

This code works absolutely correct with Wicket 1.3.5. But after migration to
the RC2 I have problems with UTF parameters. If the parameters are 8859-1 my
search page is rendered fine. Just I am trying to pass some UTF symbols my
page loses CSS at all. I don't use any tricks with CSS. It is one file in
the header of the page ()

 

Ok. I was trying to change mount strategy to:

 

mount( new QueryStringUrlCodingStrategy( "search", SearchPage.class ) );

 

This case page is rendered fine, but looks like I need decode UTF parameters
manually (URLDecoder.decode? or something else?)

 

Ok. Then I decided to migrate to 1.4RC4. Hm. This case all my application
pages rendered enough strange. Looks like CSS is loaded partially (or
applying incorrect for some panels). On the one hand I have CSS. On the
other - incorrect colors and align for some items.

 

Anybody have those problems or I need RTFM more deeply?

 

Thanks a lot.

Uladzimir.

 



dropdownchoice crashes IE7

2009-06-12 Thread Stefan Malmesjö

Hi!

A couple of my users have reported that their IE7 crashes when they 
fiddle around with a dropdown in my app. The browser just shuts down 
completely when they make a choice in the drowpdownchoice box. It is 
ajax enabled.


I have the exact same version of IE7, and I cannot repeat the problem at 
my end.


Has anyone else experienced this? Any hints on what I might have done 
wrong or where/how I can start to troubleshoot?


/Stefan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Radio group selection not being saved if page submit fails due to validation errors...

2009-06-12 Thread Nicolas Melendez
Here is the URL of the ListView:
http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/list/ListView.html

- NM

On Thu, Jun 11, 2009 at 10:11 PM, Jen Van Orman  wrote:

> Igor,
>
> Thank you; this makes sense now, it was a matter of getting straightened
> out
> on the real problem (the list view) instead of focusing on the radio group
> as the problem.
>
> I appreciate your help very much!
>
> Jen
>
> P.S.  And it always helps to look at the most recent version of the javadoc
> ;)
>
> On Thu, Jun 11, 2009 at 2:06 PM, Igor Vaynberg  >wrote:
>
> > the problem is not the radiogroup, it is the listview. listview has a
> > section in its javadoc that talks about this - have a look there first
> > and feel free to come back here with any further questions.
> >
> > -igor
> >
> > On Thu, Jun 11, 2009 at 12:47 PM, Jen Van Orman
> > wrote:
> > > Thank you!  setReuseItems(true) was the ticket!
> > >
> > > Can you please explain the wicket concept behind this feature?  It
> seems
> > > that most other input types automatically retain information if the
> page
> > is
> > > rerendered; How is the radio button different?  Just trying to
> understand
> > > for future reference!
> > >
> > > Thanks,
> > >
> > > Jen
> > >
> > > On Thu, Jun 11, 2009 at 12:49 PM, Jen Van Orman 
> > wrote:
> > >
> > >> Radios are in a listview, and I will try setreuseitems(true).
> > >>
> > >> Thank you!
> > >>
> > >> Jen
> > >>
> > >>   On Thu, Jun 11, 2009 at 12:47 PM, Igor Vaynberg <
> > igor.vaynb...@gmail.com
> > >> > wrote:
> > >>
> > >>> are radios in a listview? did you call setreuseitems(true)?
> > >>>
> > >>> -igor
> > >>>
> > >>> On Thu, Jun 11, 2009 at 11:42 AM, Jen Van Orman
> > >>> wrote:
> > >>> > Hello everyone,
> > >>> >
> > >>> > I have a radio group and if the form validation fails on submit,
> the
> > >>> > selection is lost.  When the page re-renders, the bound value is
> > "null".
> > >>> >
> > >>> > How can I insure that the selected value is retained if form
> > validation
> > >>> > fails?
> > >>> >
> > >>> > Thanks much for your help,
> > >>> >
> > >>> > Jen Van Orman
> > >>> >
> > >>> > --
> > >>> > Quis custodiet ipsos custodes?
> > >>> >
> > >>>
> > >>> -
> > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > >>> For additional commands, e-mail: users-h...@wicket.apache.org
> > >>>
> > >>>
> > >>
> > >>
> > >> --
> > >> Quis custodiet ipsos custodes?
> > >>
> > >>
> > >
> > >
> > > --
> > > Quis custodiet ipsos custodes?
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Quis custodiet ipsos custodes?
>


Re: refresh page

2009-06-12 Thread Luther Baker
>
> mount the page with hybridurlcodingstrategy and your problems will go away.
>

Flawless Victory!

Thanks everybody,

-Luther


Re: page load timer

2009-06-12 Thread Martin Makundi
Hi!

Here is a heavier Jamon example, but you can see how it is done:

* http://blog.xebia.com/2008/02/02/monitor-wicket-page-request-using-jamon/

**
Martin

2009/6/12 Steve Swinsburg :
>
> Hi all,
>
> I vaguely remember seeing a component or setting that times how long it
> takes to completely render a page then outputs the result in a Label, can
> someone point me in the right direction?
>
> Or is it as simple as just setting the start time in my BasePage, then
> checking again at the end of the page in question? (I wouldn't think that
> would be exact though as other Wickety things might occur after the
> components on my page have been constructed.)
>
>
> thanks,
> Steve
>
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread James Carman
I agree.  However, finding the right GUI component library can make
things look very nice a lot quicker than you can do it on your own.
You still have to handle events properly (threading issues) and
architect stuff the right way, but having a nice library of "widgets"
is a great start.

On Fri, Jun 12, 2009 at 3:35 AM, Thomas Singer wrote:
> Yes, this is indeed very funny. People think, that making a good (desktop)
> user interface is just about making the right choice of the used
> architecture or GUI builder. That's plain wrong. You also can't
> automatically make good looking and behaving web applications, just because
> you know how html and css work and how to use DreamWeaver.
>
> --
> Thomas
>
>
> Johan Compagner wrote:
>> Ha this is funny,
>> I hear things like swing is horrible to design, from users that use
>> wicket so html apps. I guess those dont design the webapps themselfs,
>> because if i have to choose i would choose swing or swt over html/css
>> any day.. I really hate css
>>
>> For swing apps just have a good ui builder like windows builder or
>> matisse. Windows builder also supports SWT
>>
>> With grouplayout making nice ui's that always looks good over multiply
>> os'ses or jvms is pretty easy
>>
>> You could try to use JavaFX but i havent experiences with that. But it
>> should be way easier to creaty flashy ui apps..
>>
>>
>>
>> On 11/06/2009, Jeremy Thomerson  wrote:
>>> I would like to build a nice-looking java desktop application.  I hope
>>> that isn't an oxymoron  :).  I have built some desktop apps before - a
>>> lot of command line utilities in various languages, and some GUI apps
>>> (perl, java, python, php, even vb (yikes!), c# etc...).
>>>
>>> The question is - what framework do you use for your UI components and
>>> layout on a desktop app?  I would like to use Java because I'll be
>>> most efficient with it and it will work for me on linux machines and
>>> others on Windoze, etc..  But when I've built Swing apps in the past,
>>> I have hated having to layout everything in the code and I can never
>>> make anything aesthetically pleasing.  So
>>>
>>> 1 - do you have any recommendations on a good framework for nice
>>> looking desktop apps?
>>> 2 - any other recommendations for desktop apps in general?
>>> 3 - It should be a lightweight, easy install - and I would prefer to
>>> stay away from using the Eclipse framework for building the app (I use
>>> the IDE but it doesn't need to be something that heavy for the GUI)
>>> 4 - I have even thought about building an app that opens a swing
>>> window that contains an embedded browser and jetty servlet running the
>>> app so that I can use Wicket.  Has anyone thought of or done this
>>> before?
>>>
>>> Basically, it's a CRUD application, but containing personal data that
>>> the user should not store on someone else's server.  I would use an
>>> embedded database that stores the data with encryption.
>>>
>>> Ideas?
>>>
>>> --
>>> Jeremy Thomerson
>>> http://www.wickettraining.com
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



page load timer

2009-06-12 Thread Steve Swinsburg


Hi all,

I vaguely remember seeing a component or setting that times how long  
it takes to completely render a page then outputs the result in a  
Label, can someone point me in the right direction?


Or is it as simple as just setting the start time in my BasePage, then  
checking again at the end of the page in question? (I wouldn't think  
that would be exact though as other Wickety things might occur after  
the components on my page have been constructed.)



thanks,
Steve




smime.p7s
Description: S/MIME cryptographic signature


Re: AW: inserting urls in script variables

2009-06-12 Thread Bas Vroling

Thanks, I looked at the source and did the following:

public JalViewPanel(String id, DefaultMutableTreeNode treeNode) {
super(id);
activeNode = treeNode;

dlink = new DownloadLink("downloadMsf", 
currentJalviewAlignment) {
@Override
public void onClick() {
String alignment = (String) 
currentJalviewAlignment.getObject();
byte[] bytes = alignment.getBytes();

getRequestCycle().setRequestTarget(
new AlignmentRequestTarget(bytes, 
"alignment.fasta"));
}
};

add(dlink);

WebMarkupContainer container = new 
WebMarkupContainer("filename");
		SimpleAttributeModifier modifier = new  
SimpleAttributeModifier("value",

getRequestCycle().urlFor(dlink, 
ILinkListener.INTERFACE));
container.add(modifier);
add(container);
}

the " getRequestCycle().urlFor(dlink, ILinkListener.INTERFACE) " part  
works, when I put this is a label it renders the correct url which if  
i paste it in the address bar goes to download the file.

However, in the way it is now wicket throws an IllegalStateException:

java.lang.IllegalStateException: No Page found for component  
[MarkupContainer [Component id = downloadMsf]]


Any ideas?



On 11 Jun, at 23:23, Jeremy Thomerson wrote:


Look at the source - it has getURL which is a protected method.  If
you really can't figure out how to use urlFor(...) from the source -
then override getURL as such:

public CharSequence getURL() {
return super.getURL();
}

Make it public and use it to get the URL.  You can ascertain all of
this from the source.


--
Jeremy Thomerson
http://www.wickettraining.com




On Thu, Jun 11, 2009 at 4:18 AM, Bas Vroling  
wrote:

So does anyone have an idea how to fix this?


On 10 Jun, at 12:42, Bas Vroling wrote:

Thanks for the extensive feedback, but urlFor() does not accept  
that as

input...
I tried being smart and did this (please correct me if this is  
nonsense):


add(new WebMarkupContainer("filename").add(new  
SimpleAttributeModifier(

   "value",
dlink.urlFor(ILinkListener.INTERFACE;

when I access the pages it gives the following error:

java.lang.IllegalStateException: No Page found for component
[MarkupContainer [Component id = downloadMsf]]
   at org.apache.wicket.Component.getPage(Component.java:1755)

although the component is added to the panel. Here's the complete  
code:


public JalViewPanel(String id, DefaultMutableTreeNode treeNode) {
   super(id);
   activeNode = treeNode;

   DownloadLink dlink = new DownloadLink("downloadMsf",
currentJalviewAlignment) {
   @Override
   public void onClick() {
   String alignment = (String)
currentJalviewAlignment.getObject();
   byte[] bytes = alignment.getBytes();

getRequestCycle().setRequestTarget(new

AlignmentRequestTarget(bytes, "alignment.fasta"));
   }
   };

   add(dlink);
   add(new WebMarkupContainer("filename").add(new
SimpleAttributeModifier(
   "value",
dlink.urlFor(ILinkListener.INTERFACE;
   }

On 10 Jun, at 12:10, Martijn Dashorst wrote:

You could always look at the source for how Link does it:  
getURL() calls:


   /**
* Gets the url to use for this link.
*
* @return The URL that this link links to
*/
   protected CharSequence getURL()
   {
   return urlFor(ILinkListener.INTERFACE);
   }

which calls:

Component#urlFor(this, ILinkListener.INTERFACE)

so you should call:

urlFor(dlink, ILinkListener.INTERFACE)

Martijn

On Wed, Jun 10, 2009 at 11:59 AM, Bas  
Vroling wrote:


I'm feeling not really smart here, but that doesn't work. urlFor  
needs

something like a irequesttarget. I tried something like this:

add(new WebMarkupContainer("filename").add(new  
SimpleAttributeModifier(

 "value",
urlFor(dlink.getRequestCycle().getRequestTarget();

but that gives me the url of the page, not the downloadlink.

On 10 Jun, at 11:46, Martijn Dashorst wrote:


urlFor(dlink)?

Martijn

On Wed, Jun 10, 2009 at 11:27 AM, Bas  
Vroling

wrote:


Ok, that is starting to work, thanks! Now I only need to get  
the url

in
the
simpleAttributeModifier. This doesn't accept models but needs a
CharSequence, which does seem logical but how do I get the  
actual URL

of
the
dlink model in there?

On 10 Jun, at 10:48, Martijn Dashorst wrote:




add(new WebMarkupContainer("filename").add(new
SimpleAttributeModifier("value", ...)));

On Wed, Jun 10, 2009 at 9:57 

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Thomas Singer
Yes, this is indeed very funny. People think, that making a good (desktop)
user interface is just about making the right choice of the used
architecture or GUI builder. That's plain wrong. You also can't
automatically make good looking and behaving web applications, just because
you know how html and css work and how to use DreamWeaver.

-- 
Thomas


Johan Compagner wrote:
> Ha this is funny,
> I hear things like swing is horrible to design, from users that use
> wicket so html apps. I guess those dont design the webapps themselfs,
> because if i have to choose i would choose swing or swt over html/css
> any day.. I really hate css
> 
> For swing apps just have a good ui builder like windows builder or
> matisse. Windows builder also supports SWT
> 
> With grouplayout making nice ui's that always looks good over multiply
> os'ses or jvms is pretty easy
> 
> You could try to use JavaFX but i havent experiences with that. But it
> should be way easier to creaty flashy ui apps..
> 
> 
> 
> On 11/06/2009, Jeremy Thomerson  wrote:
>> I would like to build a nice-looking java desktop application.  I hope
>> that isn't an oxymoron  :).  I have built some desktop apps before - a
>> lot of command line utilities in various languages, and some GUI apps
>> (perl, java, python, php, even vb (yikes!), c# etc...).
>>
>> The question is - what framework do you use for your UI components and
>> layout on a desktop app?  I would like to use Java because I'll be
>> most efficient with it and it will work for me on linux machines and
>> others on Windoze, etc..  But when I've built Swing apps in the past,
>> I have hated having to layout everything in the code and I can never
>> make anything aesthetically pleasing.  So
>>
>> 1 - do you have any recommendations on a good framework for nice
>> looking desktop apps?
>> 2 - any other recommendations for desktop apps in general?
>> 3 - It should be a lightweight, easy install - and I would prefer to
>> stay away from using the Eclipse framework for building the app (I use
>> the IDE but it doesn't need to be something that heavy for the GUI)
>> 4 - I have even thought about building an app that opens a swing
>> window that contains an embedded browser and jetty servlet running the
>> app so that I can use Wicket.  Has anyone thought of or done this
>> before?
>>
>> Basically, it's a CRUD application, but containing personal data that
>> the user should not store on someone else's server.  I would use an
>> embedded database that stores the data with encryption.
>>
>> Ideas?
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Per Lundholm
GWT is nice until you have too many objects on screen, then
performance drops to horrible.

What I like about doing HTML is that a lot of the layout problems have
been solved. Crude, yes, but solved.

Here is some hundreds of JavaFX examples, http://jfxstudio.wordpress.com

One is mine :-)

/Per

On Fri, Jun 12, 2009 at 8:59 AM, Martin Sachs wrote:
>
> 1: Maybe QT  or what about java.net!
> 3: Adope AIR is really nice looking
> 4: if you have in mind, that you would need the app also in web
> (intranet) build a wicket application. Desktop apps have better
> usability in general.
>   GWT-application is an option to have both worlds !
>
>
> Jeremy Thomerson schrieb:
>> I would like to build a nice-looking java desktop application.  I hope
>> that isn't an oxymoron  :).  I have built some desktop apps before - a
>> lot of command line utilities in various languages, and some GUI apps
>> (perl, java, python, php, even vb (yikes!), c# etc...).
>>
>> The question is - what framework do you use for your UI components and
>> layout on a desktop app?  I would like to use Java because I'll be
>> most efficient with it and it will work for me on linux machines and
>> others on Windoze, etc..  But when I've built Swing apps in the past,
>> I have hated having to layout everything in the code and I can never
>> make anything aesthetically pleasing.  So
>>
>> 1 - do you have any recommendations on a good framework for nice
>> looking desktop apps?
>> 2 - any other recommendations for desktop apps in general?
>> 3 - It should be a lightweight, easy install - and I would prefer to
>> stay away from using the Eclipse framework for building the app (I use
>> the IDE but it doesn't need to be something that heavy for the GUI)
>> 4 - I have even thought about building an app that opens a swing
>> window that contains an embedded browser and jetty servlet running the
>> app so that I can use Wicket.  Has anyone thought of or done this
>> before?
>>
>> Basically, it's a CRUD application, but containing personal data that
>> the user should not store on someone else's server.  I would use an
>> embedded database that stores the data with encryption.
>>
>> Ideas?
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Johan Compagner
Ha this is funny,
I hear things like swing is horrible to design, from users that use
wicket so html apps. I guess those dont design the webapps themselfs,
because if i have to choose i would choose swing or swt over html/css
any day.. I really hate css

For swing apps just have a good ui builder like windows builder or
matisse. Windows builder also supports SWT

With grouplayout making nice ui's that always looks good over multiply
os'ses or jvms is pretty easy

You could try to use JavaFX but i havent experiences with that. But it
should be way easier to creaty flashy ui apps..



On 11/06/2009, Jeremy Thomerson  wrote:
> I would like to build a nice-looking java desktop application.  I hope
> that isn't an oxymoron  :).  I have built some desktop apps before - a
> lot of command line utilities in various languages, and some GUI apps
> (perl, java, python, php, even vb (yikes!), c# etc...).
>
> The question is - what framework do you use for your UI components and
> layout on a desktop app?  I would like to use Java because I'll be
> most efficient with it and it will work for me on linux machines and
> others on Windoze, etc..  But when I've built Swing apps in the past,
> I have hated having to layout everything in the code and I can never
> make anything aesthetically pleasing.  So
>
> 1 - do you have any recommendations on a good framework for nice
> looking desktop apps?
> 2 - any other recommendations for desktop apps in general?
> 3 - It should be a lightweight, easy install - and I would prefer to
> stay away from using the Eclipse framework for building the app (I use
> the IDE but it doesn't need to be something that heavy for the GUI)
> 4 - I have even thought about building an app that opens a swing
> window that contains an embedded browser and jetty servlet running the
> app so that I can use Wicket.  Has anyone thought of or done this
> before?
>
> Basically, it's a CRUD application, but containing personal data that
> the user should not store on someone else's server.  I would use an
> embedded database that stores the data with encryption.
>
> Ideas?
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org