Re: InlineFrame: IPageLink object looses reference to page after deserialiations

2009-01-26 Thread Ittay Dror

After some debugging, the reason is that Page#writeReplace replaces the page
with a PageHolder regardless of whether the page is marked as non-stateless
(I call setStatelessHint(false) in the ctor). 

Isn't this a bug?

Ittay

Ittay Dror wrote:
 
 Hi,
 
 I'm trying to use the InlineFrame component. I create an IPageLink 
 object to it. The object holds a reference to a page.
 
 By placing breakpoints, I can see that the IPageLink object is created 
 once.
 
 InlineFrame#onLinkClicked is called twice. On the first time, the page 
 reference is fine. The second time the IPageLink is of a different 
 object and the page reference it is null.  My guess is that the second 
 time is after deserialization of the page. But why is the reference null?
 
 I'm working in an osgi environment with pax-wicket.
 
 Thank you,
 Ittay
 
 -- 
 --
 Ittay
 
 
 
 -
 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/InlineFrame%3A-IPageLink-object-looses-reference-to-page-after-deserialiations-tp21661515p21662059.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



Off Topic - Serialization, Guice and FindBugs

2009-01-26 Thread Steve Flasby

Chaps, I have installed FindBugs and it complains about code fragments
like:

@Inject
private PortfolioService mPortfolioService;

in my Page classes, telling me:
[M B Se] Non-transient non-serializable instance field in serializable 
class [SE_BAD_FIELD]


The value is injected by Guice and, as far as I understand, ends up
being a serializable proxy. I like to have no warnings in my code
so I'd like to do something about this.


So, 2 question:
1 - am I right in thinking that the injected proxy is serializable?
2 - is there something I can do to prevent the warning?

Hope someone can help.

Cheers - Steve

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



Re: Re: Access last page

2009-01-26 Thread sven



I thought AbstractPageStore handle this automagically?






Sven



- Ursprüngliche Nachricht -
Von: Johan Compagner
Gesendet: 25.01.09 21:51 Uhr
An: users@wicket.apache.org
Betreff: Re: Access last page


You should hold that info yourself
Not the page itself but just the id and the version number (and pagemap)

Then through session.get(x,y,z) you can get the page

On 25/01/2009, Per Newgro per.new...@gmx.ch wrote:

 Hi,

 can i easily access the page from which another page is called? I would
 like to share the navigational infos of one page with the next page.
 That should be achieved by pulling the NaviModel of the last page (if
 present).
 If i debug i can see that there is a pagemap - (SecondLevel) which
 is containing the appropriate page. But i can not find any access to
 this attribute.

 Is there a way?

 Thanks
 Per





Re: London Wicket Event - 4th February @ Google

2009-01-26 Thread jWeekend

We already have some 35 registered guests (29 confirmed) for our next London
Wicket Event on the evening of February 4th, at Google (close to Victoria
station). We have space for 15 more so if you are interested in coming 
http://jweekend.com/dev/LWUGReg/ register  soon and remember to confirm your
place.

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 


jWeekend wrote:
 
 Our next London Wicket Event will be on the evening of Wednesday, February
 4th, at Google. 
 This time we have presentations lined-up from three experienced
 Java/Wicket developers who have been experimenting with Scala and Wicket,
 just for fun, and, in some cases, on commercial development projects (yes,
 there are already Wicket applications built using Scala out there).
 Al's presentation is called Abstraction - you know what to expect!
 Al and I will also run a more concrete, general Wicket QA to wrap things
 up as usual.
 
 We'll be getting in some hot Pizza for around 18:15 and then:
 *  http://www.jWeekend.com Cemal Bayramoglu :  Welcome/Introduction
 *  http://www.stuq.nl Daan van Etten : Basic Introduction to Scala
 With Wicket
 * Dean Phersson-Chapman: Experiences Converting an Existing Wicket
 Application To Scala
 *  http://www.footprint.de Jan Kriesten : Real World Scala and Wicket
 *  http://herebebeasties.com/ Al Maw : ABSTRACTION!
 * Al Maw  Cemal Bayramoglu: General Wicket QA 
 If you're not in a rush to get away join us for the customary visit to a
 local pub straight after the QA.
 
 We're lucky to attract a very good crowd and they say really nice things
 about our events, so if you've never been, you'd most likely enjoy the
 experience.
 
 Full details and registration are at  
 http://www.jweekend.co.uk/dev/LWUGReg/ at the usual place . Register early
 and don't forget to confirm (or cancel) your registration using the link
 in the automated email. 
 
 We'd like to thank Google for generously continuing to host our events.
 
 Regards - Cemal
  http://www.jWeekend.co.uk jWeekend 
 

-- 
View this message in context: 
http://www.nabble.com/London-Wicket-Event---4th-February-%40-Google-tp21428590p21663404.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



Wicket placeholder for tr component causing invalid markup

2009-01-26 Thread the_adam

If we have a component with a corresponding markup tag tr and want to hide
it and display placeholder tag via Component#setOutputMarkupPlaceholderTag
the resulting markup will be:

tr style=display: none; id=componentId/

However this is not a valid markup. The proper markup would be:

tr style=display: none; id=componentIdtd span=x/tr where x is
the number of columns. Obviously wicket won't know how many columns there
are so one would have to set that explicitly.

Are you planning to anyhow address this issue, i.e. provide a different
placeholder method (maybe
WebMarkupContainer#setOutputRowPlaceholderTag(boolean, short)) or is the
only way of solving this to manually swap component-to-display with custom
placeholder component?
-- 
View this message in context: 
http://www.nabble.com/Wicket-placeholder-for-%3Ctr%3E-component-causing-invalid-markup-tp21663544p21663544.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: Getting an error when trying to install via Maven

2009-01-26 Thread Michael Sparer

Looks like you're mixing up different wicket versions. wicket.Initializer was
before the move to apache. Check your pom if you're using different wicket
versions - or perform a clean if you did an update recently

hth, 
Michael


HHB wrote:
 
 Hey,
 I created a Wicket skeleton project via Maven.
 When trying to install the project, I got this error:
 
 java.lang.ClassCastException: wicket.Initializer cannot be cast to
 org.apache.wicket.IInitializer
   at org.apache.wicket.Application.addInitializer(Application.java:755)
   at org.apache.wicket.Application.load(Application.java:829)
   at
 org.apache.wicket.Application.initializeComponents(Application.java:608)
   at
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:575)
   at
 org.apache.wicket.protocol.http.MockWebApplication.init(MockWebApplication.java:157)
   at
 org.apache.wicket.util.tester.BaseWicketTester.init(BaseWicketTester.java:204)
   at
 org.apache.wicket.util.tester.WicketTester.init(WicketTester.java:308)
   at
 org.apache.wicket.util.tester.WicketTester.init(WicketTester.java:291)
   at com.eldorado.TestHomePage.setUp(TestHomePage.java:15)
   at junit.framework.TestCase.runBare(TestCase.java:125)
   at junit.framework.TestResult$1.protect(TestResult.java:106)
   at junit.framework.TestResult.runProtected(TestResult.java:124)
   at junit.framework.TestResult.run(TestResult.java:109)
   at junit.framework.TestCase.run(TestCase.java:118)
   at junit.framework.TestSuite.runTest(TestSuite.java:208)
   at junit.framework.TestSuite.run(TestSuite.java:203)
   at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
   at
 org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:155)
   at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
   at
 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
   at
 org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
 ... Removed 18 stack frames
 
 Please note, that I didn't code anything at all, I just tried to test the
 basic skeleton.
 Is this error intentional or something is going wrong?
 Thanks. 
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Getting-an-error-when-trying-to-install-via-Maven-tp21651202p21663793.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: Wicket placeholder for tr component causing invalid markup

2009-01-26 Thread Sébastien Piller

Hi,

I'm pretty sure what you need is wicket:enclosure [1] instead

[1] http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html


the_adam wrote:

If we have a component with a corresponding markup tag tr and want to hide
it and display placeholder tag via Component#setOutputMarkupPlaceholderTag
the resulting markup will be:

tr style=display: none; id=componentId/

However this is not a valid markup. The proper markup would be:

tr style=display: none; id=componentIdtd span=x/tr where x is
the number of columns. Obviously wicket won't know how many columns there
are so one would have to set that explicitly.

Are you planning to anyhow address this issue, i.e. provide a different
placeholder method (maybe
WebMarkupContainer#setOutputRowPlaceholderTag(boolean, short)) or is the
only way of solving this to manually swap component-to-display with custom
placeholder component?
  



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



Re: Getting an error when trying to install via Maven

2009-01-26 Thread HHB

I'm trying to create a Wicket 1.3.5 project.
I add the following dependencies:
dependency
groupIdwicket/groupId
artifactIdwicket-spring-annot/artifactId
version1.2.7/version
/dependency
dependency
groupIdwicket/groupId
artifactIdwicket-spring/artifactId
version1.2.7/version
/dependency
dependency
groupIdwicket/groupId
artifactIdwicket-auth-roles/artifactId
version1.2.7/version
/dependency 
Which it is obvious not compatible with 1.3.5
I solved the issue, now, Thanks.


Michael Sparer wrote:
 
 Looks like you're mixing up different wicket versions. wicket.Initializer
 was before the move to apache. Check your pom if you're using different
 wicket versions - or perform a clean if you did an update recently
 
 hth, 
 Michael
 
 
 HHB wrote:
 
 Hey,
 I created a Wicket skeleton project via Maven.
 When trying to install the project, I got this error:
 
 java.lang.ClassCastException: wicket.Initializer cannot be cast to
 org.apache.wicket.IInitializer
  at org.apache.wicket.Application.addInitializer(Application.java:755)
  at org.apache.wicket.Application.load(Application.java:829)
  at
 org.apache.wicket.Application.initializeComponents(Application.java:608)
  at
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:575)
  at
 org.apache.wicket.protocol.http.MockWebApplication.init(MockWebApplication.java:157)
  at
 org.apache.wicket.util.tester.BaseWicketTester.init(BaseWicketTester.java:204)
  at
 org.apache.wicket.util.tester.WicketTester.init(WicketTester.java:308)
  at
 org.apache.wicket.util.tester.WicketTester.init(WicketTester.java:291)
  at com.eldorado.TestHomePage.setUp(TestHomePage.java:15)
  at junit.framework.TestCase.runBare(TestCase.java:125)
  at junit.framework.TestResult$1.protect(TestResult.java:106)
  at junit.framework.TestResult.runProtected(TestResult.java:124)
  at junit.framework.TestResult.run(TestResult.java:109)
  at junit.framework.TestCase.run(TestCase.java:118)
  at junit.framework.TestSuite.runTest(TestSuite.java:208)
  at junit.framework.TestSuite.run(TestSuite.java:203)
  at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
  at
 org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:155)
  at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
  at
 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
  at
 org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
 ... Removed 18 stack frames
 
 Please note, that I didn't code anything at all, I just tried to test the
 basic skeleton.
 Is this error intentional or something is going wrong?
 Thanks. 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Getting-an-error-when-trying-to-install-via-Maven-tp21651202p21664185.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: Getting an error when trying to install via Maven

2009-01-26 Thread HHB

I'm trying to create a Wicket 1.3.5 project.
I add the following dependencies:
dependency
groupIdwicket/groupId
artifactIdwicket-spring-annot/artifactId
version1.2.7/version
/dependency
dependency
groupIdwicket/groupId
artifactIdwicket-spring/artifactId
version1.2.7/version
/dependency
dependency
groupIdwicket/groupId
artifactIdwicket-auth-roles/artifactId
version1.2.7/version
/dependency 
Which it is obvious not compatible with 1.3.5
I solved the issue, now, Thanks.


Michael Sparer wrote:
 
 Looks like you're mixing up different wicket versions. wicket.Initializer
 was before the move to apache. Check your pom if you're using different
 wicket versions - or perform a clean if you did an update recently
 
 hth, 
 Michael
 
 
 HHB wrote:
 
 Hey,
 I created a Wicket skeleton project via Maven.
 When trying to install the project, I got this error:
 
 java.lang.ClassCastException: wicket.Initializer cannot be cast to
 org.apache.wicket.IInitializer
  at org.apache.wicket.Application.addInitializer(Application.java:755)
  at org.apache.wicket.Application.load(Application.java:829)
  at
 org.apache.wicket.Application.initializeComponents(Application.java:608)
  at
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:575)
  at
 org.apache.wicket.protocol.http.MockWebApplication.init(MockWebApplication.java:157)
  at
 org.apache.wicket.util.tester.BaseWicketTester.init(BaseWicketTester.java:204)
  at
 org.apache.wicket.util.tester.WicketTester.init(WicketTester.java:308)
  at
 org.apache.wicket.util.tester.WicketTester.init(WicketTester.java:291)
  at com.eldorado.TestHomePage.setUp(TestHomePage.java:15)
  at junit.framework.TestCase.runBare(TestCase.java:125)
  at junit.framework.TestResult$1.protect(TestResult.java:106)
  at junit.framework.TestResult.runProtected(TestResult.java:124)
  at junit.framework.TestResult.run(TestResult.java:109)
  at junit.framework.TestCase.run(TestCase.java:118)
  at junit.framework.TestSuite.runTest(TestSuite.java:208)
  at junit.framework.TestSuite.run(TestSuite.java:203)
  at
 org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
  at
 org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:155)
  at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
  at
 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
  at
 org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
 ... Removed 18 stack frames
 
 Please note, that I didn't code anything at all, I just tried to test the
 basic skeleton.
 Is this error intentional or something is going wrong?
 Thanks. 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Getting-an-error-when-trying-to-install-via-Maven-tp21651202p21664193.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: Wicket placeholder for tr component causing invalid markup

2009-01-26 Thread the_adam


Pills wrote:
 
 I'm pretty sure what you need is wicket:enclosure [1] instead
 

That would be the case if I've wanted to hide certain rows forever, unless
I'm largely mistaken. I want to be able to switch the visibility of certain
table rows and since Wicket's AJAX works by replacing given DOM elements
with parts of the DOM tree from the response I need a placeholder to be
there, which is exactly opposite of what wicket:enclosure tag is for.

However maybe there is a away for inserting a node AFTER the given node or
as the last element of the parent's node in Wicket without writing my own
behaviours? Implementing this would definitely be worth considering.
-- 
View this message in context: 
http://www.nabble.com/Wicket-placeholder-for-%3Ctr%3E-component-causing-invalid-markup-tp21663544p21664382.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: Wicket placeholder for tr component causing invalid markup

2009-01-26 Thread Thies Edeling

the_adam wrote:

Pills wrote:
  

I'm pretty sure what you need is wicket:enclosure [1] instead



That would be the case if I've wanted to hide certain rows forever, unless
I'm largely mistaken. I want to be able to switch the visibility of certain
table rows and since Wicket's AJAX works by replacing given DOM elements
with parts of the DOM tree from the response I need a placeholder to be
there, which is exactly opposite of what wicket:enclosure tag is for.

  

That's exactly what wicket:enclosure does; otherwise you'd have to wrap the
row in a WebMarkupContainer to keep a reference in the DOM.


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



Re: Wicket placeholder for tr component causing invalid markup

2009-01-26 Thread the_adam


Thies Edeling-2 wrote:
 
 That's exactly what wicket:enclosure does; otherwise you'd have to wrap
 the
 row in a WebMarkupContainer to keep a reference in the DOM.
 

I know the benefits of wicket:enclosure. What I need, however is a
placeholder, which is what wicket:enclosure doesn't provide (instead it
removes it's entire body along with self when the specified child is not
visible). This makes it impossible to show a component after the page has
been rendered without it. The whole problem is even explicily stated on the
page that Pills linked to:

Note: Changing the visibility of a child component in Ajax callback method
will not affect the entire enclosure but just the child component itself.
This is because only the child component is added
to the AjaxRequestTarget. - though as far as I know even this is misleading
since you can't show even a child of something that is not visible.

Feel free to prove me wrong on this, but to shut down the subject of
wicket:enclosure regarding my case, I am rendering more than one row using a
repeater (repeater's body is the tr) and I want to be able to AJAXly switch
the visibility of some of those on and off. This excludes wicket:enclosure
from possible solutions.

If the problem I'm facing isn't clearing enough let me know, I will try to
rephrase. 
-- 
View this message in context: 
http://www.nabble.com/Wicket-placeholder-for-%3Ctr%3E-component-causing-invalid-markup-tp21663544p21665137.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: Off Topic - Serialization, Guice and FindBugs

2009-01-26 Thread Martin Grigorov
El lun, 26-01-2009 a las 09:56 +0100, Steve Flasby escribió:
 Chaps, I have installed FindBugs and it complains about code fragments
 like:
 
   @Inject
   private PortfolioService mPortfolioService;
 
 in my Page classes, telling me:
 [M B Se] Non-transient non-serializable instance field in serializable 
 class [SE_BAD_FIELD]
 
 The value is injected by Guice and, as far as I understand, ends up
 being a serializable proxy. I like to have no warnings in my code
 so I'd like to do something about this.
 
 
 So, 2 question:
 1 - am I right in thinking that the injected proxy is serializable?
Correct!
 2 - is there something I can do to prevent the warning?
FindBugs provides meanings how to disable/modify its checks. 
So you could extend this particular check and if the field is annotated
then don't report warning.
Read their docs for more info. 
 
 Hope someone can help.
 
 Cheers - Steve
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


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



Re: Wicket placeholder for tr component causing invalid markup

2009-01-26 Thread Jeremy Thomerson
The problem you're facing is clear - and you're right - wicket:enclosure
won't work for you.  Unfortunately, that closed-tag code for the placeholder
is hard-coded in Component.

Hmmm  Could you instead have a wrapping component inside of your TR and
use that for the visibility swap?  That's the only thing I can think of at
this point.  Or don't use TR - use div's, etc, which may only work depending
on what you're trying to do, and not for grid-style display.

Sorry I couldn't be more help here.

On Mon, Jan 26, 2009 at 7:08 AM, the_adam adam.parchimow...@gmail.comwrote:



 Thies Edeling-2 wrote:
 
  That's exactly what wicket:enclosure does; otherwise you'd have to wrap
  the
  row in a WebMarkupContainer to keep a reference in the DOM.
 

 I know the benefits of wicket:enclosure. What I need, however is a
 placeholder, which is what wicket:enclosure doesn't provide (instead it
 removes it's entire body along with self when the specified child is not
 visible). This makes it impossible to show a component after the page has
 been rendered without it. The whole problem is even explicily stated on the
 page that Pills linked to:

 Note: Changing the visibility of a child component in Ajax callback method
 will not affect the entire enclosure but just the child component itself.
 This is because only the child component is added
 to the AjaxRequestTarget. - though as far as I know even this is
 misleading
 since you can't show even a child of something that is not visible.

 Feel free to prove me wrong on this, but to shut down the subject of
 wicket:enclosure regarding my case, I am rendering more than one row using
 a
 repeater (repeater's body is the tr) and I want to be able to AJAXly switch
 the visibility of some of those on and off. This excludes wicket:enclosure
 from possible solutions.

 If the problem I'm facing isn't clearing enough let me know, I will try to
 rephrase.
 --
 View this message in context:
 http://www.nabble.com/Wicket-placeholder-for-%3Ctr%3E-component-causing-invalid-markup-tp21663544p21665137.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




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


Example for presenting pdf in modal window

2009-01-26 Thread Newgro

Hi *,

i've read alot on this topic. But i couldn't find a complete example so far.
Here is what i do so far:

In a page i have a modal window defined:

final ModalWindow mwCapacitySchemeMonitor = new
ModalWindow(CMP_CAPACITY_SCHEME_MONITOR);
mwCapacitySchemeMonitor.setPageMapName(CMP_CAPACITY_SCHEME_MONITOR + -1);
mwCapacitySchemeMonitor.setCookieName(CMP_CAPACITY_SCHEME_MONITOR + -1);
mwCapacitySchemeMonitor.setPageCreator(new ModalWindow.PageCreator() {
  public Page createPage() {
return new CapacitySchemePage();
  }
});
pForm.add(mwCapacitySchemeMonitor);

A link is calling the window:
add(new AjaxLink(CMP_CAPACITY_SCHEME_LINK) {
  public void onClick(AjaxRequestTarget pTarget) {
mwCapacitySchemeMonitor.show(pTarget);
  }
}.add(new Label(CMP_CAPACITY_SCHEME_LABEL, new
ResourceModel(CMP_CAPACITY_SCHEME_LABEL;

And the page looks like this:
public CapacitySchemePage() {
  super();
  add(new Label(title, new ResourceModel(title)));
  add(new ResourceLink(lnkCapacityScheme, new DynamicWebResource() {
protected void setHeaders(WebResponse pResponse) {
  super.setHeaders(pResponse);
}
protected ResourceState getResourceState() {
  return new ResourceState() {
public String getContentType() {
  return application/pdf;
}
public byte[] getData() {
  IResourceStream resourceStream = new
PackageResourceStream(CapacitySchemePage.class, 
res/capacityScheme.pdf);
  ByteArrayOutputStream b = new ByteArrayOutputStream();
  int i = -1;
  try {
 while ((i = resourceStream.getInputStream().read()) != -1) {
   b.write(i);
 }
   } catch (IOException e) {
 throw new WicketRuntimeException(e);
   } catch (ResourceStreamNotFoundException e) {
 throw new WicketRuntimeException(e);
   }
   return b.toByteArray();
 }
  };
}
  }));
}

The problem is that i only see the pdf after clicking the ResourceLink
lnkCapacityScheme.
But i would like to achieve that the pdf is display immidiatly after the
window is opened.

How can i achieve that? A code snipped is welcome.

Thanks
Per

-- 
View this message in context: 
http://www.nabble.com/Example-for-presenting-pdf-in-modal-window-tp21666757p21666757.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



tinymce settings

2009-01-26 Thread Swanthe Lindgren

Hello to you all
Im trying to use the tinymce behavior to get a nice editor. On one page 
I want a read-only tinymce, but how do I configure its settings?


Is this anywhere near?

TinyMCESettings mceSettings = new TinyMCESettings(Theme.simple);
mceSettings.addCustomSetting(readonly:true);
mceSettings.addCustomSetting(theme_advanced_resizing : true);
  
add(new TextAreaString(message, new PropertyModelString(obj, 
body)).add(new TinyMceBehavior(mceSettings)));


//Swanthe


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



Re: Wicket placeholder for tr component causing invalid markup

2009-01-26 Thread the_adam


Jeremy Thomerson-5 wrote:
 
 The problem you're facing is clear - and you're right - wicket:enclosure
 won't work for you.  Unfortunately, that closed-tag code for the
 placeholder
 is hard-coded in Component.
 

Thanks for understanding :) Also, I've looked already in the Component
source and I realise that it can't be done as is, hence the thread.


Jeremy Thomerson-5 wrote:
 
 Hmmm  Could you instead have a wrapping component inside of your TR
 and
 use that for the visibility swap?  (...) Or don't use TR - use div's (...)
 

The wrapping component would be a solution, but it's rather an ugly
workaround and a code-expensive one (as of trading invocation of chainable
method for an additional container AND manual setting of a td colspan
property AND explicit visibility linking).

I might have opened this thread in a wrong group - I was thinking about a
possibility of reimplementing the placeholder generation fragment of
Component#render(MarkupStream) method. Right now it is hardcoded into the
method and invoked if flag FLAG_PLACEHOLDER has been set to true. It could
delegate the generation to a different method which wouldn't be final. I can
think of a few solutions, but since we've settled that my problem won't be
solved in a clean way with the current state of Wicket I will move this
discussion to developers group.
-- 
View this message in context: 
http://www.nabble.com/Wicket-placeholder-for-%3Ctr%3E-component-causing-invalid-markup-tp21663544p21667320.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: Wicket placeholder for tr component causing invalid markup

2009-01-26 Thread Jeremy Thomerson
I agree 100% - that's the only clean solution I see.

On Mon, Jan 26, 2009 at 9:25 AM, the_adam adam.parchimow...@gmail.comwrote:



 Jeremy Thomerson-5 wrote:
 
  The problem you're facing is clear - and you're right - wicket:enclosure
  won't work for you.  Unfortunately, that closed-tag code for the
  placeholder
  is hard-coded in Component.
 

 Thanks for understanding :) Also, I've looked already in the Component
 source and I realise that it can't be done as is, hence the thread.


 Jeremy Thomerson-5 wrote:
 
  Hmmm  Could you instead have a wrapping component inside of your TR
  and
  use that for the visibility swap?  (...) Or don't use TR - use div's
 (...)
 

 The wrapping component would be a solution, but it's rather an ugly
 workaround and a code-expensive one (as of trading invocation of chainable
 method for an additional container AND manual setting of a td colspan
 property AND explicit visibility linking).

 I might have opened this thread in a wrong group - I was thinking about a
 possibility of reimplementing the placeholder generation fragment of
 Component#render(MarkupStream) method. Right now it is hardcoded into the
 method and invoked if flag FLAG_PLACEHOLDER has been set to true. It could
 delegate the generation to a different method which wouldn't be final. I
 can
 think of a few solutions, but since we've settled that my problem won't be
 solved in a clean way with the current state of Wicket I will move this
 discussion to developers group.
 --
 View this message in context:
 http://www.nabble.com/Wicket-placeholder-for-%3Ctr%3E-component-causing-invalid-markup-tp21663544p21667320.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




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


page services

2009-01-26 Thread Ittay Dror

Hi,


What is the proper way to model a registry of services per page 
instance? What I mean is for a component to be able to locate a service 
that is registered with the current page and that affects the GUI.



An example of such a service exists today: the feedback panel. 
Session.get().getFeedbackMessages returns the service that components 
can use to add feedback messages. What I'm is for a way to model a 
similar service. Is Session#getMetaData the way to do it?



Thanks,

Ittay

--
--
Ittay



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



Re: Plain IMG src urls

2009-01-26 Thread Prag

Another solution is to add an IBehavior to the component, and let the
behavior modify the src attribute. This can be can with the
SimpleAttributeModifier:

Image image = new Image(someWicketId);
image.add(new SimpleAttributeModifier(src, http://.jpg;));
add(image);
-- 
View this message in context: 
http://www.nabble.com/Plain-IMG-src-urls-tp21547371p21668078.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: page services

2009-01-26 Thread Igor Vaynberg
there are both session and component-level metadata that will allow
you to store any kind of data you want.

-igor

On Mon, Jan 26, 2009 at 7:29 AM, Ittay Dror ittay.d...@gmail.com wrote:
 Hi,


 What is the proper way to model a registry of services per page instance?
 What I mean is for a component to be able to locate a service that is
 registered with the current page and that affects the GUI.


 An example of such a service exists today: the feedback panel.
 Session.get().getFeedbackMessages returns the service that components can
 use to add feedback messages. What I'm is for a way to model a similar
 service. Is Session#getMetaData the way to do it?


 Thanks,

 Ittay

 --
 --
 Ittay



 -
 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



QuickStart not finding Wicket classes

2009-01-26 Thread Dane Laverty
I've stepped through the Wicket QuickStart process as outlined at
http://wicket.apache.org/quickstart.html . However, when I try to run
the Start class, I get java.lang.ClassNotFoundException:
org.apache.wicket.protocol.http.WicketFilter. I'm not familiar with
Maven, but I can see that the POM has a dependency for
org.apache.wicket, which I had hoped would install the jar. I can
resolve the problem manually by adding the Wicket source files to my
project source, but that leaves me feeling like I'm taking the long way
around what should be a short and simple process. Any suggestions?



Re: QuickStart not finding Wicket classes

2009-01-26 Thread Igor Vaynberg
you need to invoke maven on the project so that it downloads the
dependencies. any of mvn clean compile, mvn eclipse:eclipse, mvn
jetty:run will do it.

-igor

On Mon, Jan 26, 2009 at 9:05 AM, Dane Laverty danelave...@chemeketa.edu wrote:
 I've stepped through the Wicket QuickStart process as outlined at
 http://wicket.apache.org/quickstart.html . However, when I try to run
 the Start class, I get java.lang.ClassNotFoundException:
 org.apache.wicket.protocol.http.WicketFilter. I'm not familiar with
 Maven, but I can see that the POM has a dependency for
 org.apache.wicket, which I had hoped would install the jar. I can
 resolve the problem manually by adding the Wicket source files to my
 project source, but that leaves me feeling like I'm taking the long way
 around what should be a short and simple process. Any suggestions?



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



Re: QuickStart not finding Wicket classes

2009-01-26 Thread Martijn Dashorst
Not sure what you did to come to this, but watching the video here
should enlighten you:

http://herebebeasties.com/2007-10-07/wicket-quickstart/

Martijn

On Mon, Jan 26, 2009 at 6:05 PM, Dane Laverty danelave...@chemeketa.edu wrote:
 I've stepped through the Wicket QuickStart process as outlined at
 http://wicket.apache.org/quickstart.html . However, when I try to run
 the Start class, I get java.lang.ClassNotFoundException:
 org.apache.wicket.protocol.http.WicketFilter. I'm not familiar with
 Maven, but I can see that the POM has a dependency for
 org.apache.wicket, which I had hoped would install the jar. I can
 resolve the problem manually by adding the Wicket source files to my
 project source, but that leaves me feeling like I'm taking the long way
 around what should be a short and simple process. Any suggestions?





-- 
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



Re: QuickStart not finding Wicket classes

2009-01-26 Thread jWeekend

Running the artefact creates your project folder structure (including some
useful and illustrative classes/templates/tests) and the POM.
You need to run some Maven goal (eg eclipse:eclipse, or compile etc) to
retrieve all the required jars into your local repository. See the Use
section (Change into the project directory, then create a WAR file via mvn
package or build the project and run it under Jetty via mvn jetty:run ...)
on the  http://wicket.apache.org/quickstart.html QuickStart page .

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 


danelav wrote:
 
 I've stepped through the Wicket QuickStart process as outlined at
 http://wicket.apache.org/quickstart.html . However, when I try to run
 the Start class, I get java.lang.ClassNotFoundException:
 org.apache.wicket.protocol.http.WicketFilter. I'm not familiar with
 Maven, but I can see that the POM has a dependency for
 org.apache.wicket, which I had hoped would install the jar. I can
 resolve the problem manually by adding the Wicket source files to my
 project source, but that leaves me feeling like I'm taking the long way
 around what should be a short and simple process. Any suggestions?
 
 
 

-- 
View this message in context: 
http://www.nabble.com/QuickStart-not-finding-Wicket-classes-tp21669263p21669684.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: QuickStart not finding Wicket classes

2009-01-26 Thread Dane Laverty
First, Martijn, thank you for your video. I had used your video to get
as far as I did. Second, Igor and Cemal, thank you for your quick
responses. However, I tried running the Maven goals you suggested
(eclipse:eclipse, etc.), but I just end up getting additional errors. To
clarify, I was using the QuickStart with 1.4-SNAPSHOT. Ultimately, I
changed the version to 1.3.5 and it worked. So I guess I'll stick with
that for now.

-Original Message-
From: jWeekend [mailto:jweekend_for...@cabouge.com] 
Sent: Monday, January 26, 2009 9:30 AM
To: users@wicket.apache.org
Subject: Re: QuickStart not finding Wicket classes


Running the artefact creates your project folder structure (including
some
useful and illustrative classes/templates/tests) and the POM.
You need to run some Maven goal (eg eclipse:eclipse, or compile etc) to
retrieve all the required jars into your local repository. See the Use
section (Change into the project directory, then create a WAR file via
mvn
package or build the project and run it under Jetty via mvn jetty:run
...)
on the  http://wicket.apache.org/quickstart.html QuickStart page .

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 


danelav wrote:
 
 I've stepped through the Wicket QuickStart process as outlined at
 http://wicket.apache.org/quickstart.html . However, when I try to run
 the Start class, I get java.lang.ClassNotFoundException:
 org.apache.wicket.protocol.http.WicketFilter. I'm not familiar with
 Maven, but I can see that the POM has a dependency for
 org.apache.wicket, which I had hoped would install the jar. I can
 resolve the problem manually by adding the Wicket source files to my
 project source, but that leaves me feeling like I'm taking the long
way
 around what should be a short and simple process. Any suggestions?
 
 
 

-- 
View this message in context:
http://www.nabble.com/QuickStart-not-finding-Wicket-classes-tp21669263p2
1669684.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


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



Re: QuickStart not finding Wicket classes

2009-01-26 Thread Igor Vaynberg
usually helps if you paste the errors you get...

-igor

On Mon, Jan 26, 2009 at 9:48 AM, Dane Laverty danelave...@chemeketa.edu wrote:
 First, Martijn, thank you for your video. I had used your video to get
 as far as I did. Second, Igor and Cemal, thank you for your quick
 responses. However, I tried running the Maven goals you suggested
 (eclipse:eclipse, etc.), but I just end up getting additional errors. To
 clarify, I was using the QuickStart with 1.4-SNAPSHOT. Ultimately, I
 changed the version to 1.3.5 and it worked. So I guess I'll stick with
 that for now.

 -Original Message-
 From: jWeekend [mailto:jweekend_for...@cabouge.com]
 Sent: Monday, January 26, 2009 9:30 AM
 To: users@wicket.apache.org
 Subject: Re: QuickStart not finding Wicket classes


 Running the artefact creates your project folder structure (including
 some
 useful and illustrative classes/templates/tests) and the POM.
 You need to run some Maven goal (eg eclipse:eclipse, or compile etc) to
 retrieve all the required jars into your local repository. See the Use
 section (Change into the project directory, then create a WAR file via
 mvn
 package or build the project and run it under Jetty via mvn jetty:run
 ...)
 on the  http://wicket.apache.org/quickstart.html QuickStart page .

 Regards - Cemal
 http://www.jWeekend.co.uk jWeekend


 danelav wrote:

 I've stepped through the Wicket QuickStart process as outlined at
 http://wicket.apache.org/quickstart.html . However, when I try to run
 the Start class, I get java.lang.ClassNotFoundException:
 org.apache.wicket.protocol.http.WicketFilter. I'm not familiar with
 Maven, but I can see that the POM has a dependency for
 org.apache.wicket, which I had hoped would install the jar. I can
 resolve the problem manually by adding the Wicket source files to my
 project source, but that leaves me feeling like I'm taking the long
 way
 around what should be a short and simple process. Any suggestions?




 --
 View this message in context:
 http://www.nabble.com/QuickStart-not-finding-Wicket-classes-tp21669263p2
 1669684.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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



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



Re: Two vertical scrollbars in ModalWindow with Panel content show

2009-01-26 Thread Matej Knopp
Again,

this is a styling issue. It has very little to do with Wicket. I
noticed things like table width=100%, etc. in your code. Such
naive styling can lead to many unexpected results, especially in
internet explorer.

-Matej

On Mon, Jan 26, 2009 at 7:02 PM, mailingl...@jorgenpersson.se
mailingl...@jorgenpersson.se wrote:
 There was only links to two png's in your post...
 But changing the 2 to a 5 in the link shows it
 *http://www.nabble.com/file/p21635482/5.PNG

 *Valentine2008 skrev:

 Attached 5.PNG in my previous post shows there are two vertical
 scrollbars.



 Matej Knopp-2 wrote:


 There is only one vertical scrollbar on the screenshots, where's the
 other
 one?

 On Sat, Jan 24, 2009 at 1:33 AM, Valentine2008
 valentine.wic...@gmail.com wrote:


 I added the screenshots as PNG files.

 What I have in modal window: just plain HTML text;

 Whether you have another page
 in modal window (iframe) or a panel: just one panel.

 See the source code:
 -Page window which contains the modal
 window---
 div wicket:id=updateModalWindow/div
 -Content in modal window: parent and child panels
 
 (parent--)
 html  xmlns=http://www.w3.org/1999/xhtml;
 xmlns:wicket=http://wicket.apache.org/; xml:lang=en lang=en


 wicket:panel
p wicket:id=instructionLabel/p

   table border=0 width=100%
  tr
 td align=right
 style=padding-top:0px
   * Required
 /td
  /tr
   /table

   form wicket:id=inputForm
   table border=0 width=100%
   wicket:child/wicket:child
   /table

   div wicket:id=feedback/div
   table border=0 width=100%
   trtd align=left width=50%
   input type=submit wicket:id=save value=Save/
   input type=button wicket:id=cancel value=Cancel/
   /td
   td align=right
   button type=button value=Help
 wicket:id=helpButtonHelp/button
   /td
   /tr
   /table
   /form
 /wicket:panel
 /html
 (child-)
 html  xmlns=http://www.w3.org/1999/xhtml;
 xmlns:wicket=http://wicket.apache.org/; xml:lang=en lang=en

   wicket:extend

   !-- Property/Column 1: firstName, required --
   tr
   td!-- add this line if it is required --
   *
   /td
   td align=left width=30%/td
   td align=leftinput type=text
 wicket:id=firstName//td
   /tr

   !-- Property/Column 2: lastName, required --
   tr
   td!-- add this line if it is required --
   *
   /td
   td align=left width=30%/td
   td align=leftinput type=text
 wicket:id=lastName//td
   /tr

   !-- Property/Column 3: bemsId, required --
   tr
   td!-- add this line if it is required --
   *
   /td
   td align=left width=30%/td
   td align=leftinput type=text
 wicket:id=bemsId//td
   /tr

   !-- Property/Column 4: userCode, required --
   tr
   td!-- add this line if it is required --
   *
   /td
   td align=left width=30%/td
   td align=leftinput type=text
 wicket:id=userCode//td
   /tr

   !-- Property/Column 5: phoneNumber, required --
   tr
   td!-- add this line if it is required --
   *
   /td
   td align=left width=30%/td
   td align=leftinput type=text
 wicket:id=phoneNumber//td
   /tr

   !-- Property/Column 6: emailAddress, required --
   tr
   td!-- add this line if it is required --
   *
   /td
   td align=left width=30%/td
   td align=leftinput type=text
 wicket:id=emailAddress//td
   /tr

   !-- Property/Column 7: jobTitle --
   tr
   td!-- add this line if it is not required --
   nbsp;
   /td
   td align=left width=30%/td
   td align=leftinput type=text
 wicket:id=jobTitle//td
   /tr

   !-- Property/Column 8: organization --
   tr
   td!-- add this line if it is not required --
   nbsp;
   /td
   td align=left width=30%/td
   td align=leftinput type=text
 wicket:id=organization//td
   /tr

   !-- Property/Column 9: countryOfCitizenship --
   tr
   td!-- add this line if it is not required --
   nbsp;
   /td
   td align=left width=30%/td
   td align=leftinput type=text
 wicket:id=countryOfCitizenship//td
   /tr

   !-- Property/Column 10: isActive, drop-down list --
   tr
   td!-- add this line 

AJAX cluster failover help

2009-01-26 Thread John Krasnay
I'm doing cluster failover testing with my app and I'm running into a
weird failure. The test involves failing the node where my session is
active while performing UI operations. 

On one page in the app, I have an AjaxTabbedPanel. Clicking amongst the
tabs while the failover occurs works flawlessly. There is a brief pause
when the first node finally stops and the load balancer routes me to the
alternate node, but otherwise no errors are apparent.

On another page, I have an AjaxForm and an AjaxButton that does a search
and updates a ListView on the page with the results. When I do the
failover test while repeatedly searching, I eventually get the following
error:

  Attempt to access unknown request listener interface
  IActivePageBehaviorListener

This error comes from
AbstractRequestCycleProcessor.resolveListenerInterfaceTarget, when
RequestListenerInterface.forName can't resolve
IActivePageBehaviorListener into the corresponding
RequestListenerInterface instance. But IActivePageBehaviorListener
should have been registered with RequestListenerInterface when its class
was loaded, which should have happened at least by the time the page was
replicated into the session on the backup node.

Does anyone have any idea what might be happening here?

jk

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



Re: AJAX cluster failover help

2009-01-26 Thread Igor Vaynberg
what wicket version are you using?

that registration was missing until 5/9/08, so if your wicket version
is earlier then that it might not work properly.

-igor

On Mon, Jan 26, 2009 at 10:36 AM, John Krasnay j...@krasnay.ca wrote:
 I'm doing cluster failover testing with my app and I'm running into a
 weird failure. The test involves failing the node where my session is
 active while performing UI operations.

 On one page in the app, I have an AjaxTabbedPanel. Clicking amongst the
 tabs while the failover occurs works flawlessly. There is a brief pause
 when the first node finally stops and the load balancer routes me to the
 alternate node, but otherwise no errors are apparent.

 On another page, I have an AjaxForm and an AjaxButton that does a search
 and updates a ListView on the page with the results. When I do the
 failover test while repeatedly searching, I eventually get the following
 error:

  Attempt to access unknown request listener interface
  IActivePageBehaviorListener

 This error comes from
 AbstractRequestCycleProcessor.resolveListenerInterfaceTarget, when
 RequestListenerInterface.forName can't resolve
 IActivePageBehaviorListener into the corresponding
 RequestListenerInterface instance. But IActivePageBehaviorListener
 should have been registered with RequestListenerInterface when its class
 was loaded, which should have happened at least by the time the page was
 replicated into the session on the backup node.

 Does anyone have any idea what might be happening here?

 jk

 -
 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: AJAX cluster failover help

2009-01-26 Thread John Krasnay
We're on 1.3.3. I'll try again with 1.3.5.

Thanks.

jk

On Mon, Jan 26, 2009 at 10:41:45AM -0800, Igor Vaynberg wrote:
 what wicket version are you using?
 
 that registration was missing until 5/9/08, so if your wicket version
 is earlier then that it might not work properly.
 
 -igor
 
 On Mon, Jan 26, 2009 at 10:36 AM, John Krasnay j...@krasnay.ca wrote:
  I'm doing cluster failover testing with my app and I'm running into a
  weird failure. The test involves failing the node where my session is
  active while performing UI operations.
 
  On one page in the app, I have an AjaxTabbedPanel. Clicking amongst the
  tabs while the failover occurs works flawlessly. There is a brief pause
  when the first node finally stops and the load balancer routes me to the
  alternate node, but otherwise no errors are apparent.
 
  On another page, I have an AjaxForm and an AjaxButton that does a search
  and updates a ListView on the page with the results. When I do the
  failover test while repeatedly searching, I eventually get the following
  error:
 
   Attempt to access unknown request listener interface
   IActivePageBehaviorListener
 
  This error comes from
  AbstractRequestCycleProcessor.resolveListenerInterfaceTarget, when
  RequestListenerInterface.forName can't resolve
  IActivePageBehaviorListener into the corresponding
  RequestListenerInterface instance. But IActivePageBehaviorListener
  should have been registered with RequestListenerInterface when its class
  was loaded, which should have happened at least by the time the page was
  replicated into the session on the backup node.
 
  Does anyone have any idea what might be happening here?
 
  jk
 
  -
  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: Embedding html from an external application

2009-01-26 Thread mfs

Actually I haven't used the c:import tag, so i am not sure what problems are
you referring to ? Is it what I mentioned earlier that since it would be a
separate request, the request-parameters would not be part of it ? but even
that can be resolved right ? i mean we can manually stream these incoming
request parameters/cookies with the new request..

As for the session sharing issue, I so far have been able to work something
out in that regard. Actually its not trivial to move the presentation layer
into wicket since (1) its implement in a non-java platform (i.e. mod_plsq)
and would not be as simple as moving a jsp (2) it is too huge an app to
moved over that easily.

Commenting a bit on iFrame. I Initially was more inclined towards using
iFrame but then the problem lies with the lag which could be come in between
the section loaded through iFrame, which would not look good at all,
especially if that section is header/menu/footer, and i am not sure if their
is a remedy to this very complain people have from iFrame.

Thanks and Regards,

Farhan.



Erik van Oosten wrote:
 
 Hi Farhan,
 
 Yes, indeed. After so many years Wicket can still surprise me.
 
 Anyway, the problems you have with this are identical as you would have
 with the c:import tag. What you want is not simply feasible. It would be
 wise to consider alternatives. For example moving the JSPs into the same
 context as the Wicket application, using an iframe (session problem does
 not go away), or getting rid of the JSPs altogether.
 
 Regards,
  Erik.
 
 
 mfs wrote:
 
 Eric,
 
 Thanks for the follow-up. 
 
 Actually i just came across the 
 http://wicket.sourceforge.net/apidocs/wicket/markup/html/include/Include.html
 Include  component in Wicket which i believe does the same as you
 suggested to implement...i.e. opens up a new http-connection to the
 server/url from where the contents are to be embedded...Isn't it ?
 
 Secondly since this would mean a separate request would be opened for
 contents to be included, and hence wouldn't be carrying the request
 parameters, cookies etc. Which i would have to figure out a way to
 pass-on/embed manually.
 
 Farhan.
 
 
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 

-- 
View this message in context: 
http://www.nabble.com/Embedding-html-from-an-external-application-tp21593700p21671595.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: Embedding html from an external application

2009-01-26 Thread Ittay Dror



mfs wrote:
 
 Eric,
 
 Thanks for the follow-up. 
 
 Actually i just came across the 
 http://wicket.sourceforge.net/apidocs/wicket/markup/html/include/Include.html
 Include  component in Wicket which i believe does the same as you
 suggested to implement...i.e. opens up a new http-connection to the
 server/url from where the contents are to be embedded...Isn't it ?
 
 Secondly since this would mean a separate request would be opened for
 contents to be included, and hence wouldn't be carrying the request
 parameters, cookies etc. Which i would have to figure out a way to
 pass-on/embed manually.
 
Include uses a URL connection to get the data. You might want to try and
writing a similar component that uses the httpclient library. Or cast the
connection from URL#openConnection to HttpConnection and use the methods
there for adding headers. I think the only major challenge will be if the
old application is using cookies since you'd need to manage them yourself.

Ittay




 
 
 Farhan.
 
 
 
 quote author=Erik van Oosten
 Farhan,
 
 You can not mix and match content from different servlet contexts within 
 the same server. The only way is to request content from another server 
 and indeed, this is what the c:import tag does. Wicket has no equivalent 
 component but you could write one without too much problems.
 
 Something like:
 
 public class HttpImport extends WebMarkupContainer {
 
 private String url;
 
 public HttpImport(String id, String url) {
 super(id);
 this.url = url;
 }
 
 @Override
 protected void onComponentTagBody(MarkupStream markupStream, 
 ComponentTag openTag) {
 replaceComponentTagBody(markupStream, openTag, getContent(url));
 }
 
 private String getContent(String url) {
  ... code to get data from url ...
 }
 }
 
 I'll leave the code in getContent as an exercise :)
 The component above behaves like a Label, it will replace the content of 
 the HTML element it is attached to.
 
 Regards,
  Erik.
 
 
 
 
 mfs wrote:
 I have had a look at the blog 
 http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/
 http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/ 
 which pretty much is based on the same idea, but the only hitch is that
 it
 is assuming the external/non-wicket page (i.e. jsp) to be contained in
 the
 same context/app as wicket. I am looking for a way to include the dynamic
 contents from a different context/application, since
 RequestDispatcher.include doesn't allow the same. A functionality similar
 to
 the c:import tag library that is..

   
 
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 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/Embedding-html-from-an-external-application-tp21593700p21671932.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: Access last page

2009-01-26 Thread Per Newgro

Thanks 4 reply, Johan.

I guess i have to store the ids in my session ?!? I'll try it out.

Thanks
Per

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



Re: Example for presenting pdf in modal window

2009-01-26 Thread Per Newgro

Is there no way to achieve my goal?

Per

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



Re: AJAX cluster failover help

2009-01-26 Thread John Krasnay
Indeed, 1.3.5 fixed the problem. Thanks again, Igor.

jk

On Mon, Jan 26, 2009 at 01:57:22PM -0500, John Krasnay wrote:
 We're on 1.3.3. I'll try again with 1.3.5.
 
 Thanks.
 
 jk
 
 On Mon, Jan 26, 2009 at 10:41:45AM -0800, Igor Vaynberg wrote:
  what wicket version are you using?
  
  that registration was missing until 5/9/08, so if your wicket version
  is earlier then that it might not work properly.
  
  -igor
  
  On Mon, Jan 26, 2009 at 10:36 AM, John Krasnay j...@krasnay.ca wrote:
   I'm doing cluster failover testing with my app and I'm running into a
   weird failure. The test involves failing the node where my session is
   active while performing UI operations.
  
   On one page in the app, I have an AjaxTabbedPanel. Clicking amongst the
   tabs while the failover occurs works flawlessly. There is a brief pause
   when the first node finally stops and the load balancer routes me to the
   alternate node, but otherwise no errors are apparent.
  
   On another page, I have an AjaxForm and an AjaxButton that does a search
   and updates a ListView on the page with the results. When I do the
   failover test while repeatedly searching, I eventually get the following
   error:
  
Attempt to access unknown request listener interface
IActivePageBehaviorListener
  
   This error comes from
   AbstractRequestCycleProcessor.resolveListenerInterfaceTarget, when
   RequestListenerInterface.forName can't resolve
   IActivePageBehaviorListener into the corresponding
   RequestListenerInterface instance. But IActivePageBehaviorListener
   should have been registered with RequestListenerInterface when its class
   was loaded, which should have happened at least by the time the page was
   replicated into the session on the backup node.
  
   Does anyone have any idea what might be happening here?
  
   jk
  
   -
   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: AJAX cluster failover help

2009-01-26 Thread Igor Vaynberg
you are welcome

-igor

On Mon, Jan 26, 2009 at 12:08 PM, John Krasnay j...@krasnay.ca wrote:
 Indeed, 1.3.5 fixed the problem. Thanks again, Igor.

 jk

 On Mon, Jan 26, 2009 at 01:57:22PM -0500, John Krasnay wrote:
 We're on 1.3.3. I'll try again with 1.3.5.

 Thanks.

 jk

 On Mon, Jan 26, 2009 at 10:41:45AM -0800, Igor Vaynberg wrote:
  what wicket version are you using?
 
  that registration was missing until 5/9/08, so if your wicket version
  is earlier then that it might not work properly.
 
  -igor
 
  On Mon, Jan 26, 2009 at 10:36 AM, John Krasnay j...@krasnay.ca wrote:
   I'm doing cluster failover testing with my app and I'm running into a
   weird failure. The test involves failing the node where my session is
   active while performing UI operations.
  
   On one page in the app, I have an AjaxTabbedPanel. Clicking amongst the
   tabs while the failover occurs works flawlessly. There is a brief pause
   when the first node finally stops and the load balancer routes me to the
   alternate node, but otherwise no errors are apparent.
  
   On another page, I have an AjaxForm and an AjaxButton that does a search
   and updates a ListView on the page with the results. When I do the
   failover test while repeatedly searching, I eventually get the following
   error:
  
Attempt to access unknown request listener interface
IActivePageBehaviorListener
  
   This error comes from
   AbstractRequestCycleProcessor.resolveListenerInterfaceTarget, when
   RequestListenerInterface.forName can't resolve
   IActivePageBehaviorListener into the corresponding
   RequestListenerInterface instance. But IActivePageBehaviorListener
   should have been registered with RequestListenerInterface when its class
   was loaded, which should have happened at least by the time the page was
   replicated into the session on the backup node.
  
   Does anyone have any idea what might be happening here?
  
   jk
  
   -
   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



Does salve solve Wicket property model problems?

2009-01-26 Thread Martijn Dashorst
Igor Vaynberg has written a short article on using Salve
(http://code.google.com/p/salve/) to provide an alternative solution
to checking the property expression in property models. Read it and
discuss it if you find it interesting.
(http://wicketinaction.com/2009/01/fixing-wicket-property-models-using-salve/)

My introduction to Wicket talk I gave at Øredev in Malmö last November
is also online, you can see it here:
(http://wicketinaction.com/2009/01/oredev-presentation-online/)

Have fun!

Martijn

-- 
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.5

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



Frozen error form object

2009-01-26 Thread Anton Veretennikov
Hello, all wicket users and developers!

Wicket is 1-4-SNAPSHOT (not revision 737998, it is not compiling for
test failures).

I have a simple form for GoodPrice object edit.
List of objects have a link that sets PanelModel.goodPrice to
currently editing object.

This is how I create my form with compound model:

Form form = new Form(edit, new CompoundPropertyModelGoodPrice(
  new PropertyModelGoodPrice(panelModel, goodPrice)));

Everything works okey until I have form submit error. If I leave my
error form (don't want to continue editing) then model
is frozen with that error object. New selections from list of
objects update model but form continues to work with error object.

What it can be?

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



Re: Example for presenting pdf in modal window

2009-01-26 Thread Anton Veretennikov
May be some kind of open source exists for embedding pdf in Flash like this:

http://www.stickmanlabs.com/lightwindow/
Flash Paper link


On Tue, Jan 27, 2009 at 2:50 AM, Per Newgro per.new...@gmx.ch wrote:
 Is there no way to achieve my goal?

 Per

 -
 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: QuickStart not finding Wicket classes

2009-01-26 Thread Igor Vaynberg
works fine for me:
C:\dev\src\wicket\wicket-quickstartsvn up
At revision 738009.
C:\dev\src\wicket\wicket-quickstartmvn clean package
[INFO] Scanning for projects...
[INFO] 
[INFO] Building Wicket Quickstart
[INFO]task-segment: [clean, package]
[INFO] 
[INFO] [clean:clean]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 5 source files to
C:\dev\src\wicket\wicket-quickstart\target\classes
[INFO] [bundle:manifest {execution: bundle-manifest}]
[WARNING] Ignoring project type war - supportedProjectTypes = [jar, bundle]
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 1 source file to
C:\dev\src\wicket\wicket-quickstart\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
C:\dev\src\wicket\wicket-quickstart\target\surefire-reports

---
 T E S T S
---
Running org.apache.wicket.util.license.ApacheLicenceHeaderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.297 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Assembling webapp wicket-quickstart in
C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT
[INFO] Copy webapp webResources to
C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT
[INFO] Generating war
C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart.war
[INFO] Building war:
C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart.war
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] Building jar:
C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT-sources.jar
[INFO] [jar:test-jar {execution: default}]
[INFO] Building jar:
C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT-tests.jar
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 13 seconds
[INFO] Finished at: Mon Jan 26 22:16:15 PST 2009
[INFO] Final Memory: 18M/32M
[INFO] 

-igor

On Mon, Jan 26, 2009 at 11:09 AM, Dane Laverty
danelave...@chemeketa.edu wrote:
 Sorry about that. Here you go:

 mvn clean compile

 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building quickstart
 [INFO]task-segment: [clean, compile]
 [INFO]
 
 [INFO] [clean:clean]
 [INFO] Deleting directory C:\wicket-dev\myproject\target
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:compile]
 [INFO] Compiling 2 source files to
 C:\wicket-dev\myproject\target\classes
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Compilation failure

 could not parse error message:
 org\apache\wicket\protocol\http\WicketFilter.java(org\apache\wicket\prot
 ocol\http:WicketFilter.java):28: package javax.portlet does not exist
 import javax.portlet.Portlet;
^

 could not parse error message:
 org\apache\wicket\protocol\http\portlet\WicketFilterPortletContext.java(
 org\apache\wicket\protocol\http\portlet:WicketFilterPortletContext.java)
 :21: package javax.portlet does not exist
 import javax.portlet.PortletConfig;
^

 could not parse error message:
 org\apache\wicket\protocol\http\portlet\WicketFilterPortletContext.java(
 org\apache\wicket\protocol\http\portlet:WicketFilterPortletContext.java)
 :22: package javax.portlet does not exist
 import javax.portlet.RenderResponse;
^

 could not parse error message:
 org\apache\wicket\protocol\http\portlet\WicketFilterPortletContext.java(
 org\apache\wicket\protocol\http\portlet:WicketFilterPortletContext.java)
 :29: package org.apache.portals.bridges.util does not exist
 import org.apache.portals.bridges.util.ServletPortletSessionProxy;
  ^

 could not parse error message:
 org\apache\wicket\protocol\http\portlet\PortletRequestContext.java(org\a
 pache\wicket\protocol\http\portlet:PortletRequestContext.java):21:
 package javax.portlet does not exist
 import javax.portlet.PortletConfig;
^

 

Re: QuickStart not finding Wicket classes

2009-01-26 Thread Anton Veretennikov
There is no 1.4-SNAPSHOT in central repository so it must be
downloaded first and installed in local repository.
Am I right?

On Tue, Jan 27, 2009 at 1:18 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 works fine for me:
 C:\dev\src\wicket\wicket-quickstartsvn up
 At revision 738009.
 C:\dev\src\wicket\wicket-quickstartmvn clean package
 [INFO] Scanning for projects...
 [INFO] 
 
 [INFO] Building Wicket Quickstart
 [INFO]task-segment: [clean, package]
 [INFO] 
 
 [INFO] [clean:clean]
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:compile]
 [INFO] Compiling 5 source files to
 C:\dev\src\wicket\wicket-quickstart\target\classes
 [INFO] [bundle:manifest {execution: bundle-manifest}]
 [WARNING] Ignoring project type war - supportedProjectTypes = [jar, bundle]
 [INFO] [resources:testResources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:testCompile]
 [INFO] Compiling 1 source file to
 C:\dev\src\wicket\wicket-quickstart\target\test-classes
 [INFO] [surefire:test]
 [INFO] Surefire report directory:
 C:\dev\src\wicket\wicket-quickstart\target\surefire-reports

 ---
  T E S T S
 ---
 Running org.apache.wicket.util.license.ApacheLicenceHeaderTest
 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.297 sec

 Results :

 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

 [INFO] [war:war]
 [INFO] Exploding webapp...
 [INFO] Assembling webapp wicket-quickstart in
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT
 [INFO] Copy webapp webResources to
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT
 [INFO] Generating war
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart.war
 [INFO] Building war:
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart.war
 [INFO] Preparing source:jar
 [WARNING] Removing: jar from forked lifecycle, to prevent recursive 
 invocation.
 [INFO] No goals needed for project - skipping
 [INFO] [source:jar {execution: attach-sources}]
 [INFO] Building jar:
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT-sources.jar
 [INFO] [jar:test-jar {execution: default}]
 [INFO] Building jar:
 C:\dev\src\wicket\wicket-quickstart\target\wicket-quickstart-1.4-SNAPSHOT-tests.jar
 [INFO] 
 
 [INFO] BUILD SUCCESSFUL
 [INFO] 
 
 [INFO] Total time: 13 seconds
 [INFO] Finished at: Mon Jan 26 22:16:15 PST 2009
 [INFO] Final Memory: 18M/32M
 [INFO] 
 

 -igor

 On Mon, Jan 26, 2009 at 11:09 AM, Dane Laverty
 danelave...@chemeketa.edu wrote:
 Sorry about that. Here you go:

 mvn clean compile

 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building quickstart
 [INFO]task-segment: [clean, compile]
 [INFO]
 
 [INFO] [clean:clean]
 [INFO] Deleting directory C:\wicket-dev\myproject\target
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] [compiler:compile]
 [INFO] Compiling 2 source files to
 C:\wicket-dev\myproject\target\classes
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Compilation failure

 could not parse error message:
 org\apache\wicket\protocol\http\WicketFilter.java(org\apache\wicket\prot
 ocol\http:WicketFilter.java):28: package javax.portlet does not exist
 import javax.portlet.Portlet;
^

 could not parse error message:
 org\apache\wicket\protocol\http\portlet\WicketFilterPortletContext.java(
 org\apache\wicket\protocol\http\portlet:WicketFilterPortletContext.java)
 :21: package javax.portlet does not exist
 import javax.portlet.PortletConfig;
^

 could not parse error message:
 org\apache\wicket\protocol\http\portlet\WicketFilterPortletContext.java(
 org\apache\wicket\protocol\http\portlet:WicketFilterPortletContext.java)
 :22: package javax.portlet does not exist
 import javax.portlet.RenderResponse;
^

 could not parse error message:
 org\apache\wicket\protocol\http\portlet\WicketFilterPortletContext.java(
 org\apache\wicket\protocol\http\portlet:WicketFilterPortletContext.java)
 :29: package org.apache.portals.bridges.util does not exist
 import org.apache.portals.bridges.util.ServletPortletSessionProxy;
  ^