Re: Label associated with an open/close tag

2007-09-24 Thread Gwyn Evans
On Monday, September 24, 2007, 2:29:07 AM, Kent <[EMAIL PROTECTED]> wrote:

> Hi,

> I think this is one of the most common gotcha's in Wicket: a Label
> associated with 
> an open/close tag like  will silently output nothing. As I really can't
> think of 
> a use case when this behavior is the desired behavior (wanting the Label to
> output
> nothing?), I'd suggest that either it changes it to , or simply throw 
> an exception or log a warning.

Please raise an issue - https://issues.apache.org/jira/browse/WICKET
Feel free to have a go at a patch, as that'll help it's chances of
getting done!

/Gwyn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [podcast] Wicket talk at JavaZone 2007

2007-09-24 Thread Xavier Hanin
On 9/22/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
>
> for those of you couldn't attend JavaZone 2007 (probably most of you)
> and haven't already listened to the podcast, here we go:
>
> http://www4.java.no/presentations/javazone/2007/podcast/5301.mp3


As a reminder, slides and eclipse project for the custom component example
are here:
http://people.apache.org/~xavier/wicket/

Xavier

the rss-feed for all podcasts can be found here:
> http://www4.java.no/web/show.do?page=141
>
> Xavier, thank you again for stepping in...
>
>   Gerolf
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/


sessionstore is too big

2007-09-24 Thread Benjamin Ernst
Hi,

we have a problem with the sessions that wicket stores in the filesystem. It
seems that the sessions that are stored here
"[TOMCAT-DIR]\work\Catalina\[HOST]\[WEB-APP-NAME\sessions\" are not deleted
after they are no longer in use. The size of this directory is now grown to
2.5Gb, which is way too big. Is there a way to let wicket delete old
sessions?

We are using wicket 1.3-beta2 with Apache Tomcat 5.5.23.

Benjamin


Re: ANN: beturtle.com launched

2007-09-24 Thread Dipu Seminlal
Very Nice, Congratulations !!

Dipu

On 9/21/07, Joe Toth <[EMAIL PROTECTED]> wrote:
>
> Hi Everyone,
>
> We just launched http://beTurtle.com/ - A 'green' social networking
> site. If your interested in healthy living, sustainable practices, have
> 'green' questions or just want to make some new friends, stop on by. Let
> us know what you think, we would really appreciate it.
>
> It runs on Spring2, Hibernate3, Wicket 1.3 plus many other open source
> projects.  Without Wicket and the other frameworks I wouldn't have been
> able to develop the entire site so quickly. Thank you so much everyone
> for the great framework and answering any questions I had.
>
> Joe Toth
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: sessionstore is too big

2007-09-24 Thread Eelco Hillenius
> we have a problem with the sessions that wicket stores in the filesystem. It
> seems that the sessions that are stored here
> "[TOMCAT-DIR]\work\Catalina\[HOST]\[WEB-APP-NAME\sessions\" are not deleted
> after they are no longer in use. The size of this directory is now grown to
> 2.5Gb, which is way too big. Is there a way to let wicket delete old
> sessions?
>
> We are using wicket 1.3-beta2 with Apache Tomcat 5.5.23.

Hmmm. You should try to find out why they aren't being deleted. We
sure do our best!

Btw, if you upgrade to beta 3, you'll get a more efficient page store
implementation as the default.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sessionstore is too big

2007-09-24 Thread Benjamin Ernst
First of all: thanks for your help!

Do you have any idea how to find that out? Where can I see how and when
wicket tries to delete the session?

Benjamin

2007/9/24, Eelco Hillenius <[EMAIL PROTECTED]>:
>
> > we have a problem with the sessions that wicket stores in the
> filesystem. It
> > seems that the sessions that are stored here
> > "[TOMCAT-DIR]\work\Catalina\[HOST]\[WEB-APP-NAME\sessions\" are not
> deleted
> > after they are no longer in use. The size of this directory is now grown
> to
> > 2.5Gb, which is way too big. Is there a way to let wicket delete old
> > sessions?
> >
> > We are using wicket 1.3-beta2 with Apache Tomcat 5.5.23.
>
> Hmmm. You should try to find out why they aren't being deleted. We
> sure do our best!
>
> Btw, if you upgrade to beta 3, you'll get a more efficient page store
> implementation as the default.
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-24 Thread Martijn Dashorst
I'm going to take a passive role in the organizing of this, though I'd
love to do so. Completing the book has my current highest priority.

Any volunteers?

Martijn

-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [RFE] getMarkupId()

2007-09-24 Thread Sam Hough

Just to be pedantic even in your odd/even example that could work with
classes since an element can have more than one class...

I think the performance problem for the browser trying to find an element by
class is the bigger problem. Although in many cases events are just attached
to elements that happen to have a particular class.

Quite often HTML monkeys (not ours of course) get carried away with ids and
use them to apply a particular behaviour rather than identifying a unique
element.

Wicket shifts a lot of the Ajax stuff away from the HTML monkey for things
like updating elements so it may be more natural to ask them to just attach
behaviours to elements we mark with a particular class. In that way we don't
have to worry about re-use, we may be able to mix and match styles and
client side effects etc.

I am definitely not suggesting that wicket doesn't update/use ids to mark
elements just that we are planning to rely less on them being known before
runtime. So CSS etc should be more class rather than id heavy.



Maris Orbidans-2 wrote:
> 
> 
> I use ajax as well, but I don't understand what's the problem with 
> setOutputMarkupId ?
> 
> In any case I am sure that forcing unique class attributes will create 
> much bigger problem.  Almost any non trivial web design uses identical 
> class values in many places.  Sometimes CSS class is used just to
> specify background color or something that is applied to many html tags. 
> Are you saying that it's going to be impossible ?   I am afraid that 
> many developers (including me) won't be able to use wicket anymore.
>  
> Maris
> 
>> So you use it just because of the performance of the browser DOM? Not
>> because
>> it has to be unique? 
>>
>> Are you using Ajax? ie forced to do setOutputMarkupId? We are and that is
>> probably the biggest reason we are trying to avoid them.
>>
>>
>>
>>
>>
>> Alex Objelean wrote:
>>   
>>> In my application I extensively use the component generated id to
>>> perform
>>> some DOM updates on the client side, also for client-side validation.
>>>
>>> Also getting a DOM element by its ID is the fastest method comparing
>>> with
>>> finding it using it's css class.
>>>
>>>
>>>
>>> Sam Hough wrote:
>>> 
 When is the killer case for using id?



 Alex Objelean wrote:
   
> My personal opinion is that switching from id to class is not such a
> good idea, simply because the ID attributes guaranties (of course you
> can create two elements with same ID, but it is not the same as with
> class attribute) the unicity of the element, also you can find the
> element from js using document.getElementById... 
>
> I hope that this radical change will not be made in the 1.3 release as
> it has a great impact on any application developed using the latest
> beta3 release. Also I think this issue should be discussed more
> between
> the core developers.
>
> Alex.
>
>
> Sam Hough wrote:
> 
>> We are going to stop using ids and move over to class as it make
>> re-use
>> easier and avoids a number of wicket problems with ids... The HTML
>> monkey is not happy though. He reminds me of the Family Guy screaming
>> monkey today.
>>
>>
>>
>> Alex Objelean wrote:
>>   
>>> This is about how wicket generates dynamically markupID.
>>>
>>> I have, for instance, the following markup component: 
>>>
>>> 
>>>
>>> The generated markupId for this component looks like the following:
>>> quantity.noOfUnits1232 .
>>>
>>> I suggest to escape any css valid specifiers from the generated
>>> markupId, by replacing them with something else (for instance '_'
>>> character). 
>>>
>>> The problem appear when I am trying to identify the component by
>>> it's
>>> id using some js library (like jQuery) and as a consequence the
>>> result
>>> of this query: $("#quantity.noOfUnits1232") is invalid.
>>>
>>> Thank you!
>>>
>>> Alex.
>>>
>>> 
>>   
> 
   
>>> 
>>
>>   
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-RFE--getMarkupId%28%29-tf4493344.html#a12855924
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-24 Thread Johan Compagner
i will try to set something up, the problem is that location is depending on
how many wil come..

johan



On 9/24/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
>
> I'm going to take a passive role in the organizing of this, though I'd
> love to do so. Completing the book has my current highest priority.
>
> Any volunteers?
>
> Martijn
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0-beta3 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: sessionstore is too big

2007-09-24 Thread Johan Compagner
how do you stop tomcat when you stop it (if you do that)
Make sure that you never kill tomcat, If you do that then you have to delete
the dirs yourself.

But maybe somehow there is a loophole that stops us from deleting the file.


On 9/24/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote:
>
> First of all: thanks for your help!
>
> Do you have any idea how to find that out? Where can I see how and when
> wicket tries to delete the session?
>
> Benjamin
>
> 2007/9/24, Eelco Hillenius <[EMAIL PROTECTED]>:
> >
> > > we have a problem with the sessions that wicket stores in the
> > filesystem. It
> > > seems that the sessions that are stored here
> > > "[TOMCAT-DIR]\work\Catalina\[HOST]\[WEB-APP-NAME\sessions\" are not
> > deleted
> > > after they are no longer in use. The size of this directory is now
> grown
> > to
> > > 2.5Gb, which is way too big. Is there a way to let wicket delete old
> > > sessions?
> > >
> > > We are using wicket 1.3-beta2 with Apache Tomcat 5.5.23.
> >
> > Hmmm. You should try to find out why they aren't being deleted. We
> > sure do our best!
> >
> > Btw, if you upgrade to beta 3, you'll get a more efficient page store
> > implementation as the default.
> >
> > Eelco
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: sessionstore is too big

2007-09-24 Thread Eelco Hillenius
On 9/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> how do you stop tomcat when you stop it (if you do that)
> Make sure that you never kill tomcat, If you do that then you have to delete
> the dirs yourself.

But even without shutting down, those old sessions should be removed,
no? I mean, as far as I remember, we explicitly delete them when they
expire.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sessionstore is too big

2007-09-24 Thread Johan Compagner
Yes we listen to unBind events, so they should be deleted.
The only way that doesn't happen currently that i can think of if you kill
tomcat the hard way
then the current sessions will never normally expire and will never be
cleaned

johan



On 9/24/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> On 9/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > how do you stop tomcat when you stop it (if you do that)
> > Make sure that you never kill tomcat, If you do that then you have to
> delete
> > the dirs yourself.
>
> But even without shutting down, those old sessions should be removed,
> no? I mean, as far as I remember, we explicitly delete them when they
> expire.
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


strange ClassCastException when deserializing a Page

2007-09-24 Thread Xavier Hanin
Hi,

I have a strange CCE on page deserialization with wicket 1.3.0-beta3:
java.lang.ClassCastException: cannot assign instance of
org.apache.wicket.model.PropertyModel to field
org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.markupHelperof
type
org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper in
instance of org.xoocode.xooctory.web.component.form.LabelBorder
 at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(
ObjectStreamClass.java:2032)
 at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java
:1212)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java
:1951)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
:1869)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
:1753)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
 at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java
:1945)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
:1869)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
:1753)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
 at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java
:1945)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
:1869)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
:1753)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
 at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java
:1945)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
:1869)
 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
:1753)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
 at org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java
:396)
 at
org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(
AbstractPageStore.java:231)
 at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(
DiskPageStore.java:596)
 at
org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get
(SecondLevelCacheSessionStore.java:322)
 at org.apache.wicket.Session.getPage(Session.java:800)
 at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(
AbstractRequestCycleProcessor.java:427)
 at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
WebRequestCycleProcessor.java:139)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1091)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1177)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:500)
 at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
:261)
 at org.apache.wicket.protocol.http.WicketFilter.doFilter(
WicketFilter.java:127)
 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1065)
 at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal
(OpenSessionInViewFilter.java:198)
 at org.springframework.web.filter.OncePerRequestFilter.doFilter(
OncePerRequestFilter.java:75)
 at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1065)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java
:365)
 at org.mortbay.jetty.security.SecurityHandler.handle(
SecurityHandler.java:185)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java
:181)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java
:689)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java
:391)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java
:139)
 at org.mortbay.jetty.Server.handle(Server.java:285)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java
:457)
 at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
HttpConnection.java:751)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
 at org.mortbay.io.nio.SelectChannelEndPoint.run(
SelectChannelEndPoint.java:329)
 at org.mortbay.thread.BoundedThreadPool$PoolThread.run(
BoundedThreadPool.ja

Re: [podcast] Wicket talk at JavaZone 2007

2007-09-24 Thread David Bernard

Why not add it to the wiki or the main site (and other presentations)?
It's a good support for internal/customer "show".

I suggest a list with the following information :
* authors
* original target (ex: javazone 2007), first presentation date
* wicket version (1.3.0)
* attachament (slides, src...)
* agenda/toc

/david

Xavier Hanin wrote:

On 9/22/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:

for those of you couldn't attend JavaZone 2007 (probably most of you)
and haven't already listened to the podcast, here we go:

http://www4.java.no/presentations/javazone/2007/podcast/5301.mp3



As a reminder, slides and eclipse project for the custom component example
are here:
http://people.apache.org/~xavier/wicket/

Xavier

the rss-feed for all podcasts can be found here:

http://www4.java.no/web/show.do?page=141

Xavier, thank you again for stepping in...

  Gerolf







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wicket Dialogs

2007-09-24 Thread carloc

Is there any component in wicket similar to this component?
Something like wicket dialogs

http://developer.yahoo.com/yui/examples/container/panel_clean.html
-- 
View this message in context: 
http://www.nabble.com/Wicket-Dialogs-tf4507886.html#a12856206
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sessionstore is too big

2007-09-24 Thread Matej Knopp
Jetty cleans the temp dir on startup automatically, Tomcat probably
doesn't do it. Still, this shouldn't happen on production, because we
clean the files when session is unbound. But when you just kill
tomcat, there is no way we can clean sessions. Unless we check on
startup if the folder is empty for given session store. I'm not sure
we should do that though.

-Matej

On 9/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> Yes we listen to unBind events, so they should be deleted.
> The only way that doesn't happen currently that i can think of if you kill
> tomcat the hard way
> then the current sessions will never normally expire and will never be
> cleaned
>
> johan
>
>
>
> On 9/24/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> > On 9/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > how do you stop tomcat when you stop it (if you do that)
> > > Make sure that you never kill tomcat, If you do that then you have to
> > delete
> > > the dirs yourself.
> >
> > But even without shutting down, those old sessions should be removed,
> > no? I mean, as far as I remember, we explicitly delete them when they
> > expire.
> >
> > Eelco
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sessionstore is too big

2007-09-24 Thread Benjamin Ernst
Because our Application in an intrannet-Apllication the user should stay
logged-in their whole workday. So our session-timeout is 12 hours and the
sessions don't expire for a long time. Could that be a problem too?

And it could be that we killed the tomcat a few tims.
I will watch for session-directory size and how it grows. Is there a way to
check wether a session in this dircetory is no longer in use?

Benjamin


2007/9/24, Johan Compagner <[EMAIL PROTECTED]>:
>
> Yes we listen to unBind events, so they should be deleted.
> The only way that doesn't happen currently that i can think of if you kill
> tomcat the hard way
> then the current sessions will never normally expire and will never be
> cleaned
>
> johan
>
>
>
> On 9/24/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> > On 9/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > how do you stop tomcat when you stop it (if you do that)
> > > Make sure that you never kill tomcat, If you do that then you have to
> > delete
> > > the dirs yourself.
> >
> > But even without shutting down, those old sessions should be removed,
> > no? I mean, as far as I remember, we explicitly delete them when they
> > expire.
> >
> > Eelco
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: sessionstore is too big

2007-09-24 Thread Matej Knopp
If you upgrade Wicket, there's new page store called DiskPageStore.
for this pagestore you can set limits for pagemap file size and limit
for entire session (so the session never grows beyond that limit)

-Matej

On 9/24/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote:
> Because our Application in an intrannet-Apllication the user should stay
> logged-in their whole workday. So our session-timeout is 12 hours and the
> sessions don't expire for a long time. Could that be a problem too?
>
> And it could be that we killed the tomcat a few tims.
> I will watch for session-directory size and how it grows. Is there a way to
> check wether a session in this dircetory is no longer in use?
>
> Benjamin
>
>
> 2007/9/24, Johan Compagner <[EMAIL PROTECTED]>:
> >
> > Yes we listen to unBind events, so they should be deleted.
> > The only way that doesn't happen currently that i can think of if you kill
> > tomcat the hard way
> > then the current sessions will never normally expire and will never be
> > cleaned
> >
> > johan
> >
> >
> >
> > On 9/24/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > >
> > > On 9/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > > how do you stop tomcat when you stop it (if you do that)
> > > > Make sure that you never kill tomcat, If you do that then you have to
> > > delete
> > > > the dirs yourself.
> > >
> > > But even without shutting down, those old sessions should be removed,
> > > no? I mean, as far as I remember, we explicitly delete them when they
> > > expire.
> > >
> > > Eelco
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sessionstore is too big

2007-09-24 Thread Benjamin Ernst
And an other question:

is there risk changing from wicket 1.3-beta2 to beta3 in nearly completely
implemented application?

2007/9/24, Benjamin Ernst <[EMAIL PROTECTED]>:
>
> Because our Application in an intrannet-Apllication the user should stay
> logged-in their whole workday. So our session-timeout is 12 hours and the
> sessions don't expire for a long time. Could that be a problem too?
>
> And it could be that we killed the tomcat a few tims.
> I will watch for session-directory size and how it grows. Is there a way
> to check wether a session in this dircetory is no longer in use?
>
> Benjamin
>
>
> 2007/9/24, Johan Compagner <[EMAIL PROTECTED]>:
> >
> > Yes we listen to unBind events, so they should be deleted.
> > The only way that doesn't happen currently that i can think of if you
> > kill
> > tomcat the hard way
> > then the current sessions will never normally expire and will never be
> > cleaned
> >
> > johan
> >
> >
> >
> > On 9/24/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > >
> > > On 9/24/07, Johan Compagner < [EMAIL PROTECTED]> wrote:
> > > > how do you stop tomcat when you stop it (if you do that)
> > > > Make sure that you never kill tomcat, If you do that then you have
> > to
> > > delete
> > > > the dirs yourself.
> > >
> > > But even without shutting down, those old sessions should be removed,
> > > no? I mean, as far as I remember, we explicitly delete them when they
> > > expire.
> > >
> > > Eelco
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
>


Inter component events?

2007-09-24 Thread Sam Hough

Has anybody used something like javax.swing.ListModel.addListDataListener or
java.util.Observable to setup a nice way for components to respond to
changes in other components?

My use case is that I have a "basket" of items a user has selected. While
they are searching/browsing if an item already in the basket appears again I
want it to be disabled/greyed out. With hand coding that is a bit ugly and
seems like a candidate for some sort listening to changes in another
component. 
-- 
View this message in context: 
http://www.nabble.com/Inter-component-events--tf4508127.html#a12856778
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



yui examples

2007-09-24 Thread Mattijs Hoitink

hi all,

i just checked out  wicket-contrib-yui and wicket-contrib-yui-examples 
to do some testing.
When i ran maven on it, the projects wouldn't build because of some 
wrong dependencies in the pom.xml.
In a lot of places references are made to wicket 1.3.0-SNAPSHOT. But 
this doesn't exist in the maven repository.


Can anyone tell me if the yui examples are updated frequently or still 
running on an old version of wicket-contrib-yui. When i checked it out, 
the yui examples project wouldn't build either.


greets,

PS: is this the right mailing list to ask these questions?

--
Mattijs Hoitink
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: yui examples

2007-09-24 Thread Gwyn Evans
On Monday, September 24, 2007, 10:51:30 AM, Mattijs <[EMAIL PROTECTED]> wrote:

> i just checked out  wicket-contrib-yui and wicket-contrib-yui-examples
> to do some testing.
> When i ran maven on it, the projects wouldn't build because of some 
> wrong dependencies in the pom.xml.
> In a lot of places references are made to wicket 1.3.0-SNAPSHOT. But 
> this doesn't exist in the maven repository.

Looks to be there[1] to me, or are you meaning the main IBiblio repo,
in which case, no, it's not there as it's a snapshot and we only
publish full releases there. It's available at the WicketStuff repo,
as documented at the bottom of the page here[2], though.

You need to be aware that code in trunk will typically have SNAPSHOT
dependencies, which only get fixed to released dependencies at a
release point, so may well required you to do additional hunting
around in order to set things up for trunk working

> Can anyone tell me if the yui examples are updated frequently or still
> running on an old version of wicket-contrib-yui. When i checked it out,
> the yui examples project wouldn't build either.

No idea, I'm afraid

> PS: is this the right mailing list to ask these questions?

There's an overlap, but [EMAIL PROTECTED]'s probably the better one.

/Gwyn

[1] 
http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-SNAPSHOT/
[2] http://wicket.apache.org/getting-wicket.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [podcast] Wicket talk at JavaZone 2007

2007-09-24 Thread Gerolf Seitz
n 9/24/07, David Bernard <[EMAIL PROTECTED]> wrote:
>
> Why not add it to the wiki or the main site (and other presentations)?
> It's a good support for internal/customer "show".


believe it or not, but nobody will stop you from doing this ;)

  gerolf


I suggest a list with the following information :
> * authors
> * original target (ex: javazone 2007), first presentation date
> * wicket version (1.3.0)
> * attachament (slides, src...)
> * agenda/toc
>
> /david
>
> Xavier Hanin wrote:
> > On 9/22/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> >> for those of you couldn't attend JavaZone 2007 (probably most of you)
> >> and haven't already listened to the podcast, here we go:
> >>
> >> http://www4.java.no/presentations/javazone/2007/podcast/5301.mp3
> >
> >
> > As a reminder, slides and eclipse project for the custom component
> example
> > are here:
> > http://people.apache.org/~xavier/wicket/
> >
> > Xavier
> >
> > the rss-feed for all podcasts can be found here:
> >> http://www4.java.no/web/show.do?page=141
> >>
> >> Xavier, thank you again for stepping in...
> >>
> >>   Gerolf
> >>
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Label associated with an open/close tag

2007-09-24 Thread Matej Knopp
Yeah, I agree with this too. Please submit a RFE.

-Matej

On 9/24/07, Kent Tong <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I think this is one of the most common gotcha's in Wicket: a Label
> associated with
> an open/close tag like  will silently output nothing. As I really can't
> think of
> a use case when this behavior is the desired behavior (wanting the Label to
> output
> nothing?), I'd suggest that either it changes it to , or simply throw
> an exception or log a warning.
> --
> View this message in context: 
> http://www.nabble.com/Label-associated-with-an-open-close-tag-tf4506567.html#a12852634
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Inter component events?

2007-09-24 Thread Sam Hough

Or maybe just have a "sortYourSelfOut" method that gets called on all
components after any changes but before the the wicket response life cycle?
Any existing Wicket methods fit this? onBeforeRender? Needs to get called on
_all_ components even for Ajax request...

Sorry for talking to myself.


Sam Hough wrote:
> 
> Has anybody used something like javax.swing.ListModel.addListDataListener
> or java.util.Observable to setup a nice way for components to respond to
> changes in other components?
> 
> My use case is that I have a "basket" of items a user has selected. While
> they are searching/browsing if an item already in the basket appears again
> I want it to be disabled/greyed out. With hand coding that is a bit ugly
> and seems like a candidate for some sort listening to changes in another
> component. 
> 

-- 
View this message in context: 
http://www.nabble.com/Inter-component-events--tf4508127.html#a12857280
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Portlet Support

2007-09-24 Thread Dipu Seminlal
Hi Ate,

Today i got some time to look at the wicket portlet demo (
jetspeed-2.1.3-dev-wicket-demo-installer.jar ), it looks very promising,
thanks very much for the great work.

I would like to see the portlet support integrated to the current trunk as
soon as possible.

Many thanks to the wicket team for the great work.

Cheers
Dipu



On 8/30/07, Ate Douma <[EMAIL PROTECTED]> wrote:
>
> Martijn Dashorst wrote:
> > I think it is in a branch in our apache repo:
> >
> >
> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.3-portlet-support/
> Yes, and there is a corresponding JIRA issue with several subtasks which I
> use for tracking the current state (and some minimal documentation):
>
>   https://issues.apache.org/jira/browse/WICKET-647
>
> If you are interested in testing that out, I've provided a downloadable
> Jetspeed-2 installer which the wicket-examples application deployed as
> portlet
> application here:
>
>http://people.apache.org/~ate/wicket/
>
> Note though the above branch was created on July 14 from the trunk at that
> time (r547242), and the portlet-support (as currently checked in) isn't
> perfect or
> without some serious bugs yet.
>
> But, I've started working on a updated version of the portlet-support this
> week which is based on the latest 1.3.0-beta3 release and it is
> progressing rather well.
> I hope to commit this update tomorrow or else early next week the latest.
> For that, I plan to create a new branch,
> wicket-1.3.0-beta3-portlet-support, as merging back in all the trunk
> changes since the branch (reliably) turned out to
> be far too much work.
>
> So, I started from "scratch" again, applying my original changes by hand,
> bit by bit (man, being on a branch of a project which moves as quickly as
> Wicket is
> painful...).
> Which turned out to be not a bad idea after all: I cleaned up and improved
> several changes along the lines as well as refactored several new classes
> and methods
> names to better reflect their purpose. Luckily, as the new portlet-support
> (in contrast to the one from 1.2.x) is now using transparent "bridging"
> wicket to the
> portlet environment, those internal changes didn't have any effect on the
> usage.
>
> Anyway, you will all soon see that the portlet-support has progressed
> nicely, to the point I think it covers many to most standard use-cases
> (albeit there still
> are and always will be a few area's where portlet support is difficult or
> even formally impossible to provide).
>
> The nicest part I think is that it turned out to require very little
> changes to the wicket core, and AFAIK all of those are transparent, meaning
> these changes
> have zero effect for existing plain servlet based applications!
>
> In my opinion, it should be ready for trunk integration soon now (after
> proper review of course), we just need to find and agree upon the right time
> frame.
>
> Right now I'm working on getting popup/modal windows also working
> properly, and once that's finished I'll check the stuff in under the new
> branch.
>
> One last important fact I need to mention is that I've build some of the
> portlet-support features upon the anticipated new Portlet 2.0 API
> (JSR-286, of which
> I'm also an EG member). As JSR-286 isn't released yet (but very soon
> now...), and no (formal) implementations exists or are even allowed, I have
> defined some
> supporting interfaces,  specifically for header contributions and Portlet
> ResourceURLs.
> To be able to actually run wicket with the new portlet-support within a
> portal, you'll need portal specific implementations for these interfaces.
> As soon as JSR-286 is available as well as supporting portals, those
> interfaces can be retrofitted back upon JSR-286 APIs and you won't need such
> proprietary
> implementations anymore.
>
> For my own testing, and because I'm also a Jetspeed committer, I've
> already provided Jetspeed-2 specific support implementations.
> Since the latest Jetspeed-2.1.2 release, these are provided out-of-the-box
> with the portal itself.
> For more information about this, see:
> http://issues.apache.org/jira/browse/PB-65
>
> So, for now, you might be required to test and experiment using
> Jetspeed-2, although I think I already saw someone report it running on
> Liferay as well.
>
> Regards,
>
> Ate
>
> >
> > Martijn
> >
> > On 8/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >> it has moved to wicket-stuff because none of the core committers have
> time
> >> to keep it up to date. i believe Ate was reworking it into something
> better,
> >> his work in progress is in wicket-stuff
> >>
> >> -igor
> >>
> >> On 8/30/07, Dipu Seminlal <[EMAIL PROTECTED]> wrote:
> >>> Hi All,
> >>>
> >>> I checked out the wicket trunk and found that the Portlet package has
> >>> disappeared from where it was.
> >>> Has it been moved to somewhere else or did the Portlet support got
> removed
> >>> totally ?
> >>> What is the future plans for the Portlet support in wicket.
> >>>
> >

RE: yui examples

2007-09-24 Thread David Leangen

Unfortunately, yui is not updated with the same care as the core.

I hope to get around to yui soon to lend a hand to all those who have
contributed.


Cheers,
David



> -Original Message-
> From: Gwyn Evans [mailto:[EMAIL PROTECTED]
> Sent: 24 September 2007 19:03
> To: users@wicket.apache.org
> Subject: Re: yui examples
>
>
> On Monday, September 24, 2007, 10:51:30 AM, Mattijs
> <[EMAIL PROTECTED]> wrote:
>
> > i just checked out  wicket-contrib-yui and wicket-contrib-yui-examples
> > to do some testing.
> > When i ran maven on it, the projects wouldn't build because of some
> > wrong dependencies in the pom.xml.
> > In a lot of places references are made to wicket 1.3.0-SNAPSHOT. But
> > this doesn't exist in the maven repository.
>
> Looks to be there[1] to me, or are you meaning the main IBiblio repo,
> in which case, no, it's not there as it's a snapshot and we only
> publish full releases there. It's available at the WicketStuff repo,
> as documented at the bottom of the page here[2], though.
>
> You need to be aware that code in trunk will typically have SNAPSHOT
> dependencies, which only get fixed to released dependencies at a
> release point, so may well required you to do additional hunting
> around in order to set things up for trunk working
>
> > Can anyone tell me if the yui examples are updated frequently or still
> > running on an old version of wicket-contrib-yui. When i checked it out,
> > the yui examples project wouldn't build either.
>
> No idea, I'm afraid
>
> > PS: is this the right mailing list to ask these questions?
>
> There's an overlap, but [EMAIL PROTECTED]'s probably the better one.
>
> /Gwyn
>
> [1]
http://wicketstuff.org/maven/repository/org/apache/wicket/wicket/1.3.0-SNAPS
HOT/
[2] http://wicket.apache.org/getting-wicket.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [podcast] Wicket talk at JavaZone 2007

2007-09-24 Thread David Bernard

Done,

I added 
http://cwiki.apache.org/confluence/display/WICKET/Slides+and+presentations .
Xavier, could you check information. I create links to your presentations, but 
may do you prefer to convert to attachement (part of the wiki).

/david


Gerolf Seitz wrote:

n 9/24/07, David Bernard <[EMAIL PROTECTED]> wrote:

Why not add it to the wiki or the main site (and other presentations)?
It's a good support for internal/customer "show".



believe it or not, but nobody will stop you from doing this ;)

  gerolf


I suggest a list with the following information :

* authors
* original target (ex: javazone 2007), first presentation date
* wicket version (1.3.0)
* attachament (slides, src...)
* agenda/toc

/david

Xavier Hanin wrote:

On 9/22/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:

for those of you couldn't attend JavaZone 2007 (probably most of you)
and haven't already listened to the podcast, here we go:

http://www4.java.no/presentations/javazone/2007/podcast/5301.mp3


As a reminder, slides and eclipse project for the custom component

example

are here:
http://people.apache.org/~xavier/wicket/

Xavier

the rss-feed for all podcasts can be found here:

http://www4.java.no/web/show.do?page=141

Xavier, thank you again for stepping in...

  Gerolf





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [podcast] Wicket talk at JavaZone 2007

2007-09-24 Thread Xavier Hanin
On 9/24/07, David Bernard <[EMAIL PROTECTED]> wrote:
>
> Done,
>
> I added
> http://cwiki.apache.org/confluence/display/WICKET/Slides+and+presentations.


Great!

Xavier, could you check information. I create links to your presentations,
> but may do you prefer to convert to attachement (part of the wiki).


I've added Matrjin to the authors information, since I borrowed many slides
from his presentation at TSSJS. For the links it's fine, I'll keep the files
where they are. But if someone prefer to attach them I'm fine with that too.

Xavier

/david
>
>
> Gerolf Seitz wrote:
> > n 9/24/07, David Bernard <[EMAIL PROTECTED]> wrote:
> >> Why not add it to the wiki or the main site (and other presentations)?
> >> It's a good support for internal/customer "show".
> >
> >
> > believe it or not, but nobody will stop you from doing this ;)
> >
> >   gerolf
> >
> >
> > I suggest a list with the following information :
> >> * authors
> >> * original target (ex: javazone 2007), first presentation date
> >> * wicket version (1.3.0)
> >> * attachament (slides, src...)
> >> * agenda/toc
> >>
> >> /david
> >>
> >> Xavier Hanin wrote:
> >>> On 9/22/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
>  for those of you couldn't attend JavaZone 2007 (probably most of you)
>  and haven't already listened to the podcast, here we go:
> 
>  http://www4.java.no/presentations/javazone/2007/podcast/5301.mp3
> >>>
> >>> As a reminder, slides and eclipse project for the custom component
> >> example
> >>> are here:
> >>> http://people.apache.org/~xavier/wicket/
> >>>
> >>> Xavier
> >>>
> >>> the rss-feed for all podcasts can be found here:
>  http://www4.java.no/web/show.do?page=141
> 
>  Xavier, thank you again for stepping in...
> 
>    Gerolf
> 
> >>>
> >>>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/


FormTester and CheckBox

2007-09-24 Thread Rüdiger Schulz
Hello,

What do I need to do if I want to select a single CheckBox in a Form using
the FormTester (Wicket 1.3 trunk)? If I do

formTester.select("termsAccepted", 0);

I get the following error:

org.apache.wicket.WicketRuntimeException: Selecting on the
component:'0:subscribeContainer:subscribeForm:termsAccepted' is not
supported.
at org.apache.wicket.util.tester.FormTester.fail(FormTester.java:680)
at org.apache.wicket.util.tester.FormTester.access$100(FormTester.java
:57)
at org.apache.wicket.util.tester.FormTester$ChoiceSelectorFactory.create
(FormTester.java:292)
at org.apache.wicket.util.tester.FormTester.select(FormTester.java:462)


-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de


Experiences with ReloadingWicketFilter

2007-09-24 Thread Peter Thomas
Hi,

I have minor issues with ReloadingWicketFilter and have reopened this JIRA
issue I raised some time back, with a quickstart attached:

https://issues.apache.org/jira/browse/WICKET-685

Just curious to know if others have problems with the ReloadingWicketFilter
when you make minor changes to a page with markup inheritance, you may want
to look at the issue history.  ReloadingWicketFilter is a huge time saver
(thanks JBQ :) but would love to see this improved, let me know if you need
more info on the JIRA.

Thanks,

Peter.


Re: FormTester and CheckBox

2007-09-24 Thread Ingram Chen
try:

formTester.setValue("termsAccepted", "true");

On 9/24/07, Rüdiger Schulz <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> What do I need to do if I want to select a single CheckBox in a Form using
> the FormTester (Wicket 1.3 trunk)? If I do
>
> formTester.select("termsAccepted", 0);
>
> I get the following error:
>
> org.apache.wicket.WicketRuntimeException: Selecting on the
> component:'0:subscribeContainer:subscribeForm:termsAccepted' is not
> supported.
> at org.apache.wicket.util.tester.FormTester.fail(FormTester.java:680)
> at org.apache.wicket.util.tester.FormTester.access$100(FormTester.java
> :57)
> at
> org.apache.wicket.util.tester.FormTester$ChoiceSelectorFactory.create
> (FormTester.java:292)
> at org.apache.wicket.util.tester.FormTester.select(FormTester.java
> :462)
>
>
> --
> greetings from Berlin,
>
> Rüdiger Schulz
>
> www.2rue.de
>



-- 
Ingram Chen
online share order: http://dinbendon.net
blog: http://www.javaworld.com.tw/roller/page/ingramchen


Re: yui examples

2007-09-24 Thread James McLaughlin
On 9/24/07, Mattijs Hoitink <[EMAIL PROTECTED]> wrote:
> hi all,
>
> i just checked out  wicket-contrib-yui and wicket-contrib-yui-examples
> to do some testing.
> When i ran maven on it, the projects wouldn't build because of some
> wrong dependencies in the pom.xml.
> In a lot of places references are made to wicket 1.3.0-SNAPSHOT. But
> this doesn't exist in the maven repository.
>
> Can anyone tell me if the yui examples are updated frequently or still
> running on an old version of wicket-contrib-yui. When i checked it out,
> the yui examples project wouldn't build either.
>
> greets,
>
> PS: is this the right mailing list to ask these questions?
>

I've updated the poms to reference the wicketstuff repo so it should
build for you now. Give it another shot and let us know if you have
any problems. The examples should be up to date as of a couple of
weeks ago, thanks to the efforts of Doug Leeper and Korbinian Bachl.
Feel free to ask any questions you have on this list. Just preface the
subject with [wicketstuff-yui].

best,
jim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Append markup to BODY container

2007-09-24 Thread legol

Hi all!!!

What I want to do is append some markup to my webpage after body tag. I
can't override onRender method in HTMLBodyContainer because it is created by
method getBodyContainer() in WebPage.

Pls help
-- 
View this message in context: 
http://www.nabble.com/Append-markup-to-BODY-container-tf4509327.html#a12860355
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax Problem on Page with IFRAME

2007-09-24 Thread SantiagoA

Sorry, doesn´t work for me either.

The Problem is, that the refreshing in the "main"-page does not work, if the
particular Panel is active.
The inputs and the ajax are nested in the main page, the panel shows a
"readonly" Iframe with no inputs.

thanks for help!

-- 
View this message in context: 
http://www.nabble.com/Ajax-Problem-on-Page-with-IFRAME-tf4487902.html#a12860755
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-24 Thread Wouter Huijnink



i will try to set something up, the problem is that location is depending on
how many wil come..
  


how about:

1. pick date & city
2. decide on venue depending on nr of attendees

It's not like this is going to be the once in a lifetime Wicket event - 
I'd say it's more important to get this community meetup going than to 
discuss matters for a few more months to make sure have we a date and 
place to suit everyone's needs.


regards,
Wouter

--
Wouter Huijnink
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Global variables

2007-09-24 Thread Artur W.

Hi!

Where should I put global variables that are not related to the user but to
the application.
In JSP I've used servletContext.setAttribute

How to do this in Wicket?


Thanks,
Artur

-- 
View this message in context: 
http://www.nabble.com/Global-variables-tf4509527.html#a12860998
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Redirect to HTTPS?

2007-09-24 Thread Daniel Frisk
I'm trying to add a check to the constructor on one of our pages (a  
credit card processing page) which should:

1. If protocol is HTTPS; continue as usual
2. Else redirect so that HTTPS is used to access the same page

I saw the sample in the wiki with the annotations that intercepted  
the request processing and etc but it seemed overly complicated for  
this tiny check, any ideas for a minimal implementation which could  
serve this purpose?


// Daniel Frisk
jalbum.net

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Global variables

2007-09-24 Thread Jan Kriesten

hi artur,

> Where should I put global variables that are not related to the user but to
> the application.
> In JSP I've used servletContext.setAttribute
> 
> How to do this in Wicket?

you can do that in your application:

getServletContext().setAttribute( name, value );

regards, --- jan.


--
sign of renitence gmbH & co. kg
Büro Hamburg
Kelterstr. 23
D-22391 Hamburg
Germany

fon +49-40-27805130
fax +49-40-27805131

www.renitence.de
www.webnix.de
www.projektnix.de

Geschäftsleitung
Jörg Schmidt-Stein
Susanne Stein
Jan Kriesten

Gerichtsstand Nürnberg
hr a 12518

USt.-IdNr.: DE194293429
St.-Nr. 238 174 01201

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Global variables

2007-09-24 Thread Thies Edeling

Why not just add them to your Application class?

Jan Kriesten wrote:

hi artur,

  

Where should I put global variables that are not related to the user but to
the application.
In JSP I've used servletContext.setAttribute

How to do this in Wicket?



you can do that in your application:

getServletContext().setAttribute( name, value );

regards, --- jan.


--
sign of renitence gmbH & co. kg
Büro Hamburg
Kelterstr. 23
D-22391 Hamburg
Germany

fon +49-40-27805130
fax +49-40-27805131

www.renitence.de
www.webnix.de
www.projektnix.de

Geschäftsleitung
Jörg Schmidt-Stein
Susanne Stein
Jan Kriesten

Gerichtsstand Nürnberg
hr a 12518

USt.-IdNr.: DE194293429
St.-Nr. 238 174 01201

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



--
http://www.ehour.nl/ 
http://blog.ehour.nl/




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Label associated with an open/close tag

2007-09-24 Thread Kent Tong


Gwyn wrote:
> 
> Please raise an issue - https://issues.apache.org/jira/browse/WICKET
> Feel free to have a go at a patch, as that'll help it's chances of
> getting done!
> 

Done (https://issues.apache.org/jira/browse/WICKET-1004). No time to make a
patch though...
-- 
View this message in context: 
http://www.nabble.com/Label-associated-with-an-open-close-tag-tf4506567.html#a12861556
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax Problem on Page with IFRAME

2007-09-24 Thread Kent Tong


SantiagoA wrote:
> 
> Sorry, doesn´t work for me either.
> 
> The Problem is, that the refreshing in the "main"-page does not work, if
> the particular Panel is active.
> The inputs and the ajax are nested in the main page, the panel shows a
> "readonly" Iframe with no inputs.
> 

Sorry that I don't understand what you're saying. Please state the precise
steps you're 
performing, the expected result and the actual result.

-- 
View this message in context: 
http://www.nabble.com/Ajax-Problem-on-Page-with-IFRAME-tf4487902.html#a12861635
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Append markup to BODY container

2007-09-24 Thread Rüdiger Schulz
2007/9/24, legol <[EMAIL PROTECTED]>:
>
>
> Hi all!!!
>
> What I want to do is append some markup to my webpage after body tag. I
> can't override onRender method in HTMLBodyContainer because it is created
> by
> method getBodyContainer() in WebPage.



I had to do the same thing, and was able to solve it.

To help you, I need to know what version of wicket you are using, and what
markup you want to add, where it should come from.

-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de


Re: FormTester and CheckBox

2007-09-24 Thread Rüdiger Schulz
2007/9/24, Ingram Chen <[EMAIL PROTECTED]>:
>
> try:
>
> formTester.setValue("termsAccepted", "true");


Thanks, that was it.

-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de


Re: Ajax Problem on Page with IFRAME

2007-09-24 Thread SantiagoA


I have a mainpage with some inputfields with ajax in, a submitbutton and a
TabbePanel with three panels.
The panels are for output only.
one of the panels holds an Iframe.

you can change inputs and on submit the panels are refreshed with new
outputs.
If one of the panels without the Iframe is active, i can change the inputs,
while some of the inputfields themselves are refreshed by ajax (e.g.
Birthdate input "22-06-1971" refreshes the inputfield for "AgeInYears" to
"36").
That works.
But if the panel with the Iframe is active, means the Tab for the panel was
clicked, none of the ajax above works anymore. With this panel active an
input/change in the mainpage seems to be not recognized. the
onUpdate(AjaxRequestTarget target)-methode of a component of the mainpage is
not reached, like the debugger shows me.
The processing and the output works fine, except the panel with the Iframe
is active.

thanks for spending time on that.
-- 
View this message in context: 
http://www.nabble.com/Ajax-Problem-on-Page-with-IFRAME-tf4487902.html#a12861929
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax Problem on Page with IFRAME

2007-09-24 Thread SantiagoA


I have a mainpage with some inputfields with ajax in, a submitbutton and a
TabbePanel with three panels.
The panels are for output only.
one of the panels holds an Iframe.

you can change inputs and on submit the panels are refreshed with new
outputs.
If one of the panels without the Iframe is active, i can change the inputs,
while some of the inputfields themselves are refreshed by ajax (e.g.
Birthdate input "22-06-1971" refreshes the inputfield for "AgeInYears" to
"36").
That works.
But if the panel with the Iframe is active, means the Tab for the panel was
clicked, none of the ajax above works anymore. With this panel active an
input/change in the mainpage seems to be not recognized. the
onUpdate(AjaxRequestTarget target)-methode of a component of the mainpage is
not reached, like the debugger shows me.
The processing and the output works fine, except the panel with the Iframe
is active.

thanks for spending time on that.
-- 
View this message in context: 
http://www.nabble.com/Ajax-Problem-on-Page-with-IFRAME-tf4487902.html#a12861930
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



newbie question about using WizardStep, help! thanks!

2007-09-24 Thread raybristol

Hi experts,

I want to implement a wizard, user need to input some data, I can do it with
a single page using form, but I don't know how to do it in wizard, I put a
couple of input textfield etc. then I get a error:

java.lang.IllegalStateException: Attempt to set model object on null model
of component: wizard:form:view:expectedNumberOfBoxes

Note: expectedNumberOfBoxes is the first textfield I declared in the java
class, after googling a few hours(not too much information) I think I need
to setup a 'model'? but I probably need more details how... my code is like:

public class DeliveryDetails extends WizardStep {


public DeliveryDetails(Delivery delivery, String title, String content){
super(title, content);

RequiredTextField expectedNumberOfBoxesTextField = new
RequiredTextField("expectedNumberOfBoxes", Integer.class);
add(expectedNumberOfBoxesTextField);

RequiredTextField receivedNumberOfBoxesTextField = new
RequiredTextField("receivedNumberOfBoxes", Integer.class);
add(receivedNumberOfBoxesTextField);

}


Thansk a million for your help as this really difficult to solve by
googling! thanks!


}
-- 
View this message in context: 
http://www.nabble.com/newbie-question-about-using-WizardStep%2C-help%21-thanks%21-tf4509850.html#a12862126
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sessionstore is too big

2007-09-24 Thread Eelco Hillenius
> is there risk changing from wicket 1.3-beta2 to beta3 in nearly completely
> implemented application?

It *should* be better. But you might want to test this very well
yourself, and check JIRA for newly introduced issues.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Global variables

2007-09-24 Thread Eelco Hillenius
On 9/24/07, Thies Edeling <[EMAIL PROTECTED]> wrote:
> Why not just add them to your Application class?

Yep, that's what you should do. If what you want to achieve is
specific for one application, put them as members in your application
class, or if you need something more generic, you can use
Application's meta data facility (get/setMetaData).

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Any interest in a Wicket User Group meeting in The Netherlands?

2007-09-24 Thread Eelco Hillenius
On 9/24/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> i will try to set something up, the problem is that location is depending on
> how many wil come..

Why not use Arje's or Wouter's suggestion?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie question about using WizardStep, help! thanks!

2007-09-24 Thread Eelco Hillenius
> Hi experts,
>
> I want to implement a wizard, user need to input some data, I can do it with
> a single page using form, but I don't know how to do it in wizard, I put a
> couple of input textfield etc. then I get a error:
>
> java.lang.IllegalStateException: Attempt to set model object on null model
> of component: wizard:form:view:expectedNumberOfBoxes
>
> Note: expectedNumberOfBoxes is the first textfield I declared in the java
> class, after googling a few hours(not too much information) I think I need
> to setup a 'model'? but I probably need more details how... my code is like:
>
> public class DeliveryDetails extends WizardStep {
>
>
> public DeliveryDetails(Delivery delivery, String title, String 
> content){
> super(title, content);
>
> RequiredTextField expectedNumberOfBoxesTextField = new
> RequiredTextField("expectedNumberOfBoxes", Integer.class);
> add(expectedNumberOfBoxesTextField);
>
> RequiredTextField receivedNumberOfBoxesTextField = new
> RequiredTextField("receivedNumberOfBoxes", Integer.class);
> add(receivedNumberOfBoxesTextField);
>
> }

Yep, you need to work with models. For instance:

RequiredTextField receivedNumberOfBoxesTextField = new
RequiredTextField("receivedNumberOfBoxes", Integer.class, new
PropertyModel(delivery, "receivedNumberOfBoxes"));
add(receivedNumberOfBoxesTextField);

or:

setModel(new CompoundPropertyModel(delivery));
RequiredTextField receivedNumberOfBoxesTextField = new
RequiredTextField("receivedNumberOfBoxes", Integer.class);
add(receivedNumberOfBoxesTextField);


Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Append markup to BODY container

2007-09-24 Thread legol

Thx for reply,
I'm using wicket 1.2.6, i have to add markup simply from String variable in
class that extends from webpage



Rüdiger_Schulz wrote:
> 
> 2007/9/24, legol <[EMAIL PROTECTED]>:
>>
>>
>> Hi all!!!
>>
>> What I want to do is append some markup to my webpage after body tag. I
>> can't override onRender method in HTMLBodyContainer because it is created
>> by
>> method getBodyContainer() in WebPage.
> 
> 
> 
> I had to do the same thing, and was able to solve it.
> 
> To help you, I need to know what version of wicket you are using, and what
> markup you want to add, where it should come from.
> 
> -- 
> greetings from Berlin,
> 
> Rüdiger Schulz
> 
> www.2rue.de
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Append-markup-to-BODY-container-tf4509327.html#a12863489
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket Dialogs

2007-09-24 Thread Igor Vaynberg
not in core, but have you checked wicketstuff-yui project? if its not there
you are always welcome to contribute to it.

-igor


On 9/24/07, carloc <[EMAIL PROTECTED]> wrote:
>
>
> Is there any component in wicket similar to this component?
> Something like wicket dialogs
>
> http://developer.yahoo.com/yui/examples/container/panel_clean.html
> --
> View this message in context:
> http://www.nabble.com/Wicket-Dialogs-tf4507886.html#a12856206
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Redirect to HTTPS?

2007-09-24 Thread Igor Vaynberg
just take whatever has been discussed on this list and strip it down to
whatever level you need. i dont think any one is interesting in doing this
for you...

-igor


On 9/24/07, Daniel Frisk <[EMAIL PROTECTED]> wrote:
>
> I'm trying to add a check to the constructor on one of our pages (a
> credit card processing page) which should:
> 1. If protocol is HTTPS; continue as usual
> 2. Else redirect so that HTTPS is used to access the same page
>
> I saw the sample in the wiki with the annotations that intercepted
> the request processing and etc but it seemed overly complicated for
> this tiny check, any ideas for a minimal implementation which could
> serve this purpose?
>
> // Daniel Frisk
> jalbum.net
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


DynamicMappedImageResource

2007-09-24 Thread Niels Bo

Hi

It is very easy to create great and dynamic graphics in Wicket, but making
them interactive
using the ImageMap class only works for static images.

Would it be an idear to have a "DynamicMappedImageResource" class that could 
create both the image data and a image map out of the same class?

Niels
-- 
View this message in context: 
http://www.nabble.com/DynamicMappedImageResource-tf4510396.html#a12863981
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DynamicMappedImageResource

2007-09-24 Thread Igor Vaynberg
yeah, its certainly a good idea to do that.

-igor


On 9/24/07, Niels Bo <[EMAIL PROTECTED]> wrote:
>
>
> Hi
>
> It is very easy to create great and dynamic graphics in Wicket, but making
> them interactive
> using the ImageMap class only works for static images.
>
> Would it be an idear to have a "DynamicMappedImageResource" class that
> could
> create both the image data and a image map out of the same class?
>
> Niels
> --
> View this message in context:
> http://www.nabble.com/DynamicMappedImageResource-tf4510396.html#a12863981
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Redirect to HTTPS?

2007-09-24 Thread Daniel Frisk
Well... Now that was certainly helpful. This was not intended as a  
"do my homework" question, read it as: "I don't know Wicket inside  
out yet and could use a hint if someone gets an idea from reading my  
question". You wasn't that someone today and you didn't help with  
your post, you lose karma :-)


// Daniel


On 2007-09-24, at 19:00, Igor Vaynberg wrote:

just take whatever has been discussed on this list and strip it  
down to
whatever level you need. i dont think any one is interesting in  
doing this

for you...

-igor


On 9/24/07, Daniel Frisk <[EMAIL PROTECTED]> wrote:


I'm trying to add a check to the constructor on one of our pages (a
credit card processing page) which should:
1. If protocol is HTTPS; continue as usual
2. Else redirect so that HTTPS is used to access the same page

I saw the sample in the wiki with the annotations that intercepted
the request processing and etc but it seemed overly complicated for
this tiny check, any ideas for a minimal implementation which could
serve this purpose?

// Daniel Frisk
jalbum.net

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Redirect to HTTPS?

2007-09-24 Thread Igor Vaynberg
well, i dont know. you said you have seen a few solutions on this list but
they are too complicated. you want something more stripped down. so why not
strip it down yourself. sure sounds like do my homework for me.

as far as karma, im already in the negative.

-gior


On 9/24/07, Daniel Frisk <[EMAIL PROTECTED]> wrote:
>
> Well... Now that was certainly helpful. This was not intended as a
> "do my homework" question, read it as: "I don't know Wicket inside
> out yet and could use a hint if someone gets an idea from reading my
> question". You wasn't that someone today and you didn't help with
> your post, you lose karma :-)
>
> // Daniel
>
>
> On 2007-09-24, at 19:00, Igor Vaynberg wrote:
>
> > just take whatever has been discussed on this list and strip it
> > down to
> > whatever level you need. i dont think any one is interesting in
> > doing this
> > for you...
> >
> > -igor
> >
> >
> > On 9/24/07, Daniel Frisk <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm trying to add a check to the constructor on one of our pages (a
> >> credit card processing page) which should:
> >> 1. If protocol is HTTPS; continue as usual
> >> 2. Else redirect so that HTTPS is used to access the same page
> >>
> >> I saw the sample in the wiki with the annotations that intercepted
> >> the request processing and etc but it seemed overly complicated for
> >> this tiny check, any ideas for a minimal implementation which could
> >> serve this purpose?
> >>
> >> // Daniel Frisk
> >> jalbum.net
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Redirect to HTTPS?

2007-09-24 Thread Eelco Hillenius
On 9/24/07, Daniel Frisk <[EMAIL PROTECTED]> wrote:
> I'm trying to add a check to the constructor on one of our pages (a
> credit card processing page) which should:
> 1. If protocol is HTTPS; continue as usual
> 2. Else redirect so that HTTPS is used to access the same page
>
> I saw the sample in the wiki with the annotations that intercepted
> the request processing and etc but it seemed overly complicated for
> this tiny check, any ideas for a minimal implementation which could
> serve this purpose?

The basic idea I think is here:

StringBuffer url = new StringBuffer("https://"; +
httpServletRequest.getServerName());
url.append(":" + MyApplication.get().getSslPort());
String q = RequestCycle.get().urlFor(requestTarget).toString();
url.append(q);
webResponse.redirect(url.toString());

That pattern outlined in the WIKI article is a way to make it easy to
build an application where you have to switch often.

I haven't played around with these things, but if you want to do
something relatively simple, and you don't want to have to configure
the render strategy particularly for this, I think you should be able
to just redirect e.g. using a refresh header or using the redirect
page to a bookmarkable page. Would that help?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need combo to determine action but validation fails

2007-09-24 Thread Francisco Diaz Trepat - gmail
Hi all,

I have a simple Form that contains a DropDownChoice. I have a submit button
and a submit link to change part of the form based on the option selected in
the DropDownChoice.

What it is happening is that because of some fields are invalid (Empty) I
cannot get to the selected option of the DropDownChoice, and by that change
part of the form.


final AjaxSubmitLink cDetailedForm = new AjaxSubmitLink("DetailedForm") {
 public void onSubmit(AjaxRequestTarget target, Form form) {
showHideDetailsOnForm(target);
 }
 public void onError(AjaxRequestTarget target, Form form) {
showHideDetailsOnForm(target);
 }
  };

private void showHideDetailsOnForm(){

String option = ((Map)getModel().getObject()).get("DetailsChoices");

if(option.equals("2")){



}

.etc.

}

As the form validation fails, I cannot get to the model.  If I set
DefaultFormProcessing to false it doesn't submit it either.


Question Time:

Is there a way to set validations to buttons or submit elements in
particular?

Ex. If I click the button named "SubmitAndValidateAll" some validations are
executed and if I click the button named "SubmitButDontValidateAge" some
not...


f(t)


FormComponentFeedbackIndicator usage

2007-09-24 Thread Clay Lehman
Hi, 

Can anyone point me to an example using FormComponentFeedbackIndicator?
I have found examples using FormComponentFeedbackBorder, but they don't
seem to have the same usage.  From a post I saw on the old User's forum,
I think a FormComponentFeedbackIndicator would better fit my needs, but
I am having trouble finding an example of how one should use it. 

Thanks !!
-Clay

 

 

 

>Eelco Hillenius wrote:

>1.1 worked by setting the appropriate collecting component - which in 
>the case of forms was done automatically. From 1.2 on we have 
>IFeedbackMessageFilter for this. 
>
>If you want field level feedbakc, you might want to check out 
>FormComponentFeedbackBorder. From 1.2 on there additionally is 
>FormComponentFeedbackIndicator, which is a feedback panel but for one 
>component. 
>
>.Eelco 

 



Getting at the HttpServletResponse?

2007-09-24 Thread Andrew Lombardi
How would I get an instance of the HttpServletResponse?  I'm doing some 
integration with an SSO provider that requires it.  I've tried:

((WebResponse) 
RequestCycle.get().getResponse()).getHttpServletResponse()

but RequestCycle.get().getResponse() returns StringResponse, which 
obviously will fail miserably for what I need it for.

thanks.

--
To our success!

Andrew Lombardi: Mystic Coders, LLC - Coding Magic
contact | [EMAIL PROTECTED] | mobile: 714-697-8046
office/fax: 714-948-2382 | aim: nlpjunke

===
This message is for the named person's use only. You must not, directly 
or indirectly, use, disclose, distribute, print, or copy any part of 
this message if you are not the intended recipient.
===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting at the HttpServletResponse?

2007-09-24 Thread Sean Sullivan
If you are using Wicket 1.3:

class:  WebResponse

http://www.wicketstuff.org/wicket13doc/org/apache/wicket/protocol/http/WebResponse.html


method:  getHttpServletResponse



On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
> How would I get an instance of the HttpServletResponse?  I'm doing some
> integration with an SSO provider that requires it.  I've tried:
>
> ((WebResponse)
> RequestCycle.get().getResponse()).getHttpServletResponse()
>
> but RequestCycle.get().getResponse() returns StringResponse, which
> obviously will fail miserably for what I need it for.
>
> thanks.
>
> --
> To our success!
>
> Andrew Lombardi: Mystic Coders, LLC - Coding Magic
> contact | [EMAIL PROTECTED] | mobile: 714-697-8046
> office/fax: 714-948-2382 | aim: nlpjunke
>
> ===
> This message is for the named person's use only. You must not, directly
> or indirectly, use, disclose, distribute, print, or copy any part of
> this message if you are not the intended recipient.
> ===
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting at the HttpServletResponse?

2007-09-24 Thread Andrew Lombardi
yes, I know.  but how do I get a WebResponse?  
RequestCycle.get().getResponse() doesn't give me a class that extends 
from WebResponse.

On Mon, 24 Sep 2007 12:52:52 -0700, Sean Sullivan wrote:
> If you are using Wicket 1.3:
> 
> class:  WebResponse
> 
> 
http://www.wicketstuff.org/wicket13doc/org/apache/wicket/protocol/http/WebResponse.html
> 
> 
> method:  getHttpServletResponse
> 
> 
> 
> On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
>> How would I get an instance of the HttpServletResponse?  I'm doing some
>> integration with an SSO provider that requires it.  I've tried:
>> 
>> ((WebResponse)
>> RequestCycle.get().getResponse()).getHttpServletResponse()
>> 
>> but RequestCycle.get().getResponse() returns StringResponse, which
>> obviously will fail miserably for what I need it for.
>> 
>> thanks.
>> 
>> --
>> To our success!
>> 
>> Andrew Lombardi: Mystic Coders, LLC - Coding Magic
>> contact | [EMAIL PROTECTED] | mobile: 714-697-8046
>> office/fax: 714-948-2382 | aim: nlpjunke
>> 
>> ===
>> This message is for the named person's use only. You must not, directly
>> or indirectly, use, disclose, distribute, print, or copy any part of
>> this message if you are not the intended recipient.
>> ===
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

--
To our success!

Andrew Lombardi: Mystic Coders, LLC - Coding Magic
contact | [EMAIL PROTECTED] | mobile: 714-697-8046
office/fax: 714-948-2382 | aim: nlpjunke

===
This message is for the named person's use only. You must not, directly 
or indirectly, use, disclose, distribute, print, or copy any part of 
this message if you are not the intended recipient.
===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting at the HttpServletResponse?

2007-09-24 Thread Eelco Hillenius
Just cast it. If you're building a regular web app, you'll always use
WebRequestCycle, which returns WebResponse for getResponse. E.g.
((WebRequestCycle)RequestCycle.get()).getWebRequest(). I know it looks
ugly, but then again, the idea is that you typically shouldn't the
httpservletresponse directly in the first place.

Eelco

On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
> yes, I know.  but how do I get a WebResponse?
> RequestCycle.get().getResponse() doesn't give me a class that extends
> from WebResponse.
>
> On Mon, 24 Sep 2007 12:52:52 -0700, Sean Sullivan wrote:
> > If you are using Wicket 1.3:
> >
> > class:  WebResponse
> >
> >
> http://www.wicketstuff.org/wicket13doc/org/apache/wicket/protocol/http/WebResponse.html
> >
> >
> > method:  getHttpServletResponse
> >
> >
> >
> > On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
> >> How would I get an instance of the HttpServletResponse?  I'm doing some
> >> integration with an SSO provider that requires it.  I've tried:
> >>
> >> ((WebResponse)
> >> RequestCycle.get().getResponse()).getHttpServletResponse()
> >>
> >> but RequestCycle.get().getResponse() returns StringResponse, which
> >> obviously will fail miserably for what I need it for.
> >>
> >> thanks.
> >>
> >> --
> >> To our success!
> >>
> >> Andrew Lombardi: Mystic Coders, LLC - Coding Magic
> >> contact | [EMAIL PROTECTED] | mobile: 714-697-8046
> >> office/fax: 714-948-2382 | aim: nlpjunke
> >>
> >> ===
> >> This message is for the named person's use only. You must not, directly
> >> or indirectly, use, disclose, distribute, print, or copy any part of
> >> this message if you are not the intended recipient.
> >> ===
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
> To our success!
>
> Andrew Lombardi: Mystic Coders, LLC - Coding Magic
> contact | [EMAIL PROTECTED] | mobile: 714-697-8046
> office/fax: 714-948-2382 | aim: nlpjunke
>
> ===
> This message is for the named person's use only. You must not, directly
> or indirectly, use, disclose, distribute, print, or copy any part of
> this message if you are not the intended recipient.
> ===
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting at the HttpServletResponse?

2007-09-24 Thread Andrew Lombardi
ahh casting to WebRequestCycle was the magical incantation :)  thanks.

On Mon, 24 Sep 2007 13:12:39 -0700, Eelco Hillenius wrote:
> Just cast it. If you're building a regular web app, you'll always use
> WebRequestCycle, which returns WebResponse for getResponse. E.g.
> ((WebRequestCycle)RequestCycle.get()).getWebRequest(). I know it looks
> ugly, but then again, the idea is that you typically shouldn't the
> httpservletresponse directly in the first place.
> 
> Eelco
> 
> On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
>> yes, I know.  but how do I get a WebResponse?
>> RequestCycle.get().getResponse() doesn't give me a class that extends
>> from WebResponse.
>> 
>> On Mon, 24 Sep 2007 12:52:52 -0700, Sean Sullivan wrote:
>>> If you are using Wicket 1.3:
>>> 
>>> class:  WebResponse
>>> 
>>> 
>> 
http://www.wicketstuff.org/wicket13doc/org/apache/wicket/protocol/http/WebResponse.html
>>> 
>>> 
>>> method:  getHttpServletResponse
>>> 
>>> 
>>> 
>>> On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
 How would I get an instance of the HttpServletResponse?  I'm doing some
 integration with an SSO provider that requires it.  I've tried:
 
 ((WebResponse)
 RequestCycle.get().getResponse()).getHttpServletResponse()
 
 but RequestCycle.get().getResponse() returns StringResponse, which
 obviously will fail miserably for what I need it for.
 
 thanks.
 
 --
 To our success!
 
 Andrew Lombardi: Mystic Coders, LLC - Coding Magic
 contact | [EMAIL PROTECTED] | mobile: 714-697-8046
 office/fax: 714-948-2382 | aim: nlpjunke
 
 ===
 This message is for the named person's use only. You must not, directly
 or indirectly, use, disclose, distribute, print, or copy any part of
 this message if you are not the intended recipient.
 ===
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>> 
>> --
>> To our success!
>> 
>> Andrew Lombardi: Mystic Coders, LLC - Coding Magic
>> contact | [EMAIL PROTECTED] | mobile: 714-697-8046
>> office/fax: 714-948-2382 | aim: nlpjunke
>> 
>> ===
>> This message is for the named person's use only. You must not, directly
>> or indirectly, use, disclose, distribute, print, or copy any part of
>> this message if you are not the intended recipient.
>> ===
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

--
To our success!

Andrew Lombardi: Mystic Coders, LLC - Coding Magic
contact | [EMAIL PROTECTED] | mobile: 714-697-8046
office/fax: 714-948-2382 | aim: nlpjunke

===
This message is for the named person's use only. You must not, directly 
or indirectly, use, disclose, distribute, print, or copy any part of 
this message if you are not the intended recipient.
===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting at the HttpServletResponse?

2007-09-24 Thread Andrew Lombardi
The following gives me a ClassCastException:

((WebRequestCycle) 
RequestCycle.get()).getWebResponse().getHttpServletResponse()

On Mon, 24 Sep 2007 13:12:39 -0700, Eelco Hillenius wrote:
> Just cast it. If you're building a regular web app, you'll always use
> WebRequestCycle, which returns WebResponse for getResponse. E.g.
> ((WebRequestCycle)RequestCycle.get()).getWebRequest(). I know it looks
> ugly, but then again, the idea is that you typically shouldn't the
> httpservletresponse directly in the first place.
> 
> Eelco
> 
> On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
>> yes, I know.  but how do I get a WebResponse?
>> RequestCycle.get().getResponse() doesn't give me a class that extends
>> from WebResponse.
>> 
>> On Mon, 24 Sep 2007 12:52:52 -0700, Sean Sullivan wrote:
>>> If you are using Wicket 1.3:
>>> 
>>> class:  WebResponse
>>> 
>>> 
>> 
http://www.wicketstuff.org/wicket13doc/org/apache/wicket/protocol/http/WebResponse.html
>>> 
>>> 
>>> method:  getHttpServletResponse
>>> 
>>> 
>>> 
>>> On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
 How would I get an instance of the HttpServletResponse?  I'm doing some
 integration with an SSO provider that requires it.  I've tried:
 
 ((WebResponse)
 RequestCycle.get().getResponse()).getHttpServletResponse()
 
 but RequestCycle.get().getResponse() returns StringResponse, which
 obviously will fail miserably for what I need it for.
 
 thanks.
 
 --
 To our success!
 
 Andrew Lombardi: Mystic Coders, LLC - Coding Magic
 contact | [EMAIL PROTECTED] | mobile: 714-697-8046
 office/fax: 714-948-2382 | aim: nlpjunke
 
 ===
 This message is for the named person's use only. You must not, directly
 or indirectly, use, disclose, distribute, print, or copy any part of
 this message if you are not the intended recipient.
 ===
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>> 
>> --
>> To our success!
>> 
>> Andrew Lombardi: Mystic Coders, LLC - Coding Magic
>> contact | [EMAIL PROTECTED] | mobile: 714-697-8046
>> office/fax: 714-948-2382 | aim: nlpjunke
>> 
>> ===
>> This message is for the named person's use only. You must not, directly
>> or indirectly, use, disclose, distribute, print, or copy any part of
>> this message if you are not the intended recipient.
>> ===
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

--
To our success!

Andrew Lombardi: Mystic Coders, LLC - Coding Magic
contact | [EMAIL PROTECTED] | mobile: 714-697-8046
office/fax: 714-948-2382 | aim: nlpjunke

===
This message is for the named person's use only. You must not, directly 
or indirectly, use, disclose, distribute, print, or copy any part of 
this message if you are not the intended recipient.
===

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Redirect to HTTPS?

2007-09-24 Thread David Bernard

Hi,

In my previous project, it was done by configuring (rewrite rules) the http 
front-end (apache, lighttpd,...).
It's an other solution, that avoid developper to deal certificate and all the 
ssl machinery.

/david

Daniel Frisk wrote:
I'm trying to add a check to the constructor on one of our pages (a 
credit card processing page) which should:

1. If protocol is HTTPS; continue as usual
2. Else redirect so that HTTPS is used to access the same page

I saw the sample in the wiki with the annotations that intercepted the 
request processing and etc but it seemed overly complicated for this 
tiny check, any ideas for a minimal implementation which could serve 
this purpose?


// Daniel Frisk
jalbum.net

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Append markup to BODY container

2007-09-24 Thread Rüdiger Schulz
Jürgen and Igor once showed me how to do this:

http://www.nabble.com/BodyContributor--tf2578291.html#a7187578
http://www.nabble.com/Replacing-HtmlBodyContainer-tf3665340.html#a10241426

You need your own implementation of BodyContainer, and replace during
attachment. Something like this should work:

public clas MyPage extends WebPage {

public void onAttach() {
Component body=get(BodyOnLoadHandler.BODY_ID);
if (body!=null) {
if (!(body instanceof MyHtmlBodyContainer)) {
 remove(BodyOnLoadHandler.BODY_ID );
 body=null;
 }
}
if (body==null) {
add(new ...);
}
}


/**
 *
 */
public static class MyHtmlBodyContainer extends *HtmlBodyContainer*
{
private static final long serialVersionUID = 1L;

/**
 * Construct
 *
 * @see Component#Component(MarkupContainer,String)
 */
public MyHtmlBodyContainer(MarkupContainer parent, final
String id)
{
super(parent, id);
}

@Override
protected void onComponentTagBody(MarkupStream markupStream,

ComponentTag openTag)
{
getResponse().write("Something after the body open
tag");
super.onComponentTagBody(markupStream, openTag);
getResponse().write("Something before the body close
tag");
}
}
}

2007/9/24, legol <[EMAIL PROTECTED]>:
>
>
> Thx for reply,
> I'm using wicket 1.2.6, i have to add markup simply from String variable
> in
> class that extends from webpage
>
>
>
> Rüdiger_Schulz wrote:
> >
> > 2007/9/24, legol <[EMAIL PROTECTED]>:
> >>
> >>
> >> Hi all!!!
> >>
> >> What I want to do is append some markup to my webpage after body tag. I
> >> can't override onRender method in HTMLBodyContainer because it is
> created
> >> by
> >> method getBodyContainer() in WebPage.
> >
> >
> >
> > I had to do the same thing, and was able to solve it.
> >
> > To help you, I need to know what version of wicket you are using, and
> what
> > markup you want to add, where it should come from.
> >
> > --
> > greetings from Berlin,
> >
> > Rüdiger Schulz
> >
> > www.2rue.de
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Append-markup-to-BODY-container-tf4509327.html#a12863489
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
greetings from Berlin,

Rüdiger Schulz

www.2rue.de


Re: Getting at the HttpServletResponse?

2007-09-24 Thread Martijn Dashorst
Do you have your own RequestCycle? If so, is it a subclass of WebRequestCycle?

Martijn

On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
> The following gives me a ClassCastException:
>
> ((WebRequestCycle)
> RequestCycle.get()).getWebResponse().getHttpServletResponse()
>
> On Mon, 24 Sep 2007 13:12:39 -0700, Eelco Hillenius wrote:
> > Just cast it. If you're building a regular web app, you'll always use
> > WebRequestCycle, which returns WebResponse for getResponse. E.g.
> > ((WebRequestCycle)RequestCycle.get()).getWebRequest(). I know it looks
> > ugly, but then again, the idea is that you typically shouldn't the
> > httpservletresponse directly in the first place.
> >
> > Eelco
> >
> > On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
> >> yes, I know.  but how do I get a WebResponse?
> >> RequestCycle.get().getResponse() doesn't give me a class that extends
> >> from WebResponse.
> >>
> >> On Mon, 24 Sep 2007 12:52:52 -0700, Sean Sullivan wrote:
> >>> If you are using Wicket 1.3:
> >>>
> >>> class:  WebResponse
> >>>
> >>>
> >>
> http://www.wicketstuff.org/wicket13doc/org/apache/wicket/protocol/http/WebResponse.html
> >>>
> >>>
> >>> method:  getHttpServletResponse
> >>>
> >>>
> >>>
> >>> On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
>  How would I get an instance of the HttpServletResponse?  I'm doing some
>  integration with an SSO provider that requires it.  I've tried:
> 
>  ((WebResponse)
>  RequestCycle.get().getResponse()).getHttpServletResponse()
> 
>  but RequestCycle.get().getResponse() returns StringResponse, which
>  obviously will fail miserably for what I need it for.
> 
>  thanks.
> 
>  --
>  To our success!
> 
>  Andrew Lombardi: Mystic Coders, LLC - Coding Magic
>  contact | [EMAIL PROTECTED] | mobile: 714-697-8046
>  office/fax: 714-948-2382 | aim: nlpjunke
> 
>  ===
>  This message is for the named person's use only. You must not, directly
>  or indirectly, use, disclose, distribute, print, or copy any part of
>  this message if you are not the intended recipient.
>  ===
> 
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>
> >> --
> >> To our success!
> >>
> >> Andrew Lombardi: Mystic Coders, LLC - Coding Magic
> >> contact | [EMAIL PROTECTED] | mobile: 714-697-8046
> >> office/fax: 714-948-2382 | aim: nlpjunke
> >>
> >> ===
> >> This message is for the named person's use only. You must not, directly
> >> or indirectly, use, disclose, distribute, print, or copy any part of
> >> this message if you are not the intended recipient.
> >> ===
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
> To our success!
>
> Andrew Lombardi: Mystic Coders, LLC - Coding Magic
> contact | [EMAIL PROTECTED] | mobile: 714-697-8046
> office/fax: 714-948-2382 | aim: nlpjunke
>
> ===
> This message is for the named person's use only. You must not, directly
> or indirectly, use, disclose, distribute, print, or copy any part of
> this message if you are not the intended recipient.
> ===
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Appending JS to an Ajax Component

2007-09-24 Thread UPBrandon

I am trying to use an AttributeAppender to append an onchange script to a
DropDownChoice that also has an OnChangeAjaxBehavior added to it.  But only
the OnChangeAjaxBehavior's script is showing up in the markup.  Is there a
trick to adding JavaScript to a component that also has an Ajax behavior? 
Any help would be appreciated.

-Brandon
-- 
View this message in context: 
http://www.nabble.com/Appending-JS-to-an-Ajax-Component-tf4512114.html#a12869413
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Appending JS to an Ajax Component

2007-09-24 Thread Igor Vaynberg
you can putting your script into iajaxcalldecorator and giving that to the
behavior

-igor


On 9/24/07, UPBrandon <[EMAIL PROTECTED]> wrote:
>
>
> I am trying to use an AttributeAppender to append an onchange script to a
> DropDownChoice that also has an OnChangeAjaxBehavior added to it.  But
> only
> the OnChangeAjaxBehavior's script is showing up in the markup.  Is there a
> trick to adding JavaScript to a component that also has an Ajax behavior?
> Any help would be appreciated.
>
> -Brandon
> --
> View this message in context:
> http://www.nabble.com/Appending-JS-to-an-Ajax-Component-tf4512114.html#a12869413
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Getting at the HttpServletResponse?

2007-09-24 Thread Andrew Lombardi
I do not have my own RequestCycle, no.  Just using whatever is standard 
with Wicket.

On Mon, 24 Sep 2007 23:36:00 +0200, Martijn Dashorst wrote:
> Do you have your own RequestCycle? If so, is it a subclass of 
> WebRequestCycle?
> 
> Martijn
> 
> On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
>> The following gives me a ClassCastException:
>> 
>> ((WebRequestCycle)
>> RequestCycle.get()).getWebResponse().getHttpServletResponse()
>> 
>> On Mon, 24 Sep 2007 13:12:39 -0700, Eelco Hillenius wrote:
>>> Just cast it. If you're building a regular web app, you'll always use
>>> WebRequestCycle, which returns WebResponse for getResponse. E.g.
>>> ((WebRequestCycle)RequestCycle.get()).getWebRequest(). I know it looks
>>> ugly, but then again, the idea is that you typically shouldn't the
>>> httpservletresponse directly in the first place.
>>> 
>>> Eelco
>>> 
>>> On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
 yes, I know.  but how do I get a WebResponse?
 RequestCycle.get().getResponse() doesn't give me a class that extends
 from WebResponse.
 
 On Mon, 24 Sep 2007 12:52:52 -0700, Sean Sullivan wrote:
> If you are using Wicket 1.3:
> 
> class:  WebResponse
> 
> 
 
>> 
http://www.wicketstuff.org/wicket13doc/org/apache/wicket/protocol/http/WebResponse.html
> 
> 
> method:  getHttpServletResponse
> 
> 
> 
> On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
>> How would I get an instance of the HttpServletResponse?  I'm doing some
>> integration with an SSO provider that requires it.  I've tried:
>> 
>> ((WebResponse)
>> RequestCycle.get().getResponse()).getHttpServletResponse()
>> 
>> but RequestCycle.get().getResponse() returns StringResponse, which
>> obviously will fail miserably for what I need it for.
>> 
>> thanks.
>> 
>> --
>> To our success!
>> 
>> Andrew Lombardi: Mystic Coders, LLC - Coding Magic
>> contact | [EMAIL PROTECTED] | mobile: 714-697-8046
>> office/fax: 714-948-2382 | aim: nlpjunke
>> 
>> ===
>> This message is for the named person's use only. You must not, directly
>> or indirectly, use, disclose, distribute, print, or copy any part of
>> this message if you are not the intended recipient.
>> ===
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
 
 --
 To our success!
 
 Andrew Lombardi: Mystic Coders, LLC - Coding Magic
 contact | [EMAIL PROTECTED] | mobile: 714-697-8046
 office/fax: 714-948-2382 | aim: nlpjunke
 
 ===
 This message is for the named person's use only. You must not, directly
 or indirectly, use, disclose, distribute, print, or copy any part of
 this message if you are not the intended recipient.
 ===
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>> 
>> --
>> To our success!
>> 
>> Andrew Lombardi: Mystic Coders, LLC - Coding Magic
>> contact | [EMAIL PROTECTED] | mobile: 714-697-8046
>> office/fax: 714-948-2382 | aim: nlpjunke
>> 
>> ===
>> This message is for the named person's use only. You must not, directly
>> or indirectly, use, disclose, distribute, print, or copy any part of
>> this message if you are not the intended recipient.
>> ===
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> 
> -- 
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0-beta3 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

--
To our success!

Andrew Lombardi: Mystic Coders, LLC - Coding Magic
contact | [EMAIL PROTECTED] | mobil

Re: Global variables

2007-09-24 Thread Jonathan Locke


yes, these may belong in your WebApplication subclass.
however, you may want to be careful to separate your 
/web/ application from your /application/ (to keep details
of your web tier isolated).  for example, at my work, we 
have both a WebApplication subclass that contains a 
variety of things related to our web application AND a 
separate application class that holds values that are 
global to the whole project and have nothing at all to 
do with Wicket.  in time, you can end up with multiple
WebApplications, so it's a good idea to think this through.


Eelco Hillenius wrote:
> 
> On 9/24/07, Thies Edeling <[EMAIL PROTECTED]> wrote:
>> Why not just add them to your Application class?
> 
> Yep, that's what you should do. If what you want to achieve is
> specific for one application, put them as members in your application
> class, or if you need something more generic, you can use
> Application's meta data facility (get/setMetaData).
> 
> Eelco
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Global-variables-tf4509527.html#a12870159
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



wicket-ajax.js not added

2007-09-24 Thread John Carlson
I have had several pages that will not initially load the wicket-ajax
functionality.  The page will load but the throttler is missing or it
will complain that submitFormById is undefined.  Refreshing the page
loads the ajax scripts and everything works fine.  I did alittle
snooping and found that on the first load wicket doesn't add the
wicket-ajax.js to the markup.  That's why some functions are undefined.
I setoutputmarkupid(true) on all the related things as far I can tell.
Does the order of setting markup Id and adding things to the page
matter?  ie.

...

form.setoutputmarkupid(true);

add(form);

...

versus

...

add(form);

form.setoutputmarkupid(true);

...

 

As a hack I added the script include myself...

 



 

and then it worked on page load.  What step am I skipping that keeps
wicket from doing this for me initially?

 

Thanks In Advance.

 

John Carlson



NoSuchMethodException / PropertyResolver

2007-09-24 Thread Phillip Rhodes
Hi guys, I'm seeing a weird problem with Wicket.  I *think* it's the
same problem discussed here
,
but won't swear to it.  Basically Wicket
is logging a NoSuchMethodException when rendering my page.

This is using Wicket 1.2.4, running on JDK 1.6, JBoss 4.0.5, on Windows
2000 Server.

The java code for the page in question looks like this:



*** BEGIN JAVA CODE ***
package org.openqabal.web.registration;

import org.openqabal.auth.encoder.QPasswordEncoder;
import org.openqabal.core.lib.domain.QGenericUserAccount;
import org.openqabal.core.lib.domain.impl.UserAccountImpl;
import org.openqabal.core.lib.service.QHybridUserService;

import wicket.PageParameters;
import wicket.examples.WicketExampleHeader;
import wicket.markup.html.WebPage;
import wicket.markup.html.form.Form;
import wicket.markup.html.form.PasswordTextField;
import wicket.markup.html.form.TextField;
import wicket.markup.html.panel.FeedbackPanel;
import wicket.model.PropertyModel;
import wicket.spring.injection.annot.SpringBean;
import wicket.util.string.Strings;
import wicket.util.value.ValueMap;

public final class UserRegistration1 extends WebPage
{
@SpringBean(name="hybridUserService")
private QHybridUserService userService;

@SpringBean(name="passwordEncoderBean")
private QPasswordEncoder passwordEncoder;

// note: TODO UserAccountFactory here...

public UserRegistration1()
{
this( null );
}

public UserRegistration1(   final PageParameters parameters )
{
final String packageName = getClass().getPackage().getName();
add(new WicketExampleHeader("mainNavigation",
Strings.afterLast(packageName, '.'), this));

// Create feedback panel and add to page
final FeedbackPanel feedback = new FeedbackPanel("feedback");

add(feedback);

add(new UserRegistrationForm("userForm"));
}

public final class UserRegistrationForm extends Form
{
// El-cheapo model for form
private final ValueMap properties = new ValueMap();

public UserRegistrationForm(final String componentName)
{
super(componentName);

// Attach textfield components that edit properties map 
model
add(new TextField("firstName", new 
PropertyModel(properties,
"firstName")));
add(new TextField("lastName", new 
PropertyModel(properties,
"lastName")));
add( new TextField( "loginName", new 
PropertyModel(properties,
"loginName")));
add(new TextField("emailAddress", new 
PropertyModel(properties,
"emailAddress")));
add(new PasswordTextField("password", new 
PropertyModel(properties,
"password")));
add(new PasswordTextField("confirmPassword", new
PropertyModel(properties, "confirmPassword")));
}

public final void onSubmit()
{
System.out.println( "onSubmit()" );
String firstName = properties.getString("firstName");
String lastName = properties.getString("lastName");
String loginName = properties.getString( "loginName" );
String emailAddress = 
properties.getString("emailAddress");
String password = properties.getString("password");
String confirmPassword = 
properties.getString("confirmPassword");

// create and persist user object using the details we
// received...

QGenericUserAccount userAccount = new UserAccountImpl();
userAccount.setLoginName( loginName );
userAccount.setPassword( 
passwordEncoder.encode(password));

userService.createAllAccounts(userAccount);


}
}
}

*** END JAVA CODE ***



and here is the relevant stuff from the log.  FWIW, I get this
for every one of the above properties, but am only posting this
log snippet since the others are all the same.



*** BEGIN LOG / STACKTRACE ***

2007-09-24 21:55:13,890 DEBUG [wicket.Page] Rendered [MarkupContainer
[Component id = lastName, page =
org.openqabal.web.registration.UserRegistration1, path =
0:userForm:lastName.TextField, isVisible = true, isVersioned = false]]
2007-09-24 21:55:13,890 D

Re: Redirect to HTTPS?

2007-09-24 Thread Doug Leeper

I have been attempting to get HTTPS/SSL working in my app too. 
Unfortunately, I have hit a wall...mostly b/c I am learning the
API/Framework.

In any case, the Example in the WIKI is outdated (v 1.2???)  It won't work
with 1.3 as is (no IResponseStrategy any more).  However, I do believe I
have figured out how to get SSL working with a little tweaking of this
example.

I haven't tested but I think the solution is to override public final
CharSequence encode(final RequestCycle requestCycle,final IRequestTarget
requestTarget)BUT...it is final so we can't reuse the class directly but
have to make a copy.

All the other encode methods get the proper wicket URL but doesn't prepend
the webapp URI which this final encode method does.  Beyond filing a RFE to
either make this method non-final or provide a postEncode(RequestCycle,
IRequestTarget) method before URL encoding, we will have to copy the entire
class and provide this behavior.

Thoughts?
-- 
View this message in context: 
http://www.nabble.com/Redirect-to-HTTPS--tf4509537.html#a12872387
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need combo to determine action but validation fails

2007-09-24 Thread Swaroop Belur
Hi

You should be looking at AjaxFormComponentUpdatingBehavior . Override the
onUpdate(AjaxRequestTarget target) method.  This will update your
dropdownchoice
model. Based on  that you will be able to refresh the relevant parts
via Ajax.






On 9/25/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
wrote:
>
> Hi all,
>
> I have a simple Form that contains a DropDownChoice. I have a submit
> button
> and a submit link to change part of the form based on the option selected
> in
> the DropDownChoice.
>
> What it is happening is that because of some fields are invalid (Empty) I
> cannot get to the selected option of the DropDownChoice, and by that
> change
> part of the form.
>
>
> final AjaxSubmitLink cDetailedForm = new AjaxSubmitLink("DetailedForm") {
>  public void onSubmit(AjaxRequestTarget target, Form form) {
> showHideDetailsOnForm(target);
>  }
>  public void onError(AjaxRequestTarget target, Form form) {
> showHideDetailsOnForm(target);
>  }
>   };
>
> private void showHideDetailsOnForm(){
>
> String option = ((Map)getModel().getObject()).get("DetailsChoices");
>
> if(option.equals("2")){
>
>
>
> }
>
> .etc.
>
> }
>
> As the form validation fails, I cannot get to the model.  If I set
> DefaultFormProcessing to false it doesn't submit it either.
>
>
> Question Time:
>
> Is there a way to set validations to buttons or submit elements in
> particular?
>
> Ex. If I click the button named "SubmitAndValidateAll" some validations
> are
> executed and if I click the button named "SubmitButDontValidateAge" some
> not...
>
>
> f(t)
>


Re: Redirect to HTTPS?

2007-09-24 Thread Doug Leeper

I tested and it appears to work as expected.  I have updated the Wiki to
explain the steps involved for getting this to work in your application. 
Now I need to figure out how to get Jetty 4.2.24 to listen on an SSL port. 
Any idea?
-- 
View this message in context: 
http://www.nabble.com/Redirect-to-HTTPS--tf4509537.html#a12872701
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Redirect to HTTPS?

2007-09-24 Thread Eelco Hillenius
> All the other encode methods get the proper wicket URL but doesn't prepend
> the webapp URI which this final encode method does.  Beyond filing a RFE to
> either make this method non-final or provide a postEncode(RequestCycle,
> IRequestTarget) method before URL encoding, we will have to copy the entire
> class and provide this behavior.
>
> Thoughts?

I stand by my suggestion that you could just try to redirect to a
secure page. After that, the relative URLs stay secure no?

If I'm missing something, please tell.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting at the HttpServletResponse?

2007-09-24 Thread Eelco Hillenius
On 9/24/07, Andrew Lombardi <[EMAIL PROTECTED]> wrote:
> I do not have my own RequestCycle, no.  Just using whatever is standard
> with Wicket.

What does it say the type is then? Can you paste the stack trace?

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Redirect to HTTPS?

2007-09-24 Thread Eelco Hillenius
> I haven't tested but I think the solution is to override public final
> CharSequence encode(final RequestCycle requestCycle,final IRequestTarget
> requestTarget)BUT...it is final so we can't reuse the class directly but
> have to make a copy.

And this is where your alarm bells should go off. Admittedly we have
been very generous in using final, maybe sometimes a bit too much, but
the idea behind it is that we think that what you want to do  can
probably be done in a better way, or we simply don't know (and an
unrelated reason is self protection so that we have more options for
refactoring without breaking the whole world). So, any time you come
across a situation where something is final and you think you have a
really good use case to get rid of it, you should post a message here.
Chances are we can tell you a better way to do it, or you convince us
to remove final or in some other way facilitate your use case.

As for your case, I'd like to hear what Al thinks about this. It might
work to make the factor prepending into a separate, overridable
method.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: strange ClassCastException when deserializing a Page

2007-09-24 Thread Eelco Hillenius
Gee that looks weird. As far as I know, the only exotic stuff we do
with serializing is an optimization for page references. But I can't
see how that might relate to this.

Johan, any ideas? Any chance you could make a test case out of it Xavier?

Eelco

On 9/24/07, Xavier Hanin <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a strange CCE on page deserialization with wicket 1.3.0-beta3:
> java.lang.ClassCastException: cannot assign instance of
> org.apache.wicket.model.PropertyModel to field
> org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.markupHelperof
> type
> org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper in
> instance of org.xoocode.xooctory.web.component.form.LabelBorder
>  at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(
> ObjectStreamClass.java:2032)
>  at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java
> :1212)
>  at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java
> :1951)
>  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
> :1869)
>  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
> :1753)
>  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>  at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
>  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
>  at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java
> :1945)
>  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
> :1869)
>  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
> :1753)
>  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>  at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
>  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
>  at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java
> :1945)
>  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
> :1869)
>  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
> :1753)
>  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>  at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
>  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
>  at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java
> :1945)
>  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
> :1869)
>  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java
> :1753)
>  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>  at org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java
> :396)
>  at
> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage(
> AbstractPageStore.java:231)
>  at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(
> DiskPageStore.java:596)
>  at
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get
> (SecondLevelCacheSessionStore.java:322)
>  at org.apache.wicket.Session.getPage(Session.java:800)
>  at
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(
> AbstractRequestCycleProcessor.java:427)
>  at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
> WebRequestCycleProcessor.java:139)
>  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1091)
>  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1177)
>  at org.apache.wicket.RequestCycle.request(RequestCycle.java:500)
>  at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
> :261)
>  at org.apache.wicket.protocol.http.WicketFilter.doFilter(
> WicketFilter.java:127)
>  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
> ServletHandler.java:1065)
>  at
> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal
> (OpenSessionInViewFilter.java:198)
>  at org.springframework.web.filter.OncePerRequestFilter.doFilter(
> OncePerRequestFilter.java:75)
>  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
> ServletHandler.java:1065)
>  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java
> :365)
>  at org.mortbay.jetty.security.SecurityHandler.handle(
> SecurityHandler.java:185)
>  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java
> :181)
>  at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java
> :689)
>  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java
> :391)
>  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java
> :139)
>  at org.mortbay.jetty.Server.handle(Server.java:285)
>  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnec

Re: wicket-ajax.js not added

2007-09-24 Thread Eelco Hillenius
On 9/24/07, John Carlson <[EMAIL PROTECTED]> wrote:
> I have had several pages that will not initially load the wicket-ajax
> functionality.  The page will load but the throttler is missing or it
> will complain that submitFormById is undefined.  Refreshing the page
> loads the ajax scripts and everything works fine.  I did alittle
> snooping and found that on the first load wicket doesn't add the
> wicket-ajax.js to the markup.  That's why some functions are undefined.
> I setoutputmarkupid(true) on all the related things as far I can tell.
> Does the order of setting markup Id and adding things to the page
> matter?  ie.

No, it shouldn't. What version of Wicket are you using? The first
component or behavior that does a header contribution of
wicket-ajax.js (any AjaxBehavior that is shipped with the wicket core
projects) should cause the script to be loaded.

Whether you call setOutputMarkupId is unrelated to whether scripts are loaded.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: modal window rendering not quite smooth

2007-09-24 Thread Eelco Hillenius
On 9/9/07, Gumnaam <[EMAIL PROTECTED]> wrote:
> has any one noticed that the modal window when opens up ,
> shows the contents of the parent page, before showing it's actual content.
> The time for which it shows parent page's content depends on how much
> time it takes to fetch it's content via ajax.
> Is it possible to show a busy indicator in the modal window, while it
> fetches
> the contents, rather than showing parent pages content ?

You could add a feature request for this to JIRA.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NoSuchMethodException / PropertyResolver

2007-09-24 Thread Martijn Dashorst
You have to provide the types for the fields, or else Wicket won't be
able to discover what type to use (apparently it resolves to boolean
for the name), or provide default values with the correct type in your
valuemap.

i.e. either:

add(new TextField("firstName", new PropertyModel(map, "firstName"),
String.class));

or

map.put("firstName", "");

Martijn

On 9/25/07, Phillip Rhodes <[EMAIL PROTECTED]> wrote:
> Hi guys, I'm seeing a weird problem with Wicket.  I *think* it's the
> same problem discussed here
> ,
> but won't swear to it.  Basically Wicket
> is logging a NoSuchMethodException when rendering my page.
>
> This is using Wicket 1.2.4, running on JDK 1.6, JBoss 4.0.5, on Windows
> 2000 Server.
>
> The java code for the page in question looks like this:
>
>
>
> *** BEGIN JAVA CODE ***
> package org.openqabal.web.registration;
>
> import org.openqabal.auth.encoder.QPasswordEncoder;
> import org.openqabal.core.lib.domain.QGenericUserAccount;
> import org.openqabal.core.lib.domain.impl.UserAccountImpl;
> import org.openqabal.core.lib.service.QHybridUserService;
>
> import wicket.PageParameters;
> import wicket.examples.WicketExampleHeader;
> import wicket.markup.html.WebPage;
> import wicket.markup.html.form.Form;
> import wicket.markup.html.form.PasswordTextField;
> import wicket.markup.html.form.TextField;
> import wicket.markup.html.panel.FeedbackPanel;
> import wicket.model.PropertyModel;
> import wicket.spring.injection.annot.SpringBean;
> import wicket.util.string.Strings;
> import wicket.util.value.ValueMap;
>
> public final class UserRegistration1 extends WebPage
> {
> @SpringBean(name="hybridUserService")
> private QHybridUserService userService;
>
> @SpringBean(name="passwordEncoderBean")
> private QPasswordEncoder passwordEncoder;
>
> // note: TODO UserAccountFactory here...
>
> public UserRegistration1()
> {
> this( null );
> }
>
> public UserRegistration1(   final PageParameters parameters )
> {
> final String packageName = getClass().getPackage().getName();
> add(new WicketExampleHeader("mainNavigation",
> Strings.afterLast(packageName, '.'), this));
>
> // Create feedback panel and add to page
> final FeedbackPanel feedback = new FeedbackPanel("feedback");
>
> add(feedback);
>
> add(new UserRegistrationForm("userForm"));
> }
>
> public final class UserRegistrationForm extends Form
> {
> // El-cheapo model for form
> private final ValueMap properties = new ValueMap();
>
> public UserRegistrationForm(final String componentName)
> {
> super(componentName);
>
> // Attach textfield components that edit properties 
> map model
> add(new TextField("firstName", new 
> PropertyModel(properties,
> "firstName")));
> add(new TextField("lastName", new 
> PropertyModel(properties,
> "lastName")));
> add( new TextField( "loginName", new 
> PropertyModel(properties,
> "loginName")));
> add(new TextField("emailAddress", new 
> PropertyModel(properties,
> "emailAddress")));
> add(new PasswordTextField("password", new 
> PropertyModel(properties,
> "password")));
> add(new PasswordTextField("confirmPassword", new
> PropertyModel(properties, "confirmPassword")));
> }
>
> public final void onSubmit()
> {
> System.out.println( "onSubmit()" );
> String firstName = properties.getString("firstName");
> String lastName = properties.getString("lastName");
> String loginName = properties.getString( "loginName" 
> );
> String emailAddress = 
> properties.getString("emailAddress");
> String password = properties.getString("password");
> String confirmPassword = 
> properties.getString("confirmPassword");
>
> // create and persist user object using the details we
> // received...
>
> QGenericUserAccount userAccount = new 
> UserAccountImpl();
> userAccount.setLoginName( loginName );
> userAccount.setPassword( 
> passwordEncoder.encode(password));
>
> userService.createAllAccounts(userAccount);
>
>
> }
> }
> }
>
> *** END JAVA CODE ***
>
>
>
> and here is the relevant stuff from the log.  FWIW, I

Re: No cursor in Modal Window in FF

2007-09-24 Thread Eelco Hillenius
If you have this reproducible, please file a bug report.

Eelco

On 9/11/07, Artur W. <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> There is no cursor in input fields in Modal Window.
> I use Wicket wicket-1.3.0-beta3 and ff 2.0.0.6
>
> Thanks for help,
> Artur
>
> --
> View this message in context: 
> http://www.nabble.com/No-cursor-in-Modal-Window-in-FF-tf4421726.html#a12612071
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: strange ClassCastException when deserializing a Page

2007-09-24 Thread Xavier Hanin
On 9/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> Gee that looks weird. As far as I know, the only exotic stuff we do
> with serializing is an optimization for page references. But I can't
> see how that might relate to this.
>
> Johan, any ideas? Any chance you could make a test case out of it Xavier?


The problem is that without the slightest idea of where it comes from it's
difficult to make a test case. The code is public though, so I have a "large
test case" :-)
But I'm ok to investigate on my own, if you can give me some hints... Maybe
I can switch to another serialization implementation, if I remember well
that's something possible, no?

Xavier

Eelco
>
> On 9/24/07, Xavier Hanin <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I have a strange CCE on page deserialization with wicket 1.3.0-beta3:
> > java.lang.ClassCastException: cannot assign instance of
> > org.apache.wicket.model.PropertyModel to field
> >
> org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.markupHelperof
> > type
> > org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper in
> > instance of org.xoocode.xooctory.web.component.form.LabelBorder
> >  at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(
> > ObjectStreamClass.java:2032)
> >  at java.io.ObjectStreamClass.setObjFieldValues(
> ObjectStreamClass.java
> > :1212)
> >  at java.io.ObjectInputStream.defaultReadFields(
> ObjectInputStream.java
> > :1951)
> >  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
> > :1869)
> >  at java.io.ObjectInputStream.readOrdinaryObject(
> ObjectInputStream.java
> > :1753)
> >  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java
> :1329)
> >  at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
> >  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java
> :1323)
> >  at java.io.ObjectInputStream.defaultReadFields(
> ObjectInputStream.java
> > :1945)
> >  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
> > :1869)
> >  at java.io.ObjectInputStream.readOrdinaryObject(
> ObjectInputStream.java
> > :1753)
> >  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java
> :1329)
> >  at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
> >  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java
> :1323)
> >  at java.io.ObjectInputStream.defaultReadFields(
> ObjectInputStream.java
> > :1945)
> >  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
> > :1869)
> >  at java.io.ObjectInputStream.readOrdinaryObject(
> ObjectInputStream.java
> > :1753)
> >  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java
> :1329)
> >  at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
> >  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java
> :1323)
> >  at java.io.ObjectInputStream.defaultReadFields(
> ObjectInputStream.java
> > :1945)
> >  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java
> > :1869)
> >  at java.io.ObjectInputStream.readOrdinaryObject(
> ObjectInputStream.java
> > :1753)
> >  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java
> :1329)
> >  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
> >  at org.apache.wicket.util.lang.Objects.byteArrayToObject(
> Objects.java
> > :396)
> >  at
> >
> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.deserializePage
> (
> > AbstractPageStore.java:231)
> >  at org.apache.wicket.protocol.http.pagestore.DiskPageStore.getPage(
> > DiskPageStore.java:596)
> >  at
> >
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get
> > (SecondLevelCacheSessionStore.java:322)
> >  at org.apache.wicket.Session.getPage(Session.java:800)
> >  at
> >
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage
> (
> > AbstractRequestCycleProcessor.java:427)
> >  at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve
> (
> > WebRequestCycleProcessor.java:139)
> >  at org.apache.wicket.RequestCycle.step(RequestCycle.java:1091)
> >  at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1177)
> >  at org.apache.wicket.RequestCycle.request(RequestCycle.java:500)
> >  at org.apache.wicket.protocol.http.WicketFilter.doGet(
> WicketFilter.java
> > :261)
> >  at org.apache.wicket.protocol.http.WicketFilter.doFilter(
> > WicketFilter.java:127)
> >  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
> > ServletHandler.java:1065)
> >  at
> >
> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal
> > (OpenSessionInViewFilter.java:198)
> >  at org.springframework.web.filter.OncePerRequestFilter.doFilter(
> > OncePerRequestFilter.java:75)
> >  at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
> > ServletHa

Re: Session-Timeout Exception

2007-09-24 Thread Eelco Hillenius
On 9/3/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> when a Session-Timeout occurs, the following Exception is thrown when the user
> gets active again:
>
> ---8<---
> 2007-09-03 16:41:26,316 ERROR [org.apache.wicket.RequestCycle   ] 
> -
> Cannot find the rendered page in session [pagemap=nu
> ll,componentPath=10,versionNumber=0]
> org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered
> page in session [pagemap=null,componentPath=10,versio
> nNumber=0]
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:451)
> at
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1077)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1173)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:483)
> at 
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:277)
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:129)
> at
> com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:73)
> at
> com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:125)
> at
> com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:175)
> at
> com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:240)
> at 
> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
> at com.caucho.server.port.TcpConnection.run(TcpConnection.java:481)
> at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:685)
> at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:607)
> at java.lang.Thread.run(Thread.java:619)
> ---8<---
>
> Can't this be avoided and just a redirect to the Session-Expired/Login-Page
> initiated?

You can catch the exception in a custom request cycle and do this yourself.

Eelco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]