Re: wicket-guice Questions

2008-07-25 Thread Eelco Hillenius
No answers on your mail from me this time, but I wanted to point to a
new initiative for Guice/ Wicket integration you might find helpful:
http://www.wideplay.com/wicketwithwarp-servlet

Eelco

On Thu, Jul 24, 2008 at 11:50 AM, Karl M. Davis
[EMAIL PROTECTED] wrote:
 Howdy all,

 I've started using wicket-guice in one of my projects this week, but I've got 
 a couple of problems I'm hoping that someone here can help me with:

 1. I have a singleton binding that needs access to the context parameters 
 (e.g. ((WebApplication) 
 WebApplication.get()).getServletContext().getInitParameter(PREFERENCES_STORE_KEY);
  ). However, the WebApplication isn't bound/available until after 
 GuiceWebApplicationFactory finishes creating the injector (and all of the 
 singletons have been instantiated). Can anyone think of any workarounds for 
 this problem?

 2. I'm curious what the alternative web.xml configuration listed in 
 GuiceWebApplicationFactory 's javadoc will do. Can anyone explain what it 
 means for it to dig the Injector out of the ServletContext as an attribute?

 That's all for now. Thanks for any help you can offer!

 Best regards,
 Karl M. Davis

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



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



How to embed PPT in wicket wizard.

2008-07-25 Thread Prafull

Hi,

I want to embed power point presentation in wicket wizard. Is it possible?

Thanks for any help.

Prafull 
-- 
View this message in context: 
http://www.nabble.com/How-to-embed-PPT-in-wicket-wizard.-tp18646148p18646148.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: This time last year .... is Wicket really a disappointment?

2008-07-25 Thread Fabrizio Giudici


On Jul 25, 2008, at 3:20 , Eelco Hillenius wrote:


That can be a pain sometimes, or at least something to get used to.
But that's Wicket's price for the stateful programming model it
provides.



Thanks Eelco :-) this is a good conclusion of the point (at least for  
me). As I said, I'll keep on using Wicket, because overall it's a lot  
better than others. But I'd like a stateless Wicket (or an option to  
become stateless). To be precise: I'm not asking for it, I understand  
statefulness is one of the fundamental architectural choices of the  
platform, so I think that a RFE here would be out of scope. But I'd  
like to know how many of the Wicket users would appreciate that.


--
Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
[EMAIL PROTECTED] - mobile: +39 348.150.6941



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



Re: [ANN] Brix 1.0 beta1

2008-07-25 Thread Korbinian Bachl - privat

Jeremy,

please believe me and *don't* use either osCommerce or XTCommerce. Their 
code is just useless, they have no way of easy changing things and every 
release you will need to alter most of your provided code (there is no 
stable plugin system - they plan to do this for long now but havent been 
very successful yet).


The only promising one solution yet is IMHO magentocommerce ( 
http://www.magentocommerce.com/ ) but it suffers a bit from performance 
perspective (but they are just 1.0 - so there will be improvement here).


If you need a basement for some small shops you either want to go 
megantocommerce or maybe look at some rent solutions (even amazon has 
one that is not too bad) - but dont use the 2 osCommerce's (XTCommerce 
is more a fork, but still suffers from many things osCommerce has) - or 
take a look at brix, as you only would need some special tiles that fit 
your needs and could be shared among your shops mostly.


Best,

Korbinian


Jeremy Thomerson schrieb:

Igor,
  I'm curious about your use of it in ecommerce sites.  Several friends of
mine want small shops built for them so that they can sell some things
online.  Until this point, I've just been throwing together instances of
osCommerce [1] for them.  But, then, they need me to change page layouts,
etc.  I've been wishing there was an easy solution that rolled the two
together - give them a storefront, and they can edit their own pages
(without FTP / editing PHP - these are not developers by any stretch).
Something where they could edit page content with a WYSIWYG.

Of course, I could build this with Wicket, but can't afford the time right
now.  And then you have the Wicket / PHP binding which would be a pain, too.

Anyway - is there some open source ecommerce package that you bundle with
the CMS, or is the ecommerce part what your company does, and the CMS is the
open part?



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



How to embed PPT in wicket wizard.

2008-07-25 Thread Prafull

Hi All,

I want to embed ppt in wicket wizard. Is it possible?

Thanks in advance.
prafull
-- 
View this message in context: 
http://www.nabble.com/How-to-embed-PPT-in-wicket-wizard.-tp18646365p18646365.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Problem when deploying to Tomcat

2008-07-25 Thread Tormod Ă˜verlier

No, I hadn't tried that, but that actually solved the problem. :jumping:


igor.vaynberg wrote:
 
 it may very well be. have you tried setting up the context with
 anti-jar locking enabled?
 
 -igor
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-when-deploying-to-Tomcat-tp18629360p18647402.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [ANN] Brix 1.0 beta1

2008-07-25 Thread Newgro

Hi Igor,

sorry to say that but my feedback is this
[INFO] [jar:jar]
[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:\Dokumente und Einstellungen\per.newgro\Eigene
Dateien\brix\brix-workspace\target\brix-workspace-1.0-
SNAPSHOT-sources.jar
[INFO] [install:install]
[INFO] Installing C:\Dokumente und Einstellungen\per.newgro\Eigene
Dateien\brix\brix-workspace\target\brix-workspace-1.0-SNA
PSHOT.jar to C:\Dokumente und
Einstellungen\per.newgro\.m2\repository\brix\brix-workspace\1.0-SNAPSHOT\brix-workspace-1.0-SN
APSHOT.jar
[INFO] Installing C:\Dokumente und Einstellungen\per.newgro\Eigene
Dateien\brix\brix-workspace\target\brix-workspace-1.0-SNA
PSHOT-sources.jar to C:\Dokumente und
Einstellungen\per.newgro\.m2\repository\brix\brix-workspace\1.0-SNAPSHOT\brix-workspac
e-1.0-SNAPSHOT-sources.jar
[INFO]

[INFO] Building Brix Core
[INFO]task-segment: [install]
[INFO]

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] snapshot com.inmethod:grid-parent:1.0.0-SNAPSHOT: checking for
updates from IBG Maven Repo
[WARNING] repository metadata for: 'snapshot
com.inmethod:grid-parent:1.0.0-SNAPSHOT' could not be retrieved from
repository:
 IBG Maven Repo due to an error: Error transferring file
[INFO] Repository 'IBG Maven Repo' will be blacklisted
[INFO] [compiler:compile]
[INFO] Compiling 34 source files to C:\Dokumente und
Einstellungen\per.newgro\Eigene Dateien\brix\brix-core\target\classes
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure
C:\Dokumente und Einstellungen\per.newgro\Eigene
Dateien\brix\brix-core\src\main\java\brix\jcr\jackrabbit\HtmlTextExtractor.
java:[68,29] cannot find symbol
symbol  : method isEmpty()
location: class java.lang.String



C:\Dokumente und Einstellungen\per.newgro\Eigene
Dateien\brix\brix-core\src\main\java\brix\jcr\jackrabbit\HtmlTextExtractor.
java:[68,29] cannot find symbol
symbol  : method isEmpty()
location: class java.lang.String


[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 12 seconds
[INFO] Finished at: Fri Jul 25 11:38:46 CEST 2008
[INFO] Final Memory: 15M/29M
[INFO]


I simply followed the steps on the website.
You know this already?
Cheers
Per
-- 
View this message in context: 
http://www.nabble.com/-ANN--Brix-1.0-beta1-tp18614003p18648530.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Float Validation

2008-07-25 Thread mabel25

Hi,
I have been trying to validate FLOAT values by using the NumberValidator.
However, when I retrieve values such as '12000' from the database into a
TextField, the textfield will automatically insert commas to become '12,000'
and it will cause problems when I update the database. 
Can anyone please help? Thank you! 
-- 
View this message in context: 
http://www.nabble.com/Float-Validation-tp18648670p18648670.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-25 Thread Matej Knopp
Could you create a quickstart project that demonstrates the behavior
and send it to me directly (there's no issue tracker for grid yet)?

-Matej

On Fri, Jul 25, 2008 at 5:34 AM, Paul Logasa Bogen II [EMAIL PROTECTED] wrote:
 These are the primary involved java source files, let me know if you'd like
 to see any others.
 plb

 CollectionDataModel.java -- http://pastebin.ca/1082263
 CollectionDataSource.java -- http://pastebin.ca/1082264
 LoadPanel.java -- http://pastebin.ca/1082266


 Paul Logasa Bogen II wrote:

 I added a second entry to my database that backs the DataGrid and I still
 see the same problem, but now when I click a sort (etc) to get it to show
 only the first item shows.
 plb

 Paul Logasa Bogen II wrote:

 Sure, no problem, I didn't want to spam the list with too much info if I
 didn't need to.
 I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded
 Firefox) under Debian i686 and Debian x86_64

 I am using Wicket 1.3.4 and the inMethod DataGrid is the current SVN code
 under the 1.3.x branch.

 plb

 Matej Knopp wrote:

 We use grid in modal window all the time. Can you be more specific
 about the setup (browser, grid version, wicket version)?

 -Matej

 On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II [EMAIL PROTECTED]
 wrote:


 Howdy,

 First of I'd like to say that I think Wicket is fantastic and after
 trying
 GWT and Thinwire, I finally have found a framework that is open,
 supported,
 mature, and lets me program how I want to. However, I am currently
 having a
 strange problem. I have a ModalWindow which is shown after an AjaxLink
 is
 clicked on a WebPage. On the panel used as the content for the
 ModalWindow
 is a DataGrid control. The Model and DataSource appear correct when I
 inspect them in a debugger, yet the DataGrid does not show any contents
 for
 the  cells. It does show the correct number of rows, but the cells are
 blank. Once I resize, or move the ModalWindow the contents magically
 show.
 Additionally, clicking a header to sort the rows or clicking a row to
 select
 it also causes the cells content to show. I think the problem is the
 DataGrid's update isn't triggered between creation and the first time I
 manipulate the DataGrid or the ModalWindow. Is there someway I can
 force the
 DataGrid to redraw when I show the Modal? update() doesn't work.

 Thanks,
 Paul Logasa Bogen II

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




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



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


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


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



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



Re: [ANN] Brix 1.0 beta1

2008-07-25 Thread Newgro

Ok i fixed the code line by a normal text-is-empty check :-). I think
String.isEmpty() is part of java6. I only use java5 and there was no advice
on the website.

But now i get:
Downloading:
http://brix-cms.googlecode.com/svn/maven2//postgresql/postgresql/8.3-603.jdbc4/postgresql-8.3-603.jdbc4.jar
Downloading:
http://wicketstuff.org/maven/repository//postgresql/postgresql/8.3-603.jdbc4/postgresql-8.3-603.jdbc4.jar
Downloading:
http://repo1.maven.org/maven2/postgresql/postgresql/8.3-603.jdbc4/postgresql-8.3-603.jdbc4.jar
463K downloaded
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Missing:
--
1) javax.transaction:jta:jar:1.0.1B

  Try downloading the file manually from:
  http://java.sun.com/products/jta

  Then, install it using the command:
  mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta
-Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/
file

  Alternatively, if you host your own repository you can deploy the file
there:
  mvn deploy:deploy-file -DgroupId=javax.transaction -DartifactId=jta
-Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/fi
le -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
1) brix:brix-rmiserver:war:1.0-SNAPSHOT
2) org.hibernate:hibernate:jar:3.2.6.ga
3) javax.transaction:jta:jar:1.0.1B

--
1 required artifact is missing.

for artifact:
  brix:brix-rmiserver:war:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  WicketStuff (http://wicketstuff.org/maven/repository/),
  Brix (http://brix-cms.googlecode.com/svn/maven2/)


[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 2 minutes 35 seconds
[INFO] Finished at: Fri Jul 25 11:55:26 CEST 2008
[INFO] Final Memory: 18M/38M
[INFO]


Cheers
Per
-- 
View this message in context: 
http://www.nabble.com/-ANN--Brix-1.0-beta1-tp18614003p18648719.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [ANN] Brix 1.0 beta1

2008-07-25 Thread Martijn Dashorst
you need to build the application in java 6 judging from the error.

Martijn

On Fri, Jul 25, 2008 at 11:44 AM, Newgro [EMAIL PROTECTED] wrote:

 Hi Igor,

 sorry to say that but my feedback is this
 [INFO] [jar:jar]
 [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:\Dokumente und Einstellungen\per.newgro\Eigene
 Dateien\brix\brix-workspace\target\brix-workspace-1.0-
 SNAPSHOT-sources.jar
 [INFO] [install:install]
 [INFO] Installing C:\Dokumente und Einstellungen\per.newgro\Eigene
 Dateien\brix\brix-workspace\target\brix-workspace-1.0-SNA
 PSHOT.jar to C:\Dokumente und
 Einstellungen\per.newgro\.m2\repository\brix\brix-workspace\1.0-SNAPSHOT\brix-workspace-1.0-SN
 APSHOT.jar
 [INFO] Installing C:\Dokumente und Einstellungen\per.newgro\Eigene
 Dateien\brix\brix-workspace\target\brix-workspace-1.0-SNA
 PSHOT-sources.jar to C:\Dokumente und
 Einstellungen\per.newgro\.m2\repository\brix\brix-workspace\1.0-SNAPSHOT\brix-workspac
 e-1.0-SNAPSHOT-sources.jar
 [INFO]
 
 [INFO] Building Brix Core
 [INFO]task-segment: [install]
 [INFO]
 
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 [INFO] snapshot com.inmethod:grid-parent:1.0.0-SNAPSHOT: checking for
 updates from IBG Maven Repo
 [WARNING] repository metadata for: 'snapshot
 com.inmethod:grid-parent:1.0.0-SNAPSHOT' could not be retrieved from
 repository:
  IBG Maven Repo due to an error: Error transferring file
 [INFO] Repository 'IBG Maven Repo' will be blacklisted
 [INFO] [compiler:compile]
 [INFO] Compiling 34 source files to C:\Dokumente und
 Einstellungen\per.newgro\Eigene Dateien\brix\brix-core\target\classes
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Compilation failure
 C:\Dokumente und Einstellungen\per.newgro\Eigene
 Dateien\brix\brix-core\src\main\java\brix\jcr\jackrabbit\HtmlTextExtractor.
 java:[68,29] cannot find symbol
 symbol  : method isEmpty()
 location: class java.lang.String



 C:\Dokumente und Einstellungen\per.newgro\Eigene
 Dateien\brix\brix-core\src\main\java\brix\jcr\jackrabbit\HtmlTextExtractor.
 java:[68,29] cannot find symbol
 symbol  : method isEmpty()
 location: class java.lang.String


 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 12 seconds
 [INFO] Finished at: Fri Jul 25 11:38:46 CEST 2008
 [INFO] Final Memory: 15M/29M
 [INFO]
 

 I simply followed the steps on the website.
 You know this already?
 Cheers
 Per
 --
 View this message in context: 
 http://www.nabble.com/-ANN--Brix-1.0-beta1-tp18614003p18648530.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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





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

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



Interrupting AJAX calls

2008-07-25 Thread Federico Fanton
Hi everyone!
I'm sorry, I just noticed that if I press ESC during an AJAX call in Wicket, 
it gets interrupted (and the onFailure script gets run, I think)

To reproduce, just head to
http://wicketstuff.org/wicket13/ajax/modal-window.1
and click on a link, then quickly press ESC, the popup window shouldn't show 
up (or block in mid-rendering).

I don't know if this is Wicket-related or Firefox-related (tried v2 and v3) 
or.. :) My question is: any hint on how to prevent it?

Many thanks!


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



Re: [ANN] Brix 1.0 beta1

2008-07-25 Thread Jeremy Thomerson
Korbinian,
  Thank you very much for the warning.  I will take a look at the link you
provided.

Jeremy

On Fri, Jul 25, 2008 at 1:58 AM, Korbinian Bachl - privat 
[EMAIL PROTECTED] wrote:

 Jeremy,

 please believe me and *don't* use either osCommerce or XTCommerce. Their
 code is just useless, they have no way of easy changing things and every
 release you will need to alter most of your provided code (there is no
 stable plugin system - they plan to do this for long now but havent been
 very successful yet).

 The only promising one solution yet is IMHO magentocommerce (
 http://www.magentocommerce.com/ ) but it suffers a bit from performance
 perspective (but they are just 1.0 - so there will be improvement here).

 If you need a basement for some small shops you either want to go
 megantocommerce or maybe look at some rent solutions (even amazon has one
 that is not too bad) - but dont use the 2 osCommerce's (XTCommerce is more a
 fork, but still suffers from many things osCommerce has) - or take a look at
 brix, as you only would need some special tiles that fit your needs and
 could be shared among your shops mostly.

 Best,

 Korbinian


 Jeremy Thomerson schrieb:

 Igor,
  I'm curious about your use of it in ecommerce sites.  Several friends of
 mine want small shops built for them so that they can sell some things
 online.  Until this point, I've just been throwing together instances of
 osCommerce [1] for them.  But, then, they need me to change page layouts,
 etc.  I've been wishing there was an easy solution that rolled the two
 together - give them a storefront, and they can edit their own pages
 (without FTP / editing PHP - these are not developers by any stretch).
 Something where they could edit page content with a WYSIWYG.

 Of course, I could build this with Wicket, but can't afford the time right
 now.  And then you have the Wicket / PHP binding which would be a pain,
 too.

 Anyway - is there some open source ecommerce package that you bundle with
 the CMS, or is the ecommerce part what your company does, and the CMS is
 the
 open part?


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




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


Re: [ANN] Brix 1.0 beta1

2008-07-25 Thread Newgro

The url in RunningTheDemo is not correct
http://localhost:8080/brixdemo should be http://localhost:8080/brix-demo

Cheers
Per
-- 
View this message in context: 
http://www.nabble.com/-ANN--Brix-1.0-beta1-tp18614003p18649472.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Session.get covariant override and back button issue?

2008-07-25 Thread Timo Rantalaiho
On Thu, 24 Jul 2008, Ritz123 wrote:
 I have a custom Session object which is registered in the custom
 WebApplication class as newSession method override. 

Is your custom session class extending Session or WebSession?

 The session object overrides static Session.get() method returning custom

But static methods cannot be overriden in Java, can they?

 java.lang.ClassCastException: com.neobits.web.NeobitsWebSession
 at com.neobits.web.NeobitsWebSession.get(NeobitsWebSession.java:51)
 at
 com.neobits.web.pages.ViewCartPage$CartDetailsFragment$CheckoutButton.onSubmit(ViewCartPage.java:330)

Could you show those lines of code?

Best wishes,
Timo


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



Re: Session.get covariant override and back button issue?

2008-07-25 Thread Johan Compagner
do you use special classloading?

On Fri, Jul 25, 2008 at 4:21 AM, Ritz123 [EMAIL PROTECTED] wrote:


 Hi,

 I have a custom Session object which is registered in the custom
 WebApplication class as newSession method override.

 The session object overrides static Session.get() method returning custom
 instance (covariant). The problem is, for some reason when I hit back
 button
 in the browser I get ClassCastException on session  (see below)


 Root cause:

 java.lang.ClassCastException: com.neobits.web.NeobitsWebSession
 at com.neobits.web.NeobitsWebSession.get(NeobitsWebSession.java:51)
 at

 com.neobits.web.pages.ViewCartPage$CartDetailsFragment$CheckoutButton.onSubmit(ViewCartPage.java:330)
 --
 View this message in context:
 http://www.nabble.com/Session.get-covariant-override-and-back-button-issue--tp18644053p18644053.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-25 Thread Paul Logasa Bogen II
I went ahead and created a bare minimal project to illustrate the 
behavior, but It doesn't occur in the minimal project. I've gone over 
everything and I just can't seem to figure out where a difference that 
matters would be. I checked the generated source that Firefox renders 
and the information is in the source. And no JavaScript exceptions are 
thrown. I'm going to go ahead and give it a try in IE to see if it is 
some weird interaction between Firefox and the specifics of my code.


plb

Matej Knopp wrote:

Could you create a quickstart project that demonstrates the behavior
and send it to me directly (there's no issue tracker for grid yet)?

-Matej

On Fri, Jul 25, 2008 at 5:34 AM, Paul Logasa Bogen II [EMAIL PROTECTED] wrote:
  

These are the primary involved java source files, let me know if you'd like
to see any others.
plb

CollectionDataModel.java -- http://pastebin.ca/1082263
CollectionDataSource.java -- http://pastebin.ca/1082264
LoadPanel.java -- http://pastebin.ca/1082266


Paul Logasa Bogen II wrote:


I added a second entry to my database that backs the DataGrid and I still
see the same problem, but now when I click a sort (etc) to get it to show
only the first item shows.
plb

Paul Logasa Bogen II wrote:
  

Sure, no problem, I didn't want to spam the list with too much info if I
didn't need to.
I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded
Firefox) under Debian i686 and Debian x86_64

I am using Wicket 1.3.4 and the inMethod DataGrid is the current SVN code
under the 1.3.x branch.

plb

Matej Knopp wrote:


We use grid in modal window all the time. Can you be more specific
about the setup (browser, grid version, wicket version)?

-Matej

On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II [EMAIL PROTECTED]
wrote:

  

Howdy,

First of I'd like to say that I think Wicket is fantastic and after
trying
GWT and Thinwire, I finally have found a framework that is open,
supported,
mature, and lets me program how I want to. However, I am currently
having a
strange problem. I have a ModalWindow which is shown after an AjaxLink
is
clicked on a WebPage. On the panel used as the content for the
ModalWindow
is a DataGrid control. The Model and DataSource appear correct when I
inspect them in a debugger, yet the DataGrid does not show any contents
for
the  cells. It does show the correct number of rows, but the cells are
blank. Once I resize, or move the ModalWindow the contents magically
show.
Additionally, clicking a header to sort the rows or clicking a row to
select
it also causes the cells content to show. I think the problem is the
DataGrid's update isn't triggered between creation and the first time I
manipulate the DataGrid or the ModalWindow. Is there someway I can
force the
DataGrid to redraw when I show the Modal? update() doesn't work.

Thanks,
Paul Logasa Bogen II

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





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

  

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


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

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





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



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



Re: Another question on client IP address and HttpRequest

2008-07-25 Thread Edbay

Thanks, this works.
It's actually in getClientInfo().getProperties().getRemoteAddress();

-- 
View this message in context: 
http://www.nabble.com/Another-question-on-client-IP-address-and-HttpRequest-tp18642444p18653387.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: [ANN] Brix 1.0 beta1

2008-07-25 Thread Igor Vaynberg
the war file being built is brixdemo.war not brix-demo.war so the
context when using war is /brixdemo

i am thinking i will switch the war to brix-demo so it is more
consistent with how mvn jetty:run does it

-igor

On Fri, Jul 25, 2008 at 3:58 AM, Newgro [EMAIL PROTECTED] wrote:

 The url in RunningTheDemo is not correct
 http://localhost:8080/brixdemo should be http://localhost:8080/brix-demo

 Cheers
 Per
 --
 View this message in context: 
 http://www.nabble.com/-ANN--Brix-1.0-beta1-tp18614003p18649472.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Session.get covariant override and back button issue?

2008-07-25 Thread Ritz123

I dont have custom classloader but I do have custom resource loader, not sure
if that is relevant.

Ok here is the custom WebSession class and relevant method

public class NeobitsWebSession
extends WebSession
{

...
/**
 * Constructor
 * 
 * @param webapp
 * @param request
 */
public NeobitsWebSession(Application webapp, Request request)
{
super(request);
setApplication(webapp);
}

/**
 * Covariant for Session.get()
 * @return
 */
public static NeobitsWebSession get()
{
return (NeobitsWebSession)Session.get();
}


Here is the Custom WebApplication
public class NeobitsWebApp
extends WebApplication
{
   .
@Override
public Session newSession(Request request, Response response)
{
return new NeobitsWebSession(this, request);
}
...
}


Timo Rantalaiho wrote:
 
 On Thu, 24 Jul 2008, Ritz123 wrote:
 I have a custom Session object which is registered in the custom
 WebApplication class as newSession method override. 
 
 Is your custom session class extending Session or WebSession?
 
 The session object overrides static Session.get() method returning custom
 
 But static methods cannot be overriden in Java, can they?
 
 java.lang.ClassCastException: com.neobits.web.NeobitsWebSession
 at com.neobits.web.NeobitsWebSession.get(NeobitsWebSession.java:51)
 at
 com.neobits.web.pages.ViewCartPage$CartDetailsFragment$CheckoutButton.onSubmit(ViewCartPage.java:330)
 
 Could you show those lines of code?
 
 Best wishes,
 Timo
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Session.get-covariant-override-and-back-button-issue--tp18644053p18655699.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Session.get covariant override and back button issue?

2008-07-25 Thread Ritz123

Igor, 

I have posted the relevant code in the other reply to Tim. If you mean
actual class being returned from the covariant get() method - I tried
returning both Session and NeobitsWebSession (my custom websession class).
But still get the same error.



igor.vaynberg wrote:
 
 and so what is the actual class being returned?
 
 -igor
 
 On Thu, Jul 24, 2008 at 7:21 PM, Ritz123 [EMAIL PROTECTED] wrote:

 Hi,

 I have a custom Session object which is registered in the custom
 WebApplication class as newSession method override.

 The session object overrides static Session.get() method returning custom
 instance (covariant). The problem is, for some reason when I hit back
 button
 in the browser I get ClassCastException on session  (see below)


 Root cause:

 java.lang.ClassCastException: com.neobits.web.NeobitsWebSession
 at com.neobits.web.NeobitsWebSession.get(NeobitsWebSession.java:51)
 at
 com.neobits.web.pages.ViewCartPage$CartDetailsFragment$CheckoutButton.onSubmit(ViewCartPage.java:330)
 --
 View this message in context:
 http://www.nabble.com/Session.get-covariant-override-and-back-button-issue--tp18644053p18644053.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Session.get-covariant-override-and-back-button-issue--tp18644053p18655735.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Session.get covariant override and back button issue?

2008-07-25 Thread Igor Vaynberg
 public static NeobitsWebSession get()
   {
   Class clazz=Session.get();
   System.out.println(clazz.getName());
   return (NeobitsWebSession)Session.get();
   }

what does that print?

-igor

On Fri, Jul 25, 2008 at 10:00 AM, Ritz123 [EMAIL PROTECTED] wrote:

 Igor,

 I have posted the relevant code in the other reply to Tim. If you mean
 actual class being returned from the covariant get() method - I tried
 returning both Session and NeobitsWebSession (my custom websession class).
 But still get the same error.



 igor.vaynberg wrote:

 and so what is the actual class being returned?

 -igor

 On Thu, Jul 24, 2008 at 7:21 PM, Ritz123 [EMAIL PROTECTED] wrote:

 Hi,

 I have a custom Session object which is registered in the custom
 WebApplication class as newSession method override.

 The session object overrides static Session.get() method returning custom
 instance (covariant). The problem is, for some reason when I hit back
 button
 in the browser I get ClassCastException on session  (see below)


 Root cause:

 java.lang.ClassCastException: com.neobits.web.NeobitsWebSession
 at com.neobits.web.NeobitsWebSession.get(NeobitsWebSession.java:51)
 at
 com.neobits.web.pages.ViewCartPage$CartDetailsFragment$CheckoutButton.onSubmit(ViewCartPage.java:330)
 --
 View this message in context:
 http://www.nabble.com/Session.get-covariant-override-and-back-button-issue--tp18644053p18644053.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context: 
 http://www.nabble.com/Session.get-covariant-override-and-back-button-issue--tp18644053p18655735.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: [ANN] Brix 1.0 beta1

2008-07-25 Thread Igor Vaynberg
actually i do not see the problem. the url next to jetty did say
brix-demo, and the url next to war did say brixdemo, both are correct.
not sure where your confusion came from.

anyways, now that the jetty plugin is tweaked the url will always have
brixdemo as the context.

-igor

On Fri, Jul 25, 2008 at 8:08 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 the war file being built is brixdemo.war not brix-demo.war so the
 context when using war is /brixdemo

 i am thinking i will switch the war to brix-demo so it is more
 consistent with how mvn jetty:run does it

 -igor

 On Fri, Jul 25, 2008 at 3:58 AM, Newgro [EMAIL PROTECTED] wrote:

 The url in RunningTheDemo is not correct
 http://localhost:8080/brixdemo should be http://localhost:8080/brix-demo

 Cheers
 Per
 --
 View this message in context: 
 http://www.nabble.com/-ANN--Brix-1.0-beta1-tp18614003p18649472.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Prepopulating palette

2008-07-25 Thread kag1526

I'm working on a user profile and need to be able to pre-populate the fields
of the form with the current user profile but I can't get the palette fields
to work. 

This is my palette creation method if I use the first paletteModel (the one
that is commented out now) I will get the first item in the available list
shows in the selected box and nothing shows in the other one. If I use the
second paletteModel the avail list all populates correctly in the available
column but when I select some instead of i =
sourcePalette.getSelectedChoices(); returning the correct values (say they
were A, B, C) it will return the first value for each (A, A, A)

public PaletteString createPalette(ListString avail, ListString
selected, String id) {
//Model paletteModel = new Model((Serializable) selected);
Model paletteModel = new Model(new ArrayList());
Model choiceModel = new Model((Serializable)avail);

System.out.println(Available =  + avail.toString());
System.out.println(Selected =  + selected.toString());

PaletteString palette = new PaletteString(id, paletteModel,
choiceModel, 
new ChoiceRendererString(), 10, false);

return palette;
}


How can I fix this so the available and selected lists both populate
correctly?
-- 
View this message in context: 
http://www.nabble.com/Prepopulating-palette-tp18656359p18656359.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-25 Thread Paul Logasa Bogen II
I looks correct in IE6. I also tried disabling my CSS, but that didn't 
help either.

plb

Paul Logasa Bogen II wrote:
I went ahead and created a bare minimal project to illustrate the 
behavior, but It doesn't occur in the minimal project. I've gone over 
everything and I just can't seem to figure out where a difference that 
matters would be. I checked the generated source that Firefox renders 
and the information is in the source. And no JavaScript exceptions are 
thrown. I'm going to go ahead and give it a try in IE to see if it is 
some weird interaction between Firefox and the specifics of my code.


plb

Matej Knopp wrote:

Could you create a quickstart project that demonstrates the behavior
and send it to me directly (there's no issue tracker for grid yet)?

-Matej

On Fri, Jul 25, 2008 at 5:34 AM, Paul Logasa Bogen II [EMAIL PROTECTED] 
wrote:
 
These are the primary involved java source files, let me know if 
you'd like

to see any others.
plb

CollectionDataModel.java -- http://pastebin.ca/1082263
CollectionDataSource.java -- http://pastebin.ca/1082264
LoadPanel.java -- http://pastebin.ca/1082266


Paul Logasa Bogen II wrote:
   
I added a second entry to my database that backs the DataGrid and I 
still
see the same problem, but now when I click a sort (etc) to get it 
to show

only the first item shows.
plb

Paul Logasa Bogen II wrote:
 
Sure, no problem, I didn't want to spam the list with too much 
info if I

didn't need to.
I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded
Firefox) under Debian i686 and Debian x86_64

I am using Wicket 1.3.4 and the inMethod DataGrid is the current 
SVN code

under the 1.3.x branch.

plb

Matej Knopp wrote:
   

We use grid in modal window all the time. Can you be more specific
about the setup (browser, grid version, wicket version)?

-Matej

On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II 
[EMAIL PROTECTED]

wrote:

 

Howdy,

First of I'd like to say that I think Wicket is fantastic and after
trying
GWT and Thinwire, I finally have found a framework that is open,
supported,
mature, and lets me program how I want to. However, I am currently
having a
strange problem. I have a ModalWindow which is shown after an 
AjaxLink

is
clicked on a WebPage. On the panel used as the content for the
ModalWindow
is a DataGrid control. The Model and DataSource appear correct 
when I
inspect them in a debugger, yet the DataGrid does not show any 
contents

for
the  cells. It does show the correct number of rows, but the 
cells are
blank. Once I resize, or move the ModalWindow the contents 
magically

show.
Additionally, clicking a header to sort the rows or clicking a 
row to

select
it also causes the cells content to show. I think the problem is 
the
DataGrid's update isn't triggered between creation and the first 
time I

manipulate the DataGrid or the ModalWindow. Is there someway I can
force the
DataGrid to redraw when I show the Modal? update() doesn't work.

Thanks,
Paul Logasa Bogen II

- 


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




- 


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

  

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


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

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





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



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



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



FeedbackPanel HTML file question

2008-07-25 Thread insom

I'm just starting with Wicket and I'm trying to use a FeedbackPanel in my
main border. I want to change the appearance of the output so that it's not
just a plain ul. With my other panels, like UsernamePasswordSignInPanel, I
can change the display by editing the accompanying HTML file. However,
FeedbackPanel seems to be a standard component without an accompanying
FeedbackPanel.HTML file. How can I format its output?
-- 
View this message in context: 
http://www.nabble.com/FeedbackPanel-HTML-file-question-tp18656743p18656743.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: FeedbackPanel HTML file question

2008-07-25 Thread Igor Vaynberg
there is feedbackpanel.html next to feedbackpanel.class inside the
jar. open it and copy it. create a subclass of feedbackpanel eg
myfeedbackpanel and next to it put myfeedbackpanel.html and paste into
it the contents you copied from feedbackpanel.html.now you can
customize the html, but be sure to keep component nestings the same.

-igor

On Fri, Jul 25, 2008 at 10:55 AM, insom [EMAIL PROTECTED] wrote:

 I'm just starting with Wicket and I'm trying to use a FeedbackPanel in my
 main border. I want to change the appearance of the output so that it's not
 just a plain ul. With my other panels, like UsernamePasswordSignInPanel, I
 can change the display by editing the accompanying HTML file. However,
 FeedbackPanel seems to be a standard component without an accompanying
 FeedbackPanel.HTML file. How can I format its output?
 --
 View this message in context: 
 http://www.nabble.com/FeedbackPanel-HTML-file-question-tp18656743p18656743.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Strict 4 digit year for DateTextField?

2008-07-25 Thread damnitjim
Hi,
Has anyone been able to enforce that the year is 4 digits instead of two for
the DateTextField? Right now, if my format is MM/dd/ the DateTextField
is still allowing two digit fields to be submitted.

final String dateFormat = MM/dd/;
PatternDateConverter pdc = new PatternDateConverter( dateFormat, false );
add(DateTextField.withConverter(obligationDate,  pdc));

I looked at the JODA javadoc for DateTimeFormat that PatternDateConverter is
using but didn't see anything that would help (I saw ISODateTimeFormat that
came close but it doesn't allow you to pass in the format).

This seems like a reasonably straight forward problem so what am I missing?
Thanks!
Aye


Re: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-25 Thread Paul Logasa Bogen II
I have a version of my code without my DB stuff that exhibits the 
problem still. If anyone else is interested (other than Matej) let me 
know and I can send you a copy or post it to the web.

plb

Paul Logasa Bogen II wrote:
I looks correct in IE6. I also tried disabling my CSS, but that didn't 
help either.

plb

Paul Logasa Bogen II wrote:
I went ahead and created a bare minimal project to illustrate the 
behavior, but It doesn't occur in the minimal project. I've gone over 
everything and I just can't seem to figure out where a difference 
that matters would be. I checked the generated source that Firefox 
renders and the information is in the source. And no JavaScript 
exceptions are thrown. I'm going to go ahead and give it a try in IE 
to see if it is some weird interaction between Firefox and the 
specifics of my code.


plb

Matej Knopp wrote:

Could you create a quickstart project that demonstrates the behavior
and send it to me directly (there's no issue tracker for grid yet)?

-Matej

On Fri, Jul 25, 2008 at 5:34 AM, Paul Logasa Bogen II [EMAIL PROTECTED] 
wrote:
 
These are the primary involved java source files, let me know if 
you'd like

to see any others.
plb

CollectionDataModel.java -- http://pastebin.ca/1082263
CollectionDataSource.java -- http://pastebin.ca/1082264
LoadPanel.java -- http://pastebin.ca/1082266


Paul Logasa Bogen II wrote:
  
I added a second entry to my database that backs the DataGrid and 
I still
see the same problem, but now when I click a sort (etc) to get it 
to show

only the first item shows.
plb

Paul Logasa Bogen II wrote:

Sure, no problem, I didn't want to spam the list with too much 
info if I

didn't need to.
I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded
Firefox) under Debian i686 and Debian x86_64

I am using Wicket 1.3.4 and the inMethod DataGrid is the current 
SVN code

under the 1.3.x branch.

plb

Matej Knopp wrote:
  

We use grid in modal window all the time. Can you be more specific
about the setup (browser, grid version, wicket version)?

-Matej

On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II 
[EMAIL PROTECTED]

wrote:



Howdy,

First of I'd like to say that I think Wicket is fantastic and 
after

trying
GWT and Thinwire, I finally have found a framework that is open,
supported,
mature, and lets me program how I want to. However, I am currently
having a
strange problem. I have a ModalWindow which is shown after an 
AjaxLink

is
clicked on a WebPage. On the panel used as the content for the
ModalWindow
is a DataGrid control. The Model and DataSource appear correct 
when I
inspect them in a debugger, yet the DataGrid does not show any 
contents

for
the  cells. It does show the correct number of rows, but the 
cells are
blank. Once I resize, or move the ModalWindow the contents 
magically

show.
Additionally, clicking a header to sort the rows or clicking a 
row to

select
it also causes the cells content to show. I think the problem 
is the
DataGrid's update isn't triggered between creation and the 
first time I

manipulate the DataGrid or the ModalWindow. Is there someway I can
force the
DataGrid to redraw when I show the Modal? update() doesn't work.

Thanks,
Paul Logasa Bogen II

- 


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




- 


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

  
- 


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


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

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





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



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



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



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



Re: Session.get covariant override and back button issue?

2008-07-25 Thread Ritesh Trivedi

Ok turns out this morning when I restarted the server, it started working.
The things I had changed was the return  type for newSession in
WebApplication to be NeobitsWebSession and return type of the following
covariant method also to be NeobitsWebSession. I suppose thats how it
supposed to be - can someone confirm? also not sure why it was only throwing
exception during back button and not during normal browsing of the site in
forward direction.

I think the reason why this change didnt work yesterday was probably because
of the serialization, for some reason the serialization doesnt seem to
detect the new version of the class a lot of the times and I have to either
delete the session.ser file under tomcat or restart the tomcat server from
scratch to make it see the new classes.



igor.vaynberg wrote:
 
  public static NeobitsWebSession get()
{
Class clazz=Session.get();
System.out.println(clazz.getName());
return (NeobitsWebSession)Session.get();
}
 
 what does that print?
 
 -igor
 
 On Fri, Jul 25, 2008 at 10:00 AM, Ritz123 [EMAIL PROTECTED]
 wrote:

 Igor,

 I have posted the relevant code in the other reply to Tim. If you mean
 actual class being returned from the covariant get() method - I tried
 returning both Session and NeobitsWebSession (my custom websession
 class).
 But still get the same error.



 igor.vaynberg wrote:

 and so what is the actual class being returned?

 -igor

 On Thu, Jul 24, 2008 at 7:21 PM, Ritz123 [EMAIL PROTECTED]
 wrote:

 Hi,

 I have a custom Session object which is registered in the custom
 WebApplication class as newSession method override.

 The session object overrides static Session.get() method returning
 custom
 instance (covariant). The problem is, for some reason when I hit back
 button
 in the browser I get ClassCastException on session  (see below)


 Root cause:

 java.lang.ClassCastException: com.neobits.web.NeobitsWebSession
 at com.neobits.web.NeobitsWebSession.get(NeobitsWebSession.java:51)
 at
 com.neobits.web.pages.ViewCartPage$CartDetailsFragment$CheckoutButton.onSubmit(ViewCartPage.java:330)
 --
 View this message in context:
 http://www.nabble.com/Session.get-covariant-override-and-back-button-issue--tp18644053p18644053.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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




 --
 View this message in context:
 http://www.nabble.com/Session.get-covariant-override-and-back-button-issue--tp18644053p18655735.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Session.get-covariant-override-and-back-button-issue--tp18644053p18657342.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Getting hold of Container's markup

2008-07-25 Thread Ricky
Hi Igor,
Thanks for replying again and bearing with me, appreciate your help.

Here is what i have so far :
===
public static final String generatePlainTextFromContainer(final
MarkupContainer sourceContainer) {
sourceContainer.visitChildren(new Component.IVisitor() {

 // Loop through each child of the markup container to do
setRenderBodyOnly to true.
  public final Object component(final Component component) {
if (component != null) {
component.setRenderBodyOnly(true);
}
return CONTINUE_TRAVERSAL;
}
});

if (!sourceContainer.hasBeenRendered()) {
throw new IllegalStateException(Source container has not been
rendered.); *//  Is this right?*
}

 // uses REGEX to strip off all HTML etc.
// container.getResponse( ) gives me the content and HTML that i
need.
return
convertHTMLToPlainText(sourceContainer.getResponse().toString());
}

Now a part that i am missing is knowing WHEN and WHERE exactly should i
call this method, so that a panel or Page can be converted to plain text
(With COMPLETE markup). Right now, i get some markup, but some of the markup
(ESPECIALLY refreshing views) are missing altogether.

I tried to call it onBeforeRender( ) and as well as onAfterRender( ); but it
gives an empty response. I could replace if sourceContainer has not been
rendered if block contents with sourceContainer.render( ) to forcefully
render it, but it screws other things up in the page.

My goal is have this method being passed any PANEL or Page and be able to
generate plain text from it. When i pass in the panel it is UNABLE to get
the page so it throws an exception. So in work around i am thinking if i
create a Page and pass in the markup container to the constructor of the
page, i could add that to the page hierarchy and then get what i what i
want; but the issue with that is, that What ID will i put in my markup
HTML??


I would sincerely appreciate ideas / suggestion / responses on whether i am
going on the right track or is there a better way??

Thanks and Regards
Vyas, Anirudh

On Thu, Jul 24, 2008 at 1:47 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 application.init() {
 getrequestcyclesettngs().addresponsefilter(new iresponsefilter() {
  public appendingatringbuffer filter(appendingstringbuffer responsebuffer)
 {
 return responsebuffer.append(!-- generated at: +new Date()+ --);
  }
 }

 that is an example filter that adds a comment at the end of the html

 -igor

 On Thu, Jul 24, 2008 at 10:42 AM, Ricky [EMAIL PROTECTED] wrote:
  Hi Igor,
 
  Thanks for reply!
  My apologies, but could elaborate a little on IResponseFilter usage  as a
  skeletal example. I am not following Java documentation's verbiage that
 well
  (sorry if i come across as dumb).
 
  Regards
  Vyas, Anirudh
 
  On Wed, Jul 23, 2008 at 11:40 AM, Igor Vaynberg [EMAIL PROTECTED]
 
  wrote:
 
  see IResponseFilter.
 
  as far as spitting out text, wicket works with xml not plain text. but
  if you call setrenderbodyonly(true) on all components there wont be
  any xml tags left in the output.
 
  -igor
 
  On Wed, Jul 23, 2008 at 8:20 AM, Ricky [EMAIL PROTECTED] wrote:
   Hi,
  
   I have two questions (related) :
   1.) Is there a way in wicket to get Not the raw markup but markup
   *AFTER*the actual data has been inserted? (meaning the final HTML as
   we see it on
   the page?).
   2.) Similar to above scenario, can you use container to spit out
 markup
  in
   some other form, for example Plain Text or XML form ? (the markup with
   actual data).
  
   I prepared a test case for the same, which used a TestPage and Wicket
  Tester
   to start the page and then called testPage.getAssociateMarkup(true);
  and
   testPage.getMarkup(). I tried to call it after doing testPage.render()
  but
   no change.
  
  
   Regards
   Vyas, Anirudh
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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




Decoding hierarchy errors

2008-07-25 Thread David Nedrow

I have the following setup...

Page
TabbedPanel
Tab
Panel
ModalWindow
Panel
Form
FeedbackPanel

In the form, I've defined...

final FeedbackPanel feedback = new  
FeedbackPanel(createuserfeedback);

form.add(feedback);

This feedback panel is to be used to provide corrective guidance to  
users for field entry via a custom Validator.


The HTML for the Panel containing the form is pretty simple...

wicket:panel
form
span wicket:id=createuserfeedback/
...
/form
/wicket:panel

However, when I run the app, I received the following error...

WicketMessage: Unable to find component with id 'createuserfeedback'  
in [MarkupContainer [Component id = content, page =  
com.vzbi.ncs.argfrp.webapp.FilterRequest.web.pages.TabbedPanelPage,  
path = 2:tabs:panel:modalwindow:content.UserCreateModalWindow$1,  
isVisible = true, isVersioned = false]]. This means that you declared  
wicket:id=createuserfeedback in your markup, but that you either did  
not add the component to your page at all, or that the hierarchy does  
not match.
[markup = file:/Users/dnedrow/Developer/NetBeansProjects/ArgfrpEE/dist/ 
gfdeploy/FilterRequest_war/WEB-INF/classes/com/vzbi/ncs/argfrp/webapp/ 
FilterRequest/web/panels/UserCreatePanel.html

wicket:panel
form name=form
span wicket:id=createuserfeedback/span
...
/form
/wicket:panel
, index = 2, current = 'div wicket:id=createuserfeedback' (line 3,  
column 9)]


The target in the HTML matches the component id in the java file, so  
I'm guessing there is a hierarchy problem?


Any ideas?

-David

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



Re: Getting hold of Container's markup

2008-07-25 Thread Igor Vaynberg
my advice to you, if you want to go this way, is to use wickettester
to render the component. it is really easy to pull out the output from
that.

-igor

On Fri, Jul 25, 2008 at 11:51 AM, Ricky [EMAIL PROTECTED] wrote:
 Hi Igor,
 Thanks for replying again and bearing with me, appreciate your help.

 Here is what i have so far :
 ===
public static final String generatePlainTextFromContainer(final
 MarkupContainer sourceContainer) {
sourceContainer.visitChildren(new Component.IVisitor() {

 // Loop through each child of the markup container to do
 setRenderBodyOnly to true.
  public final Object component(final Component component) {
if (component != null) {
component.setRenderBodyOnly(true);
}
return CONTINUE_TRAVERSAL;
}
});

if (!sourceContainer.hasBeenRendered()) {
throw new IllegalStateException(Source container has not been
 rendered.); *//  Is this right?*
}

 // uses REGEX to strip off all HTML etc.
// container.getResponse( ) gives me the content and HTML that i
 need.
return
 convertHTMLToPlainText(sourceContainer.getResponse().toString());
 }

 Now a part that i am missing is knowing WHEN and WHERE exactly should i
 call this method, so that a panel or Page can be converted to plain text
 (With COMPLETE markup). Right now, i get some markup, but some of the markup
 (ESPECIALLY refreshing views) are missing altogether.

 I tried to call it onBeforeRender( ) and as well as onAfterRender( ); but it
 gives an empty response. I could replace if sourceContainer has not been
 rendered if block contents with sourceContainer.render( ) to forcefully
 render it, but it screws other things up in the page.

 My goal is have this method being passed any PANEL or Page and be able to
 generate plain text from it. When i pass in the panel it is UNABLE to get
 the page so it throws an exception. So in work around i am thinking if i
 create a Page and pass in the markup container to the constructor of the
 page, i could add that to the page hierarchy and then get what i what i
 want; but the issue with that is, that What ID will i put in my markup
 HTML??


 I would sincerely appreciate ideas / suggestion / responses on whether i am
 going on the right track or is there a better way??

 Thanks and Regards
 Vyas, Anirudh

 On Thu, Jul 24, 2008 at 1:47 PM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

 application.init() {
 getrequestcyclesettngs().addresponsefilter(new iresponsefilter() {
  public appendingatringbuffer filter(appendingstringbuffer responsebuffer)
 {
 return responsebuffer.append(!-- generated at: +new Date()+ --);
  }
 }

 that is an example filter that adds a comment at the end of the html

 -igor

 On Thu, Jul 24, 2008 at 10:42 AM, Ricky [EMAIL PROTECTED] wrote:
  Hi Igor,
 
  Thanks for reply!
  My apologies, but could elaborate a little on IResponseFilter usage  as a
  skeletal example. I am not following Java documentation's verbiage that
 well
  (sorry if i come across as dumb).
 
  Regards
  Vyas, Anirudh
 
  On Wed, Jul 23, 2008 at 11:40 AM, Igor Vaynberg [EMAIL PROTECTED]
 
  wrote:
 
  see IResponseFilter.
 
  as far as spitting out text, wicket works with xml not plain text. but
  if you call setrenderbodyonly(true) on all components there wont be
  any xml tags left in the output.
 
  -igor
 
  On Wed, Jul 23, 2008 at 8:20 AM, Ricky [EMAIL PROTECTED] wrote:
   Hi,
  
   I have two questions (related) :
   1.) Is there a way in wicket to get Not the raw markup but markup
   *AFTER*the actual data has been inserted? (meaning the final HTML as
   we see it on
   the page?).
   2.) Similar to above scenario, can you use container to spit out
 markup
  in
   some other form, for example Plain Text or XML form ? (the markup with
   actual data).
  
   I prepared a test case for the same, which used a TestPage and Wicket
  Tester
   to start the page and then called testPage.getAssociateMarkup(true);
  and
   testPage.getMarkup(). I tried to call it after doing testPage.render()
  but
   no change.
  
  
   Regards
   Vyas, Anirudh
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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




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



Re: Float Validation

2008-07-25 Thread Matthew Young
Provide your own IConverter from the TextField to not format number with
radix sign:

add(new TextField(id) {
@Override public final IConverter getConverter(Class type) {
return new IntegerConverter();
}
});

On Fri, Jul 25, 2008 at 2:55 AM, mabel25 [EMAIL PROTECTED] wrote:


 Hi,
 I have been trying to validate FLOAT values by using the NumberValidator.
 However, when I retrieve values such as '12000' from the database into a
 TextField, the textfield will automatically insert commas to become
 '12,000'
 and it will cause problems when I update the database.
 Can anyone please help? Thank you!
 --
 View this message in context:
 http://www.nabble.com/Float-Validation-tp18648670p18648670.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




RE: Strict 4 digit year for DateTextField?

2008-07-25 Thread Zappaterrini, Larry
I've had the same problem using java.text.DateFormat to validate the
same pattern you are using. The solution I use is to check the string
length to ensure that it is 10 characters. It might be nice if
PatternDateConverter were to be enhanced to have a required length value
to enforce this in an encapsulated manner, but it isn't required.


Larry

-Original Message-
From: damnitjim [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2008 2:03 PM
To: users@wicket.apache.org
Subject: Strict 4 digit year for DateTextField?

Hi,
Has anyone been able to enforce that the year is 4 digits instead of two
for
the DateTextField? Right now, if my format is MM/dd/ the
DateTextField
is still allowing two digit fields to be submitted.

final String dateFormat = MM/dd/;
PatternDateConverter pdc = new PatternDateConverter( dateFormat, false
);
add(DateTextField.withConverter(obligationDate,  pdc));

I looked at the JODA javadoc for DateTimeFormat that
PatternDateConverter is
using but didn't see anything that would help (I saw ISODateTimeFormat
that
came close but it doesn't allow you to pass in the format).

This seems like a reasonably straight forward problem so what am I
missing?
Thanks!
Aye

_

The information contained in this message is proprietary and/or confidential. 
If you are not the 
intended recipient, please: (i) delete the message and all copies; (ii) do not 
disclose, 
distribute or use the message in any manner; and (iii) notify the sender 
immediately. In addition, 
please be aware that any message addressed to our domain is subject to 
archiving and review by 
persons other than the intended recipient. Thank you.
_

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



ajax request timeout different from Session timeout?

2008-07-25 Thread dukehoops

Hi,

My webapp's session-timeout is set to 30 minutes but some ajax requests
result in PageExpiredExceptions if AjaxSubmitLinks are clicked after about 5
minutes of inactivity. 

Is there a timeout value for ajax requests (or page expiration timeout
values) that is distinct from HttpSession's timeout value? If so where is it
set and how can it be read/changed?

thanks
-nikita

-

Nikita Tovstoles
vside.com


-- 
View this message in context: 
http://www.nabble.com/ajax-request-timeout-different-from-Session-timeout--tp18660284p18660284.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: users, please give us your opinion: what is your take on generics with Wicket

2008-07-25 Thread jpswain

1) Generifying* Wicket 
[X ] Can best be done like currently in the 1.4 branch, where models 
and components are both generified. I care most about the improved 
static type checking generified models and components give Wicket. 

2) How strongly do you feel about your choice above? 
[X ] Whatever choice ultimately made, I'll happily convert/ start 
using 1.4 and up. 

Wicket Rocks!

Thanks!
-- 
View this message in context: 
http://www.nabble.com/users%2C-please-give-us-your-opinion%3A-what-is-your-take-on-generics-with-Wicket-tp17589984p18661192.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Possible bug in Localizer?

2008-07-25 Thread Jeremy Thomerson
Please take a look at this and tell me what you think.  I'm on 1.4-m2
(haven't upgraded to m3 yet - but looking forward to it).

Localizer : 332
while (cursor != null)
{
buffer.append(-).append(cursor.getClass().getName());
buffer.append(:).append(cursor.getId());
cursor = cursor.getParent();
if (cursor instanceof Page)
break;
}

I think that the cursor = cursor.getParent(); needs to go after the if /
break check.  In my case, I have two subclasses of SomePage, each containing
SomePanel, which contains SomeOtherPanel, which has a label in it with
string resource model (same happens with wicket:message).  The cache key
ends up being
RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID

If it were:
RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID:SomePageTypeOne
and
RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID:SomePageTypeTwo
then the resources would be looked up properly in SomePageTypeOne.properties
and SomePageTypeTwo.properties - which is the exact situation I have.

Is there a reason the page isn't included in the cache key?  This seems
suspicious to me.  There are many times that you might have the same
component tree, but in different pages, and need different resources loaded
for each, especially with naming patterns where your panels end up with
similar names across many pages.

I tried this by copying the code for Localizer to my local source tree and
changing it there - it works great.  Something must've changed in one of the
1.4 versions (I haven't looked to see where) because this used to work fine
for me, pulling the values from the correct properties files.

Thanks!
Jeremy Thomerson


Re: Possible bug in Localizer?

2008-07-25 Thread Igor Vaynberg
already fixed in m3

-igor

On Fri, Jul 25, 2008 at 10:41 PM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
 Please take a look at this and tell me what you think.  I'm on 1.4-m2
 (haven't upgraded to m3 yet - but looking forward to it).

 Localizer : 332
while (cursor != null)
{
buffer.append(-).append(cursor.getClass().getName());
buffer.append(:).append(cursor.getId());
cursor = cursor.getParent();
if (cursor instanceof Page)
break;
}

 I think that the cursor = cursor.getParent(); needs to go after the if /
 break check.  In my case, I have two subclasses of SomePage, each containing
 SomePanel, which contains SomeOtherPanel, which has a label in it with
 string resource model (same happens with wicket:message).  The cache key
 ends up being
 RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID

 If it were:
 RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID:SomePageTypeOne
 and
 RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID:SomePageTypeTwo
 then the resources would be looked up properly in SomePageTypeOne.properties
 and SomePageTypeTwo.properties - which is the exact situation I have.

 Is there a reason the page isn't included in the cache key?  This seems
 suspicious to me.  There are many times that you might have the same
 component tree, but in different pages, and need different resources loaded
 for each, especially with naming patterns where your panels end up with
 similar names across many pages.

 I tried this by copying the code for Localizer to my local source tree and
 changing it there - it works great.  Something must've changed in one of the
 1.4 versions (I haven't looked to see where) because this used to work fine
 for me, pulling the values from the correct properties files.

 Thanks!
 Jeremy Thomerson


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



Re: Possible bug in Localizer?

2008-07-25 Thread Jeremy Thomerson
Sorry I missed it.  I was on the road, connected over my phone, and didn't
have the bandwidth to scour the code changes.

You guys are just too good!

THANKS!

Jeremy

On Sat, Jul 26, 2008 at 12:48 AM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 already fixed in m3

 -igor

 On Fri, Jul 25, 2008 at 10:41 PM, Jeremy Thomerson
 [EMAIL PROTECTED] wrote:
  Please take a look at this and tell me what you think.  I'm on 1.4-m2
  (haven't upgraded to m3 yet - but looking forward to it).
 
  Localizer : 332
 while (cursor != null)
 {
 buffer.append(-).append(cursor.getClass().getName());
 buffer.append(:).append(cursor.getId());
 cursor = cursor.getParent();
 if (cursor instanceof Page)
 break;
 }
 
  I think that the cursor = cursor.getParent(); needs to go after the if /
  break check.  In my case, I have two subclasses of SomePage, each
 containing
  SomePanel, which contains SomeOtherPanel, which has a label in it with
  string resource model (same happens with wicket:message).  The cache key
  ends up being
 
 RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID
 
  If it were:
 
 RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID:SomePageTypeOne
  and
 
 RESOURCE-KEY-SomeOtherPanelClassName:SomeOtherPanelWicketID-SomePanelClassName:SomeOtherPanelWicketID:SomePageTypeTwo
  then the resources would be looked up properly in
 SomePageTypeOne.properties
  and SomePageTypeTwo.properties - which is the exact situation I have.
 
  Is there a reason the page isn't included in the cache key?  This seems
  suspicious to me.  There are many times that you might have the same
  component tree, but in different pages, and need different resources
 loaded
  for each, especially with naming patterns where your panels end up with
  similar names across many pages.
 
  I tried this by copying the code for Localizer to my local source tree
 and
  changing it there - it works great.  Something must've changed in one of
 the
  1.4 versions (I haven't looked to see where) because this used to work
 fine
  for me, pulling the values from the correct properties files.
 
  Thanks!
  Jeremy Thomerson
 

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