Re: URL mounting on Websphere causes Error 404

2009-03-12 Thread Philippe Marzouk
On Wed, Mar 11, 2009 at 07:04:17AM -0700, Goran Novak wrote:
 
 Hi,
 
 I developed my application using Jetty server and URL mounting worked fine.
 
 When I deploy it on Websphere it still works but on the end of HTML response
 to browser, string Error 404: SRVE0190E: File not found: /home is
 appended.
 
 I'm using:
 - wicket 1.3.4
 - IBM WebSphere Application Server - ND, 6.0.2.17 Build Number: cf170648.10
 Build Date: 11/29/06
 - java version 1.5.0_12 (build 1.5.0_12-b04)
 
 Example of URL mount:
 mount(new QueryStringUrlCodingStrategy(/home, HomePage.class));
 
 End of source of return HTML:
 html
 ?xml version='1.0' encoding='UTF-8'?
 html
 head
 ...
 !-- some HTML cut --
 ...
 /table
 /body
 /html
 Error 404: SRVE0190E: File not found: /home
 html
 
 Does somebody have an idea what could be the problem?
 Without URL mounting string does not apear on Websphere.
 

If you are using WicketFilter you need to apply this:

http://www-01.ibm.com/support/docview.wss?uid=swg24014758

Philippe

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



Re: wicket - opensocial integration (with example code)

2009-03-12 Thread Martin Funk

I'd even ask for one step further.
How about creating some quickstart with this and add it to wicketstuff.
Not quite sure, maybe this script could be turned into a reusable  
HeaderContributor.


mf
Am 12.03.2009 um 03:23 schrieb Igor Vaynberg:


Armin, maybe you should put this on our wiki page. threads like this
tend to get lost easily in all the traffic.

-igor

On Wed, Mar 11, 2009 at 4:28 PM, Armin Bauer  
armin.ba...@amiando.com wrote:

Hi everyone,

we are currently working on an opensocial application based on  
wicket.
Currently it is not possible to use the ajax functionality of  
wicket in an

opensocial app.

opensocial is based on iframes which run your html / js in a seperate
domain. If you build a widget for myspace.com for example, your  
html will
run in msappspace.com which will prevent ajax call due to cross  
domain

browser security. Luckily there is a opensocial method
gadgets.io.makeRequest to pull xml content from your backend  
which is
proxied through the opensocial container and basically works like  
an ajax

request.

so i created a bridge which replaces the XHR of wicket-ajax.js with  
an

implementation based on makeRequest. Without further ado:

script type=text/javascript

Wicket.Ajax.createTransport = function() {
  return {

  open: function(method, url, async) {
  this.url = url;
  },

  setRequestHeader: function(key, value) {

  },
send: function(body) {
  var req_params = new Object();
  req_params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.TEXT;
  var req = gadgets.io.makeRequest(http://your.server.com; +
this.url +  + body, this.callback.bind(this), req_params);
  },
callback: function(data) {
  this.responseText = data.text;
  this.status = 200;
  this.readyState = 4;
  this.onreadystatechange();
  },
getResponseHeader: function(key) {
  return null;
  },
abort: function() {
}
};
}

/script

By including this script below your wicket-ajax script in the  
opensocial app
you can use finally use ajax functionality directly on the canvas.  
It should
work completely transparent so no changes in your wicket code  
should be
required. Developing / porting wicket code to opensocial apps  
should be a

lot easier now :)

Note that this example does not support error handling, headers,  
aborting
and GET request also do not work completely. Adding this  
functionality
should be easy however. Feel free to use / modify / publish the  
code as you

like.

Best Regards,
Armin

-
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: DropDownChoice NO_SELECTION_VALUE static field

2009-03-12 Thread ulrik

Okay, I will see If I can figure out how :)
I have never done that


igor.vaynberg wrote:
 
 please open a jira issue.
 
 -igor
 
 On Wed, Mar 11, 2009 at 1:32 AM, ulrik ulrik.hagb...@gmail.com wrote:

 Hello!

 I have an issue with the DropDownChoice (wicket 1.3.4).

 Lets say I do this:

 ListOption _options = getOptions();
 someRenderer = new ChoiceRenderer() {
 ...
 }

 DropDownChoice _ddc = new DropDownChoice(dropDown, new
 Model((Serializable) _option),options, someRenderer);

 The Option class looks like this:

 public class Option {
 private String display_name;
 private String id;

 gettersAndSetters...
 }

 If I select an Option from the DDC, and that Option has id = -1, the
 AbstractSingleSelectChoice#getDefaultChoice(final Object selected) will
 interpret my choice as the protected static final String
 NO_SELECTION_VALUE
 = -1 in AbstractSingleSelectChoice.java.

 The result will be that the Choose one option is visible in the DDC.
 Shouldn't the NO_SELECTION_VALUE be customizable?



 --
 View this message in context:
 http://www.nabble.com/DropDownChoice-NO_SELECTION_VALUE-static-field-tp22451464p22451464.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-NO_SELECTION_VALUE-static-field-tp22451464p22471221.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: DropDownChoice NO_SELECTION_VALUE static field

2009-03-12 Thread ulrik

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

// Ulrik



ulrik wrote:
 
 Okay, I will see If I can figure out how :)
 I have never done that
 
 
 igor.vaynberg wrote:
 
 please open a jira issue.
 
 -igor
 
 On Wed, Mar 11, 2009 at 1:32 AM, ulrik ulrik.hagb...@gmail.com wrote:

 Hello!

 I have an issue with the DropDownChoice (wicket 1.3.4).

 Lets say I do this:

 ListOption _options = getOptions();
 someRenderer = new ChoiceRenderer() {
 ...
 }

 DropDownChoice _ddc = new DropDownChoice(dropDown, new
 Model((Serializable) _option),options, someRenderer);

 The Option class looks like this:

 public class Option {
 private String display_name;
 private String id;

 gettersAndSetters...
 }

 If I select an Option from the DDC, and that Option has id = -1, the
 AbstractSingleSelectChoice#getDefaultChoice(final Object selected) will
 interpret my choice as the protected static final String
 NO_SELECTION_VALUE
 = -1 in AbstractSingleSelectChoice.java.

 The result will be that the Choose one option is visible in the DDC.
 Shouldn't the NO_SELECTION_VALUE be customizable?



 --
 View this message in context:
 http://www.nabble.com/DropDownChoice-NO_SELECTION_VALUE-static-field-tp22451464p22451464.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-NO_SELECTION_VALUE-static-field-tp22451464p22471229.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: DataView Model

2009-03-12 Thread Linda van der Pal

Quoted from Wicket in Action:

When a component needs its model value but doesn't have a model 
assigned, it traverses its component hierarchy for a parent with a 
CompoundPropertyModel. The component then uses its component identifier 
as the property expression on the CompoundPropertyModel's value for 
retrieving the property's value to display.


Linda.

Douglas Ferguson wrote:

Yeah.. but, why would get/set be called on a dataview?
The strange thing is that it was barfing like this before.

Douglas

-Original Message-
From: Linda van der Pal [mailto:lvd...@heritageagenturen.nl] 
Sent: Wednesday, March 11, 2009 10:24 AM

To: users@wicket.apache.org
Subject: Re: DataView  Model

Did you use a CompoundPropertyModel on the page? If so, that would 
explain why it was looking for a setter with the name of the DataView.


Linda.

Douglas Ferguson wrote:
  

I just started using some code that was retired for awhile, so I'm not sure 
what all changed around it and the behavior I'm seeing is really strange.

I have a DataView on my page and wicket is complain that my model object 
doesn't have a getter for the id of the DataView.
I.E. DataView is called alternateWebsites and wicket is complaining that the 
model object doesn't have getAleternateWebsites.

I'm confused as to what change would make a DataView itself call set/get 
Model???
I'm also confused how the compound property model is even getting attached to 
the DataView.

I was able to fix this with a setModel(new Model()) on the dataView. But that 
seems awefully hackish.

Douglas

  




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.278 / Virus Database: 270.11.10/1994 - Release Date: 03/10/09 19:51:00


  




-
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
  




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.278 / Virus Database: 270.11.10/1994 - Release Date: 03/10/09 19:51:00


  



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



Craeating panels which are stored in map

2009-03-12 Thread newbie_to_wicket

Hi All,

I am storing the keys and panels in hashmap.

ex : map.put(itemname,nameofPanel); // nameofpanel is the Actual panel  

whenever i search an item nameofpanel will get it from map.

after that the panel should be open in new window (Modal Window).

so i dont want to use if conditions to check the key and create a panel
object according to the key. 

rather is there any way to create the panel once i pick it from the map.


Ex : nameofpanel   = map.get(abc); now i got the panelname , i 've to
create the panel and attatch it to the webpage. i.e my criteria.. EXPanel ex
= new Expanel(result); add(ex);

I do apologize if it is not a wicket question 



thanks
J

 
-- 
View this message in context: 
http://www.nabble.com/Craeating-panels-which-are-stored-in-map-tp22471232p22471232.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: Modal Window inside a wizardstep

2009-03-12 Thread jensiator

I stoped using panels as content in the modal window. Then the problem went
away. Now I only use PageCreator when working with modalwindows. Theres is
as well a problem with datetime pickers in modalwindows when using panels,
so I guess pages is best in modals. 
Jens
-- 
View this message in context: 
http://www.nabble.com/Modal-Window-inside-a-wizardstep-tp22181084p22471237.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: Extensible wicket application

2009-03-12 Thread Daniel Dominik Holúbek
Firstly, thanks for you reply :)
I have already read that document regarding wicket and OSGi, but I think it
is written for more experienced users at OSGi. As I wrote before, I even do
not know how to build a simple web OSGi project (what should I deploy, how
to install those bundles - I can't access any console..)
I imagine this application like this: I visit some administration page,
where can I upload a jar file containing the extension. The jar file then
installs into running application and creates some records in database. I
can then decide where in the page should this extension appear.
The main problem is this. I think my application should have some OSGi
container. I have already tried some bridge.war from some webpage (I
don't remember now, which one was it), it is running correctly, but I really
do not know what to do now. Add some bundles? Where? How? :)
Btw, I am running Sun Java System Application Server.

Could you (or anybody else) help me with this? :)

Thanks a lot.

On Wed, Mar 11, 2009 at 9:37 PM, Fabrizio Giudici 
fabrizio.giud...@tidalwave.it wrote:

 Daniel Dominik Holúbek wrote:


 I have looked at OSGi a bit, but I do not understand it (basically I do
 not
 even now how to build a project with it :) )

 Does anybody have any clue?
 I hope I have written this clearly enough. If not, feel free to ask :)


 Daniel,

 designing modular applications using classloader is not easy as it might
 seem. Your specific problem could be even simple, but soon you'll find more
 complex cases. So, if modules are important to you, I suggest you look at
 what others have done or to existing framework. You have cited OSGi an if
 you search a few weeks ago back in the archive of this mailing list there
 was a guy that linked a paper about how to use OSGi and Wicket. I've done
 something similar with the NetBeans Platform. You might also have a look at
 Glassfish v3 which is extensible by means of OSGi and could be a starting
 point.

 --
 Fabrizio Giudici - Java Architect, Project Manager
 Tidalwave s.a.s. - We make Java work. Everywhere.
 weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
 fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941


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




-- 
-danoh-


Re: Escapeing of single quotes for AutoCompleteTextField

2009-03-12 Thread Thomas Gier

Igor,

I upgraded to rc2 yesterday but this behaviour didn't change.

I tried that but with no luck. The HTML-entity is replaced by the 
'-character somewhere down the line and entries containing an apostrophe 
can't be transfered from the autocompleted list to the text field.


I'm sorry that I can't be of much help here. I have very limited time 
the next two days and will be out-of-office for two weeks starting on 
Monday. Of course, when I'm back I will dig deeper into this.



Regards
Tom



Igor Vaynberg schrieb:

can you try replacing it with apos; and see if that works better?

-igor

2009/3/11 Thomas Gier thomas.g...@factscience.de

  

Hello,

I'm using wicket version 1.4-rc1.

I have a list of journals coming from a database from which selects. I
present this list in an AutoCompleteTextField. Some of the Journal's name
contain single quotes like in Reader's Digest. It's not possible to select
an entry with single quotes. I think the single quote breaks the JavaScript.

As a quick and dirty solution I now replace every single quote with a `
in getChoices(). This is somehow acceptable but not really working in IE6
which complains about a type mismatch.

Does anybody have better strategy to work around this? A similar problem
must have hit somebody else out there :)


Thanks for reading
Tom

--

_

Thomas Gier

QLEO GmbH
Theaterstr. 13
52062 Aachen

Tel +49-241-900 89-21
Fax +49-241-900 89-19

thomas.g...@qleo.de
www.qleo.de

QLEO Science: System-Lösungen für Forschung - Lehre - Administration

_

QLEO Science GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 90089-0 ;
Fax +49 241 90089-19
Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321

Geschäftsführer:
Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R.
Dipl.-Ing. Daniel Müllers SAE
Dipl.-Math. Armin Priggen

_

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.


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





  



--
_

Thomas Gier

QLEO GmbH
Theaterstr. 13
52062 Aachen

Tel +49-241-900 89-21
Fax +49-241-900 89-19

thomas.g...@qleo.de
www.qleo.de

QLEO Science: System-Lösungen für Forschung - Lehre - Administration
_

QLEO Science GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 90089-0 ; Fax 
+49 241 90089-19
Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321

Geschäftsführer:
Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R.
Dipl.-Ing. Daniel Müllers SAE
Dipl.-Math. Armin Priggen
_

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der 
richtige Adressat sind oder diese eMail irrtümlich erhalten haben, informieren Sie bitte sofort den 
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe 
dieser Mail ist nicht gestattet.



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



Re: URL mounting on Websphere causes Error 404

2009-03-12 Thread Goran Novak



you are using wicket filter or servlet?

-igor




I'm using filter.

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class

-- 
View this message in context: 
http://www.nabble.com/URL-mounting-on-Websphere-causes-Error-404-tp22455795p22471450.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: URL mounting on Websphere causes Error 404

2009-03-12 Thread Goran Novak



Philippe Marzouk-2 wrote:
 
 
 If you are using WicketFilter you need to apply this:
 
 http://www-01.ibm.com/support/docview.wss?uid=swg24014758
 
 Philippe
 
 


I tryed to add the custom property and restarted the server but the problem
still occures.

com.ibm.ws.webcontainer.invokefilterscompatibility = true   
-- 
View this message in context: 
http://www.nabble.com/URL-mounting-on-Websphere-causes-Error-404-tp22455795p22471451.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: Extensible wicket application

2009-03-12 Thread Ernesto Reinaldo Barreiro
Hi Daniel,
Some comments inlined.

On Thu, Mar 12, 2009 at 9:37 AM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:

 Firstly, thanks for you reply :)
 I have already read that document regarding wicket and OSGi, but I think it
 is written for more experienced users at OSGi. As I wrote before, I even do
 not know how to build a simple web OSGi project (what should I deploy, how
 to install those bundles - I can't access any console..)


In my experience getting used to do things the OSGi way is difficult at
the beginning but latter on the effort will pay off... In fact it is
relatively easy to set up a Wicket-OSGi project if you are using Eclipse for
development and you don't mind using equinox as your OSGi
implementation. You could easily build a WEB console to manage plug-ins
(bundles) on your application.


 I imagine this application like this: I visit some administration page,
 where can I upload a jar file containing the extension. The jar file then
 installs into running application and creates some records in database. I
 can then decide where in the page should this extension appear.
 The main problem is this. I think my application should have some OSGi
 container. I have already tried some bridge.war from some webpage (I
 don't remember now, which one was it), it is running correctly, but I
 really
 do not know what to do now. Add some bundles? Where? How? :)
 Btw, I am running Sun Java System Application Server.


Probably yo are reffering to [1] ? You will have to export your bundles into
the plug-ins section inside this war. This war is just a WEB application
that starts an OSGi runtime (an equinox) and uses a Servlet to manage it and
to redirect requests to your application to the servlets you mount using the
HTTP service provided by the equinox runtime.

If you need more help I could help you set up such a project (although
currently I do not have much spare time;-)

Best,

Ernesto

References

1-http://www.eclipse.org/equinox/server/


Re: URL mounting on Websphere causes Error 404

2009-03-12 Thread Philippe Marzouk
On Thu, Mar 12, 2009 at 02:04:11AM -0700, Goran Novak wrote:
 
 
 
 Philippe Marzouk-2 wrote:
  
  
  If you are using WicketFilter you need to apply this:
  
  http://www-01.ibm.com/support/docview.wss?uid=swg24014758
  
 
 
 I tryed to add the custom property and restarted the server but the problem
 still occures.
 
 com.ibm.ws.webcontainer.invokefilterscompatibility = true   

It works for me on Websphere Process Server 6.1.2.1 which has WAS 6.1.0.19

Be sure the property was added on the Web Container custom properties
and not elsewhere.

Philippe

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



AW: AW: Tabbed Panel with bookmarkable links

2009-03-12 Thread Christian Helmbold

The development of the bookmarkable tabbed panel component is continued on 
http://wicketskunkworks.org. We decided to use a Google Code project for now 
but we plan to make the final component available via wicket stuff or maybe in 
the extensions tree of the core distribution (i don't know if there is any 
relation between wicketstuff and the extensions of the core framework).

Regards
Christian






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



Re: AW: Tabbed Panel with bookmarkable links

2009-03-12 Thread Martijn Dashorst
Why start yet another project when the intention is to move it to stuff anyway?

Martijn

On Thu, Mar 12, 2009 at 12:22 PM, Christian Helmbold
christian.helmb...@yahoo.de wrote:

 The development of the bookmarkable tabbed panel component is continued on 
 http://wicketskunkworks.org. We decided to use a Google Code project for now 
 but we plan to make the final component available via wicket stuff or maybe 
 in the extensions tree of the core distribution (i don't know if there is any 
 relation between wicketstuff and the extensions of the core framework).

 Regards
 Christian






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





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

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



Re: Extensible wicket application

2009-03-12 Thread Richard Allen
Here is a good intro to OSGi:
http://www.javaworld.com/javaworld/jw-03-2008/jw-03-osgi1.html
Here is one framework for running Wicket in OSGi:
http://www.ops4j.org/projects/pax/wicket/
Here is a project that integrates Guice, Wicket, Hibernate, and OSGi:
http://code.google.com/p/modulefusion/

-Richard


On Thu, Mar 12, 2009 at 5:07 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Hi Daniel,
 Some comments inlined.

 On Thu, Mar 12, 2009 at 9:37 AM, Daniel Dominik Holúbek 
 dankodo...@gmail.com wrote:

  Firstly, thanks for you reply :)
  I have already read that document regarding wicket and OSGi, but I think
 it
  is written for more experienced users at OSGi. As I wrote before, I even
 do
  not know how to build a simple web OSGi project (what should I deploy,
 how
  to install those bundles - I can't access any console..)


 In my experience getting used to do things the OSGi way is difficult at
 the beginning but latter on the effort will pay off... In fact it is
 relatively easy to set up a Wicket-OSGi project if you are using Eclipse
 for
 development and you don't mind using equinox as your OSGi
 implementation. You could easily build a WEB console to manage plug-ins
 (bundles) on your application.


  I imagine this application like this: I visit some administration page,
  where can I upload a jar file containing the extension. The jar file then
  installs into running application and creates some records in database. I
  can then decide where in the page should this extension appear.
  The main problem is this. I think my application should have some OSGi
  container. I have already tried some bridge.war from some webpage (I
  don't remember now, which one was it), it is running correctly, but I
  really
  do not know what to do now. Add some bundles? Where? How? :)
  Btw, I am running Sun Java System Application Server.


 Probably yo are reffering to [1] ? You will have to export your bundles
 into
 the plug-ins section inside this war. This war is just a WEB application
 that starts an OSGi runtime (an equinox) and uses a Servlet to manage it
 and
 to redirect requests to your application to the servlets you mount using
 the
 HTTP service provided by the equinox runtime.

 If you need more help I could help you set up such a project (although
 currently I do not have much spare time;-)

 Best,

 Ernesto

 References

 1-http://www.eclipse.org/equinox/server/



Why to set a model to a form?

2009-03-12 Thread Christian Helmbold

Hello,

I wonder why I should set a model to a form, if every form field just holds a 
reference to the (same) model. Take a look at an example from Wicket in Action 
(page 91):

public class MyForm extends Form {
  public MyForm(String id) {
super(id);
Customer customer = new Customer();
setModel(new Model(customer)); // Why?
add(new TextField(name, new PropertyModel(customer, name)));
add(new TextField(street, 
new PropertyModel(customer, address.street)));
  }
  protected void onSubmit() {
Customer customer = (Customer)getModelObject();
String street = customer.getAddress().getStreet();
// do something with the value oft the street property
  }
}

Is there an advantage over keeping a reference to customer in MyForm like in 
the following example?

public class MyForm extends Form {
private Customer customer = new Customer();;
  public MyForm(String id) {
super(id);
//setModel(new Model(customer)); Not needed anymore.
add(new TextField(name, new PropertyModel(customer, name)));
add(new TextField(street, 
new PropertyModel(customer, address.street)));
  }
  protected void onSubmit() {
//Customer customer = (Customer)getModelObject(); Not needed anymore.
String street = customer.getAddress().getStreet();
  }
}

Thanks for enlightenment,
Christian





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



Re: Extensible wicket application

2009-03-12 Thread Ernesto Reinaldo Barreiro
Add this to your list:

http://code.google.com/p/antilia/

Ernesto

On Thu, Mar 12, 2009 at 1:06 PM, Richard Allen richard.l.al...@gmail.comwrote:

 Here is a good intro to OSGi:
 http://www.javaworld.com/javaworld/jw-03-2008/jw-03-osgi1.html
 Here is one framework for running Wicket in OSGi:
 http://www.ops4j.org/projects/pax/wicket/
 Here is a project that integrates Guice, Wicket, Hibernate, and OSGi:
 http://code.google.com/p/modulefusion/

 -Richard


 On Thu, Mar 12, 2009 at 5:07 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

  Hi Daniel,
  Some comments inlined.
 
  On Thu, Mar 12, 2009 at 9:37 AM, Daniel Dominik Holúbek 
  dankodo...@gmail.com wrote:
 
   Firstly, thanks for you reply :)
   I have already read that document regarding wicket and OSGi, but I
 think
  it
   is written for more experienced users at OSGi. As I wrote before, I
 even
  do
   not know how to build a simple web OSGi project (what should I deploy,
  how
   to install those bundles - I can't access any console..)
 
 
  In my experience getting used to do things the OSGi way is difficult at
  the beginning but latter on the effort will pay off... In fact it is
  relatively easy to set up a Wicket-OSGi project if you are using Eclipse
  for
  development and you don't mind using equinox as your OSGi
  implementation. You could easily build a WEB console to manage plug-ins
  (bundles) on your application.
 
 
   I imagine this application like this: I visit some administration page,
   where can I upload a jar file containing the extension. The jar file
 then
   installs into running application and creates some records in database.
 I
   can then decide where in the page should this extension appear.
   The main problem is this. I think my application should have some OSGi
   container. I have already tried some bridge.war from some webpage (I
   don't remember now, which one was it), it is running correctly, but I
   really
   do not know what to do now. Add some bundles? Where? How? :)
   Btw, I am running Sun Java System Application Server.
 
 
  Probably yo are reffering to [1] ? You will have to export your bundles
  into
  the plug-ins section inside this war. This war is just a WEB application
  that starts an OSGi runtime (an equinox) and uses a Servlet to manage it
  and
  to redirect requests to your application to the servlets you mount using
  the
  HTTP service provided by the equinox runtime.
 
  If you need more help I could help you set up such a project (although
  currently I do not have much spare time;-)
 
  Best,
 
  Ernesto
 
  References
 
  1-http://www.eclipse.org/equinox/server/
 



Re: Why to set a model to a form?

2009-03-12 Thread Jeremy Thomerson
A model decouples your form from where the object comes from.  For instance,
any time I create a form for adding an entity, I almost always use the same
form for editing the entity.  The form simply takes a IModelMyEntity and
doesn't care if that is new ModelCustomer(new Customer()) or new
DBObjectModelCustomer(Customer.class, 1234)

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



On Thu, Mar 12, 2009 at 6:50 AM, Christian Helmbold 
christian.helmb...@yahoo.de wrote:


 Hello,

 I wonder why I should set a model to a form, if every form field just holds
 a reference to the (same) model. Take a look at an example from Wicket in
 Action (page 91):

 public class MyForm extends Form {
  public MyForm(String id) {
super(id);
Customer customer = new Customer();
setModel(new Model(customer)); // Why?
add(new TextField(name, new PropertyModel(customer, name)));
add(new TextField(street,
new PropertyModel(customer, address.street)));
  }
  protected void onSubmit() {
Customer customer = (Customer)getModelObject();
String street = customer.getAddress().getStreet();
// do something with the value oft the street property
  }
 }

 Is there an advantage over keeping a reference to customer in MyForm like
 in the following example?

 public class MyForm extends Form {
private Customer customer = new Customer();;
  public MyForm(String id) {
super(id);
//setModel(new Model(customer)); Not needed anymore.
add(new TextField(name, new PropertyModel(customer, name)));
add(new TextField(street,
new PropertyModel(customer, address.street)));
  }
  protected void onSubmit() {
//Customer customer = (Customer)getModelObject(); Not needed anymore.
String street = customer.getAddress().getStreet();
  }
 }

 Thanks for enlightenment,
 Christian





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




Re: wicketstuff-jamon

2009-03-12 Thread shetc

Hi Lars,

Your Jamon implementation looks very good and I was able to easily integrate
it with my Wicket 
project. Please tell me what the current status of this code is, and will it
be okay to add it to
a production application?

Thanks,
Steve
-- 
View this message in context: 
http://www.nabble.com/wicketstuff-jamon-tp16125597p22476908.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: Extensible wicket application

2009-03-12 Thread Daniel Dominik Holúbek
Hello :)
I looked at the links listed below, seemed interesting, but the main problem
(how to set up such a project) remains unsolved.
So I think I really do need help :)

It seems to me, though, that this whole thing is much too complicated. I
need only some simple loading of multiple jars :)
But if it would work, I don't care how :)

Thanks again!

On Thu, Mar 12, 2009 at 10:07 AM, Ernesto Reinaldo Barreiro 
reier...@gmail.com wrote:

 Hi Daniel,
 Some comments inlined.

 On Thu, Mar 12, 2009 at 9:37 AM, Daniel Dominik Holúbek 
 dankodo...@gmail.com wrote:

  Firstly, thanks for you reply :)
  I have already read that document regarding wicket and OSGi, but I think
 it
  is written for more experienced users at OSGi. As I wrote before, I even
 do
  not know how to build a simple web OSGi project (what should I deploy,
 how
  to install those bundles - I can't access any console..)


 In my experience getting used to do things the OSGi way is difficult at
 the beginning but latter on the effort will pay off... In fact it is
 relatively easy to set up a Wicket-OSGi project if you are using Eclipse
 for
 development and you don't mind using equinox as your OSGi
 implementation. You could easily build a WEB console to manage plug-ins
 (bundles) on your application.


  I imagine this application like this: I visit some administration page,
  where can I upload a jar file containing the extension. The jar file then
  installs into running application and creates some records in database. I
  can then decide where in the page should this extension appear.
  The main problem is this. I think my application should have some OSGi
  container. I have already tried some bridge.war from some webpage (I
  don't remember now, which one was it), it is running correctly, but I
  really
  do not know what to do now. Add some bundles? Where? How? :)
  Btw, I am running Sun Java System Application Server.


 Probably yo are reffering to [1] ? You will have to export your bundles
 into
 the plug-ins section inside this war. This war is just a WEB application
 that starts an OSGi runtime (an equinox) and uses a Servlet to manage it
 and
 to redirect requests to your application to the servlets you mount using
 the
 HTTP service provided by the equinox runtime.

 If you need more help I could help you set up such a project (although
 currently I do not have much spare time;-)

 Best,

 Ernesto

 References

 1-http://www.eclipse.org/equinox/server/




-- 
-danoh-


Re: AW: Tabbed Panel with bookmarkable links

2009-03-12 Thread Brill Pappin
I don't think we know that it will be moved... right now we only know  
that we two need it.


- Brill

On 12-Mar-09, at 7:28 AM, Martijn Dashorst wrote:

Why start yet another project when the intention is to move it to  
stuff anyway?


Martijn

On Thu, Mar 12, 2009 at 12:22 PM, Christian Helmbold
christian.helmb...@yahoo.de wrote:


The development of the bookmarkable tabbed panel component is  
continued on http://wicketskunkworks.org. We decided to use a  
Google Code project for now but we plan to make the final component  
available via wicket stuff or maybe in the extensions tree of the  
core distribution (i don't know if there is any relation between  
wicketstuff and the extensions of the core framework).


Regards
Christian






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






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

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




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



can we get this patch applied to the current snapshot?

2009-03-12 Thread Brill Pappin

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

- Brill

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



Wicket Bench not being maintained?

2009-03-12 Thread Brill Pappin
I notice that Wicket Bench is not being maintained... it's plugin site  
seems to be down, its JIRA is down, is forum is down... the only think  
I can get to is the source repo.


Does anyone know if its being maintained, or is it time to rescue the  
code and continue it some other place (lic allowing)?


- Brill

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



Re: Escapeing of single quotes for AutoCompleteTextField

2009-03-12 Thread Igor Vaynberg
open a jira issue, sounds like a bug

-igor

2009/3/12 Thomas Gier thomas.g...@factscience.de:
 Igor,

 I upgraded to rc2 yesterday but this behaviour didn't change.

 I tried that but with no luck. The HTML-entity is replaced by the
 '-character somewhere down the line and entries containing an apostrophe
 can't be transfered from the autocompleted list to the text field.

 I'm sorry that I can't be of much help here. I have very limited time the
 next two days and will be out-of-office for two weeks starting on Monday. Of
 course, when I'm back I will dig deeper into this.


 Regards
 Tom



 Igor Vaynberg schrieb:

 can you try replacing it with apos; and see if that works better?

 -igor

 2009/3/11 Thomas Gier thomas.g...@factscience.de



 Hello,

 I'm using wicket version 1.4-rc1.

 I have a list of journals coming from a database from which selects. I
 present this list in an AutoCompleteTextField. Some of the Journal's name
 contain single quotes like in Reader's Digest. It's not possible to
 select
 an entry with single quotes. I think the single quote breaks the
 JavaScript.

 As a quick and dirty solution I now replace every single quote with a `
 in getChoices(). This is somehow acceptable but not really working in IE6
 which complains about a type mismatch.

 Does anybody have better strategy to work around this? A similar problem
 must have hit somebody else out there :)


 Thanks for reading
 Tom

 --


 _

 Thomas Gier

 QLEO GmbH
 Theaterstr. 13
 52062 Aachen

 Tel +49-241-900 89-21
 Fax +49-241-900 89-19

 thomas.g...@qleo.de
 www.qleo.de

 QLEO Science: System-Lösungen für Forschung - Lehre - Administration


 _

 QLEO Science GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 90089-0 ;
 Fax +49 241 90089-19
 Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321

 Geschäftsführer:
 Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R.
 Dipl.-Ing. Daniel Müllers SAE
 Dipl.-Math. Armin Priggen


 _

 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
 Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail
 irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
 vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
 Weitergabe dieser Mail ist nicht gestattet.


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







 --
 _

 Thomas Gier

 QLEO GmbH
 Theaterstr. 13
 52062 Aachen

 Tel +49-241-900 89-21
 Fax +49-241-900 89-19

 thomas.g...@qleo.de
 www.qleo.de

 QLEO Science: System-Lösungen für Forschung - Lehre - Administration
 _

 QLEO Science GmbH, Theaterstr. 13, D-52062 Aachen, Tel. +49 241 90089-0 ;
 Fax +49 241 90089-19
 Sitz der Gesellschaft: Aachen - Amtsgericht Aachen HR B 7321

 Geschäftsführer:
 Dr. rer. medic. Dipl.-Ing Bernhard Krause M.O.R.
 Dipl.-Ing. Daniel Müllers SAE
 Dipl.-Math. Armin Priggen
 _

 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
 Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail
 irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
 vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
 Weitergabe dieser Mail ist nicht gestattet.


 -
 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: Possible to retrieve previous page from PageMap

2009-03-12 Thread rolandpeng

thanks john,
but how to define variable lastPageIdVersionKey?
It seems you missed the statement in the original post. thanks.

Roland.


John Patterson wrote:
 
   HashMapString,PageIdVersion lastPageMap =
 getSession().getMetaData(lastPageIdVersionKey);   
 
 

-- 
View this message in context: 
http://www.nabble.com/Possible-to-retrieve-previous-page-from-PageMap-tp20861106p22479144.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 Bench not being maintained?

2009-03-12 Thread Igor Vaynberg
the lic as far as i know is asl2 so feel free to do whatever you want
with the code.

-igor

On Thu, Mar 12, 2009 at 8:13 AM, Brill Pappin br...@pappin.ca wrote:
 I notice that Wicket Bench is not being maintained... it's plugin site seems
 to be down, its JIRA is down, is forum is down... the only think I can get
 to is the source repo.

 Does anyone know if its being maintained, or is it time to rescue the code
 and continue it some other place (lic allowing)?

 - Brill

 -
 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-Security security check on component on a panel

2009-03-12 Thread Warren Bell
Doing the security check in onBeforeRender() in the Panel fixed it. I 
did not have a Page yet.


Warren

   I am trying to do a security check on a component that is on a panel
   like this:

   if(SecureComponentHelper.isAuthenticated(myComponent) 
   SecureComponentHelper.isActionAuthorized(myComponent, enable)) {
   // Do Something }

   I have also tried this:

   if(myComponent.isAuthenticated() 
   !myComponent.isActionAuthorized(enable)) { // Do Something }

   Basically the same thing. myComponent implements ISecureComponent.
   setSecurityCheck(new ComponentSecurityCheck(this)) is called in the
   constructors of myComponent.

   This works fine if myComponent is on a page, but does not work if
   myComponent is on a panel. I get the following exception:

   Caused by: org.apache.wicket.security.strategies.SecurityException:
   Unable to create alias for component: [MarkupContainer [Component id
   = myComponent]] at
   
org.apache.wicket.security.components.SecureComponentHelper.alias(SecureComponentHelper.java:263)
   at
   
org.apache.wicket.security.hive.authorization.permissions.ComponentPermission.init(ComponentPermission.java:54)
   at
   
org.apache.wicket.security.swarm.strategies.SwarmStrategy.isComponentAuthorized(SwarmStrategy.java:228)
   at
   
org.apache.wicket.security.checks.ComponentSecurityCheck.isActionAuthorized(ComponentSecurityCheck.java:127)
   at
   
org.apache.wicket.security.components.SecureComponentHelper.isActionAuthorized(SecureComponentHelper.java:177)
   at
   
com.scanman.panels.menus.MainMenuHandHeldPanel.init(MainMenuHandHeldPanel.java:123)
   at com.scanman.pages.menus.MainMenu$2.init(MainMenu.java:157) at
   com.scanman.pages.menus.MainMenu.init(MainMenu.java:157) ... 28
   more Caused by: java.lang.IllegalStateException: No Page found for
   component [MarkupContainer [Component id = resetButtonContainer]] at
   org.apache.wicket.Component.getPage(Component.java:1729) at
   
org.apache.wicket.security.components.SecureComponentHelper.alias(SecureComponentHelper.java:259)
   ... 35 more

   How do you do a security check on a component that is on a panel?

   Thanks,

   Warren



Is it possible to have some sort of a controller in wicket

2009-03-12 Thread rag...@directi

Is it possible to have some sort of a controller in wicket?

i have a situation where i want to map a url to a controller sort of thing
and based on certain conditions i want to redirect the user to different
pages.

for example 

all request to application.com/

should to go a controller and based on different states of session

i want 
if(condition1)
go to page one

if(condition2)
go to page two

and so on. so in my case the home is not exactly a page but based on
diffent conditions i want to redirect the user to different pages. rite now
i am doing it in a page class whose responsibility is just to
setResponsePage to differnt pages. But i feel it is not a good designcoz
This is not a page at all. it is some sort of a controller.

2) Also is it possible to map the tabs of the tabbed panel to dirrent urls
 like tab1 to application.com/tab1
tab2 to application.com/tab2
tab3 to application.com/tab3

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-have-some-sort-of-a-controller-in-wicket-tp22480617p22480617.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: Is it possible to have some sort of a controller in wicket

2009-03-12 Thread Igor Vaynberg
sure, its called a servlet :)

in 1.5 we are building a more flexible url handling infrastructure
that will let you do such things, in 1.4 its probably the easiest with
a servlet or a filter that redirects to different bookmarkable urls.

-igor

On Thu, Mar 12, 2009 at 9:51 AM, rag...@directi
raghav.agar...@gmail.com wrote:

 Is it possible to have some sort of a controller in wicket?

 i have a situation where i want to map a url to a controller sort of thing
 and based on certain conditions i want to redirect the user to different
 pages.

 for example

 all request to application.com/

 should to go a controller and based on different states of session

 i want
 if(condition1)
 go to page one

 if(condition2)
 go to page two

 and so on. so in my case the home is not exactly a page but based on
 diffent conditions i want to redirect the user to different pages. rite now
 i am doing it in a page class whose responsibility is just to
 setResponsePage to differnt pages. But i feel it is not a good designcoz
 This is not a page at all. it is some sort of a controller.

 2) Also is it possible to map the tabs of the tabbed panel to dirrent urls
  like tab1 to application.com/tab1
 tab2 to application.com/tab2
 tab3 to application.com/tab3

 --
 View this message in context: 
 http://www.nabble.com/Is-it-possible-to-have-some-sort-of-a-controller-in-wicket-tp22480617p22480617.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



AW: Is it possible to have some sort of a controller in wicket

2009-03-12 Thread Christian Helmbold

You could use a different Servlet or ServletFilter as the central entry point 
for requests and redirect to bookmarkable Wicket-Pages. But to access a wicket 
session via HttpServlet interface from the outside is not exactly was is called 
elegant.

 2) Also is it possible to map the tabs of the tabbed panel to dirrent urls
 like tab1 to application.com/tab1
 tab2 to application.com/tab2
 tab3 to application.com/tab3

You can use a tabbed panel with bookmarkable links. Coding state of the tabs 
into the URLs is a bit tricky and therefor a created a BookmarkableTabbedPanel:

http://code.google.com/p/wicket-skunkworks/source/browse/trunk/wicket-pagetabs/src/main/java/org/wicketskunkworks/tabs/BookmarkableTabbedPanel.java

As far as I have tested it, it works but it is still experimantal.

Regards
Christian





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



Wicket training in Sweden?

2009-03-12 Thread Kent Larsson
Hi,

I'm simply wondering if there exists any company providing Wicket
training in Sweden? And if there is, what you know about them?

Best regards, Kent

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



Re: wicketstuff-jamon

2009-03-12 Thread shetc

Hi Lars,

Your Jamon implementation looks very good and I was able to easily integrate
it with my Wicket
project. Please tell me what the current status of this code is, and will it
be okay to add it to
a production application?

Thanks,
Steve  
-- 
View this message in context: 
http://www.nabble.com/wicketstuff-jamon-tp16125597p22481222.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: wicketstuff-jamon

2009-03-12 Thread shetc

Hi Lars,

Your Jamon implementation looks very good and I was able to easily integrate
it with my Wicket
project. Please tell me what the current status of this code is, and will it
be okay to add it to
a production application?

Thanks,
Steve  
-- 
View this message in context: 
http://www.nabble.com/wicketstuff-jamon-tp16125597p22481260.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: Shared string resources

2009-03-12 Thread Seven Corners

Thank you for giving such an explicit answer, Steve.  The thing is, I do that
all the time, and this is the answer for when you have an associated
component.  I am looking for how to do it with strings shared throughout the
WebApplication; i.e., there is no component and the string is in the
application's xml file.  I've looked all over Wicket in Action and perhaps
it's in there, but I just can't find it.  That's why I'm posting.

So I have the string I need in my app.xml.  Within a panel on one of the
pages, I instantiate a StringResourceModel with a string ID from the app.xml
file like so:

class MyPanel extends Panel
{
...
add( new Label( strLabelId, new StringResourceModel( strRescId, null ) )
);
...
}

I'm guessing I need to use the StringResourceModel(String resourceKey,
IModel? model)  ctor because the string is not associated with a
component, and I'm setting the model to null because ultimately I'd be
getting the value from a bean if I did and the bean can't return the string
for the same reason I'm having troubles, namely that it's not a component so
it can't have a properties file associated with it.

I get a runtime exception that it can't find that string for my component,
which makes perfect sense.  I understand why it fails.  I can kludge a
workaround.  I don't want to; I know you have the capability to create a
shared string table and I want to do it right.

So what am I doing wrong?


Steve Swinsburg-2 wrote:
 
 You can also just use ResourceModel(some.string.property) if you  
 don't have any thing that needs to be substituted into the strings  
 when they are rendered.
 ie
 some.string.property=this is some text
 
 or StringResourceModel( various constructors ) if you need some  
 dynamic value in there:
 ie
 some.string.property=This is a {0} string
 
 This will work from the same YourApplicationName.properties file.
 
 
 cheers,
 Steve
 
 
 
 On 11/03/2009, at 7:24 PM, Jeremy Thomerson wrote:
 
 Put them in YourApplicationName.properties and use  
 StringResourceModel.  See
 internationalization help in Wicket in Action.

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



 On Wed, Mar 11, 2009 at 2:20 PM, Seven Corners  
 shel...@blackwave.tv wrote:


 I have some strings that I'd like to access from a common string  
 table that
 is not tied to any particular component.  How can I do this?
 --
 View this message in context:
 http://www.nabble.com/Shared-string-resources- 
 tp22462537p22462537.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Shared-string-resources-tp22462537p22481472.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: Shared string resources

2009-03-12 Thread Seven Corners

Thank you for giving such an explicit answer, Steve.  The thing is, I do that
all the time, and this is the answer for when you have an associated
component.  I am looking for how to do it with strings shared throughout the
WebApplication; i.e., there is no component and the string is in the
application's xml file.  I've looked all over Wicket in Action and perhaps
it's in there, but I just can't find it.  That's why I'm posting.

So I have the string I need in my app.xml.  Within a panel on one of the
pages, I instantiate a StringResourceModel with a string ID from the app.xml
file like so:

class MyPanel extends Panel
{
...
add( new Label( strLabelId, new StringResourceModel( strRescId, null ) )
);
...
}

I'm guessing I need to use the StringResourceModel(String resourceKey,
IModel? model)  ctor because the string is not associated with a
component, and I'm setting the model to null because ultimately I'd be
getting the value from a bean if I did and the bean can't return the string
for the same reason I'm having troubles, namely that it's not a component so
it can't have a properties file associated with it.

I get a runtime exception that it can't find that string for my component,
which makes perfect sense.  I understand why it fails.  I can kludge a
workaround.  I don't want to; I know you have the capability to create a
shared string table and I want to do it right.

So what am I doing wrong?


Steve Swinsburg-2 wrote:
 
 You can also just use ResourceModel(some.string.property) if you  
 don't have any thing that needs to be substituted into the strings  
 when they are rendered.
 ie
 some.string.property=this is some text
 
 or StringResourceModel( various constructors ) if you need some  
 dynamic value in there:
 ie
 some.string.property=This is a {0} string
 
 This will work from the same YourApplicationName.properties file.
 
 
 cheers,
 Steve
 
 
 
 On 11/03/2009, at 7:24 PM, Jeremy Thomerson wrote:
 
 Put them in YourApplicationName.properties and use  
 StringResourceModel.  See
 internationalization help in Wicket in Action.

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



 On Wed, Mar 11, 2009 at 2:20 PM, Seven Corners  
 shel...@blackwave.tv wrote:


 I have some strings that I'd like to access from a common string  
 table that
 is not tied to any particular component.  How can I do this?
 --
 View this message in context:
 http://www.nabble.com/Shared-string-resources- 
 tp22462537p22462537.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Shared-string-resources-tp22462537p22481473.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 training in Sweden?

2009-03-12 Thread jWeekend

Kent,

We occasionally organise such courses if there is enough interest.
We've also had several Scandinavians pop over to London for jWeekend
training (weekdays and weekends) and, coincidentally, our Wicket training
course earlier this week had 2 Swedes and A Dane on it as well! 

Check our site for course details and student reviews and 
http://jweekend.com/dev/ContactUsBody/ send us a note  if you'd like more
information.

Regards - Cemal
http://jWeekend.com jWeekend 

 


Kent Larsson-3 wrote:
 
 Hi,
 
 I'm simply wondering if there exists any company providing Wicket
 training in Sweden? And if there is, what you know about them?
 
 Best regards, Kent
 
 -
 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/Wicket-training-in-Sweden--tp22481207p22481970.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: Shared string resources

2009-03-12 Thread Jeremy Thomerson
In which app.xml file is it in?  An XML properties file?  Or in some Spring
(etc) config file?

String loading from Wicket's built in resources framework is quite robust.
If you have a .properties file (or .xml properties file if you choose -
certain languages require this format because of encoding) named the same as
your application (MyApp.java = MyApp.properties or MyApp.xml), then you can
use string loading just like if it were MyComponent.java and
MyComponent.properties.  This is well documented in Wicket in Action, which
leads me to believe that you are talking rather about some app.xml Spring
config.  In which case, you'll probably need to add a resource locator in
your application's init method to locate resources in custom locations.

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



On Thu, Mar 12, 2009 at 12:30 PM, Seven Corners shel...@blackwave.tvwrote:


 Thank you for giving such an explicit answer, Steve.  The thing is, I do
 that
 all the time, and this is the answer for when you have an associated
 component.  I am looking for how to do it with strings shared throughout
 the
 WebApplication; i.e., there is no component and the string is in the
 application's xml file.  I've looked all over Wicket in Action and perhaps
 it's in there, but I just can't find it.  That's why I'm posting.

 So I have the string I need in my app.xml.  Within a panel on one of the
 pages, I instantiate a StringResourceModel with a string ID from the
 app.xml
 file like so:

 class MyPanel extends Panel
 {
...
add( new Label( strLabelId, new StringResourceModel( strRescId, null ) )
 );
...
 }

 I'm guessing I need to use the StringResourceModel(String resourceKey,
 IModel? model)  ctor because the string is not associated with a
 component, and I'm setting the model to null because ultimately I'd be
 getting the value from a bean if I did and the bean can't return the string
 for the same reason I'm having troubles, namely that it's not a component
 so
 it can't have a properties file associated with it.

 I get a runtime exception that it can't find that string for my component,
 which makes perfect sense.  I understand why it fails.  I can kludge a
 workaround.  I don't want to; I know you have the capability to create a
 shared string table and I want to do it right.

 So what am I doing wrong?


 Steve Swinsburg-2 wrote:
 
  You can also just use ResourceModel(some.string.property) if you
  don't have any thing that needs to be substituted into the strings
  when they are rendered.
  ie
  some.string.property=this is some text
 
  or StringResourceModel( various constructors ) if you need some
  dynamic value in there:
  ie
  some.string.property=This is a {0} string
 
  This will work from the same YourApplicationName.properties file.
 
 
  cheers,
  Steve
 
 
 
  On 11/03/2009, at 7:24 PM, Jeremy Thomerson wrote:
 
  Put them in YourApplicationName.properties and use
  StringResourceModel.  See
  internationalization help in Wicket in Action.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Wed, Mar 11, 2009 at 2:20 PM, Seven Corners
  shel...@blackwave.tv wrote:
 
 
  I have some strings that I'd like to access from a common string
  table that
  is not tied to any particular component.  How can I do this?
  --
  View this message in context:
  http://www.nabble.com/Shared-string-resources-
  tp22462537p22462537.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Shared-string-resources-tp22462537p22481472.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: Shared string resources

2009-03-12 Thread Seven Corners

No, I'm not using Spring.  It's an XML properties file with the same name as
my application.



Jeremy Thomerson-5 wrote:
 
 In which app.xml file is it in?  An XML properties file?  Or in some
 Spring
 (etc) config file?
 
 String loading from Wicket's built in resources framework is quite robust.
 If you have a .properties file (or .xml properties file if you choose -
 certain languages require this format because of encoding) named the same
 as
 your application (MyApp.java = MyApp.properties or MyApp.xml), then you
 can
 use string loading just like if it were MyComponent.java and
 MyComponent.properties.  This is well documented in Wicket in Action,
 which
 leads me to believe that you are talking rather about some app.xml Spring
 config.  In which case, you'll probably need to add a resource locator in
 your application's init method to locate resources in custom locations.
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Thu, Mar 12, 2009 at 12:30 PM, Seven Corners
 shel...@blackwave.tvwrote:
 

 Thank you for giving such an explicit answer, Steve.  The thing is, I do
 that
 all the time, and this is the answer for when you have an associated
 component.  I am looking for how to do it with strings shared throughout
 the
 WebApplication; i.e., there is no component and the string is in the
 application's xml file.  I've looked all over Wicket in Action and
 perhaps
 it's in there, but I just can't find it.  That's why I'm posting.

 So I have the string I need in my app.xml.  Within a panel on one of the
 pages, I instantiate a StringResourceModel with a string ID from the
 app.xml
 file like so:

 class MyPanel extends Panel
 {
...
add( new Label( strLabelId, new StringResourceModel( strRescId, null )
 )
 );
...
 }

 I'm guessing I need to use the StringResourceModel(String resourceKey,
 IModel? model)  ctor because the string is not associated with a
 component, and I'm setting the model to null because ultimately I'd be
 getting the value from a bean if I did and the bean can't return the
 string
 for the same reason I'm having troubles, namely that it's not a component
 so
 it can't have a properties file associated with it.

 I get a runtime exception that it can't find that string for my
 component,
 which makes perfect sense.  I understand why it fails.  I can kludge a
 workaround.  I don't want to; I know you have the capability to create a
 shared string table and I want to do it right.

 So what am I doing wrong?


 Steve Swinsburg-2 wrote:
 
  You can also just use ResourceModel(some.string.property) if you
  don't have any thing that needs to be substituted into the strings
  when they are rendered.
  ie
  some.string.property=this is some text
 
  or StringResourceModel( various constructors ) if you need some
  dynamic value in there:
  ie
  some.string.property=This is a {0} string
 
  This will work from the same YourApplicationName.properties file.
 
 
  cheers,
  Steve
 
 
 
  On 11/03/2009, at 7:24 PM, Jeremy Thomerson wrote:
 
  Put them in YourApplicationName.properties and use
  StringResourceModel.  See
  internationalization help in Wicket in Action.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Wed, Mar 11, 2009 at 2:20 PM, Seven Corners
  shel...@blackwave.tv wrote:
 
 
  I have some strings that I'd like to access from a common string
  table that
  is not tied to any particular component.  How can I do this?
  --
  View this message in context:
  http://www.nabble.com/Shared-string-resources-
  tp22462537p22462537.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Shared-string-resources-tp22462537p22481472.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


 
 

-- 
View this message in context: 
http://www.nabble.com/Shared-string-resources-tp22462537p22482508.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: Shared string resources

2009-03-12 Thread Seven Corners

No, I'm not using Spring.  It's an XML properties file with the same name as
my application.



Jeremy Thomerson-5 wrote:
 
 In which app.xml file is it in?  An XML properties file?  Or in some
 Spring
 (etc) config file?
 
 String loading from Wicket's built in resources framework is quite robust.
 If you have a .properties file (or .xml properties file if you choose -
 certain languages require this format because of encoding) named the same
 as
 your application (MyApp.java = MyApp.properties or MyApp.xml), then you
 can
 use string loading just like if it were MyComponent.java and
 MyComponent.properties.  This is well documented in Wicket in Action,
 which
 leads me to believe that you are talking rather about some app.xml Spring
 config.  In which case, you'll probably need to add a resource locator in
 your application's init method to locate resources in custom locations.
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 On Thu, Mar 12, 2009 at 12:30 PM, Seven Corners
 shel...@blackwave.tvwrote:
 

 Thank you for giving such an explicit answer, Steve.  The thing is, I do
 that
 all the time, and this is the answer for when you have an associated
 component.  I am looking for how to do it with strings shared throughout
 the
 WebApplication; i.e., there is no component and the string is in the
 application's xml file.  I've looked all over Wicket in Action and
 perhaps
 it's in there, but I just can't find it.  That's why I'm posting.

 So I have the string I need in my app.xml.  Within a panel on one of the
 pages, I instantiate a StringResourceModel with a string ID from the
 app.xml
 file like so:

 class MyPanel extends Panel
 {
...
add( new Label( strLabelId, new StringResourceModel( strRescId, null )
 )
 );
...
 }

 I'm guessing I need to use the StringResourceModel(String resourceKey,
 IModel? model)  ctor because the string is not associated with a
 component, and I'm setting the model to null because ultimately I'd be
 getting the value from a bean if I did and the bean can't return the
 string
 for the same reason I'm having troubles, namely that it's not a component
 so
 it can't have a properties file associated with it.

 I get a runtime exception that it can't find that string for my
 component,
 which makes perfect sense.  I understand why it fails.  I can kludge a
 workaround.  I don't want to; I know you have the capability to create a
 shared string table and I want to do it right.

 So what am I doing wrong?


 Steve Swinsburg-2 wrote:
 
  You can also just use ResourceModel(some.string.property) if you
  don't have any thing that needs to be substituted into the strings
  when they are rendered.
  ie
  some.string.property=this is some text
 
  or StringResourceModel( various constructors ) if you need some
  dynamic value in there:
  ie
  some.string.property=This is a {0} string
 
  This will work from the same YourApplicationName.properties file.
 
 
  cheers,
  Steve
 
 
 
  On 11/03/2009, at 7:24 PM, Jeremy Thomerson wrote:
 
  Put them in YourApplicationName.properties and use
  StringResourceModel.  See
  internationalization help in Wicket in Action.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Wed, Mar 11, 2009 at 2:20 PM, Seven Corners
  shel...@blackwave.tv wrote:
 
 
  I have some strings that I'd like to access from a common string
  table that
  is not tied to any particular component.  How can I do this?
  --
  View this message in context:
  http://www.nabble.com/Shared-string-resources-
  tp22462537p22462537.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Shared-string-resources-tp22462537p22481472.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


 
 

-- 
View this message in context: 
http://www.nabble.com/Shared-string-resources-tp22462537p22482510.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: Shared string resources

2009-03-12 Thread Jeremy Thomerson
Then it should just work.  Try using a ResourceModel.  If that doesn't
work, enable the logging for Wicket's resource loading package, restart your
app, navigate to that page and watch the quite detailed logging output to
see why it's not loading.  It should work, though.

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



On Thu, Mar 12, 2009 at 1:17 PM, Seven Corners shel...@blackwave.tv wrote:


 No, I'm not using Spring.  It's an XML properties file with the same name
 as
 my application.



 Jeremy Thomerson-5 wrote:
 
  In which app.xml file is it in?  An XML properties file?  Or in some
  Spring
  (etc) config file?
 
  String loading from Wicket's built in resources framework is quite
 robust.
  If you have a .properties file (or .xml properties file if you choose -
  certain languages require this format because of encoding) named the same
  as
  your application (MyApp.java = MyApp.properties or MyApp.xml), then you
  can
  use string loading just like if it were MyComponent.java and
  MyComponent.properties.  This is well documented in Wicket in Action,
  which
  leads me to believe that you are talking rather about some app.xml Spring
  config.  In which case, you'll probably need to add a resource locator in
  your application's init method to locate resources in custom locations.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Thu, Mar 12, 2009 at 12:30 PM, Seven Corners
  shel...@blackwave.tvwrote:
 
 
  Thank you for giving such an explicit answer, Steve.  The thing is, I do
  that
  all the time, and this is the answer for when you have an associated
  component.  I am looking for how to do it with strings shared throughout
  the
  WebApplication; i.e., there is no component and the string is in the
  application's xml file.  I've looked all over Wicket in Action and
  perhaps
  it's in there, but I just can't find it.  That's why I'm posting.
 
  So I have the string I need in my app.xml.  Within a panel on one of the
  pages, I instantiate a StringResourceModel with a string ID from the
  app.xml
  file like so:
 
  class MyPanel extends Panel
  {
 ...
 add( new Label( strLabelId, new StringResourceModel( strRescId, null
 )
  )
  );
 ...
  }
 
  I'm guessing I need to use the StringResourceModel(String resourceKey,
  IModel? model)  ctor because the string is not associated with a
  component, and I'm setting the model to null because ultimately I'd be
  getting the value from a bean if I did and the bean can't return the
  string
  for the same reason I'm having troubles, namely that it's not a
 component
  so
  it can't have a properties file associated with it.
 
  I get a runtime exception that it can't find that string for my
  component,
  which makes perfect sense.  I understand why it fails.  I can kludge a
  workaround.  I don't want to; I know you have the capability to create a
  shared string table and I want to do it right.
 
  So what am I doing wrong?
 
 
  Steve Swinsburg-2 wrote:
  
   You can also just use ResourceModel(some.string.property) if you
   don't have any thing that needs to be substituted into the strings
   when they are rendered.
   ie
   some.string.property=this is some text
  
   or StringResourceModel( various constructors ) if you need some
   dynamic value in there:
   ie
   some.string.property=This is a {0} string
  
   This will work from the same YourApplicationName.properties file.
  
  
   cheers,
   Steve
  
  
  
   On 11/03/2009, at 7:24 PM, Jeremy Thomerson wrote:
  
   Put them in YourApplicationName.properties and use
   StringResourceModel.  See
   internationalization help in Wicket in Action.
  
   --
   Jeremy Thomerson
   http://www.wickettraining.com
  
  
  
   On Wed, Mar 11, 2009 at 2:20 PM, Seven Corners
   shel...@blackwave.tv wrote:
  
  
   I have some strings that I'd like to access from a common string
   table that
   is not tied to any particular component.  How can I do this?
   --
   View this message in context:
   http://www.nabble.com/Shared-string-resources-
   tp22462537p22462537.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
 
  --
  View this message in context:
  http://www.nabble.com/Shared-string-resources-tp22462537p22481472.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
 
 
 
 

 --
 View this message in 

Re: Wicket training in Sweden?

2009-03-12 Thread Kent Larsson
Hi Cemal,

Thank you for your reply. I think the course looks interesting.

I'm giving the link to this mail thread to my manager.

Best regards,
Kent

On Thu, Mar 12, 2009 at 6:49 PM, jWeekend jweekend_for...@cabouge.com wrote:

 Kent,

 We occasionally organise such courses if there is enough interest.
 We've also had several Scandinavians pop over to London for jWeekend
 training (weekdays and weekends) and, coincidentally, our Wicket training
 course earlier this week had 2 Swedes and A Dane on it as well!

 Check our site for course details and student reviews and
 http://jweekend.com/dev/ContactUsBody/ send us a note  if you'd like more
 information.

 Regards - Cemal
 http://jWeekend.com jWeekend




 Kent Larsson-3 wrote:

 Hi,

 I'm simply wondering if there exists any company providing Wicket
 training in Sweden? And if there is, what you know about them?

 Best regards, Kent

 -
 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/Wicket-training-in-Sweden--tp22481207p22481970.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



Modal Window performance problem

2009-03-12 Thread dtoffe

Hi,

I'm having performance problems when opening a modal window. This
problem occurs on a lower end POS touchscreen box (Celeron 900, 512 RAM),
where the modal window takes some 6-9 seconds to open. I've tried in other
lower end machines with better processor and the delay is not so big.
Out of curiosity, I've profiled the modal window javascript with
Firebug, and found that disableFocusElement() in modal.js, line 1374, calls
itself recursively, and in the profiler output it's listed at the top with
1049 calls.
Since the problem occurs mostly only on that machines, I'm not blaming
the javascript code, but I wonder if anyone else has had similar problems
and if there is some way of avoiding the recursive calls.
Almost forgot to say, I'm using Wicket 1.3.5 and Firefox 3.0.7/MSIE 7.0.

Thanks for your comments,

Daniel

-- 
View this message in context: 
http://www.nabble.com/Modal-Window-performance-problem-tp22482640p22482640.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



building a wicket app with maven 1

2009-03-12 Thread Steve Swinsburg

Hi all,

I have a need to backport my wicket app that builds perfectly in  
Maven2 to Maven1. I think I've adjusted all the pom.xml to project.xml  
correctly as all the classes and dependent jars looks like they are  
where they need to be, but on startup I get this:


java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

Although in my WEB-INF/lib I have (amongst the others) the required  
jars:


slf4j-log4j12-1.4.2.jar
log4j-1.2.14.jar


Any idea what's missing? Does anyone else build under Maven1?

thanks,
Steve




smime.p7s
Description: S/MIME cryptographic signature


Re: building a wicket app with maven 1

2009-03-12 Thread Jeremy Thomerson
It's very unlikely that someone will be able to help you without actually
seeing the POM / XML file(s).  Also, you might try the Maven mailing list.
But at least supply the file - it will surely increase your chances of
finding assistance here.

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



On Thu, Mar 12, 2009 at 1:39 PM, Steve Swinsburg 
s.swinsb...@lancaster.ac.uk wrote:

 Hi all,
 I have a need to backport my wicket app that builds perfectly in Maven2 to
 Maven1. I think I've adjusted all the pom.xml to project.xml correctly as
 all the classes and dependent jars looks like they are where they need to
 be, but on startup I get this:

 java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

 Although in my WEB-INF/lib I have (amongst the others) the required jars:

 slf4j-log4j12-1.4.2.jar
 log4j-1.2.14.jar


 Any idea what's missing? Does anyone else build under Maven1?

 thanks,
 Steve





Re: AutoCompletetextField misbehavior in IE

2009-03-12 Thread cbchhaya

Never mind, I was doing something daft but have now correctly replaced with
the Mar 10 snapshot for 1.3.5 and the thing works fine.

Thanks everyone for your help!
-- 
View this message in context: 
http://www.nabble.com/AutoCompletetextField-misbehavior-in-IE-tp22459455p22483102.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: building a wicket app with maven 1

2009-03-12 Thread Stephen Swinsburg

Ok I'll post when I get back into the office.

I was mainly wondering if anyone knew of some major issue with Maven1  
and Wicket/SLF4J - ie the versions in the Maven repositories etc. I  
note that the Maven1 repo now uses the Maven2 artifacts.


I guess, in order to rule out Maven, I could just place the right jars  
in the right spot manually and see if that works ;)


Steve


On 12/03/2009, at 6:47 PM, Jeremy Thomerson wrote:

It's very unlikely that someone will be able to help you without  
actually
seeing the POM / XML file(s).  Also, you might try the Maven mailing  
list.

But at least supply the file - it will surely increase your chances of
finding assistance here.

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



On Thu, Mar 12, 2009 at 1:39 PM, Steve Swinsburg 
s.swinsb...@lancaster.ac.uk wrote:


Hi all,
I have a need to backport my wicket app that builds perfectly in  
Maven2 to
Maven1. I think I've adjusted all the pom.xml to project.xml  
correctly as
all the classes and dependent jars looks like they are where they  
need to

be, but on startup I get this:

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

Although in my WEB-INF/lib I have (amongst the others) the required  
jars:


slf4j-log4j12-1.4.2.jar
log4j-1.2.14.jar


Any idea what's missing? Does anyone else build under Maven1?

thanks,
Steve






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



Re: can we get this patch applied to the current snapshot?

2009-03-12 Thread Jeremy Thomerson
I'm reviewing it now.  Assuming that it looks fine, and is line with what
was proposed by the vote thread earlier, I will apply.  The vote passed, so
I don't see a reason not to.  I'm not sure how many were binding /
non-binding, but there were eight for, two against.

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



On Thu, Mar 12, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca wrote:

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

 - Brill

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




Re: building a wicket app with maven 1

2009-03-12 Thread Adriano dos Santos Fernandes

Steve Swinsburg escreveu:

Hi all,

I have a need to backport my wicket app that builds perfectly in 
Maven2 to Maven1. I think I've adjusted all the pom.xml to project.xml 
correctly as all the classes and dependent jars looks like they are 
where they need to be, but on startup I get this:


java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

Although in my WEB-INF/lib I have (amongst the others) the required jars:

slf4j-log4j12-1.4.2.jar
log4j-1.2.14.jar


Any idea what's missing? Does anyone else build under Maven1?

You also need slf4j-api-*.jar.


Adriano


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



Re: can we get this patch applied to the current snapshot?

2009-03-12 Thread Jeremy Thomerson
Unless I'm seeing double - this patch has two problems:

1 - It is the opposite of what was voted on.  The vote was to make
IModelList? extends E into IModelListE.  Your patch makes it
IModel? extends List? extends E.

2 - The patch causes compile errors that were not fixed.

I have unassigned myself from the task until those issues are addressed or I
have time to create my own patch.  The best solution would be for someone to
submit a proper patch that fixes the two problems above or explain to me
what I missed.

Thanks!

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



On Thu, Mar 12, 2009 at 2:53 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 I'm reviewing it now.  Assuming that it looks fine, and is line with what
 was proposed by the vote thread earlier, I will apply.  The vote passed, so
 I don't see a reason not to.  I'm not sure how many were binding /
 non-binding, but there were eight for, two against.

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




 On Thu, Mar 12, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca wrote:

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

 - Brill

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





Re: building a wicket app with maven 1

2009-03-12 Thread Stephen Swinsburg
Thanks Adriano. I don't seem to need that for my Maven2 build though,  
is there a reason for that? I'll try that though.



cheers,
Steve



On 12/03/2009, at 8:02 PM, Adriano dos Santos Fernandes wrote:


Steve Swinsburg escreveu:

Hi all,

I have a need to backport my wicket app that builds perfectly in  
Maven2 to Maven1. I think I've adjusted all the pom.xml to  
project.xml correctly as all the classes and dependent jars looks  
like they are where they need to be, but on startup I get this:


java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

Although in my WEB-INF/lib I have (amongst the others) the required  
jars:


slf4j-log4j12-1.4.2.jar
log4j-1.2.14.jar


Any idea what's missing? Does anyone else build under Maven1?

You also need slf4j-api-*.jar.


Adriano


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




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



Re: can we get this patch applied to the current snapshot?

2009-03-12 Thread Igor Vaynberg
before applying an api-breaking patch to an rc release we should have
a vote on the dev list.

-igor

On Thu, Mar 12, 2009 at 12:59 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 Unless I'm seeing double - this patch has two problems:

 1 - It is the opposite of what was voted on.  The vote was to make
 IModelList? extends E into IModelListE.  Your patch makes it
 IModel? extends List? extends E.

 2 - The patch causes compile errors that were not fixed.

 I have unassigned myself from the task until those issues are addressed or I
 have time to create my own patch.  The best solution would be for someone to
 submit a proper patch that fixes the two problems above or explain to me
 what I missed.

 Thanks!

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



 On Thu, Mar 12, 2009 at 2:53 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 I'm reviewing it now.  Assuming that it looks fine, and is line with what
 was proposed by the vote thread earlier, I will apply.  The vote passed, so
 I don't see a reason not to.  I'm not sure how many were binding /
 non-binding, but there were eight for, two against.

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




 On Thu, Mar 12, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca wrote:

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

 - Brill

 -
 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: Modal Window performance problem

2009-03-12 Thread Matej Knopp
Hi,

there is good reason why dissablefocuselement is called. Altough there
certainly is room for performance improvements. Still, it's
javascript, so you can replace disablefocuselements in modal window
prototype with an empty function if you don't need it or it causes you
problems.

-Matej

On Thu, Mar 12, 2009 at 7:25 PM, dtoffe dto...@yahoo.com.ar wrote:

 Hi,

    I'm having performance problems when opening a modal window. This
 problem occurs on a lower end POS touchscreen box (Celeron 900, 512 RAM),
 where the modal window takes some 6-9 seconds to open. I've tried in other
 lower end machines with better processor and the delay is not so big.
    Out of curiosity, I've profiled the modal window javascript with
 Firebug, and found that disableFocusElement() in modal.js, line 1374, calls
 itself recursively, and in the profiler output it's listed at the top with
 1049 calls.
    Since the problem occurs mostly only on that machines, I'm not blaming
 the javascript code, but I wonder if anyone else has had similar problems
 and if there is some way of avoiding the recursive calls.
    Almost forgot to say, I'm using Wicket 1.3.5 and Firefox 3.0.7/MSIE 7.0.

 Thanks for your comments,

 Daniel

 --
 View this message in context: 
 http://www.nabble.com/Modal-Window-performance-problem-tp22482640p22482640.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: Extensible wicket application

2009-03-12 Thread Ernesto Reinaldo Barreiro
Hi,

I just created a very simple starting project for OSGi and wicket at:

http://code.google.com/p/antilia/source/browse/#svn/trunk

check out projects

com.antilia.wstarter
com.antilia.wstarter.demo

Then you will have a equinox launcher called wicket-app (for eclipse 3.4).
Use it to launch your application and then browse at

localhost:8080/demo-app

Hope this helps.

Ernesto

On Thu, Mar 12, 2009 at 3:36 PM, Daniel Dominik Holúbek 
dankodo...@gmail.com wrote:

 Hello :)
 I looked at the links listed below, seemed interesting, but the main
 problem
 (how to set up such a project) remains unsolved.
 So I think I really do need help :)

 It seems to me, though, that this whole thing is much too complicated. I
 need only some simple loading of multiple jars :)
 But if it would work, I don't care how :)

 Thanks again!

 On Thu, Mar 12, 2009 at 10:07 AM, Ernesto Reinaldo Barreiro 
 reier...@gmail.com wrote:

  Hi Daniel,
  Some comments inlined.
 
  On Thu, Mar 12, 2009 at 9:37 AM, Daniel Dominik Holúbek 
  dankodo...@gmail.com wrote:
 
   Firstly, thanks for you reply :)
   I have already read that document regarding wicket and OSGi, but I
 think
  it
   is written for more experienced users at OSGi. As I wrote before, I
 even
  do
   not know how to build a simple web OSGi project (what should I deploy,
  how
   to install those bundles - I can't access any console..)
 
 
  In my experience getting used to do things the OSGi way is difficult at
  the beginning but latter on the effort will pay off... In fact it is
  relatively easy to set up a Wicket-OSGi project if you are using Eclipse
  for
  development and you don't mind using equinox as your OSGi
  implementation. You could easily build a WEB console to manage plug-ins
  (bundles) on your application.
 
 
   I imagine this application like this: I visit some administration page,
   where can I upload a jar file containing the extension. The jar file
 then
   installs into running application and creates some records in database.
 I
   can then decide where in the page should this extension appear.
   The main problem is this. I think my application should have some OSGi
   container. I have already tried some bridge.war from some webpage (I
   don't remember now, which one was it), it is running correctly, but I
   really
   do not know what to do now. Add some bundles? Where? How? :)
   Btw, I am running Sun Java System Application Server.
 
 
  Probably yo are reffering to [1] ? You will have to export your bundles
  into
  the plug-ins section inside this war. This war is just a WEB application
  that starts an OSGi runtime (an equinox) and uses a Servlet to manage it
  and
  to redirect requests to your application to the servlets you mount using
  the
  HTTP service provided by the equinox runtime.
 
  If you need more help I could help you set up such a project (although
  currently I do not have much spare time;-)
 
  Best,
 
  Ernesto
 
  References
 
  1-http://www.eclipse.org/equinox/server/
 



 --
 -danoh-



use AjaxFormComponentUpdatingBehavior for ENTER-handling

2009-03-12 Thread alexander.elsholz

hi,

here http://www.nabble.com/Form-Enter-Key-Problem-td14408121.html#a18785052
Juan Gabriel Arias described how to submit a field on enter. 
how can i combine this with AjaxFormComponentUpdatingBehavior, where 
getEventHandler() is final?

thanks alex
-- 
View this message in context: 
http://www.nabble.com/use-AjaxFormComponentUpdatingBehavior-for-ENTER-handling-tp22486032p22486032.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



get the index number of the RadioChoice selected and and not the label

2009-03-12 Thread novotny

Hi,

I couldn't seem to find the answer to this question but it's probably pretty
easy. I have a radio choice like so:

RadioChoiceString rc = new RadioChoiceString(answer, new
PropertyModelString(item, selected), item.getAnswers());

But basically it saves the answer text when what I really want to save is
the value number e.g. 1 if the first radio was selected or 2 if it was
the second. 

Thanks! Jason


-- 
View this message in context: 
http://www.nabble.com/get-the-index-number-of-the-RadioChoice-selected-and-and-not-the-label-tp22486349p22486349.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: get the index number of the RadioChoice selected and and not the label

2009-03-12 Thread Jeremy Thomerson
Then use the numbers as your model, override getConverter and return your
own converter that converts the numbers to the displayable strings and vice
versa.

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



On Thu, Mar 12, 2009 at 5:14 PM, novotny novo...@gridsphere.org wrote:


 Hi,

 I couldn't seem to find the answer to this question but it's probably
 pretty
 easy. I have a radio choice like so:

 RadioChoiceString rc = new RadioChoiceString(answer, new
 PropertyModelString(item, selected), item.getAnswers());

 But basically it saves the answer text when what I really want to save is
 the value number e.g. 1 if the first radio was selected or 2 if it was
 the second.

 Thanks! Jason


 --
 View this message in context:
 http://www.nabble.com/get-the-index-number-of-the-RadioChoice-selected-and-and-not-the-label-tp22486349p22486349.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: Security in a Spring Wicket layered application

2009-03-12 Thread Kent Larsson
Hi Kai,

I'm setting up auth roles, it's going pretty well. Altough I've had
some problems when I followed
http://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html
to the letter, it might be a typo in there or else it was me doing
something wrong.

Is there a home page for the auth roles project? I Googles a bit
without finding any.

I would be very interested in a small example if you have some time to give one!

Best regards,
Kent



On Tue, Mar 10, 2009 at 7:33 PM, Kai Mütz kmu...@googlemail.com wrote:
 We are using Acegi and Wicket-auth-roles (1.3.5) similar to the WIKI
 description:

 http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html

 Have you read it?

 But we do only:
 - Authentication
 - Authorization on pages, components

 No Authorization on service layer. Are you interested in a small sample?

 Cheers, Kai

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



Re: Security in a Spring Wicket layered application

2009-03-12 Thread Kent Larsson
By looking at the source code it looked very nice (and you're right
about complex, but of course you are doing lots of important things so
it's hard not to have something complex) to me. You seem to be very
knowledgable.

I didn't get it working in Eclipse though. I did a svn co the trunk
path you gave me, and then I tried mvn eclipse:ecilpse. It complained
about missing jta.jar and failed, I fixed it (I think it's a license
problem so it doesn't get downloaded by Maven) and could run mvn
eclipse:eclipse successfully.

I imported the project into my workspace in Eclipse, added my Tomcat
server under the Servers tab. But the project was of wrong type (I
think), so I couldn't add the project to be deployed in my server from
Eclipse. Then I tried creating the war-file by mvn war:war, it worked
and I did a deploy by copy. But it wouldn't start.

Best regards,
Kent

On Tue, Mar 10, 2009 at 7:25 PM, James Carman
jcar...@carmanconsulting.com wrote:
 My wicket-advanced demo code integrates Spring Security and Wicket
 using wicket-auth-roles:

 http://svn.carmanconsulting.com/public/wicket-advanced/trunk/

 The key is the SpringSecuritySession class:

 http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/session/SpringSecuritySession.java


 On Tue, Mar 10, 2009 at 1:42 PM, Kent Larsson kent.lars...@gmail.com wrote:
 Integrating with jSecurity instead is really a last resort. If it is
 at all possible I wouldn't like to introduce more framework
 dependencies. That integration project seems a bit early to use as
 well, but it might be interesting in the future. Thanks for the link!

 Regarding Spring Security (SS). Is anyone integrating Wicket with SS
 on their own? I've read lots about SS now but I still find it hard to
 see what I need for a Wicket application.

 I got some tips at: 
 http://wiki.apache.org/tapestry/Tapestry5AcegiNoAnnotations

 But I still have lots of questions.
 - In the above link they are using a link and passing the information
 by GET. I would like to use POST, and I guess that shouldn't be a
 problem. Tell me if you see some?
 - I have to instruct SS to redirect a user to my own login page if
 (s)he tries to access something which requires authentication. How is
 that done?
 - When a user registers an account I guess I should pass something on
 to a servlet filter, similar to how authentication works?
 - Which servlet filters do you think I'll need?

 If I can just get someone to register and authenticate. Then I'll just
 use the instructions in SS documentation to get GrantedAuthority
 objects. I'll use these to show/hide things in Wicket pages as well as
 enable/disable other things. Does that sound like a good approach?

 If anyone has *any* tips I would be immensely greatful!! As I think
 this is quite complex and I'm new to Spring Security.

 Best regards,
 Kent


 On Mon, Mar 9, 2009 at 7:16 PM, Ryan McKinley ryan...@gmail.com wrote:
 I have not used it (yet), but check:
 http://code.google.com/p/wicket-jsecurity/



 On Mar 9, 2009, at 1:46 PM, Kent Larsson wrote:

 Hm, I had some problems. Are there any examples out there for this?

 On Mon, Mar 9, 2009 at 9:43 AM, Kent Larsson kent.lars...@gmail.com
 wrote:

 Hi,

 Great answer! :-) I'll try to do that today.

 Best regards, Kent


 On Sun, Mar 8, 2009 at 8:38 PM, Erik van Oosten e.vanoos...@grons.nl
 wrote:

 Hi Kent,

 Go with something that enables authorization in the service layer (e.g.
 Spring Security, jSecurity, ...).

 Next base your custom wicket authorization on the authentication store
 of
 the chosen base technology. Spring Security uses a thread local as
 authentication store and has a servlet filter to copy the authenticated
 user
 to/from the session so that the authenticated user is handily available
 during a request and properly stored afterwards.

 Authentication itself can be implemented from Wicket in a custom way
 (e.g. a
 username/password form). On success you just store the authenticated
 user in
 the authentication store.

 Regards,
  Erik.


 Kent Larsson wrote:

 Hi,

 I know there has been some discussion on this. But I've had a hard
 time deciding how this project should use security anyway.

 The application in question is layered into three layers for
 presentation, services and persistence using Wicket, Spring and
 Hibernate.

 What we need:
 - Authentication
 - Authorization on pages, components
 - Authorization before being able to run methods in the service layer
 - Authorization for viewing/editing some domain objects using Access
 Control List's (ACL's)

 I have read Wicket in Action and it's custom security solution has some
 pros:
 - It's quite easy to understand
 - We have a lot of freedom in how to do authentication and
 authorization

 And some cons:
 - I don't know how to authorize calls of specific methods, and thus
 - All security will be in the presentation layer
 - It won't be usable if we want security on web 

Re: Security in a Spring Wicket layered application

2009-03-12 Thread Kent Larsson
Hi Les,

After looking at the JUG JSecurity Presentation of jSecurity I'm
certainly interested in the project. For my next project I'll have to
look into jSecurity. Keep up the good work!

Best regards,
Kent

On Tue, Mar 10, 2009 at 6:53 PM, Les Hazlewood lhazlew...@apache.org wrote:
 Hi Kent,

 Although it is early, I am using the wicket-jsecurity integration in one of
 my (big) projects.  It is working pretty well.  Feel free to ask questions -
 I'm happy to help along the way.

 Cheers,

 Les
 (JSecurity founder)

 On Tue, Mar 10, 2009 at 1:42 PM, Kent Larsson kent.lars...@gmail.comwrote:

 Integrating with jSecurity instead is really a last resort. If it is
 at all possible I wouldn't like to introduce more framework
 dependencies. That integration project seems a bit early to use as
 well, but it might be interesting in the future. Thanks for the link!

 Regarding Spring Security (SS). Is anyone integrating Wicket with SS
 on their own? I've read lots about SS now but I still find it hard to
 see what I need for a Wicket application.

 I got some tips at:
 http://wiki.apache.org/tapestry/Tapestry5AcegiNoAnnotations

 But I still have lots of questions.
 - In the above link they are using a link and passing the information
 by GET. I would like to use POST, and I guess that shouldn't be a
 problem. Tell me if you see some?
 - I have to instruct SS to redirect a user to my own login page if
 (s)he tries to access something which requires authentication. How is
 that done?
 - When a user registers an account I guess I should pass something on
 to a servlet filter, similar to how authentication works?
 - Which servlet filters do you think I'll need?

 If I can just get someone to register and authenticate. Then I'll just
 use the instructions in SS documentation to get GrantedAuthority
 objects. I'll use these to show/hide things in Wicket pages as well as
 enable/disable other things. Does that sound like a good approach?

 If anyone has *any* tips I would be immensely greatful!! As I think
 this is quite complex and I'm new to Spring Security.

 Best regards,
 Kent


 On Mon, Mar 9, 2009 at 7:16 PM, Ryan McKinley ryan...@gmail.com wrote:
  I have not used it (yet), but check:
  http://code.google.com/p/wicket-jsecurity/
 
 
 
  On Mar 9, 2009, at 1:46 PM, Kent Larsson wrote:
 
  Hm, I had some problems. Are there any examples out there for this?
 
  On Mon, Mar 9, 2009 at 9:43 AM, Kent Larsson kent.lars...@gmail.com
  wrote:
 
  Hi,
 
  Great answer! :-) I'll try to do that today.
 
  Best regards, Kent
 
 
  On Sun, Mar 8, 2009 at 8:38 PM, Erik van Oosten e.vanoos...@grons.nl
  wrote:
 
  Hi Kent,
 
  Go with something that enables authorization in the service layer
 (e.g.
  Spring Security, jSecurity, ...).
 
  Next base your custom wicket authorization on the authentication store
  of
  the chosen base technology. Spring Security uses a thread local as
  authentication store and has a servlet filter to copy the
 authenticated
  user
  to/from the session so that the authenticated user is handily
 available
  during a request and properly stored afterwards.
 
  Authentication itself can be implemented from Wicket in a custom way
  (e.g. a
  username/password form). On success you just store the authenticated
  user in
  the authentication store.
 
  Regards,
   Erik.
 
 
  Kent Larsson wrote:
 
  Hi,
 
  I know there has been some discussion on this. But I've had a hard
  time deciding how this project should use security anyway.
 
  The application in question is layered into three layers for
  presentation, services and persistence using Wicket, Spring and
  Hibernate.
 
  What we need:
  - Authentication
  - Authorization on pages, components
  - Authorization before being able to run methods in the service layer
  - Authorization for viewing/editing some domain objects using Access
  Control List's (ACL's)
 
  I have read Wicket in Action and it's custom security solution has
 some
  pros:
  - It's quite easy to understand
  - We have a lot of freedom in how to do authentication and
  authorization
 
  And some cons:
  - I don't know how to authorize calls of specific methods, and thus
  - All security will be in the presentation layer
  - It won't be usable if we want security on web services later (which
  we do not need now, so maybe this can be disregarded)
 
  It would be nice if we could have a common solution to our security
  needs that integrates well with Wicket and Spring. I know that the
  Auth Roles project is out there as well as Swarm. But I don't know
  which will meet our needs and which will most likely be an option to
  us when we later move to Wicket 1.4 or a higher version.
 
  Best regards,
  Kent
 
 
 
 
  --
  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
 
 
 

Managing Pagemaps

2009-03-12 Thread subbu_tce

I understand that wicket maintains page maps by windows / tabs opened.

If the user navigates to pages in multiple wicket applications in the same
window, how are the page maps maintained?

Will a new page map be created / maintained for every wicket application
navigated in the same window?

And does wicket provide any hook points to clean up page maps when a user
navigates to different applications with in the same window?

Thanks,
Subbu.
-- 
View this message in context: 
http://www.nabble.com/Managing-Pagemaps-tp22487669p22487669.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



Versioning of Pages in PageMaps

2009-03-12 Thread subbu_tce

The Interface IPageSettings has the a method: setVersionPagesByDefault().  

Does this method intend to provide the flexibility not to store page
versions in page map?

If it does give the support for not versioning pages, how does it impact the
transparent support provided for back button?

Thanks,
Subbu.
-- 
View this message in context: 
http://www.nabble.com/Versioning-of-Pages-in-PageMaps-tp22487740p22487740.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: Possible to retrieve previous page from PageMap

2009-03-12 Thread rolandpeng

great! after delare a ineer class below:
class PageIdVersion {
public int id;
public int version;
public PageIdVersion last;
}
then the track function works.


John Patterson wrote:
 
 
   // must declare hash map because meta data must be serializable
   private MetaDataKeyHashMapString, PageIdVersion lastPageIdVersionKey
 = new MetaDataKeyHashMapString, PageIdVersion() {};
 
 

-- 
View this message in context: 
http://www.nabble.com/Possible-to-retrieve-previous-page-from-PageMap-tp20861106p22488568.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: Updating Main Page From Modal Using AJAX

2009-03-12 Thread dtoffe

Hi,

I'm doing just what you explained, but the modal window content is a
page instead of a panel.
The Ajax debug window shows an error indicating that the component I'm
trying to update was not found:

ERROR: Component with id [[beanForm423]] a was not found while trying to
perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you are
trying to update.

component.setOutputMarkupId(true) is already there, but in the main
page, not in the page contained in the modal window.
Is there any way of making it work in this case, other than rewriting
the contained page to a panel ??

Thanks,

Daniel



tbt wrote:
 
 
 once the add button is clicked the users inside the modal window will be
 displayed on the main page.
 
 

-- 
View this message in context: 
http://www.nabble.com/Updating-Main-Page-From-Modal-Using-AJAX-tp22441758p22489608.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: Security in a Spring Wicket layered application

2009-03-12 Thread James Carman
Mr. Larsson,

Thank you for your kind words and I'm sorry you had so much trouble
getting the project to run.  Those Sun licensing issues are annoying
to all of us maven users.  However, I would urge you to try running
the project with either mvn jetty:run or using the Start class that's
included in the test directory.  Those should both work (assuming your
classpaths get setup in eclipse properly).

James

On Thu, Mar 12, 2009 at 7:13 PM, Kent Larsson kent.lars...@gmail.com wrote:
 By looking at the source code it looked very nice (and you're right
 about complex, but of course you are doing lots of important things so
 it's hard not to have something complex) to me. You seem to be very
 knowledgable.

 I didn't get it working in Eclipse though. I did a svn co the trunk
 path you gave me, and then I tried mvn eclipse:ecilpse. It complained
 about missing jta.jar and failed, I fixed it (I think it's a license
 problem so it doesn't get downloaded by Maven) and could run mvn
 eclipse:eclipse successfully.

 I imported the project into my workspace in Eclipse, added my Tomcat
 server under the Servers tab. But the project was of wrong type (I
 think), so I couldn't add the project to be deployed in my server from
 Eclipse. Then I tried creating the war-file by mvn war:war, it worked
 and I did a deploy by copy. But it wouldn't start.

 Best regards,
 Kent

 On Tue, Mar 10, 2009 at 7:25 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 My wicket-advanced demo code integrates Spring Security and Wicket
 using wicket-auth-roles:

 http://svn.carmanconsulting.com/public/wicket-advanced/trunk/

 The key is the SpringSecuritySession class:

 http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/session/SpringSecuritySession.java


 On Tue, Mar 10, 2009 at 1:42 PM, Kent Larsson kent.lars...@gmail.com wrote:
 Integrating with jSecurity instead is really a last resort. If it is
 at all possible I wouldn't like to introduce more framework
 dependencies. That integration project seems a bit early to use as
 well, but it might be interesting in the future. Thanks for the link!

 Regarding Spring Security (SS). Is anyone integrating Wicket with SS
 on their own? I've read lots about SS now but I still find it hard to
 see what I need for a Wicket application.

 I got some tips at: 
 http://wiki.apache.org/tapestry/Tapestry5AcegiNoAnnotations

 But I still have lots of questions.
 - In the above link they are using a link and passing the information
 by GET. I would like to use POST, and I guess that shouldn't be a
 problem. Tell me if you see some?
 - I have to instruct SS to redirect a user to my own login page if
 (s)he tries to access something which requires authentication. How is
 that done?
 - When a user registers an account I guess I should pass something on
 to a servlet filter, similar to how authentication works?
 - Which servlet filters do you think I'll need?

 If I can just get someone to register and authenticate. Then I'll just
 use the instructions in SS documentation to get GrantedAuthority
 objects. I'll use these to show/hide things in Wicket pages as well as
 enable/disable other things. Does that sound like a good approach?

 If anyone has *any* tips I would be immensely greatful!! As I think
 this is quite complex and I'm new to Spring Security.

 Best regards,
 Kent


 On Mon, Mar 9, 2009 at 7:16 PM, Ryan McKinley ryan...@gmail.com wrote:
 I have not used it (yet), but check:
 http://code.google.com/p/wicket-jsecurity/



 On Mar 9, 2009, at 1:46 PM, Kent Larsson wrote:

 Hm, I had some problems. Are there any examples out there for this?

 On Mon, Mar 9, 2009 at 9:43 AM, Kent Larsson kent.lars...@gmail.com
 wrote:

 Hi,

 Great answer! :-) I'll try to do that today.

 Best regards, Kent


 On Sun, Mar 8, 2009 at 8:38 PM, Erik van Oosten e.vanoos...@grons.nl
 wrote:

 Hi Kent,

 Go with something that enables authorization in the service layer (e.g.
 Spring Security, jSecurity, ...).

 Next base your custom wicket authorization on the authentication store
 of
 the chosen base technology. Spring Security uses a thread local as
 authentication store and has a servlet filter to copy the authenticated
 user
 to/from the session so that the authenticated user is handily available
 during a request and properly stored afterwards.

 Authentication itself can be implemented from Wicket in a custom way
 (e.g. a
 username/password form). On success you just store the authenticated
 user in
 the authentication store.

 Regards,
  Erik.


 Kent Larsson wrote:

 Hi,

 I know there has been some discussion on this. But I've had a hard
 time deciding how this project should use security anyway.

 The application in question is layered into three layers for
 presentation, services and persistence using Wicket, Spring and
 Hibernate.

 What we need:
 - Authentication
 - Authorization on pages, components
 - Authorization before being able 

Large Scale Applications using Wicket

2009-03-12 Thread subbu_tce

Do we have any Clustering Solutions other than Terracotta that can integrate
with Wicket to avoid serialization of pages to support development of
applications in a large scale?

Thanks,
Subbu.
-- 
View this message in context: 
http://www.nabble.com/Large-Scale-Applications-using-Wicket-tp22489752p22489752.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



How to not cache markup - Wicket 1.4rc1

2009-03-12 Thread Karen Schaper
Hi All,

I have a page where the markup is creating dynamically and I do not want the
markup to be cached.

I am implementing both IMarkupResourceStreamProvider,
IMarkupCacheKeyProvider


I'm not sure what I need to do in order for the markup not to be cached.

In one of the source files in here
http://wicketstuff.org/wicket13/customresourceloading,

it said that if I returned null from getCacheKey that the markup would not
be cached.

When I do this I get into a loop and it keeps trying to get the markup over
and over again.


   @Override
public String getCacheKey( MarkupContainer container, Class
containerClass )
{
return null;
}


I tried calling the clearing the cache after the page renders... but when I
do this the page won't even load.

Any help would greatly be appreciated.

Thanks
Karen.


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



Re: can we get this patch applied to the current snapshot?

2009-03-12 Thread Brill Pappin

This is an attempt to bring the dropdown and listview into sync.
personally i don't care which way it goes as long as its simple and  
works, but I think it pretty important that it be done before the 1.4  
release.


The discussion was continued in the issue, so it's possible that  
people were not watching it or voting on it there. I think Jeremy  
didn't have time to actually read the issue all the way through or he  
would have seen why the patch was the way it was.


I would like to invite anyone with interest to take a look at:
https://issues.apache.org/jira/browse/WICKET-2137

By all means, add your thoughts... as a user of wicket, I certainly  
*do* want to to see this make it into the 1.4 release.


- Brill

On 12-Mar-09, at 5:10 PM, Igor Vaynberg wrote:


before applying an api-breaking patch to an rc release we should have
a vote on the dev list.

-igor

On Thu, Mar 12, 2009 at 12:59 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:

Unless I'm seeing double - this patch has two problems:

1 - It is the opposite of what was voted on.  The vote was to make
IModelList? extends E into IModelListE.  Your patch makes it
IModel? extends List? extends E.

2 - The patch causes compile errors that were not fixed.

I have unassigned myself from the task until those issues are  
addressed or I
have time to create my own patch.  The best solution would be for  
someone to
submit a proper patch that fixes the two problems above or explain  
to me

what I missed.

Thanks!

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



On Thu, Mar 12, 2009 at 2:53 PM, Jeremy Thomerson jer...@wickettraining.com

wrote:


I'm reviewing it now.  Assuming that it looks fine, and is line  
with what
was proposed by the vote thread earlier, I will apply.  The vote  
passed, so

I don't see a reason not to.  I'm not sure how many were binding /
non-binding, but there were eight for, two against.

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




On Thu, Mar 12, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca  
wrote:



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

- Brill

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








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




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



Re: can we get this patch applied to the current snapshot?

2009-03-12 Thread Jeremy Thomerson
Right - I didn't read the entire series of comments on the JIRA.  I did read
one that explained why removing the ? extends was the best solution, and
several that agreed with it.  I am basing my comments on the vote thread
that was on the user list - a change like this will require a vote (as Igor
pointed out) - so I won't commit something like this that is not in line
with what was voted for.

My vote is still that removing the ? extends is better from my personal
experience - but I don't have a vested interest in whether it makes it into
the 1.4 release.  While it may be beneficial, it would be out of the
ordinary to introduce an API break after we're already to release candidate
phase.

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



On Thu, Mar 12, 2009 at 11:56 PM, Brill Pappin br...@pappin.ca wrote:

 This is an attempt to bring the dropdown and listview into sync.
 personally i don't care which way it goes as long as its simple and works,
 but I think it pretty important that it be done before the 1.4 release.

 The discussion was continued in the issue, so it's possible that people
 were not watching it or voting on it there. I think Jeremy didn't have time
 to actually read the issue all the way through or he would have seen why the
 patch was the way it was.

 I would like to invite anyone with interest to take a look at:
 https://issues.apache.org/jira/browse/WICKET-2137

 By all means, add your thoughts... as a user of wicket, I certainly *do*
 want to to see this make it into the 1.4 release.

 - Brill


 On 12-Mar-09, at 5:10 PM, Igor Vaynberg wrote:

  before applying an api-breaking patch to an rc release we should have
 a vote on the dev list.

 -igor

 On Thu, Mar 12, 2009 at 12:59 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:

 Unless I'm seeing double - this patch has two problems:

 1 - It is the opposite of what was voted on.  The vote was to make
 IModelList? extends E into IModelListE.  Your patch makes it
 IModel? extends List? extends E.

 2 - The patch causes compile errors that were not fixed.

 I have unassigned myself from the task until those issues are addressed
 or I
 have time to create my own patch.  The best solution would be for someone
 to
 submit a proper patch that fixes the two problems above or explain to me
 what I missed.

 Thanks!

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



 On Thu, Mar 12, 2009 at 2:53 PM, Jeremy Thomerson 
 jer...@wickettraining.com

 wrote:


  I'm reviewing it now.  Assuming that it looks fine, and is line with
 what
 was proposed by the vote thread earlier, I will apply.  The vote passed,
 so
 I don't see a reason not to.  I'm not sure how many were binding /
 non-binding, but there were eight for, two against.

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




 On Thu, Mar 12, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca wrote:

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

 - Brill

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





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



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




Re: can we get this patch applied to the current snapshot?

2009-03-12 Thread Brill Pappin

Sorry, didn't mean to come off accusing :)

That was certainly the vote thread, and my personal preference as  
well...
However in the issue I was assured that the new approach was better  
and compatible with ListT (I did not test it myself).


I think this is certainly something the developers are going to have  
to review, and you will know best which way it should go based on the  
amount of work and compatibility with the existing code-base.


The issue has some discussion and examples about the two methods.

- Brill

On 13-Mar-09, at 1:02 AM, Jeremy Thomerson wrote:

Right - I didn't read the entire series of comments on the JIRA.  I  
did read
one that explained why removing the ? extends was the best  
solution, and
several that agreed with it.  I am basing my comments on the vote  
thread
that was on the user list - a change like this will require a vote  
(as Igor
pointed out) - so I won't commit something like this that is not in  
line

with what was voted for.

My vote is still that removing the ? extends is better from my  
personal
experience - but I don't have a vested interest in whether it makes  
it into

the 1.4 release.  While it may be beneficial, it would be out of the
ordinary to introduce an API break after we're already to release  
candidate

phase.

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



On Thu, Mar 12, 2009 at 11:56 PM, Brill Pappin br...@pappin.ca  
wrote:



This is an attempt to bring the dropdown and listview into sync.
personally i don't care which way it goes as long as its simple and  
works,
but I think it pretty important that it be done before the 1.4  
release.


The discussion was continued in the issue, so it's possible that  
people
were not watching it or voting on it there. I think Jeremy didn't  
have time
to actually read the issue all the way through or he would have  
seen why the

patch was the way it was.

I would like to invite anyone with interest to take a look at:
https://issues.apache.org/jira/browse/WICKET-2137

By all means, add your thoughts... as a user of wicket, I certainly  
*do*

want to to see this make it into the 1.4 release.

- Brill


On 12-Mar-09, at 5:10 PM, Igor Vaynberg wrote:

before applying an api-breaking patch to an rc release we should have

a vote on the dev list.

-igor

On Thu, Mar 12, 2009 at 12:59 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:


Unless I'm seeing double - this patch has two problems:

1 - It is the opposite of what was voted on.  The vote was to make
IModelList? extends E into IModelListE.  Your patch makes  
it

IModel? extends List? extends E.

2 - The patch causes compile errors that were not fixed.

I have unassigned myself from the task until those issues are  
addressed

or I
have time to create my own patch.  The best solution would be for  
someone

to
submit a proper patch that fixes the two problems above or  
explain to me

what I missed.

Thanks!

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



On Thu, Mar 12, 2009 at 2:53 PM, Jeremy Thomerson 
jer...@wickettraining.com


wrote:



I'm reviewing it now.  Assuming that it looks fine, and is line  
with

what
was proposed by the vote thread earlier, I will apply.  The vote  
passed,

so
I don't see a reason not to.  I'm not sure how many were binding /
non-binding, but there were eight for, two against.

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




On Thu, Mar 12, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca  
wrote:


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


- Brill

-
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: Large Scale Applications using Wicket

2009-03-12 Thread Igor Vaynberg
why does serialization of pages prevents large scale deployments?

-igor

On Thu, Mar 12, 2009 at 8:52 PM, subbu_tce subramanian.mur...@gmail.com wrote:

 Do we have any Clustering Solutions other than Terracotta that can integrate
 with Wicket to avoid serialization of pages to support development of
 applications in a large scale?

 Thanks,
 Subbu.
 --
 View this message in context: 
 http://www.nabble.com/Large-Scale-Applications-using-Wicket-tp22489752p22489752.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: can we get this patch applied to the current snapshot?

2009-03-12 Thread James Carman
To be clear, the only potential for breakage is where user code tries
to modify the returned model object (of type List? extends T)
without casting it.  However, that's a rare usecase (in my opinion)
and again it's easily overcome by a simple cast.

On Thu, Mar 12, 2009 at 5:10 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 before applying an api-breaking patch to an rc release we should have
 a vote on the dev list.

 -igor

 On Thu, Mar 12, 2009 at 12:59 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
 Unless I'm seeing double - this patch has two problems:

 1 - It is the opposite of what was voted on.  The vote was to make
 IModelList? extends E into IModelListE.  Your patch makes it
 IModel? extends List? extends E.

 2 - The patch causes compile errors that were not fixed.

 I have unassigned myself from the task until those issues are addressed or I
 have time to create my own patch.  The best solution would be for someone to
 submit a proper patch that fixes the two problems above or explain to me
 what I missed.

 Thanks!

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



 On Thu, Mar 12, 2009 at 2:53 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 I'm reviewing it now.  Assuming that it looks fine, and is line with what
 was proposed by the vote thread earlier, I will apply.  The vote passed, so
 I don't see a reason not to.  I'm not sure how many were binding /
 non-binding, but there were eight for, two against.

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




 On Thu, Mar 12, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca wrote:

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

 - Brill

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





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



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



Re: can we get this patch applied to the current snapshot?

2009-03-12 Thread Igor Vaynberg
palette needs to be able to do:

getmodelobject().clear();
getmodelobject().add(item);

where getmodelobject should return a collection.

will that still work with this refactor? i dont see why components
that do this need to cast anything to make it work.

-igor

On Thu, Mar 12, 2009 at 10:43 PM, James Carman
jcar...@carmanconsulting.com wrote:
 To be clear, the only potential for breakage is where user code tries
 to modify the returned model object (of type List? extends T)
 without casting it.  However, that's a rare usecase (in my opinion)
 and again it's easily overcome by a simple cast.

 On Thu, Mar 12, 2009 at 5:10 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 before applying an api-breaking patch to an rc release we should have
 a vote on the dev list.

 -igor

 On Thu, Mar 12, 2009 at 12:59 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
 Unless I'm seeing double - this patch has two problems:

 1 - It is the opposite of what was voted on.  The vote was to make
 IModelList? extends E into IModelListE.  Your patch makes it
 IModel? extends List? extends E.

 2 - The patch causes compile errors that were not fixed.

 I have unassigned myself from the task until those issues are addressed or I
 have time to create my own patch.  The best solution would be for someone to
 submit a proper patch that fixes the two problems above or explain to me
 what I missed.

 Thanks!

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



 On Thu, Mar 12, 2009 at 2:53 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 I'm reviewing it now.  Assuming that it looks fine, and is line with what
 was proposed by the vote thread earlier, I will apply.  The vote passed, so
 I don't see a reason not to.  I'm not sure how many were binding /
 non-binding, but there were eight for, two against.

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




 On Thu, Mar 12, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca wrote:

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

 - Brill

 -
 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: Large Scale Applications using Wicket

2009-03-12 Thread Brill Pappin

I was going to ask that same thing :)
Seems to me that its not such alien technology that it won't work the  
same as any other framework.


- Brill

On 13-Mar-09, at 1:15 AM, Igor Vaynberg wrote:


why does serialization of pages prevents large scale deployments?

-igor

On Thu, Mar 12, 2009 at 8:52 PM, subbu_tce subramanian.mur...@gmail.com 
 wrote:


Do we have any Clustering Solutions other than Terracotta that can  
integrate

with Wicket to avoid serialization of pages to support development of
applications in a large scale?

Thanks,
Subbu.
--
View this message in context: 
http://www.nabble.com/Large-Scale-Applications-using-Wicket-tp22489752p22489752.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: can we get this patch applied to the current snapshot?

2009-03-12 Thread James Carman
I didn't change any of the guts of Palette (I did change Recorder, a
bit) in my patch.  So, I guess the answer is yes, it will work.  All
of the unit tests pass.

On Fri, Mar 13, 2009 at 1:50 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 palette needs to be able to do:

 getmodelobject().clear();
 getmodelobject().add(item);

 where getmodelobject should return a collection.

 will that still work with this refactor? i dont see why components
 that do this need to cast anything to make it work.

 -igor

 On Thu, Mar 12, 2009 at 10:43 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 To be clear, the only potential for breakage is where user code tries
 to modify the returned model object (of type List? extends T)
 without casting it.  However, that's a rare usecase (in my opinion)
 and again it's easily overcome by a simple cast.

 On Thu, Mar 12, 2009 at 5:10 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 before applying an api-breaking patch to an rc release we should have
 a vote on the dev list.

 -igor

 On Thu, Mar 12, 2009 at 12:59 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
 Unless I'm seeing double - this patch has two problems:

 1 - It is the opposite of what was voted on.  The vote was to make
 IModelList? extends E into IModelListE.  Your patch makes it
 IModel? extends List? extends E.

 2 - The patch causes compile errors that were not fixed.

 I have unassigned myself from the task until those issues are addressed or 
 I
 have time to create my own patch.  The best solution would be for someone 
 to
 submit a proper patch that fixes the two problems above or explain to me
 what I missed.

 Thanks!

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



 On Thu, Mar 12, 2009 at 2:53 PM, Jeremy Thomerson 
 jer...@wickettraining.com
 wrote:

 I'm reviewing it now.  Assuming that it looks fine, and is line with what
 was proposed by the vote thread earlier, I will apply.  The vote passed, 
 so
 I don't see a reason not to.  I'm not sure how many were binding /
 non-binding, but there were eight for, two against.

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




 On Thu, Mar 12, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca wrote:

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

 - Brill

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





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



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



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



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



Re: can we get this patch applied to the current snapshot?

2009-03-12 Thread Brill Pappin
I'm really not sure of all the use-cases... all I know is that I spent  
some time trying to get the darn thing to compile using a fairly basic  
wicket pattern.


If such a simple thing as feeding a list of items to a component that  
draws a list using them is going to give me that much trouble (knowing  
a workaround or not), then there is something definitely broken.


- Brill

On 13-Mar-09, at 1:43 AM, James Carman wrote:


To be clear, the only potential for breakage is where user code tries
to modify the returned model object (of type List? extends T)
without casting it.  However, that's a rare usecase (in my opinion)
and again it's easily overcome by a simple cast.

On Thu, Mar 12, 2009 at 5:10 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:

before applying an api-breaking patch to an rc release we should have
a vote on the dev list.

-igor

On Thu, Mar 12, 2009 at 12:59 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:

Unless I'm seeing double - this patch has two problems:

1 - It is the opposite of what was voted on.  The vote was to make
IModelList? extends E into IModelListE.  Your patch makes it
IModel? extends List? extends E.

2 - The patch causes compile errors that were not fixed.

I have unassigned myself from the task until those issues are  
addressed or I
have time to create my own patch.  The best solution would be for  
someone to
submit a proper patch that fixes the two problems above or explain  
to me

what I missed.

Thanks!

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



On Thu, Mar 12, 2009 at 2:53 PM, Jeremy Thomerson jer...@wickettraining.com

wrote:


I'm reviewing it now.  Assuming that it looks fine, and is line  
with what
was proposed by the vote thread earlier, I will apply.  The vote  
passed, so

I don't see a reason not to.  I'm not sure how many were binding /
non-binding, but there were eight for, two against.

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




On Thu, Mar 12, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca  
wrote:



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

- Brill

-
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: can we get this patch applied to the current snapshot?

2009-03-12 Thread Jeremy Thomerson
after removing the ? extends it will...

// THIS WORKS:
ListInteger list1 = new ArrayListInteger();
list1.add(new Integer(4));
list1.add(4);

// THIS DOES NOT WORK:
List? extends Integer list2 = new ArrayList? extends Integer();
list2.add(new Integer(4));
list2.add(4);


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



On Fri, Mar 13, 2009 at 12:50 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 palette needs to be able to do:

 getmodelobject().clear();
 getmodelobject().add(item);

 where getmodelobject should return a collection.

 will that still work with this refactor? i dont see why components
 that do this need to cast anything to make it work.

 -igor

 On Thu, Mar 12, 2009 at 10:43 PM, James Carman
 jcar...@carmanconsulting.com wrote:
  To be clear, the only potential for breakage is where user code tries
  to modify the returned model object (of type List? extends T)
  without casting it.  However, that's a rare usecase (in my opinion)
  and again it's easily overcome by a simple cast.
 
  On Thu, Mar 12, 2009 at 5:10 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
  before applying an api-breaking patch to an rc release we should have
  a vote on the dev list.
 
  -igor
 
  On Thu, Mar 12, 2009 at 12:59 PM, Jeremy Thomerson
  jer...@wickettraining.com wrote:
  Unless I'm seeing double - this patch has two problems:
 
  1 - It is the opposite of what was voted on.  The vote was to make
  IModelList? extends E into IModelListE.  Your patch makes it
  IModel? extends List? extends E.
 
  2 - The patch causes compile errors that were not fixed.
 
  I have unassigned myself from the task until those issues are addressed
 or I
  have time to create my own patch.  The best solution would be for
 someone to
  submit a proper patch that fixes the two problems above or explain to
 me
  what I missed.
 
  Thanks!
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Thu, Mar 12, 2009 at 2:53 PM, Jeremy Thomerson 
 jer...@wickettraining.com
  wrote:
 
  I'm reviewing it now.  Assuming that it looks fine, and is line with
 what
  was proposed by the vote thread earlier, I will apply.  The vote
 passed, so
  I don't see a reason not to.  I'm not sure how many were binding /
  non-binding, but there were eight for, two against.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
 
  On Thu, Mar 12, 2009 at 9:52 AM, Brill Pappin br...@pappin.ca
 wrote:
 
  https://issues.apache.org/jira/browse/WICKET-2137
 
  - Brill
 
  -
  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