Re: Wicket architecture diagram?

2009-05-18 Thread jWeekend

Manuel,

I had a chat with Jonathan recently and this came up then too. He was also
going to mention it to Eelco as well, but we have all been pre-occupied, for
our part (and ironically) partly due to growing numbers of corporate Wicket
projects and on-site training requests!

If you do come up with something (and there are some guidelines already on
this thread and chapter 2 of Wicket In Action), I am sure you will get very
prompt and valuable feedback if you post it here.

Regards - Cemal
http://jWeekend.com jWeekend 
Training, Consulting, Development

 

manuelbarzi wrote:
> 
> hi, i am preparing a wicket architecture document for a project and i need
> a preliminary diagram asap. what  is the result, is the diagram presented
> here by Subbu already corrected (ended) and presented somewhere? it's very
> important for this document. thanks
> 
> 
> jWeekend wrote:
>> 
>> Jeremy,
>> 
>> Yes, if you believe showing "model" on such a high level architectural
>> diagram meant to depict how the major components hang together, then you
>> should show IModel instead of LDM for sure. And it's true that newcomers
>> need to understand models and can find this concept hard to grasp if they
>> have not seen this sort of pattern before, but you don't need to show
>> everything in the one diagram.
>> 
>> Another comment about the diagram(s) I feel would be most useful (ones I
>> would have benefited from when I first luckily stumbled upon Wicket) is
>> that there should be a clear distinction between static and dynamic
>> features of the framework, for consistency and to avoid confusion for the
>> reader.
>> 
>> I think this is a good start and you can also see some of the Wiki
>> entries syl put on the Wiki even before he was working with us, like 
>> http://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html
>> this one .
>> 
>> Regards - Cemal
>>  http://jWeekend.com jWeekend 
>> 
>> 
>> 
>> 
>> 
>> Jeremy Thomerson-5 wrote:
>>> 
>>> While I agree that you could take out LDM specifically, I really think
>>> that
>>> you should replace it with IModel - I think it is critical to show that
>>> IModel is the abstraction between a component and where it gets it's
>>> data.
>>> This is the number one misundertstood thing that I find among those I
>>> teach.
>>> 
>>> --
>>> Jeremy Thomerson
>>> http://www.wickettraining.com
>>> 
>>> 
>>> 
>>> On Thu, Mar 26, 2009 at 6:44 AM, jWeekend
>>> wrote:
>>> 

 Subbu,

 Thank you!
 I have a quick minute now, so I thought you'd appreciate a few crumbs
 of
 feedback before I can take a better look, hopefully late this evening.

 0 - this is a great start!
 1 - take out the LDM - this stretches the scope of the diagram beyond
 what
 it needs to show.
 2 - if the level of abstraction is at a level which includes
 validators/converters etc (possibly form processing is better
 elaborated in
 a child diagram) ... I think we need to mention FormComponent
 explicitly.

 More soon, and I hope this will draw some comments from core devs and
 application developers.

 Regards - Cemal
 http://jWeekend.com jWeekend



 subbu_tce wrote:
 >
 > Based on my understanding, i just prepared a diagram.
 > Wicket Contributors.. Please review and let me know your valuable
 > feedback.
 >  http://www.nabble.com/file/p22717793/wicket%2Barchitecture.jpg
 >
 >
 > Thanks,
 > Subbu.
 >
 >
 > jWeekend wrote:
 >>
 >> Jeremy,
 >>
 >> It's one of the first things I looked for when I first stumbled upon
 >> Wicket 2 years ago, and it is a common request from many architects
 and
 >> even some project managers evaluating Wicket.
 >>
 >> If the core devs come up with some rough (but correct) sketch
 they're
 all
 >> agreed on, even if it's just a first iteration, I'll get someone
 here to
 >> create a professional (maybe even glossy) version from that.
 >>
 >> Regards - Cemal
 >>  http://jWeekend.com jWeekend
 >>
 >>
 >> Jeremy Thomerson-5 wrote:
 >>>
 >>> Has anyone done a nice Wicket architecture diagram?  I know about
 the
 >>> architecture chapter in WiA, but someone I know is looking for
 something
 >>> more along the lines of:
 >>>
 >>>
 http://www.icesoft.com/developer_guides/icefaces/htmlguide/devguide/sys_architecture.html
 >>> http://www.ociweb.com/jnb/jsfArchitecture.jpg
 >>>
 >>> Unfortunately, I'm no artist - so I can't help him much.  I was
 hoping
 >>> someone had already done something similar as part of a
 presentation
 >>> somewhere.
 >>>
 >>> --
 >>> Jeremy Thomerson
 >>> http://www.wickettraining.com
 >>>
 >>>
 >>
 >>
 >
 >

 --
 View this message in context:
 http://www.nabble.com/Wicket-architecture-diagram--tp22683704p22720354

Re: Tools for Managing a Wicket Project

2009-05-18 Thread Steve Swinsburg
You can get Eclipse to auto refresh if you modify files externally.  
Check preferences.



cheers,
Steve


On 19/05/2009, at 1:15 AM, John Armstrong wrote:

I always have to do a 'Refresh' when changing the HTML. Its quite  
painful..


I tend to author the bulk of my html in an external editor that is
more suitable to the purpose and fast ( the eclipse validators are
painfully slow, particularly in Javascript intensive pages). Then I
tweak it in Eclipse and hit F5. A Lot.

John-

On Mon, May 18, 2009 at 5:03 PM, pete swulius   
wrote:
It appears that using external html editors causes sync issues.   
Apparently
eclipse doesn't monitor changes to the file system, except to warn  
you that
it's out of sync.  I would love the know the truth of it as I could  
very

well be missing something obvious.  In fact, I would bet that I am,
considering that eclispe is so cool.

I am currently using the Amateras plugin:
http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor 
.
 I have no problems with it, but I use it only for the syntax  
coloring

and
the occasional content assist.

--pete



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





smime.p7s
Description: S/MIME cryptographic signature


Re: OT: JavaOne

2009-05-18 Thread Ryan
This is my first time attending and there is certainly a ton of JavaFX
crap that I'll be skipping. There still seems to be some useful stuff
this year, and it will be fun to meet some other like minded people :-)

I don't blame you for not going. I wouldn't be going either if my costs
weren't covered.

If I can find someone/some place to offer suggestions or to gripe I will
certainly vote for some wicket sessions. There are some fairly obscure
topics, so there is no excuse for ignoring Wicket. Even Tapestry has a
session and there are a ton of JSF sessions.

If you decide to come down let me know, it would be great to meet you in
person.

-Ryan

On Mon, May 18, 2009 at 04:47:01PM -0700, Igor Vaynberg exclaimed:

>I was thinking of going. I went last year but it was such a
>javafx-fest that it was hard to find anything interesting that wasn't.
>This year seems even more so. If I wanted to get a bunch of sun
>propaganda thrown at me I don't  see why I need to pay for it. Have I
>mentioned they rejected a wicket presentation proposal last year, and
>two this year?
>
>-Igor
>
>On Monday, May 18, 2009, Ryan  wrote:
>> Are there any Wicket fans going to JavaOne this year? I'm flying in from
>> Boise on June 1st and would love to meet some fellow wicketers while I'm
>> there. I'll be wearing all my Wicket attire and singing the Wicket
>> praise every chance I get... maybe we will see a session on wicket next
>> year.
>>
>> -Ryan
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>-
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org
>

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



Re: Can't find Wicket ajax resources

2009-05-18 Thread Jeremy Thomerson
What's your web.xml mapping?

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




On Mon, May 18, 2009 at 6:41 PM, Mark Sloan  wrote:
> I am trying to do some basic Ajax in Wicket (1.4rc4)
> I have the following code fragment:
>
> TextField loginField = new TextField("login",
>             new PropertyModel(this, "login"));
> loginField.add(new AjaxFormComponentUpdatingBehavior("onblur") {
>          private static final long serialVersionUID = 1L;
>          @Override
>          protected void onUpdate(AjaxRequestTarget target) {
>              // doUpdate
>          }
>       });
>    }
> It produces the follwing:
> [WARN] 404 - GET
> /resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js;jsessionid=l0s7hr4i8tev
> WARN] 404 - GET
> /resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js;jsessionid=l0s7hr4i8tev
> [WARN] 404 - GET
> /resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js;jsessionid=l0s7hr4i8tev
> What am I doing wrong here?
>
> Mark Sloan
> SRI International, San Luis Obispo Office
> 805-542-9330 x107
> mark.sl...@sri.com
>
>
>

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



Re: Tools for Managing a Wicket Project

2009-05-18 Thread pete swulius
While we are on the topic, does anyone know if there's a super-secret
version of wicket-bench that plays well with the Eclipse 3.3 debugger?  If
not, how much effort would it take to get it up to date?  I would be glad to
contribute.

Or, alternatively, is there another option out there for minimizing the
hunt-n-clickathon?

--pete


Re: Tools for Managing a Wicket Project

2009-05-18 Thread Eduardo Nunes
it's very strange, because if I hit ctrl+shift+f in some html code
with WTP, the source code will be completely unwell formatted. I will
try amateras plugin, thank you

On Mon, May 18, 2009 at 9:15 PM, John Armstrong  wrote:
> I always have to do a 'Refresh' when changing the HTML. Its quite painful..
>
> I tend to author the bulk of my html in an external editor that is
> more suitable to the purpose and fast ( the eclipse validators are
> painfully slow, particularly in Javascript intensive pages). Then I
> tweak it in Eclipse and hit F5. A Lot.
>
> John-
>
> On Mon, May 18, 2009 at 5:03 PM, pete swulius  wrote:
>> It appears that using external html editors causes sync issues.  Apparently
>> eclipse doesn't monitor changes to the file system, except to warn you that
>> it's out of sync.  I would love the know the truth of it as I could very
>> well be missing something obvious.  In fact, I would bet that I am,
>> considering that eclispe is so cool.
>>
>> I am currently using the Amateras plugin:
>> http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor.
>>  I have no problems with it, but I use it only for the syntax coloring
>> and
>> the occasional content assist.
>>
>> --pete
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Eduardo S. Nunes
http://e-nunes.com.br

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



Re: Tools for Managing a Wicket Project

2009-05-18 Thread John Armstrong
I always have to do a 'Refresh' when changing the HTML. Its quite painful..

I tend to author the bulk of my html in an external editor that is
more suitable to the purpose and fast ( the eclipse validators are
painfully slow, particularly in Javascript intensive pages). Then I
tweak it in Eclipse and hit F5. A Lot.

John-

On Mon, May 18, 2009 at 5:03 PM, pete swulius  wrote:
> It appears that using external html editors causes sync issues.  Apparently
> eclipse doesn't monitor changes to the file system, except to warn you that
> it's out of sync.  I would love the know the truth of it as I could very
> well be missing something obvious.  In fact, I would bet that I am,
> considering that eclispe is so cool.
>
> I am currently using the Amateras plugin:
> http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor.
>  I have no problems with it, but I use it only for the syntax coloring
> and
> the occasional content assist.
>
> --pete
>

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



Re: Tools for Managing a Wicket Project

2009-05-18 Thread pete swulius
It appears that using external html editors causes sync issues.  Apparently
eclipse doesn't monitor changes to the file system, except to warn you that
it's out of sync.  I would love the know the truth of it as I could very
well be missing something obvious.  In fact, I would bet that I am,
considering that eclispe is so cool.

I am currently using the Amateras plugin:
http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor.
 I have no problems with it, but I use it only for the syntax coloring
and
the occasional content assist.

--pete


Re: Tools for Managing a Wicket Project

2009-05-18 Thread John Armstrong
I use the HTML formatter without problems. What issue are you having?

I use MyEclipse, it may be different?

J

On Mon, May 18, 2009 at 4:47 PM, Eduardo Nunes  wrote:
> I have just one problem with eclipse, I can't use the HTML formatter,
> that's very sucks. I tried tidy but it didn't work too. What do you
> use guys to format html code?
>
> On Mon, May 18, 2009 at 2:06 PM, Dane Laverty  wrote:
>> I just wanted to thank Jeremy, Scott, and Linda for recommending Effective
>> Java. I read through the book this week. It's wonderful -- accessible and
>> useful. Now I'm in the process of refactoring my project to start applying
>> the concepts.
>>
>> On Fri, May 1, 2009 at 8:53 AM, Carlo Camerino  wrote:
>>
>>> we used to be bugzilla, mediawiki, continuum statck.we moved to Trac. It
>>> was
>>> simply amazing with all those plugins.
>>>
>>> Code Review WIth Trac Is Good.
>>> Review Board is also good software but it doesn't suit our programming
>>> needs.
>>>
>>> On Fri, May 1, 2009 at 11:38 PM, Matt Welch  wrote:
>>>
>>> >
>>> > Tools that our team is using (after some trial and error):
>>> >
>>> > IDE - Eclipse/IDEA
>>> > Source Control - SVN
>>> > Build - Maven
>>> > Local Network Maven Repo - Nexus (after a year trying different ones)
>>> > Build Server  - TeamCity, which absolutely rocks (We actually purchased
>>> and
>>> > used Bamboo for 9 months. I can't believe it comes from the same company
>>> as
>>> > JIRA. Bamboo was terrible.)
>>> > Story Mgmt/Defects - Rally (hosted commercial app for agile projects; not
>>> > bad, but not fantastic either)
>>> > Code Review - Code Collaborator (again not bad and I'd rather have it
>>> than
>>> > nothing at all, but could be better)
>>> >
>>> >
>>> > Our QA team has used various testing tools from expensive commercial
>>> tools
>>> > like Mercury (now HP) Quality Center to Selenium. They use Rally for
>>> defect
>>> > management.
>>> >
>>> > My highest recommendations are for TeamCity, Nexus, and SVN.
>>> >
>>> > -Matt
>>> >
>>> >
>>> > --
>>> > View this message in context:
>>> >
>>> http://www.nabble.com/Tools-for-Managing-a-Wicket-Project-tp23299396p23334970.html
>>> > Sent from the Wicket - User mailing list archive at Nabble.com.
>>> >
>>>
>>
>
>
>
> --
> Eduardo S. Nunes
> http://e-nunes.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Tools for Managing a Wicket Project

2009-05-18 Thread Eduardo Nunes
I have just one problem with eclipse, I can't use the HTML formatter,
that's very sucks. I tried tidy but it didn't work too. What do you
use guys to format html code?

On Mon, May 18, 2009 at 2:06 PM, Dane Laverty  wrote:
> I just wanted to thank Jeremy, Scott, and Linda for recommending Effective
> Java. I read through the book this week. It's wonderful -- accessible and
> useful. Now I'm in the process of refactoring my project to start applying
> the concepts.
>
> On Fri, May 1, 2009 at 8:53 AM, Carlo Camerino  wrote:
>
>> we used to be bugzilla, mediawiki, continuum statck.we moved to Trac. It
>> was
>> simply amazing with all those plugins.
>>
>> Code Review WIth Trac Is Good.
>> Review Board is also good software but it doesn't suit our programming
>> needs.
>>
>> On Fri, May 1, 2009 at 11:38 PM, Matt Welch  wrote:
>>
>> >
>> > Tools that our team is using (after some trial and error):
>> >
>> > IDE - Eclipse/IDEA
>> > Source Control - SVN
>> > Build - Maven
>> > Local Network Maven Repo - Nexus (after a year trying different ones)
>> > Build Server  - TeamCity, which absolutely rocks (We actually purchased
>> and
>> > used Bamboo for 9 months. I can't believe it comes from the same company
>> as
>> > JIRA. Bamboo was terrible.)
>> > Story Mgmt/Defects - Rally (hosted commercial app for agile projects; not
>> > bad, but not fantastic either)
>> > Code Review - Code Collaborator (again not bad and I'd rather have it
>> than
>> > nothing at all, but could be better)
>> >
>> >
>> > Our QA team has used various testing tools from expensive commercial
>> tools
>> > like Mercury (now HP) Quality Center to Selenium. They use Rally for
>> defect
>> > management.
>> >
>> > My highest recommendations are for TeamCity, Nexus, and SVN.
>> >
>> > -Matt
>> >
>> >
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/Tools-for-Managing-a-Wicket-Project-tp23299396p23334970.html
>> > Sent from the Wicket - User mailing list archive at Nabble.com.
>> >
>>
>



-- 
Eduardo S. Nunes
http://e-nunes.com.br

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



Re: OT: JavaOne

2009-05-18 Thread Igor Vaynberg
I was thinking of going. I went last year but it was such a
javafx-fest that it was hard to find anything interesting that wasn't.
This year seems even more so. If I wanted to get a bunch of sun
propaganda thrown at me I don't  see why I need to pay for it. Have I
mentioned they rejected a wicket presentation proposal last year, and
two this year?

-Igor

On Monday, May 18, 2009, Ryan  wrote:
> Are there any Wicket fans going to JavaOne this year? I'm flying in from
> Boise on June 1st and would love to meet some fellow wicketers while I'm
> there. I'll be wearing all my Wicket attire and singing the Wicket
> praise every chance I get... maybe we will see a session on wicket next
> year.
>
> -Ryan
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Can't find Wicket ajax resources

2009-05-18 Thread Mark Sloan

I am trying to do some basic Ajax in Wicket (1.4rc4)

I have the following code fragment:


TextField loginField = new TextField("login",
new PropertyModel(this, "login"));

loginField.add(new AjaxFormComponentUpdatingBehavior("onblur") {

 private static final long serialVersionUID = 1L;

 @Override
 protected void onUpdate(AjaxRequestTarget target) {
 // doUpdate

 }

  });

   }

It produces the follwing:
[WARN] 404 - GET /resources/org.apache.wicket.ajax.WicketAjaxReference/ 
wicket-ajax.js;jsessionid=l0s7hr4i8tev
WARN] 404 - GET /resources/ 
org.apache.wicket.markup.html.WicketEventReference/wicket- 
event.js;jsessionid=l0s7hr4i8tev
[WARN] 404 - GET /resources/ 
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax- 
debug.js;jsessionid=l0s7hr4i8tev


What am I doing wrong here?


Mark Sloan
SRI International, San Luis Obispo Office
805-542-9330 x107
mark.sl...@sri.com





smime.p7s
Description: S/MIME cryptographic signature


Re: OT: JavaOne

2009-05-18 Thread Jim Pinkham
I'm planning to visit the Pavillion only on Tues June 2.

With economy down, management sees JavaOne as "nonessential", so I'm on the
outside looking in this year.  Oh well.  More time for Yosemite and such.

Anyway, I don't have the cool wicket bling, but pick a vendor both and time,
and maybe I'll find you?
Jim Pinkham
Sr. Developer, NetJets Services, Inc
Board member First UU Church of Columbus OH

Oh, and FYI, here's the Wicket App I did:
http://firstuucolumbus.org/auction/?wicket:bookmarkablePage=:org.firstuucolumbus.auction.page.AboutPage

I'd love to chat about how to improve it :)

(If you poke around, our main site just moved so there are several broken
links - just insert /oldsite for now)

On Mon, May 18, 2009 at 1:11 PM, Ryan  wrote:

> Are there any Wicket fans going to JavaOne this year? I'm flying in from
> Boise on June 1st and would love to meet some fellow wicketers while I'm
> there. I'll be wearing all my Wicket attire and singing the Wicket
> praise every chance I get... maybe we will see a session on wicket next
> year.
>
> -Ryan
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How To Call A Method When Browser Is Closed

2009-05-18 Thread Igor Vaynberg
Typing on a phone sucks :)

S/pinh/ping

You can register a map of (sessionid) to (ping timestamp, userid)

-igor

On Sunday, May 17, 2009, Igor Vaynberg  wrote:
> You can have each page register pinh into an application scoped map.
> Then have a thread checking for timeouts.
>
> -Igor
>
> On Sunday, May 17, 2009, Carlo M. Camerino  wrote:
>> ya we've done something sort of similar to this one before but
>> it kinda behaves differently on different browsers. Plus issues when the 
>> user presses refresh also arises.
>>
>> I was wondering if there was anything server side that can do this ?
>> Can comet implement this?
>>
>> - Original Message -
>> From: "Jeremy Thomerson" 
>> To: users@wicket.apache.org
>> Sent: Monday, May 18, 2009 11:35:28 AM GMT +08:00 Beijing / Chongqing / Hong 
>> Kong / Urumqi
>> Subject: Re: How To Call A Method When Browser Is Closed
>>
>> You could try binding to window onUnload event but I think there are
>> limitations as to what you can do within that and it may not always be
>> called.
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Sun, May 17, 2009 at 10:32 PM, Carlo M. Camerino
>>  wrote:
>>> Hi,
>>>
>>> I was just wondering if any of you have implemented this in your wicket 
>>> applications already.
>>> Have you tried calling a logout method when the user closed the browser?
>>> One of the things that I could do is to provide a timeout listener but it 
>>> would have to wait for the expiration time to happen.
>>>
>>> What I would like to happen is this:
>>>
>>> User A logins to the application
>>> User A has a session already and accesses some parts of the application.
>>> User A closes the firefox browser.
>>>
>>> Upon closing browser, the application automatically logouts User A and 
>>> destroys server side session.
>>>
>>>
>>> Thanks
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

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



Re: OT: JavaOne

2009-05-18 Thread Nick Heudecker
Unfortunately I won't be able to make it.

On Mon, May 18, 2009 at 10:11 AM, Ryan  wrote:

> Are there any Wicket fans going to JavaOne this year? I'm flying in from
> Boise on June 1st and would love to meet some fellow wicketers while I'm
> there. I'll be wearing all my Wicket attire and singing the Wicket
> praise every chance I get... maybe we will see a session on wicket next
> year.
>
> -Ryan
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Nick Heudecker
Professional Wicket Training & Consulting
http://www.systemmobile.com


OT: JavaOne

2009-05-18 Thread Ryan
Are there any Wicket fans going to JavaOne this year? I'm flying in from
Boise on June 1st and would love to meet some fellow wicketers while I'm
there. I'll be wearing all my Wicket attire and singing the Wicket
praise every chance I get... maybe we will see a session on wicket next
year.

-Ryan

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



Re: Tools for Managing a Wicket Project

2009-05-18 Thread Dane Laverty
I just wanted to thank Jeremy, Scott, and Linda for recommending Effective
Java. I read through the book this week. It's wonderful -- accessible and
useful. Now I'm in the process of refactoring my project to start applying
the concepts.

On Fri, May 1, 2009 at 8:53 AM, Carlo Camerino  wrote:

> we used to be bugzilla, mediawiki, continuum statck.we moved to Trac. It
> was
> simply amazing with all those plugins.
>
> Code Review WIth Trac Is Good.
> Review Board is also good software but it doesn't suit our programming
> needs.
>
> On Fri, May 1, 2009 at 11:38 PM, Matt Welch  wrote:
>
> >
> > Tools that our team is using (after some trial and error):
> >
> > IDE - Eclipse/IDEA
> > Source Control - SVN
> > Build - Maven
> > Local Network Maven Repo - Nexus (after a year trying different ones)
> > Build Server  - TeamCity, which absolutely rocks (We actually purchased
> and
> > used Bamboo for 9 months. I can't believe it comes from the same company
> as
> > JIRA. Bamboo was terrible.)
> > Story Mgmt/Defects - Rally (hosted commercial app for agile projects; not
> > bad, but not fantastic either)
> > Code Review - Code Collaborator (again not bad and I'd rather have it
> than
> > nothing at all, but could be better)
> >
> >
> > Our QA team has used various testing tools from expensive commercial
> tools
> > like Mercury (now HP) Quality Center to Selenium. They use Rally for
> defect
> > management.
> >
> > My highest recommendations are for TeamCity, Nexus, and SVN.
> >
> > -Matt
> >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/Tools-for-Managing-a-Wicket-Project-tp23299396p23334970.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
>


Re: AjaxLink in a DataView causing issues when loading multiple instance of the page

2009-05-18 Thread unka_hahrry

I have a similar problem using DataView and AjaxLink. Everything works fine,
but sometimes (after a lot of clicks...) I get the following message: 

WicketMessage: component
page:footer:pluginRepeater:2:plugin:rows:9:cols:10:viewpanel:playVideoLink1
not found on page com.wftv.videostream4u.pages.MainPage[id = 9]

Has anyone an idea what's the problem here?


mfs wrote:
> 
> Hi Guys, 
> 
> I am facing a problem with the usage of AjaxLink within a DataView. The
> dataview is contained in a container since the DataView is updated on
> ajaxform.submit. The AjaxLink is on each Item of the DataView, which opens
> up a modal window (with a panel as the content) with further details of
> each item listed in the DV.
> 
> Everything works fine, unless the user tries to open up the same Page
> (containing the above components) in another window/tab, which apparently
> results in the wicket component tree getting out of sync with the actual
> DOM, and hence clicking the ajaxlink on the first window/tab results in
> the following exception...(must be obvious but just for info, if i do a
> refresh of the same page in the first tab/window, the ajaxlink would work
> fine) 
> 
> org.apache.wicket.WicketRuntimeException: component
> certificateDataViewContainer:certificateList:2:certificateSummaryLink not
> found on page company.wicket.product.page.CertificateSearchPage[id = 0],
> listener interface = [RequestListenerInterface name=IBehaviorListener,
> method=public abstract void
> org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:416)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:461)
> at
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
> at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
> at
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
> at
> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
> at
> com.evermind.server.http.HttpRequestHandler.handleNotFound(HttpRequestHandler.java:1041)
> at
> com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911)
> at
> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
> at
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
> at
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
> at
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
> at
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java
> 
> 
> Waiting for followup..
> 
> Thanks in advance
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AjaxLink-in-a-DataView-causing-issues-when-loading-multiple-instance-of-the-page-tp18099619p23598378.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Building 1.3.6 from the source, test failures

2009-05-18 Thread Martijn Dashorst
Don't run the tests with java 6

Martijn

On Mon, May 18, 2009 at 4:49 PM, Martin Dietze  wrote:
> Hi,
>
>  I just checked out wicket 1.3.6 from the svn, changed into the
> wicket-1.3.6 directory, ran `mvn package' and ran across these
> test failures:
>
> Failed tests:
>  test_1(org.apache.wicket.markup.html.header.testing.HeaderTest)
>  testRenderHomePage_7(org.apache.wicket.markup.html.basic.SimplePageTest)
>  testHeaderContribution1(org.apache.wicket.ajax.AjaxRequestTargetTest)
>  testHeaderContribution3(org.apache.wicket.ajax.AjaxRequestTargetTest)
>  test_2(org.apache.wicket.markup.html.header.inheritance.InheritanceHeadTest)
>  testDomReadyOrder(org.apache.wicket.ajax.DomReadyOrderTest)
>  testDetachPageAjaxRequest(org.apache.wicket.ComponentTest)
>
> This is the test log for the first test:
>
> ---
> Test set: org.apache.wicket.markup.html.header.testing.HeaderTest
> ---
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.101 sec <<< 
> FAILURE!
> test_1(org.apache.wicket.markup.html.header.testing.HeaderTest)  Time 
> elapsed: 0.022 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: 
> org/apache/wicket/markup/html/header/testing/TestPage_ExpectedResult.html 
> expected:<...languange="javascript" id="org-apache-wicket-mark
> up-html-header-testing-TestExtendedPanel-0...> but 
> was:<...id="org-apache-wicket-markup-html-header-testing-TestExtendedPanel-0" 
> languange="javascript...>
>        at junit.framework.Assert.assertEquals(Assert.java:81)
>        at org.apache.wicket.util.diff.DiffUtil.validatePage(DiffUtil.java:156)
>        at 
> org.apache.wicket.util.tester.WicketTester.assertResultPage(WicketTester.java:542)
>        at org.apache.wicket.WicketTestCase.executeTest(WicketTestCase.java:84)
>        at 
> org.apache.wicket.markup.html.header.testing.HeaderTest.test_1(HeaderTest.java:43)
>
> $ java -version
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
>
>
> I have seen older references to this problem in the web, but (a) no clear 
> solution and (b)
> wonder why the problem is (still?) there?
>
> Any hint?
>
> Martin
>
> --
> --- / http://herbert.the-little-red-haired-girl.org / -
> =+=
> In my glass coffin I am waiting
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Building 1.3.6 from the source, test failures

2009-05-18 Thread Martin Dietze
Hi,

 I just checked out wicket 1.3.6 from the svn, changed into the
wicket-1.3.6 directory, ran `mvn package' and ran across these
test failures:

Failed tests: 
  test_1(org.apache.wicket.markup.html.header.testing.HeaderTest)
  testRenderHomePage_7(org.apache.wicket.markup.html.basic.SimplePageTest)
  testHeaderContribution1(org.apache.wicket.ajax.AjaxRequestTargetTest)
  testHeaderContribution3(org.apache.wicket.ajax.AjaxRequestTargetTest)
  test_2(org.apache.wicket.markup.html.header.inheritance.InheritanceHeadTest)
  testDomReadyOrder(org.apache.wicket.ajax.DomReadyOrderTest)
  testDetachPageAjaxRequest(org.apache.wicket.ComponentTest)

This is the test log for the first test:

---
Test set: org.apache.wicket.markup.html.header.testing.HeaderTest
---
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.101 sec <<< 
FAILURE!
test_1(org.apache.wicket.markup.html.header.testing.HeaderTest)  Time elapsed: 
0.022 sec  <<< FAILURE!
junit.framework.ComparisonFailure: 
org/apache/wicket/markup/html/header/testing/TestPage_ExpectedResult.html 
expected:<...languange="javascript" id="org-apache-wicket-mark
up-html-header-testing-TestExtendedPanel-0...> but 
was:<...id="org-apache-wicket-markup-html-header-testing-TestExtendedPanel-0" 
languange="javascript...>
at junit.framework.Assert.assertEquals(Assert.java:81)
at org.apache.wicket.util.diff.DiffUtil.validatePage(DiffUtil.java:156)
at 
org.apache.wicket.util.tester.WicketTester.assertResultPage(WicketTester.java:542)
at org.apache.wicket.WicketTestCase.executeTest(WicketTestCase.java:84)
at 
org.apache.wicket.markup.html.header.testing.HeaderTest.test_1(HeaderTest.java:43)

$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)


I have seen older references to this problem in the web, but (a) no clear 
solution and (b)
wonder why the problem is (still?) there?

Any hint?

Martin

-- 
--- / http://herbert.the-little-red-haired-girl.org / -
=+= 
In my glass coffin I am waiting

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



Re: Where is the Wicket+hibernate example of Francisco Treacy

2009-05-18 Thread francisco treacy
Ал,

True, that is no longer online and I can't seem to find a cached
version. Another good post I remember of, although a bit old, is:

http://www.mularien.com/blog/2007/11/28/bleeding-edge-transactional-wicket-web-applications-with-warp-and-guice/

Francisco

2009/5/18 Александър Шопов :
> This message by Francisco Treacy to the mailing list
> http://osdir.com/ml/users-wicket.apache.org/2009-03/msg00989.html
>
> points to an example, that is no longer online.
>
> Does anyone else have a similar example?
>
> Kind regards:
> al_shopov
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Submit form using timer

2009-05-18 Thread Clint Popetz
You can use some variant of:

add(new StringHeaderContributor(
   "setTimeout('document.myForm.submit()',5000);
"));


-Clint


On Mon, May 18, 2009 at 9:08 AM, Anantha Kumaran
 wrote:
> hi
> i want to submit a form using a timer
>
> i there any other way other then using abstractajaxtimebehaviour because i
> don't want to use ajax in that form ??
>
> thanks
> AnanthaKumaran
>



-- 
Clint Popetz
http://42lines.net
Scalable Web Application Development

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



Submit form using timer

2009-05-18 Thread Anantha Kumaran
hi
i want to submit a form using a timer

i there any other way other then using abstractajaxtimebehaviour because i
don't want to use ajax in that form ??

thanks
AnanthaKumaran


using html frames

2009-05-18 Thread shiraz memon
Hi
Is there any (best) way to create and use html frames in wicket?
Thanks
Shiraz


Re: Anybody know what is this situation?

2009-05-18 Thread Martin Makundi
I found only one instance.

Does it matter that it is a random exception (i.e., I saw it first
time today and the app has been running for a long time)?

**
Martin

2009/5/18 Serkan Camurcuoglu :
> In my experience such unexpected classcastexceptions may occur if the same
> class is loaded twice by different classloaders.. Check whether the
> LoginPage class exists in both WEB-INF/classes and some other jar in your
> classpath..
>
>
> Martin Makundi wrote:
>>
>> Anybody know what is this situation? Wicket 1.4-rc4
>>
>> >From production:
>>
>> 2009-05-18 16:32:44,316 19598423 [btpool0-112] ERROR RequestCycle  -
>> cannot assign instance of com.application.MainPage to field
>> wicket.quickstart.LoginPage$1.this$0 of type
>> wicket.quickstart.LoginPage in instance of
>> wicket.quickstart.LoginPage$1
>> java.lang.ClassCastException: cannot assign instance of
>> com.application.MainPage to field wicket.quickstart.LoginPage$1.this$0
>> of type wicket.quickstart.LoginPage in instance of
>> wicket.quickstart.LoginPage$1
>>   at
>> java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2032)
>>   at
>> java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1212)
>>   at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1953)
>>   at
>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>>   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:1947)
>>   at
>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>>   at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>>   at
>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>>   at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>>   at
>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>>   at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>>   at
>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>>   at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>>   at
>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>>   at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>>   at
>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>>   at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>>   at
>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>>   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:1947)
>>   at
>> java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:480)
>>   at org.apache.wicket.Component.readObject(Component.java:4470)
>>   at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
>>   at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>   at java.lang.reflect.Method.invoke(Method.java:597)
>>   at
>> java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
>>   at
>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
>>   at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>>   at
>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>>   at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>>   at
>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>>   at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>>   at
>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>>   at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>>   at
>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>>   at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>>   at
>> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>>   at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>>   at
>> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>>   at
>> java.io.ObjectInputStream.readOrdinaryObj

Re: Anybody know what is this situation?

2009-05-18 Thread Serkan Camurcuoglu
In my experience such unexpected classcastexceptions may occur if the 
same class is loaded twice by different classloaders.. Check whether the 
LoginPage class exists in both WEB-INF/classes and some other jar in 
your classpath..



Martin Makundi wrote:

Anybody know what is this situation? Wicket 1.4-rc4

>From production:

2009-05-18 16:32:44,316 19598423 [btpool0-112] ERROR RequestCycle  -
cannot assign instance of com.application.MainPage to field
wicket.quickstart.LoginPage$1.this$0 of type
wicket.quickstart.LoginPage in instance of
wicket.quickstart.LoginPage$1
java.lang.ClassCastException: cannot assign instance of
com.application.MainPage to field wicket.quickstart.LoginPage$1.this$0
of type wicket.quickstart.LoginPage in instance of
wicket.quickstart.LoginPage$1
   at 
java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2032)
   at 
java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1212)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1953)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   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:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   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:1947)
   at 
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:480)
   at org.apache.wicket.Component.readObject(Component.java:4470)
   at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   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:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at 
java

Anybody know what is this situation?

2009-05-18 Thread Martin Makundi
Anybody know what is this situation? Wicket 1.4-rc4

>From production:

2009-05-18 16:32:44,316 19598423 [btpool0-112] ERROR RequestCycle  -
cannot assign instance of com.application.MainPage to field
wicket.quickstart.LoginPage$1.this$0 of type
wicket.quickstart.LoginPage in instance of
wicket.quickstart.LoginPage$1
java.lang.ClassCastException: cannot assign instance of
com.application.MainPage to field wicket.quickstart.LoginPage$1.this$0
of type wicket.quickstart.LoginPage in instance of
wicket.quickstart.LoginPage$1
   at 
java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2032)
   at 
java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1212)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1953)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   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:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   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:1947)
   at 
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:480)
   at org.apache.wicket.Component.readObject(Component.java:4470)
   at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   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:1947)
   at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   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.

Custom FeedbackPanel in portlets

2009-05-18 Thread Wilhelmsen Tor Iver
I made a FeedbackPanel to apply the Portlet 2.0 CSS classes to relevant 
messages. In my naïvetè I assumed I could just override 
getCSSClass(FeedbackMessage), but that is called both to set a style on the 
 item AND on the contained  element. Is there any reason for this, 
especially since the HTML template has class attributes on both of them and 
thus applies it to both? I ended up making a HTML template leaving out the 
class attribute on the , but still...

(Quoth the source:)

final Component label = 
newMessageDisplayComponent("message", message);
final AttributeModifier levelModifier = new 
AttributeModifier("class", replacementModel);
label.add(levelModifier);
listItem.add(levelModifier);
listItem.add(label);


Med vennlig hilsen

TOR IVER WILHELMSEN
Senior systemutvikler
Arrive AS
T (+47) 48 16 06 18
E-post: toriv...@arrive.no
http://www.arrive.no
http://servicedesk.arrive.no




Re: Spring Security's method security and Wicket

2009-05-18 Thread James Carman
Kent,

You can svn update my wicket-advanced example.  It's got the code in it.

On Mon, May 18, 2009 at 8:24 AM, Kent Larsson  wrote:
> It sounds very interesting! If you would like to share it some day I
> would be curious to know how you did it. Why do you consider it not
> complete if it's not possible to do it any better due to how Wicket
> handles redirectToInterceptPage?
>
> Best regards, Kent
>
>
> On Fri, May 15, 2009 at 7:17 PM, James Carman
>  wrote:
>> On Fri, May 15, 2009 at 8:24 AM, Kent Larsson  wrote:
>>> Sounds like a nicer solution!
>>>
>>> I'll look into doing something like that myself, being a Wicket newbie
>>> it might take me a while though. Are there any examples of doing
>>> anything similar available somewhere?
>>
>> Well, I've got a working solution, but it's not quite complete, IMHO.
>> I've got it redirecting to the login page whenever you try to invoke a
>> @Secured method.  But, once you login, it doesn't exactly go back and
>> try to do what you were trying to do.  It will just take you back to
>> the page where you were trying to do it (a limitation of how Wicket
>> handles the redirectToInterceptPage).  My solution uses an aspect to
>> enforce the @Secured annotations.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Spring Security's method security and Wicket

2009-05-18 Thread Kent Larsson
It sounds very interesting! If you would like to share it some day I
would be curious to know how you did it. Why do you consider it not
complete if it's not possible to do it any better due to how Wicket
handles redirectToInterceptPage?

Best regards, Kent


On Fri, May 15, 2009 at 7:17 PM, James Carman
 wrote:
> On Fri, May 15, 2009 at 8:24 AM, Kent Larsson  wrote:
>> Sounds like a nicer solution!
>>
>> I'll look into doing something like that myself, being a Wicket newbie
>> it might take me a while though. Are there any examples of doing
>> anything similar available somewhere?
>
> Well, I've got a working solution, but it's not quite complete, IMHO.
> I've got it redirecting to the login page whenever you try to invoke a
> @Secured method.  But, once you login, it doesn't exactly go back and
> try to do what you were trying to do.  It will just take you back to
> the page where you were trying to do it (a limitation of how Wicket
> handles the redirectToInterceptPage).  My solution uses an aspect to
> enforce the @Secured annotations.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Bookmarkable fallback ajax link

2009-05-18 Thread John Patterson

I guess, like you say, it would not be so useful.  I was thinking that when
googlebot reads the link and comes back to index the page a week later it
would not get a Page Expired message if the link was bookmarkable.  But
probably best to only index the original page anyway and provide another way
for google to index the content on a bookmarkable page (without requiring a
session).

Thanks,

John.
 

igor.vaynberg wrote:
> 
> What would you do with an Ajax fallback bookmarkable link? Do what the
> ret of them do and go to another page? That's the only thing bpls are
> goo for.
> 
> -Igor
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Bookmarkable-fallback-ajax-link-tp23558981p23594651.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Bug in RequestUtils.toAbsolutePath?

2009-05-18 Thread Steve Swinsburg

It's available in HttpServletRequest as well.


cheers,
Steve



On 18 May 2009, at 10:37, Martin Makundi wrote:

Ah.. so it is even worse... I need the "http://www.mycompany.com"; - 
part.


**
Martin

2009/5/18 Marat Radchenko :

http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/http/HttpServletRequest.html#getContextPath()

2009/5/18 Martin Makundi :

Just use getServletContextPath on ServletRequest.


I do not want the installation path, I want the request path. The
installation path is localhost:xxx and the request path is
mydomain.com

**
Martin



2009/5/17, Martin Makundi :

That is my question.. whether I am stupid or someone baptized
"toAbsoluteUrl" wrong ;)

I had to devise this:

 public static String getRootURL() {
   StringBuffer requestURL = ((Request) ((WebRequest)
RequestCycle 
.get().getRequest()).getHttpServletRequest()).getRequestURL();
   int cutIndex = requestURL.indexOf("/",  
requestURL.indexOf("//")+2);

   if (0 < cutIndex) {
 return requestURL.substring(0, cutIndex);
   }
   return requestURL.toString();

 }

**
Martin

2009/5/17 Marat Radchenko :
Hmm... are you sure you want to use that method at all? It uses  
given

path as relative to _current reqest path_.
2009/5/17, Martin Makundi :
No, there is no code in RequestUtils that would care about a  
leading

slash ... it will just result in

"http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2//images/Image.png 
"


Note a typo in my previous email, normally it returns:

"http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/images/Image.png 
"

without the double-slash.

**
Martin

2009/5/17 Marat Radchenko :

Maybe RequestUtils.toAbsolutePath("/images/Image.png") (note  
leading slash)?


2009/5/17 Martin Makundi :

Hi!

I have a dynamic image which resides in
"http://www.mydomain.com/images/Image.png"; (the filename  
itself might
vary). In order for the image to be visible in downloaded  
documents,

the path must be absolute.

RequestUtils.toAbsolutePath("images/Imange.png"); works most  
of the
time, except in situations where the user is on a  
bookmarkable page

that has parameters:

http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/Value2

In such situations the
RequestUtils.toAbsolutePath("images/Imange.png") returns:
"http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/Image.png 
"


So it assumes the last parameter value was a page... is this  
a stupid

user bug or a real bug?

**
Martin

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




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




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




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




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




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




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




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




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





smime.p7s
Description: S/MIME cryptographic signature


Re: Bug in RequestUtils.toAbsolutePath?

2009-05-18 Thread Martin Makundi
Ah.. so it is even worse... I need the "http://www.mycompany.com"; -part.

**
Martin

2009/5/18 Marat Radchenko :
> http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/http/HttpServletRequest.html#getContextPath()
>
> 2009/5/18 Martin Makundi :
>>> Just use getServletContextPath on ServletRequest.
>>
>> I do not want the installation path, I want the request path. The
>> installation path is localhost:xxx and the request path is
>> mydomain.com
>>
>> **
>> Martin
>>
>>>
>>> 2009/5/17, Martin Makundi :
 That is my question.. whether I am stupid or someone baptized
  "toAbsoluteUrl" wrong ;)

  I had to devise this:

   public static String getRootURL() {
 StringBuffer requestURL = ((Request) ((WebRequest)
  RequestCycle.get().getRequest()).getHttpServletRequest()).getRequestURL();
 int cutIndex = requestURL.indexOf("/", requestURL.indexOf("//")+2);
 if (0 < cutIndex) {
   return requestURL.substring(0, cutIndex);
 }
 return requestURL.toString();

   }

  **
  Martin

  2009/5/17 Marat Radchenko :
  > Hmm... are you sure you want to use that method at all? It uses given
  > path as relative to _current reqest path_.
  > 2009/5/17, Martin Makundi :
  >> No, there is no code in RequestUtils that would care about a leading
  >>  slash ... it will just result in
  >>
  >>  
 "http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2//images/Image.png";
  >>
  >>  Note a typo in my previous email, normally it returns:
  >>
  >>  
 "http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/images/Image.png";
  >>  without the double-slash.
  >>
  >>  **
  >>  Martin
  >>
  >>  2009/5/17 Marat Radchenko :
  >>
  >> > Maybe RequestUtils.toAbsolutePath("/images/Image.png") (note leading 
 slash)?
  >>  >
  >>  > 2009/5/17 Martin Makundi :
  >>  >> Hi!
  >>  >>
  >>  >> I have a dynamic image which resides in
  >>  >> "http://www.mydomain.com/images/Image.png"; (the filename itself 
 might
  >>  >> vary). In order for the image to be visible in downloaded 
 documents,
  >>  >> the path must be absolute.
  >>  >>
  >>  >> RequestUtils.toAbsolutePath("images/Imange.png"); works most of the
  >>  >> time, except in situations where the user is on a bookmarkable page
  >>  >> that has parameters:
  >>  >>
  >>  >> 
 http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/Value2
  >>  >>
  >>  >> In such situations the
  >>  >> RequestUtils.toAbsolutePath("images/Imange.png") returns:
  >>  >> 
 "http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/Image.png";
  >>  >>
  >>  >> So it assumes the last parameter value was a page... is this a 
 stupid
  >>  >> user bug or a real bug?
  >>  >>
  >>  >> **
  >>  >> Martin
  >>  >>
  >>  >> 
 -
  >>  >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  >>  >> For additional commands, e-mail: users-h...@wicket.apache.org
  >>  >>
  >>  >>
  >>  >
  >>  > 
 -
  >>  > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  >>  > For additional commands, e-mail: users-h...@wicket.apache.org
  >>  >
  >>  >
  >>
  >>  -
  >>  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  >>  For additional commands, e-mail: users-h...@wicket.apache.org
  >>
  >>
  >
  > -
  > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  > For additional commands, e-mail: users-h...@wicket.apache.org
  >
  >

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


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

-
To unsubscrib

Re: Bug in RequestUtils.toAbsolutePath?

2009-05-18 Thread Marat Radchenko
http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/http/HttpServletRequest.html#getContextPath()

2009/5/18 Martin Makundi :
>> Just use getServletContextPath on ServletRequest.
>
> I do not want the installation path, I want the request path. The
> installation path is localhost:xxx and the request path is
> mydomain.com
>
> **
> Martin
>
>>
>> 2009/5/17, Martin Makundi :
>>> That is my question.. whether I am stupid or someone baptized
>>>  "toAbsoluteUrl" wrong ;)
>>>
>>>  I had to devise this:
>>>
>>>   public static String getRootURL() {
>>>     StringBuffer requestURL = ((Request) ((WebRequest)
>>>  RequestCycle.get().getRequest()).getHttpServletRequest()).getRequestURL();
>>>     int cutIndex = requestURL.indexOf("/", requestURL.indexOf("//")+2);
>>>     if (0 < cutIndex) {
>>>       return requestURL.substring(0, cutIndex);
>>>     }
>>>     return requestURL.toString();
>>>
>>>   }
>>>
>>>  **
>>>  Martin
>>>
>>>  2009/5/17 Marat Radchenko :
>>>  > Hmm... are you sure you want to use that method at all? It uses given
>>>  > path as relative to _current reqest path_.
>>>  > 2009/5/17, Martin Makundi :
>>>  >> No, there is no code in RequestUtils that would care about a leading
>>>  >>  slash ... it will just result in
>>>  >>
>>>  >>  
>>> "http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2//images/Image.png";
>>>  >>
>>>  >>  Note a typo in my previous email, normally it returns:
>>>  >>
>>>  >>  
>>> "http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/images/Image.png";
>>>  >>  without the double-slash.
>>>  >>
>>>  >>  **
>>>  >>  Martin
>>>  >>
>>>  >>  2009/5/17 Marat Radchenko :
>>>  >>
>>>  >> > Maybe RequestUtils.toAbsolutePath("/images/Image.png") (note leading 
>>> slash)?
>>>  >>  >
>>>  >>  > 2009/5/17 Martin Makundi :
>>>  >>  >> Hi!
>>>  >>  >>
>>>  >>  >> I have a dynamic image which resides in
>>>  >>  >> "http://www.mydomain.com/images/Image.png"; (the filename itself 
>>> might
>>>  >>  >> vary). In order for the image to be visible in downloaded documents,
>>>  >>  >> the path must be absolute.
>>>  >>  >>
>>>  >>  >> RequestUtils.toAbsolutePath("images/Imange.png"); works most of the
>>>  >>  >> time, except in situations where the user is on a bookmarkable page
>>>  >>  >> that has parameters:
>>>  >>  >>
>>>  >>  >> 
>>> http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/Value2
>>>  >>  >>
>>>  >>  >> In such situations the
>>>  >>  >> RequestUtils.toAbsolutePath("images/Imange.png") returns:
>>>  >>  >> 
>>> "http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/Image.png";
>>>  >>  >>
>>>  >>  >> So it assumes the last parameter value was a page... is this a 
>>> stupid
>>>  >>  >> user bug or a real bug?
>>>  >>  >>
>>>  >>  >> **
>>>  >>  >> Martin
>>>  >>  >>
>>>  >>  >> 
>>> -
>>>  >>  >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>  >>  >> For additional commands, e-mail: users-h...@wicket.apache.org
>>>  >>  >>
>>>  >>  >>
>>>  >>  >
>>>  >>  > -
>>>  >>  > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>  >>  > For additional commands, e-mail: users-h...@wicket.apache.org
>>>  >>  >
>>>  >>  >
>>>  >>
>>>  >>  -
>>>  >>  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>  >>  For additional commands, e-mail: users-h...@wicket.apache.org
>>>  >>
>>>  >>
>>>  >
>>>  > -
>>>  > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>  > For additional commands, e-mail: users-h...@wicket.apache.org
>>>  >
>>>  >
>>>
>>>  -
>>>  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>  For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Bug in RequestUtils.toAbsolutePath?

2009-05-18 Thread Martin Makundi
> Just use getServletContextPath on ServletRequest.

I do not want the installation path, I want the request path. The
installation path is localhost:xxx and the request path is
mydomain.com

**
Martin

>
> 2009/5/17, Martin Makundi :
>> That is my question.. whether I am stupid or someone baptized
>>  "toAbsoluteUrl" wrong ;)
>>
>>  I had to devise this:
>>
>>   public static String getRootURL() {
>> StringBuffer requestURL = ((Request) ((WebRequest)
>>  RequestCycle.get().getRequest()).getHttpServletRequest()).getRequestURL();
>> int cutIndex = requestURL.indexOf("/", requestURL.indexOf("//")+2);
>> if (0 < cutIndex) {
>>   return requestURL.substring(0, cutIndex);
>> }
>> return requestURL.toString();
>>
>>   }
>>
>>  **
>>  Martin
>>
>>  2009/5/17 Marat Radchenko :
>>  > Hmm... are you sure you want to use that method at all? It uses given
>>  > path as relative to _current reqest path_.
>>  > 2009/5/17, Martin Makundi :
>>  >> No, there is no code in RequestUtils that would care about a leading
>>  >>  slash ... it will just result in
>>  >>
>>  >>  
>> "http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2//images/Image.png";
>>  >>
>>  >>  Note a typo in my previous email, normally it returns:
>>  >>
>>  >>  
>> "http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/images/Image.png";
>>  >>  without the double-slash.
>>  >>
>>  >>  **
>>  >>  Martin
>>  >>
>>  >>  2009/5/17 Marat Radchenko :
>>  >>
>>  >> > Maybe RequestUtils.toAbsolutePath("/images/Image.png") (note leading 
>> slash)?
>>  >>  >
>>  >>  > 2009/5/17 Martin Makundi :
>>  >>  >> Hi!
>>  >>  >>
>>  >>  >> I have a dynamic image which resides in
>>  >>  >> "http://www.mydomain.com/images/Image.png"; (the filename itself might
>>  >>  >> vary). In order for the image to be visible in downloaded documents,
>>  >>  >> the path must be absolute.
>>  >>  >>
>>  >>  >> RequestUtils.toAbsolutePath("images/Imange.png"); works most of the
>>  >>  >> time, except in situations where the user is on a bookmarkable page
>>  >>  >> that has parameters:
>>  >>  >>
>>  >>  >> 
>> http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/Value2
>>  >>  >>
>>  >>  >> In such situations the
>>  >>  >> RequestUtils.toAbsolutePath("images/Imange.png") returns:
>>  >>  >> 
>> "http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/Image.png";
>>  >>  >>
>>  >>  >> So it assumes the last parameter value was a page... is this a stupid
>>  >>  >> user bug or a real bug?
>>  >>  >>
>>  >>  >> **
>>  >>  >> Martin
>>  >>  >>
>>  >>  >> -
>>  >>  >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>  >>  >> For additional commands, e-mail: users-h...@wicket.apache.org
>>  >>  >>
>>  >>  >>
>>  >>  >
>>  >>  > -
>>  >>  > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>  >>  > For additional commands, e-mail: users-h...@wicket.apache.org
>>  >>  >
>>  >>  >
>>  >>
>>  >>  -
>>  >>  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>  >>  For additional commands, e-mail: users-h...@wicket.apache.org
>>  >>
>>  >>
>>  >
>>  > -
>>  > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>  > For additional commands, e-mail: users-h...@wicket.apache.org
>>  >
>>  >
>>
>>  -
>>  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>  For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: How to get ride of page's state?

2009-05-18 Thread HHB

My problem is that I have a page with two major components:
A refreshing view that lists groups
An AjaxFallbackDefaultDataTable that lists the contacts that belong to a
group upon clicking on the group name.
The user could navigate to another page a delete a group and if he returned
to the page that lists contacts and if his last group of choice to be shown
is now deleted, I got NullPointerException.
This is why I want to get ride of the page's state.
Do you have another and a better solution to my case?
BTW, how to make a page stateless?
Thanks.


Marat Radchenko-2 wrote:
> 
> Make it stateless :)
> 
> 2009/5/18 HHB :
>> Hey,
>> How to get ride of the page's state after the request is done?
>> Thanks.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-ride-of-page%27s-state--tp23593406p23593715.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: lazily loaded table structure?

2009-05-18 Thread sander v F
for client-side ordering of the items you should take a look at JQuery.
There is a tablesorter plugin (http://tablesorter.com/docs/) that looks easy
and helpful.




2009/5/15 Jan Torben Heuer 

> Hi,
>
> I want to display a table structure, however the data retrieving takes a
> certain time. Currently I use the AjaxLazyLoadPanel to display all results
> at once.
>
> But in future I'd like to to immediately display it on the page when it is
> retrieved. So I need some kind of table where I can add rows via Ajax *AND*
> reorder the items (because they are not retrieved in the final order).
>
> Do you know of any components that can be helpful for this task?
>
>
> Thanks,
>
> Jan
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Modifying LinkTree

2009-05-18 Thread Brambut

If you dont want to render one of the component as a link, use
object.setRenderBodyOnly(true);
This will make the component a text only and removed the tag.

-- 
View this message in context: 
http://www.nabble.com/Modifying-LinkTree-tp23414434p23593505.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: How to get ride of page's state?

2009-05-18 Thread Marat Radchenko
Make it stateless :)

2009/5/18 HHB :
> Hey,
> How to get ride of the page's state after the request is done?
> Thanks.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



How to get ride of page's state?

2009-05-18 Thread HHB
Hey,
How to get ride of the page's state after the request is done?
Thanks.


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



Re: Component creation and initialization

2009-05-18 Thread James Carman
On Sun, May 17, 2009 at 6:17 PM, Igor Vaynberg  wrote:
> IOC works fine if you use constructor injection :) which is what you
> should use. the only reason people may prefer setter injection is that
> configuration looks nicer.

And, when circular dependencies won't allow you to use
constructor-based injection (only an issue with "class-based"
proxies).

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



Re: How To Call A Method When Browser Is Closed

2009-05-18 Thread Carlo Camerino
um,
sory i didn't get it,
what do i have to register, the page itself? what's pinh (sorry)
So i create a map and then i create a scheduled thread?

So that thread has to constantly poll the map?
is there a method in the page that I can use for this?

On Mon, May 18, 2009 at 2:30 PM, Igor Vaynberg  wrote:
> You can have each page register pinh into an application scoped map.
> Then have a thread checking for timeouts.
>
> -Igor
>
> On Sunday, May 17, 2009, Carlo M. Camerino  wrote:
>> ya we've done something sort of similar to this one before but
>> it kinda behaves differently on different browsers. Plus issues when the 
>> user presses refresh also arises.
>>
>> I was wondering if there was anything server side that can do this ?
>> Can comet implement this?
>>
>> - Original Message -
>> From: "Jeremy Thomerson" 
>> To: users@wicket.apache.org
>> Sent: Monday, May 18, 2009 11:35:28 AM GMT +08:00 Beijing / Chongqing / Hong 
>> Kong / Urumqi
>> Subject: Re: How To Call A Method When Browser Is Closed
>>
>> You could try binding to window onUnload event but I think there are
>> limitations as to what you can do within that and it may not always be
>> called.
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Sun, May 17, 2009 at 10:32 PM, Carlo M. Camerino
>>  wrote:
>>> Hi,
>>>
>>> I was just wondering if any of you have implemented this in your wicket 
>>> applications already.
>>> Have you tried calling a logout method when the user closed the browser?
>>> One of the things that I could do is to provide a timeout listener but it 
>>> would have to wait for the expiration time to happen.
>>>
>>> What I would like to happen is this:
>>>
>>> User A logins to the application
>>> User A has a session already and accesses some parts of the application.
>>> User A closes the firefox browser.
>>>
>>> Upon closing browser, the application automatically logouts User A and 
>>> destroys server side session.
>>>
>>>
>>> Thanks
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: How do you get a custom FormComponent to "remember" erroneous values?

2009-05-18 Thread Ian MacLarty
On Mon, May 18, 2009 at 4:38 PM, Igor Vaynberg  wrote:
> In onbeforerender you should init the modelobkect not the model.
>
> But in your simple case you dont even need onbrforwrender, instead:
> new textfield(..., new propertymodel(this,"model")). Done.
>

Awesome. Thanks!

Ian.

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



Re: shorter input names

2009-05-18 Thread Ian MacLarty
On Mon, May 18, 2009 at 4:44 PM, Jan Kriesten
 wrote:
>
> Hi Ian,
>
>> Thanks for that.  For your solution to work it looks like wicket would
>> need to only call getInputName at most once for each input (since
>> subsequent calls would return different names).  Is that how it works?
>
> no, within the trait I override the 'def getInputName' from Wicket with a 'val
> getInputName' - i.e. even when Wicket is calling it more than once it is still
> only evaluated once. That's another nice thing Scala provides... :-)
>

Ah!  Thanks for clarifying that.

Ian.

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



Re: SV: Component creation and initialization

2009-05-18 Thread Vladimir K

>From my perspective the isVisible() case deserves generification. I know that
there is a task for Wicket 1.5. I mean after that we should write an article
in Wiki.


Wilhelmsen Tor Iver wrote:
> 
> Overriding methods like isVisible() is also a form of
> "hack" to postpone a property value to a later time (basically the
> component stops having a "real" property called visible since the setter
> modifies a variable that the getter does not care about).
> 

-- 
View this message in context: 
http://www.nabble.com/Component-creation-and-initialization-tp23545666p23592389.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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