Re: [Wicket-user] wicket-contrib-gmap2

2007-06-19 Thread Mats Norén
Sorry guys for jumping in this late in the game, but has has anyone
considered writing a contrib for OpenLayers[1]?
OpenLayers covers a lot of the functionality of the GMap client and is
open source with a BSD license.
Some of the features:
- Vector support for displaying and drawing
- KML support
- Markers
- GeoRSS
- GML Parser
- SVG support
- WMS and WFS compliant
- Use Google Maps, VE or Yahoo as baselayers and add your own markers
or layers on top.
- Hooks for all map events

On top of this, there are a boatload of examples to look at [2].

GeoServer[3] + Wicket + Openlayers would, in my opinion, be a killer
gis/map enabled webstack. Throw in PostGIS [4] and you got the entire
foodchain for your mapping needs.

I would love to contribute in some way but I don´t see the relevance
in just going the Google  way. Is there a particular reason for
choosing GMap?

Best regards,
Mats

ps.
In GeoServer community branch there is some old? code for their
management GUI [5] that uses Wicket.
ds.

[1] http://openlayers.org
[2] http://openlayers.org/dev/examples/
[3] http://geoserver.org
[4] http://postgis.refractions.net/
[5]. 
http://svn.codehaus.org/geoserver/branches/1.4.x/community/modular_ui/wicket-sample/



On 6/19/07, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 Wrote answers below..

 Martin Funk wrote:
  Iulian Costan schrieb:
 
  yap, well done, also maybe we can put together the effort and improve
  things.
 
  yeah, right on wicket-contrib-gmap2 is the most constructive comment I
  was able to give on wicket-contrib-gmap.
  Do a diff -r wicket-contrib-gmap wicket-contrib-gmap2 and it'll
  precisely show which parts of the code I thought needed to be changed.
  Pick the parts you like and merge em. After all its all Apache Licensed.
 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-contrib-gmap2

2007-06-19 Thread Mats Norén
Hi,

On 6/19/07, Martin Funk [EMAIL PROTECTED] wrote:
 Hi Mats,
  I would love to contribute in some way but I don´t see the relevance
  in just going the Google  way.
 There are lots of ways to contribute and no one keeps you from going a
 more relevant path.

I realise that I may have sounded a bit arrogant. That was not my
intention at all. :)
I just wanted to state that the Google API is well supported in
OpenLayers and that it would be interesting to see your take on it.

I'll be following your scratching to see if I can get some inspiration
for an OpenLayers attempt... :)

Keep up the good work!

Regards,
Mats

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-contrib-gmap2

2007-06-19 Thread Mats Norén
My sourceforge id is matnor.
Could you create the wicket-contrib-openlayers as well while your at it? ;)

On 6/19/07, James McLaughlin [EMAIL PROTECTED] wrote:
 Send me your sourceforge id, and I will add you. My requirements are
 not too complex: mapping the status of a distributed sensor network.
 Except some of the sensors will be mobile, so I will need to plot them
 with an X second refresh.

Ah, ok, that sounds doable. Add/remove markers would be a good
starting point then.
How many sensors are we talking about?

/Mats

 On 6/19/07, Mats Norén [EMAIL PROTECTED] wrote:
  On 6/19/07, James McLaughlin [EMAIL PROTECTED] wrote:
   Hi Mats,
   I think an openlayers project would be great. I currently have some
   gmap integration, but have a requirement to move it to something that
   will work on an isolated network in the next few months. Do you have
   commit rights to wicket-stuff?
 
  No I don't.
 
  If not, I'm sure one of the devs will
   grant you. If you start the project up, I will gladly contribute.
 
  That would be great!
  I think there are a lot of similarities between the gmap efforts and
  an openlayers one.
  Covering all of OL would be quite a lot so maybe one should just start
  out with a simple map-panel?
 
  What are the requirements for your project when it comes to mapping?
 
  I guess for the project to be self contained it would great to launch
  GeoServer and some sample data. I'll look into it.
 
  Btw, does anyone know of a simple tool to generate javastubs from 
  javascript?
 
  /Mats
 
  
   best,
   jim
  
   On 6/19/07, Mats Norén [EMAIL PROTECTED] wrote:
Hi,
   
On 6/19/07, Martin Funk [EMAIL PROTECTED] wrote:
 Hi Mats,
  I would love to contribute in some way but I don´t see the relevance
  in just going the Google  way.
 There are lots of ways to contribute and no one keeps you from going a
 more relevant path.
   
I realise that I may have sounded a bit arrogant. That was not my
intention at all. :)
I just wanted to state that the Google API is well supported in
OpenLayers and that it would be interesting to see your take on it.
   
I'll be following your scratching to see if I can get some inspiration
for an OpenLayers attempt... :)
   
Keep up the good work!
   
Regards,
Mats
   
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
   -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-contrib-gmap2

2007-06-19 Thread Mats Norén
Thanks! I'll try to get something started at the end of this week. /Mats

On 6/19/07, James McLaughlin [EMAIL PROTECTED] wrote:
 OK, you are in. I created wicket-contrib-openlayers and
 wicket-contrib-openlayers-examples with mvn:archetype. Let me know if
 you have any trouble.

 best,
 jim

 On 6/19/07, Mats Norén [EMAIL PROTECTED] wrote:
  My sourceforge id is matnor.
  Could you create the wicket-contrib-openlayers as well while your at it?
 ;)
 
  On 6/19/07, James McLaughlin [EMAIL PROTECTED] wrote:
   Send me your sourceforge id, and I will add you. My requirements are
   not too complex: mapping the status of a distributed sensor network.
   Except some of the sensors will be mobile, so I will need to plot them
   with an X second refresh.
 
  Ah, ok, that sounds doable. Add/remove markers would be a good
  starting point then.
  How many sensors are we talking about?
 
  /Mats
 
   On 6/19/07, Mats Norén [EMAIL PROTECTED] wrote:
On 6/19/07, James McLaughlin [EMAIL PROTECTED] wrote:
 Hi Mats,
 I think an openlayers project would be great. I currently have some
 gmap integration, but have a requirement to move it to something
 that
 will work on an isolated network in the next few months. Do you have
 commit rights to wicket-stuff?
   
No I don't.
   
If not, I'm sure one of the devs will
 grant you. If you start the project up, I will gladly contribute.
   
That would be great!
I think there are a lot of similarities between the gmap efforts and
an openlayers one.
Covering all of OL would be quite a lot so maybe one should just start
out with a simple map-panel?
   
What are the requirements for your project when it comes to mapping?
   
I guess for the project to be self contained it would great to launch
GeoServer and some sample data. I'll look into it.
   
Btw, does anyone know of a simple tool to generate javastubs from
 javascript?
   
/Mats
   

 best,
 jim

 On 6/19/07, Mats Norén [EMAIL PROTECTED] wrote:
  Hi,
 
  On 6/19/07, Martin Funk [EMAIL PROTECTED] wrote:
   Hi Mats,
I would love to contribute in some way but I don´t see the
 relevance
in just going the Google  way.
   There are lots of ways to contribute and no one keeps you from
 going a
   more relevant path.
 
  I realise that I may have sounded a bit arrogant. That was not my
  intention at all. :)
  I just wanted to state that the Google API is well supported in
  OpenLayers and that it would be interesting to see your take on
 it.
 
  I'll be following your scratching to see if I can get some
 inspiration
  for an OpenLayers attempt... :)
 
  Keep up the good work!
 
  Regards,
  Mats
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take

[Wicket-user] Input type=image and relative urls in Wicket 1.3.0-incubating-SNAPSHOT

2007-06-12 Thread Mats Norén
This must have been asked a million times but I couldn't find the right
answer in the list archives.
I've upgraded one of my applications that uses 1.2.3 to 1.3 snapshot.
In the process I got rid of my PrependContextPathFilter since wicket
is supposed to make url:s relative.
It works for everything but my input type=image ...
wicket:id=search  - elements.

Should wicket take care of them as well?

/Regards Mats

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with AjaxLink and images in snapshot from this morning (1.3.0-incubating-SNAPSHOT)

2007-05-31 Thread Mats Norén
Hi,
The problem is still there, unfortunately...

/Mats

On 5/28/07, Mats Norén [EMAIL PROTECTED] wrote:
 I've got a small snag with images inside an ajaxlink:

 My template looks like this:

 a wicket:id=previous class=marginRight href=#
 title=Bakaring;timg alt= class=middle
 src=img/button_goBack.gif/a

 The generated output when the page loads for the first time:

 a href=# title=Bakaring;t class=marginRight onclick=var
 wcall=wicketAjaxGet('../../../?wicket:interface=:4:form:previous::IBehaviorListener:0:3',
 function() { }.bind(this), function() { }.bind(this));return !wcall;
 id=previous25img class=middle
 src=../../../img/button_goBack.gif alt=/a

 Notice the src-attribute for the image. The image displays correctly.
 When click the ajax-link the generated output looks slightly different:

 a href=# title=Bakåt class=marginRight onclick=var
 wcall=wicketAjaxGet('../../../?wicket:interface=:4:form:previous::IBehaviorListener:0:3',
 function() { }.bind(this), function() { }.bind(this));return !wcall;
 id=previous25img class=middle src=img/button_goBack.gif
 alt=/a

 Notice the lack of ../../../ in the src-attribute for the image.

 I did an update this morning, for the first time in about two weeks, I
 guess something has changed with the way resources are loaded?

 Any suggestions?

 Regards,
 Mats


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Dynamic number of columns in TreeTable

2007-05-31 Thread Mats Norén
Hi,
Would it be possible to let the TreeTable take a model of columns
instead of a fixed array?
So that it would be possible to dynamically alter the number of
columns based on a model?

My usecase is a timeplanning tree with activities as rows and time as columns.
Looking at the code it seems that the tree is initialized with at
fixed number of columns?

/Mats

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best Practices for accessing/repainting sibling/cousin components?

2007-05-31 Thread Mats Norén
It would be great of you had some code to share, it makes it easier to
follow... :)

/Mats

On 5/31/07, ChuckDeal [EMAIL PROTECTED] wrote:

 I had the same (at least it sounds similar) problem.  My pages use a
 role-based authorization strategy.  Sometimes the role is based upon the
 data on the page.  A good example of this is Responsible Individual (RI);
 if you are not an RI, you have read-only access, but as soon as you are
 added to the RI List, you get read-write access to certain fields (maybe not
 all fields).  In an effort to avoid page flashing, we use AJAX to refresh
 the components whose access are based upon the RI field.

 At first the solution was specific to this scenario, then I realized that I
 could have any number of fields on the page that worked in concert with each
 other to either RENDER or ENABLE other fields based upon roles.  In the end,
 I created an abstract methodology based on the concept of of Listeners.  So,
 a field registers itself with another component as a listener, then the
 source component has the responsibility of telling the target components
 what to do and when to do it (in this case, repaint targets when source is
 updated).

 The rough idea:  I use the Component MetaData on the source to store a List
 of target Component references.  The whole design is based upon
 MetaDataRoleAuthorizationStrategy.  Now, I know what you're thinking:  What
 about the case where the source component hasn't been instantiated yet, but
 I want to register a target against it?  Well, I use the Page (actually an
 object on the Page) and a custom Panel (that all other panels extend from)
 as mediators.  A Component can actually register with another Component via
 an actual reference to the source Component or by name.  In the latter
 case, the source Component would have to register themselves with the
 Page/Panel in a Component registry.  This helped with the problem of
 fragility because I didn't need to know the full path to a Component from
 the targets position which meant I could change the hierarchy without having
 to go back and adjust all these register() methods.  That covers the basics
 of building the web of source/targets.

 Using the knowledge is up to the developer.  For my immediate needs,
 whenever I repaint the source (which is usually due to an AJAX update of the
 model), I repaint anyone registered to me.  I even created behaviors that
 extend AjaxFormComponentUpdatingBehavior to help make this even more
 transparent.

 I just reread this post and it seems a little abstract.  If anyone is
 actually interested in this, I will do my best to elaborate.  I also welcome
 criticism of this approach because I would hate to get into full production
 mode and find some stupid loophole that takes me back to the drawing
 board.

 Chuck


 James McLaughlin-3 wrote:
 
  +1. It can be tedious sometimes  figuring out  how to update
  components that are on the other side of the tree from the onClick.
 
  best,
  jim
 
  On 5/30/07, Jonathan Locke [EMAIL PROTECTED] wrote:
 
 
  Maybe another way to auto-ajax-update a component would be to have it do
  that whenever its model changes.  There are a lot of caveats with model
  change notifications, but that seems to be a pretty clean idea if the
  rules
  for model changes were respected.  Might make a good RFE for next Wicket
  version.
 
 
  Jonathan Locke wrote:
  
  
   It shouldn't be hard to write the method you're talking about.  To find
   all the components using the same model as a given component, just walk
   the component hierarchy using visitChildren() and add any component
  which
   returns true for sameInnermostModel(component).
  
   There is a more general case of this problem though where one area of a
   web page may need to be updated because some completely unrelated area
   changed.  This I'm handling by hand right now, but I was asking a day
  or
   two ago if there was a way to add a component to every ajax request
  (Eelco
   answered that you can do this by implementing a request processor, I
   think).  It seems to be pretty common in an AJAX request to want a
  global
   feedback component to update.  Maybe we could have a poor-man's version
  of
   this where if you override some boolean method, your component will get
   auto-ajax-updated on every AJAX request. For many problems, this would
  be
   convenient because it's easier to just update the thing every time than
  to
   think about all the places it might need to be updated.
  
  
   dukejansen wrote:
  
   I have some state which backs two panels, Panel A and Panel B, that
  may
   be included as part of other panels. Ultimately they are both on the
  same
   page, and their backing state is shared via the model class that backs
   both of them. Panel A has an Ajax event handler which modifies the
   backing model state, after which I want to force Panel A and Panel B
  to
   repaint.
  
   I've dealt with this in a few different ways so 

Re: [Wicket-user] Dynamic number of columns in TreeTable

2007-05-31 Thread Mats Norén
Ok, I tried to switch the column-array to a IModel with a list and I
got the tree to render...once... :)
Seems like I missed a couple of spots...

Thanks for the quick reply.

I guess an alternate approach for my usecase could be to only add two
columns, one tree column and one panel containing a listview that
renders my columns...

/Mats

On 5/31/07, Matej Knopp [EMAIL PROTECTED] wrote:
 I'm affraid this is not possible at the moment and I can see some
 issues with implementing this. What you can do now is either override
 isVisible to hide particular columns, or recreate the tree every time
 the columns change.

 -Matej

 On 5/31/07, Mats Norén [EMAIL PROTECTED] wrote:
  Hi,
  Would it be possible to let the TreeTable take a model of columns
  instead of a fixed array?
  So that it would be possible to dynamically alter the number of
  columns based on a model?
 
  My usecase is a timeplanning tree with activities as rows and time as 
  columns.
  Looking at the code it seems that the tree is initialized with at
  fixed number of columns?
 
  /Mats
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problem with AjaxLink and images in snapshot from this morning (1.3.0-incubating-SNAPSHOT)

2007-05-28 Thread Mats Norén
I've got a small snag with images inside an ajaxlink:

My template looks like this:

a wicket:id=previous class=marginRight href=#
title=Bakaring;timg alt= class=middle
src=img/button_goBack.gif/a

The generated output when the page loads for the first time:

a href=# title=Bakaring;t class=marginRight onclick=var
wcall=wicketAjaxGet('../../../?wicket:interface=:4:form:previous::IBehaviorListener:0:3',
function() { }.bind(this), function() { }.bind(this));return !wcall;
id=previous25img class=middle
src=../../../img/button_goBack.gif alt=/a

Notice the src-attribute for the image. The image displays correctly.
When click the ajax-link the generated output looks slightly different:

a href=# title=Bakåt class=marginRight onclick=var
wcall=wicketAjaxGet('../../../?wicket:interface=:4:form:previous::IBehaviorListener:0:3',
function() { }.bind(this), function() { }.bind(this));return !wcall;
id=previous25img class=middle src=img/button_goBack.gif
alt=/a

Notice the lack of ../../../ in the src-attribute for the image.

I did an update this morning, for the first time in about two weeks, I
guess something has changed with the way resources are loaded?

Any suggestions?

Regards,
Mats

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AbstractTree in 1.3

2007-05-02 Thread Mats Norén
Just a quick question/clarification about the current Tree in 1.3.

Is it correct that the AbstractTree only uses a TreeModel to gain
access to the root TreeNode?

Looking at the code in AbstractTree.java line 499:

// is root item created? (root item is null if the items have not
// been created yet, or the whole tree was dirty and 
clearAllITem
// has been called
if (rootItem == null)
{
TreeNode rootNode =
(TreeNode)((TreeModel)getModelObject()).getRoot(); !-- look here
if (rootNode != null)
{
if (isRootLess())
{
rootItem = 
newTreeItem(rootNode, -1);
}
else
{
rootItem = 
newTreeItem(rootNode, 0);
}
itemContainer.add(rootItem);
buildItemChildren(rootItem);
}
}

I tried to implement my own TreeModel but noticed that it only called
getRoot() and nothing else...

Is this the intended behavior?

Does this mean that I have to implement my own TreeNode to build a dynamic tree?

/Regards Mats

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] wicket-contrib-tinymce

2007-04-17 Thread Mats Norén
Is there JIRA for wicket-contrib-tinymce?
I was thinking about adding a patch for the
https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-tinymce/
so that it uses 1.3.0-incubating-SNAPSHOT instead of wicket 1.2.4...

/Regards Mats

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-contrib-tinymce

2007-04-17 Thread Mats Norén
:)

btw, thanks for adding the tinymce project.

/Mats

On 4/17/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 it is the wicketstuff jira

 eelco is smoking crack again

 -igor



 On 4/17/07, Mats Norén [EMAIL PROTECTED]  wrote:
  Ah, I thought it was http://wicketstuff.org/jira
 
  Is there a reason for the two separate issuetrackers?
 
  /Regards Mats
 
  On 4/17/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
   Formally:
 http://sourceforge.net/tracker/?group_id=134391.
  
   Eelco
  
  
   On 4/17/07, Mats Norén  [EMAIL PROTECTED] wrote:
Is there JIRA for wicket-contrib-tinymce?
I was thinking about adding a patch for the
   
 https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-tinymce/
so that it uses 1.3.0-incubating-SNAPSHOT instead of wicket 1.2.4...
   
/Regards Mats
   
   
 -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-contrib-tinymce

2007-04-17 Thread Mats Norén
Ah, I thought it was http://wicketstuff.org/jira

Is there a reason for the two separate issuetrackers?

/Regards Mats

On 4/17/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Formally: http://sourceforge.net/tracker/?group_id=134391.

 Eelco


 On 4/17/07, Mats Norén [EMAIL PROTECTED] wrote:
  Is there JIRA for wicket-contrib-tinymce?
  I was thinking about adding a patch for the
  https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-tinymce/
  so that it uses 1.3.0-incubating-SNAPSHOT instead of wicket 1.2.4...
 
  /Regards Mats
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] WicketTester

2007-04-04 Thread Mats Norén
Hi,
Is there an example on how to test bookmarkable pages with pageparameters?
Do I have to use the ITestPage and call the constructor
page(PageParameters params)?

/Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WicketTester

2007-04-04 Thread Mats Norén
I try to setup a simple testcase with a bookmarkablepage and get the
following exception about the serialization.

INFO  - Application- [WicketTester$1] init: Wicket
extensions initializer
INFO  - Application- [WicketTester$1] init: Wicket
core library initializer
INFO  - Application- [WicketTester$1] init: Wicket JMX
initializer
INFO  - Initializer- registering Wicket mbeans with
server [EMAIL PROTECTED]
INFO  - WebApplication - [WicketTester$1] Started Wicket
in development mode
ERROR - Objects- Error serializing object class
wicket.util.tester.DummyHomePage [object=[Page class =
wicket.util.tester.DummyHomePage, id = 0, version = 0]]
wicket.util.io.WicketSerializeableException: No serializeable
constructor found for class
wicket.protocol.http.MockHttpServletRequest
wicket.util.tester.DummyHomePage-testPageSource-se.curalia.ekn.page.project.ProjectLeadAddsComment$1-this$0-se.curalia.ekn.page.project.ProjectLeadAddsComment-tester-wicket.util.tester.WicketTester-servletRequest
NOTE: if you feel Wicket is at fault with this exception, please
report to the mailing list. You can switch to JDK based serialization
by calling: wicket.util.lang.Objects.setObjectStreamFactory(new
IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
method of your application

The testing code:

 
AnnotApplicationContextMock appctx = new AnnotApplicationContextMock();
appctx.putBean(commentDAO, commentDAO);
appctx.putBean(projectDAO, projectDAO);


this.tester.getApplication().addComponentInstantiationListener(new
SpringComponentInjector(this.tester.getApplication(), appctx));

tester.startPage(new ITestPageSource() {
public Page getTestPage() {
PageParameters params = new PageParameters();
params.add(id, 1);
return new Diary(params);
}
});

I'm using incubator-1.3.0 rev  520893 from about two weeks back.

/regards Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WicketTester

2007-04-04 Thread Mats Norén
Update,  I switched to the latest snapshot and got the same error


On 4/4/07, Mats Norén [EMAIL PROTECTED] wrote:
 I try to setup a simple testcase with a bookmarkablepage and get the
 following exception about the serialization.

 INFO  - Application- [WicketTester$1] init: Wicket
 extensions initializer
 INFO  - Application- [WicketTester$1] init: Wicket
 core library initializer
 INFO  - Application- [WicketTester$1] init: Wicket JMX
 initializer
 INFO  - Initializer- registering Wicket mbeans with
 server [EMAIL PROTECTED]
 INFO  - WebApplication - [WicketTester$1] Started Wicket
 in development mode
 ERROR - Objects- Error serializing object class
 wicket.util.tester.DummyHomePage [object=[Page class =
 wicket.util.tester.DummyHomePage, id = 0, version = 0]]
 wicket.util.io.WicketSerializeableException: No serializeable
 constructor found for class
 wicket.protocol.http.MockHttpServletRequest
 wicket.util.tester.DummyHomePage-testPageSource-se.curalia.ekn.page.project.ProjectLeadAddsComment$1-this$0-se.curalia.ekn.page.project.ProjectLeadAddsComment-tester-wicket.util.tester.WicketTester-servletRequest
 NOTE: if you feel Wicket is at fault with this exception, please
 report to the mailing list. You can switch to JDK based serialization
 by calling: wicket.util.lang.Objects.setObjectStreamFactory(new
 IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init
 method of your application

 The testing code:

  
 AnnotApplicationContextMock appctx = new AnnotApplicationContextMock();
 appctx.putBean(commentDAO, commentDAO);
 appctx.putBean(projectDAO, projectDAO);


 this.tester.getApplication().addComponentInstantiationListener(new
 SpringComponentInjector(this.tester.getApplication(), appctx));

 tester.startPage(new ITestPageSource() {
 public Page getTestPage() {
 PageParameters params = new PageParameters();
 params.add(id, 1);
 return new Diary(params);
 }
 });

 I'm using incubator-1.3.0 rev  520893 from about two weeks back.

 /regards Mats


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Error with 1.2.5 and Spring

2007-03-06 Thread Mats Norén
Got the same error

On 3/5/07, Matt Welch [EMAIL PROTECTED] wrote:
 I'm only just now upgrading to Wicket 1.2.5 and I've run into an issue. I'm
 certain this is an problem on my side and not a bug because other people
 would have run into this and reported by now and I can't find any reports
 like this on the mailing list.

 I'm using Maven. I switched my three wicket dependencies (wicket,
 wicket-spring, and wicket-spring-annot) from version 1.2.4 to 1.2.5 and I'm
 now receiving an error. Everything compiles fine in my code, but when I
 start up jetty I see:

 --
 java.lang.Error: Unresolved compilation problems:
 The import wicket.injection.IFieldValueFactory
 cannot be resolved
 IFieldValueFactory cannot be resolved to a type
 factory cannot be resolved
 IFieldValueFactory cannot be resolved to a type
 factory cannot be resolved

 at
 wicket.spring.injection.annot.AnnotSpringInjector.init(AnnotSpringInjector.java:4)
 at
 wicket.spring.injection.annot.SpringComponentInjector.init(SpringComponentInjector.java:96)
 at
 wicket.spring.injection.annot.SpringComponentInjector.init(SpringComponentInjector.java:68)
 at
 com.ptc.fusion.web.FusionWebApplication.init(FusionWebApplication.java:55)
 at
 wicket.protocol.http.WicketServlet.init(WicketServlet.java:299)
 at
 javax.servlet.GenericServlet.init(GenericServlet.java:241)
 at
 org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:442)
 at
 org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:259)
 at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
 at
 org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:593)
 at
 org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
 at
 org.mortbay.jetty.webapp.WebAppContext.startContext
 (WebAppContext.java:1191)
 at
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:481)
 at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:434)
 at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
 at
 org.mortbay.jetty.plugin.Jetty6PluginWebApplication.start(Jetty6PluginWebApplication.java:147)
 at
 org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.changesDetected(AbstractJettyRunMojo.java
 :372)
 at
 org.mortbay.jetty.plugin.util.Scanner.run(Scanner.java:159)
 --

 If I remove the following line in my WebAppliciation.init() method,
 everything starts up fine:

 addComponentInstantiationListener(new
 SpringComponentInjector(this));

 Of course, when remove that, I can no longer inject Spring beans with the
 @SpringBean annotation.

 I'm a little stuck here. If I switch back to 1.2.4, it's all fine again. Any
 ideas?

 Matt



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Dynamic Page creation from db

2007-03-01 Thread Mats Norén
Hi,
I'm looking for a pattern to create page instances from a configuration in db.
I sounds really weird but the scenario is this:

- A request comes in for /mountpoint/dynamicpart1/part2/part3
- A lookup is made to db for a PageConfig with urlPart =
dynamicpart1/part2/part3
  PageConfig contains a className and 1 or more params where the
mandatory param is the id for the modelObject for the page.

- Use reflection to find a corresponding page in the class hierarchy.
- Instantiate.
- Let wicket render it...

I've looked at the IPageFactory but that seems to late in the
processing because the page class is already determined.

I guess some kind of urldecoding strategy is needed but I don't know
the internals of wickets processing parts that well.

Would appreciate any pointers to where to look!

/Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dynamic Page creation from db

2007-03-01 Thread Mats Norén
Brilliant! :-) I wouldn't have thought of that. That solves it. Thanks!

On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 so now that ive looked at ipagefactory what you want should be pretty easy
 if you still want to use pages

 mount a MyFactoryPage onto the /mountpointurl using indexedurlcodingstrategy

 then in ipagefactory do this:

 Page newPage(final Class? extends Page pageClass, final PageParameters
 parameters) {
   if (pageClass.equals(MyFactoryPage.class)) {
  // we hit our marker factory page
  String url=buildurlfromparameters(params);
  String resolvedpageclass=resolveclassfromurl(url);
   PageParameters resolvedparams=resolveparamsfromurl(url);
  return super.newPage(resolvedpageclass, resolvedparams);
   } else { return super.newPage(pageClass, parameters); }
 }

 MyFactoryPage is just an empty page, it really only serves as a marker for
 when you hit that mount point.

 makes sense?

 -igor


 On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
  the niceset woiuld be to use panels instead of pages. that way you mount a
  page onto /mountpoint, when its hit you read the rest of the parameters,
  query the db for the panel class, instantiate it and add it to the page.
  nice and clean. there is really very little difference between page and
  panel functionality-wise.
 
  i dont have the code infront of me, but i would think this should be
  doable within the pagemap factory
 
  -igor
 
  On 3/1/07, Mats Norén  [EMAIL PROTECTED] wrote:
  
   Hi,
   I'm looking for a pattern to create page instances from a configuration
   in db.
   I sounds really weird but the scenario is this:
  
   - A request comes in for /mountpoint/dynamicpart1/part2/part3
   - A lookup is made to db for a PageConfig with urlPart =
   dynamicpart1/part2/part3
 PageConfig contains a className and 1 or more params where the
   mandatory param is the id for the modelObject for the page.
  
   - Use reflection to find a corresponding page in the class hierarchy.
   - Instantiate.
   - Let wicket render it...
  
   I've looked at the IPageFactory but that seems to late in the
   processing because the page class is already determined.
  
   I guess some kind of urldecoding strategy is needed but I don't know
   the internals of wickets processing parts that well.
  
   Would appreciate any pointers to where to look!
  
   /Mats
  
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
   your
   opinions on IT  business topics through brief surveys-and earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dynamic Page creation from db

2007-03-01 Thread Mats Norén
Forgot to ask, but it seems that DefaultPageFactory has a lot of final
methods in 1.3.
Is there another option?

/Mats


On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote:
 Brilliant! :-) I wouldn't have thought of that. That solves it. Thanks!

 On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  so now that ive looked at ipagefactory what you want should be pretty easy
  if you still want to use pages
 
  mount a MyFactoryPage onto the /mountpointurl using indexedurlcodingstrategy
 
  then in ipagefactory do this:
 
  Page newPage(final Class? extends Page pageClass, final PageParameters
  parameters) {
if (pageClass.equals(MyFactoryPage.class)) {
   // we hit our marker factory page
   String url=buildurlfromparameters(params);
   String resolvedpageclass=resolveclassfromurl(url);
PageParameters resolvedparams=resolveparamsfromurl(url);
   return super.newPage(resolvedpageclass, resolvedparams);
} else { return super.newPage(pageClass, parameters); }
  }
 
  MyFactoryPage is just an empty page, it really only serves as a marker for
  when you hit that mount point.
 
  makes sense?
 
  -igor
 
 
  On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  
   the niceset woiuld be to use panels instead of pages. that way you mount a
   page onto /mountpoint, when its hit you read the rest of the parameters,
   query the db for the panel class, instantiate it and add it to the page.
   nice and clean. there is really very little difference between page and
   panel functionality-wise.
  
   i dont have the code infront of me, but i would think this should be
   doable within the pagemap factory
  
   -igor
  
   On 3/1/07, Mats Norén  [EMAIL PROTECTED] wrote:
   
Hi,
I'm looking for a pattern to create page instances from a configuration
in db.
I sounds really weird but the scenario is this:
   
- A request comes in for /mountpoint/dynamicpart1/part2/part3
- A lookup is made to db for a PageConfig with urlPart =
dynamicpart1/part2/part3
  PageConfig contains a className and 1 or more params where the
mandatory param is the id for the modelObject for the page.
   
- Use reflection to find a corresponding page in the class hierarchy.
- Instantiate.
- Let wicket render it...
   
I've looked at the IPageFactory but that seems to late in the
processing because the page class is already determined.
   
I guess some kind of urldecoding strategy is needed but I don't know
the internals of wickets processing parts that well.
   
Would appreciate any pointers to where to look!
   
/Mats
   
   
   
  -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
   
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dynamic Page creation from db

2007-03-01 Thread Mats Norén
Yep, thought of that just as I hit sent...works! Thanks again!


On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 use extension by delegation instead of inheritance


 -igor


 On 3/1/07, Mats Norén [EMAIL PROTECTED]  wrote:
  Forgot to ask, but it seems that DefaultPageFactory has a lot of final
  methods in 1.3.
  Is there another option?
 
  /Mats
 
 
  On 3/1/07, Mats Norén [EMAIL PROTECTED] wrote:
   Brilliant! :-) I wouldn't have thought of that. That solves it. Thanks!
  
   On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
so now that ive looked at ipagefactory what you want should be pretty
 easy
if you still want to use pages
   
mount a MyFactoryPage onto the /mountpointurl using
 indexedurlcodingstrategy
   
then in ipagefactory do this:
   
Page newPage(final Class? extends Page pageClass, final
 PageParameters
parameters) {
  if (pageClass.equals(MyFactoryPage.class)) {
 // we hit our marker factory page
 String url=buildurlfromparameters(params);
 String
 resolvedpageclass=resolveclassfromurl(url);
  PageParameters
 resolvedparams=resolveparamsfromurl(url);
 return super.newPage(resolvedpageclass, resolvedparams);
  } else { return super.newPage(pageClass, parameters); }
}
   
MyFactoryPage is just an empty page, it really only serves as a marker
 for
when you hit that mount point.
   
makes sense?
   
-igor
   
   
On 3/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 the niceset woiuld be to use panels instead of pages. that way you
 mount a
 page onto /mountpoint, when its hit you read the rest of the
 parameters,
 query the db for the panel class, instantiate it and add it to the
 page.
 nice and clean. there is really very little difference between page
 and
 panel functionality-wise.

 i dont have the code infront of me, but i would think this should be
 doable within the pagemap factory

 -igor

 On 3/1/07, Mats Norén  [EMAIL PROTECTED] wrote:
 
  Hi,
  I'm looking for a pattern to create page instances from a
 configuration
  in db.
  I sounds really weird but the scenario is this:
 
  - A request comes in for
 /mountpoint/dynamicpart1/part2/part3
  - A lookup is made to db for a PageConfig with urlPart =
  dynamicpart1/part2/part3
PageConfig contains a className and 1 or more params where the
  mandatory param is the id for the modelObject for the page.
 
  - Use reflection to find a corresponding page in the class
 hierarchy.
  - Instantiate.
  - Let wicket render it...
 
  I've looked at the IPageFactory but that seems to late in the
  processing because the page class is already determined.
 
  I guess some kind of urldecoding strategy is needed but I don't
 know
  the internals of wickets processing parts that well.
 
  Would appreciate any pointers to where to look!
 
  /Mats
 
 
 
   
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
 share
  your
  opinions on IT  business topics through brief surveys-and earn
 cash
 
   
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


   
  
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys-and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page

[Wicket-user] mount shared resource inside initializer?

2007-02-28 Thread Mats Norén
Hi,
is it possible to mount my shared resource within my localizer?

public class ForumFeedResource extends ContentFeedResource

public static class Initializer implements IInitializer {

public void init(Application application) {
application.getSharedResources().add(newsFeed, new
ForumFeedResource());
-- can't be done?
--application.mountSharedResource(/rss/forum, new
ResourceReference(newsFeed).getSharedResourceKey());
}
}


protected SyndFeed getFeed() {
ValueMap params = getParameters();
build my feed...
   }
}

Or am I using it the wrong way?

/Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] mount shared resource inside initializer?

2007-02-28 Thread Mats Norén
On 2/28/07, Johan Compagner [EMAIL PROTECTED] wrote:
 i think that should work
 Doesn't it? error? or the mount is just not there?

not there! :)

wicket 1.2.4 btw

/Mats




 johan



 On 2/28/07, Mats Norén  [EMAIL PROTECTED] wrote:
 
  Hi,
  is it possible to mount my shared resource within my localizer?
 
  public class ForumFeedResource extends ContentFeedResource
 
  public static class Initializer implements IInitializer {
 
  public void init(Application application) {
  application.getSharedResources ().add(newsFeed, new
  ForumFeedResource());
  -- can't be done?
  --application.mountSharedResource(/rss/forum, new
  ResourceReference(newsFeed).getSharedResourceKey());
  }
  }
 
 
  protected SyndFeed getFeed() {
  ValueMap params = getParameters();
  build my feed...
 }
  }
 
  Or am I using it the wrong way?
 
  /Mats
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys-and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] mount shared resource inside initializer?

2007-02-28 Thread Mats Norén
Hmm...I think I've missed the fact that the application doesn't have mount.
I guess I should cast the Application to WebApplication and just be
done with it...

Sorry for the noise...

/Mats

On 2/28/07, Johan Compagner [EMAIL PROTECTED] wrote:
 make a jira issue for this.



 On 2/28/07, Mats Norén [EMAIL PROTECTED] wrote:
  On 2/28/07, Johan Compagner [EMAIL PROTECTED] wrote:
   i think that should work
   Doesn't it? error? or the mount is just not there?
 
  not there! :)
 
  wicket 1.2.4 btw
 
  /Mats
 
 
 
  
   johan
  
  
  
   On 2/28/07, Mats Norén  [EMAIL PROTECTED] wrote:
   
Hi,
is it possible to mount my shared resource within my localizer?
   
public class ForumFeedResource extends ContentFeedResource
   
public static class Initializer implements IInitializer {
   
public void init(Application application) {
application.getSharedResources ().add(newsFeed, new
ForumFeedResource());
-- can't be done?
--application.mountSharedResource(/rss/forum, new
   
 ResourceReference(newsFeed).getSharedResourceKey());
}
}
   
   
protected SyndFeed getFeed() {
ValueMap params = getParameters();
build my feed...
   }
}
   
Or am I using it the wrong way?
   
/Mats
   
   
  
 -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
 share
   your
opinions on IT  business topics through brief surveys-and earn cash
   
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
   opinions on IT  business topics through brief surveys-and earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
  opinions on IT  business topics through brief surveys-and earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] spring integration question

2007-01-15 Thread Mats Norén
I personally think it is easer to override the init method of your application:

protected void init() {
super.init();
addComponentInstantiationListener(new SpringComponentInjector(this));
...
}

and use the @SpringBean where you want to use your DAO.

@SpringBean
ContactDao contactDao

/Mats


On 1/15/07, Peter Thomas [EMAIL PROTECTED] wrote:
 Hi,

 I was thinking that more option can be added to the official wicket-spring
 integration documentation.  Something like this:

 1) normal wicket servlet config in web.xml, with applicationClassName
 init-param

 2) Application class uses Spring API to get hold of dependency like this:

 class MyApplication extends WebApplication {
private ContactDao dao;
public ContactDao getContactDao() { return dao; }

public void init() {
ServletContext sc =
 getWicketServlet().getServletContext();
dao = (ContactDao)
 WebApplicationContextUtils.getWebApplicationContext(sc).getBean(contactDao);
}
 }

 3) Have all pages / components extend BasePage that has a getContactDao()
 method - exactly like the first option in the wicket-spring wiki
 documentation here:
 http://www.wicket-wiki.org.uk/wiki/index.php/Spring

 I understand the risk of running into the serialization problem and also
 that this may be considered not-so-elegant because of using the Spring API
 directly without any dependency injection.  But I want to mention my
 experience, I spent a lot of time going through the existing documentation
 agonizing over which option to choose.  Trying to understand all the
 options, lazy proxies etc was a little daunting for a spring fan like me.

 In my case I just have one clean dependency and finally it was so easy to do
 it as suggested above.  I also don't need the wicket-spring jar at all.  Are
 there any other compelling reasons for using the wicket-spring lib?  Is the
 suggested approach fine for small projects who want to hook into Spring
 quickly?

 Another thing - I initially tried to use wicket-spring-annot and Maven 2
 complained with this error:

 

 [INFO] Failed to resolve artifact.

 GroupId: wicket
 ArtifactId: wicket-parent
  Version: 1.2-SNAPSHOT

 Reason: Unable to download the artifact from any repository

   wicket:wicket-parent:pom:1.2-SNAPSHOT

 from the specified remote repositories:
   central ( http://repo1.maven.org/maven2)

 =

 I think the reason is because the wicket-spring-annot-1.2.4.pom incorrectly
 refers to 1.2-SNAPSHOT version for wicket-parent.  The url of the offending
 file in the maven repository is this:

 http://repo1.maven.org/maven2/wicket/wicket-spring-annot/1.2.4/wicket-spring-annot-1.2.4.pom

 Let me know if I need to log an issue or something.

 Thanks,

 Peter.

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] spring integration question

2007-01-15 Thread Mats Norén
Oops, sorry, didn't read your entire mail.
However, I do feel that the extra dependency is worth it in the long
run. You very seldom have only one DAO in your application... :) Let's
say you have 50 beans that you want to use in different parts of the
system, the code bloat in the Application class will be quite big.

/Mats

On 1/15/07, Peter Thomas [EMAIL PROTECTED] wrote:
 Thanks Mats, I totally agree that that is a pretty clean option.  This does
 mean that you have to include wicket-spring and wicket-spring-annot though -
 which I avoided.

 I am trying to figure if the alternate approach is workable and then I do
 feel it is worth adding to the wiki.  Also it may be more appealing to those
 folks who are anti-annotations.  (yes such people exist :)

 Regards,

 Peter.


 On 1/15/07, Mats Norén [EMAIL PROTECTED] wrote:
  I personally think it is easer to override the init method of your
 application:
 
  protected void init() {
  super.init();
  addComponentInstantiationListener(new
 SpringComponentInjector(this));
  ...
  }
 
  and use the @SpringBean where you want to use your DAO.
 
  @SpringBean
  ContactDao contactDao
 
  /Mats
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TreeTable from DB

2007-01-11 Thread Mats Norén
On 1/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:

 Then you would have to reset/ re-render the tree from scratch every
 time. Your best bet is probably to look at Swing examples that do
 this; the idea should be the same.

 One way to load lazily - though keep in mind it doesn't clean up when
 nodes are unfolded again - is to override DefaultMutableTreeNode's
 getChildCount method, so that it lazily initializes itself, adding any
 child nodes on the first call. Code that I'm using in project looks
 like this:

What do you mean by clean up when nodes are unfolded again?

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] TreeTable from DB

2007-01-04 Thread Mats Norén
Hi,
I'm trying to find an example using the tree table with a dynamic
model that get's reloaded every request. The current example in
wicket-examples uses an ordinary TreeModel which is static.

Is it as simple as attaching a LDM which returns a TreeModel in load()?

If I provide my own TreeModel how can I get it to update on attach,
detach in tune with the rendering  cycle? Is there a well known
pattern for this?

Regards
Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] FileUpload problem

2006-12-06 Thread Mats Norén
I've been using wicket 1.2.1 in my application but decided to upgrade to 1.2.3.
Basically everything works except my FileUpload to a Jackrabbit-repository.
My testcases for my DAO:s working against the jackrabbit repo still
works but in my application any file larger than 10kb gets an
exception inside Jackrabbit:
Bad filedescriptor

The only thing I can think of is that the handling of the
FileUpload.getInputStream() has changed somehow.
The code looks like this (parts omitted for clarity):

Button uploadButton;
//document.
add(uploadButton = new Button(upload) {
protected void onSubmit() {
final FileUpload upload = 
fileUploadField.getFileUpload();
if (upload != null) {
try {
Document document = getDocument();
document.setName(upload.getClientFileName());

document.setFilename(upload.getClientFileName());
document.setMimeType(upload.getContentType());
document.setInputStream(upload.getInputStream());
document.setSize(upload.getSize());
System.out.println(document.getSize());
document.setContentIsNew(true);
setDocument(document);
} catch (Exception e) {
throw new IllegalStateException(Unable to
upload file, e);
}
}
}
}.setDefaultFormProcessing(false));

Button saveButton = new Button(save) {

protected void onSubmit() {
Document document = getDocument();
...
documentDAO.save(document);
...
 }
 }


Inside documentDAO.save:
   ...
   Node resNode = null;

try {
resNode = node.getNode(jcr:content);
} catch (PathNotFoundException e) {
resNode = node.addNode(jcr:content, nt:resource);
}

if (document.isContentNew()) {
resNode.setProperty(jcr:mimeType, 
document.getMimeType());
resNode.setProperty(jcr:encoding, 
document.getEncoding());
resNode.setProperty(jcr:data, 
document.getInputStream());
// resNode.setProperty(jcr:size, document.getSize());
resNode.setProperty(jcr:lastModified, 
document.getLastModified());
}


The code fails on the jcr:data when accessing document.getInputStream() with:

dao.jcr.DocumentException: error saving document node model
at xxx.plan.dao.jcr.DocumentDAO.save(DocumentDAO.java:442)
at 
xxx.plan.dao.jcr.DocumentDAO$$FastClassByCGLIB$$339cce88.invoke(generated)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at 
wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:282)
at 
se.curalia.plan.dao.jcr.DocumentDAO$$EnhancerByCGLIB$$d394039b.save(generated)
at 
se.curalia.plan.web.page.document.EditDocumentPage$EditDocumentForm$3.onSubmit(EditDocumentPage.java:334)
at wicket.markup.html.form.Form.delegateSubmit(Form.java:568)
at wicket.markup.html.form.Form.onFormSubmitted(Form.java:313)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:163)
at 
wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74)
at 
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65)
at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
at wicket.RequestCycle.step(RequestCycle.java:1010)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at 

Re: [Wicket-user] FileUpload problem

2006-12-06 Thread Mats Norén
Sorry for the spam. I read the javadoc for fileupload and noticed in
*bold* that the inputstream is closed between requestsdoh.
Strange that it works for files under 10 kb though

On 12/6/06, Mats Norén [EMAIL PROTECTED] wrote:
 I've been using wicket 1.2.1 in my application but decided to upgrade to 
 1.2.3.
 Basically everything works except my FileUpload to a Jackrabbit-repository.
 My testcases for my DAO:s working against the jackrabbit repo still
 works but in my application any file larger than 10kb gets an
 exception inside Jackrabbit:
 Bad filedescriptor

 The only thing I can think of is that the handling of the
 FileUpload.getInputStream() has changed somehow.
 The code looks like this (parts omitted for clarity):

 Button uploadButton;
 //document.
 add(uploadButton = new Button(upload) {
 protected void onSubmit() {
 final FileUpload upload = 
 fileUploadField.getFileUpload();
 if (upload != null) {
 try {
 Document document = getDocument();
 document.setName(upload.getClientFileName());
 
 document.setFilename(upload.getClientFileName());
 document.setMimeType(upload.getContentType());
 document.setInputStream(upload.getInputStream());
 document.setSize(upload.getSize());
 System.out.println(document.getSize());
 document.setContentIsNew(true);
 setDocument(document);
 } catch (Exception e) {
 throw new IllegalStateException(Unable to
 upload file, e);
 }
 }
 }
 }.setDefaultFormProcessing(false));

 Button saveButton = new Button(save) {

 protected void onSubmit() {
 Document document = getDocument();
 ...
 documentDAO.save(document);
 ...
  }
  }


 Inside documentDAO.save:
...
Node resNode = null;

 try {
 resNode = node.getNode(jcr:content);
 } catch (PathNotFoundException e) {
 resNode = node.addNode(jcr:content, nt:resource);
 }

 if (document.isContentNew()) {
 resNode.setProperty(jcr:mimeType, 
 document.getMimeType());
 resNode.setProperty(jcr:encoding, 
 document.getEncoding());
 resNode.setProperty(jcr:data, 
 document.getInputStream());
 // resNode.setProperty(jcr:size, 
 document.getSize());
 resNode.setProperty(jcr:lastModified, 
 document.getLastModified());
 }
 

 The code fails on the jcr:data when accessing document.getInputStream() 
 with:

 dao.jcr.DocumentException: error saving document node model
 at xxx.plan.dao.jcr.DocumentDAO.save(DocumentDAO.java:442)
 at 
 xxx.plan.dao.jcr.DocumentDAO$$FastClassByCGLIB$$339cce88.invoke(generated)
 at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
 at 
 wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:282)
 at 
 se.curalia.plan.dao.jcr.DocumentDAO$$EnhancerByCGLIB$$d394039b.save(generated)
 at 
 se.curalia.plan.web.page.document.EditDocumentPage$EditDocumentForm$3.onSubmit(EditDocumentPage.java:334)
 at wicket.markup.html.form.Form.delegateSubmit(Form.java:568)
 at wicket.markup.html.form.Form.onFormSubmitted(Form.java:313)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at 
 wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:163)
 at 
 wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74)
 at 
 wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65)
 at 
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
 at 
 wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
 at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
 at wicket.RequestCycle.step(RequestCycle.java:1010

Re: [Wicket-user] Databinder 1.0

2006-11-27 Thread Mats Norén
Ah, ok, so by configuring a LSFB in Spring I could use databinder 1.1
in conjunction with all my other spring configured services?

This factory bean will by default expose a transaction-aware
SessionFactory proxy, letting data access code work with the plain
Hibernate SessionFactory and its getCurrentSession() method, while
still being able to participate in current Spring-managed
transactions: with any transaction management strategy, either local
or JTA / EJB CMT, and any transaction synchronization mechanism,
either Spring or JTA. Furthermore, getCurrentSession() will also
seamlessly work with a request-scoped Session managed by
OpenSessionInViewFilter/Interceptor

Thanks for the pointer!

/M


On 11/27/06, Nathan Hamblen [EMAIL PROTECTED] wrote:
 Databinder 1.1 will use sessionFactory.getCurrentSession() within all
 models. The default behavior will be a ManagedSessionContext bound
 inside DataRequestCycle, but you can turn that off if you want to use
 JTA or Spring-managed transactions:

 http://www.springframework.org/docs/api/org/springframework/orm/hibernate3/LocalSessionFactoryBean.html

 Nathan

 Mats Norén wrote:
  Congrats! :)
  Btw, how difficult would it be to reuse the different models from
  within a Spring based solution?
  The project I'm working on uses Spring for different kinds of services
  (JBPM, Email etc) and there is a need to keep things in the same place
  so to speak but I really like the different Hibernate models you've
  created
 
  /Mats
 
  On 11/22/06, Nathan Hamblen [EMAIL PROTECTED] wrote:
  It's solid, as far as we can tell. :)
 
  There's some new documentation on the site that I hope is helpful to
  Wicket beginners, regardless of their plans for persisting data. It's an
  overview of IModel, why it's important, and how it helps with persistence:
  http://databinder.net/manual/
 
  Nathan


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Databinder 1.0

2006-11-23 Thread Mats Norén
Congrats! :)
Btw, how difficult would it be to reuse the different models from
within a Spring based solution?
The project I'm working on uses Spring for different kinds of services
(JBPM, Email etc) and there is a need to keep things in the same place
so to speak but I really like the different Hibernate models you've
created

/Mats

On 11/22/06, Nathan Hamblen [EMAIL PROTECTED] wrote:
 It's solid, as far as we can tell. :)

 There's some new documentation on the site that I hope is helpful to
 Wicket beginners, regardless of their plans for persisting data. It's an
 overview of IModel, why it's important, and how it helps with persistence:
 http://databinder.net/manual/

 Nathan


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Highlight and set currentPage on datatable/dataview

2006-10-05 Thread Mats Norén
Hi,
I'm trying do build ranking list where I want to highlight the current
users position.
I also want the list to be pageable so one requirement is that I need
to set the current page to the position of the user. I can calculate
this and do setCurrentPage on the datatable but how do highlight the
current users ranking?

I've got a list with Rank-objects from a SortableRankingProvider.

Any suggestions would be appreciated.

/Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] set focus on TextField

2006-08-23 Thread Mats Norén
Hi,
I've got a panel for adding dates with an add link, when the link is
clicked I replace it with a small form with a single TextField
(input type=text..). What I would like to do is to set focus on
the textfield when I switch panels. Is there an easy solution for
this?
I guess I could add an onLoadEvent but that would imply that my panel
would add an onLoad-script to the page, which seems complicated.

/Mats

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket tags

2006-08-15 Thread Mats Norén
You can turn this of in your application.init()
getMarkupSettings().setStripWicketTags(true)

/Mats

On 8/15/06, Alex Objelean [EMAIL PROTECTED] wrote:

 I was wondering if wouldn't it be better if the rendered page would not
 contain wicket tags and wicket:id attribute?
 The root problem is that validating the generated HTML returns errors,
 starting with:
 there is no attribute xmlns:wicket.

 Does it make sense? Thank you!
 --
 View this message in context: 
 http://www.nabble.com/wicket-tags-tf2107902.html#a5810177
 Sent from the Wicket - User forum at Nabble.com.


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Form-question

2006-08-14 Thread Mats Norén
Not really, I'm not using any Ajax-stuff or anything like that.
How do you mean?

/Mats


On 8/14/06, Gwyn Evans [EMAIL PROTECTED] wrote:
 Does this thread apply?
 (http://www.nabble.com/ajax-failed-to-update-a-component-%28wicket-1.2%29-tf1844050.html#a5033398)
 /Gwyn

 On 13/08/06, Mats Norén [EMAIL PROTECTED] wrote:
  What I want the following code to do is to iterate all propertyTypes
  and create or lookup the appropriate property on my Person-object and
  create a TextField for each one.
 
  I've defined a model for the propertyTypes and a model for a
  TeamPerson-object which contains my Person.
 
  Everything works fine except that the setObject(Component c, Object o)
  in  PersonPropertyModel is never called.
  On screen the form renders and look fine but nothing gets written back.
 
  Would appreciate another pair of eyes on this.
 
 
  IModel propertyTypes = new LoadableDetachableModel() {
  protected Object load() {
  return userService.allPropertyTypes();
  }
  };
 
  ListView dynamicProperties = new
  ListView(dynamicProperties, propertyTypes) {
 
  protected void populateItem(ListItem item) {
 
  TextField valueField = new TextField(value);
  valueField.setOutputMarkupId(true);
  FormComponentFeedbackBorder feedbackBorder = new
  FormComponentFeedbackBorder(feedback);
  feedbackBorder.setRenderBodyOnly(true);
  feedbackBorder.add(valueField);
 
  item.add(feedbackBorder);
 
  Label label = new Label(propertyType.name);
  label.add(new AttributeModifier(for, true, new
  Model(valueField.getId(;
  item.add(label);
 
  }
 
  protected IModel getListItemModel(IModel
  listViewModel, int index) {
  PropertyType pt = (PropertyType)
  super.getListItemModel(listViewModel, index).getObject(null);
  return new CompoundPropertyModel(new
  PersonPropertyModel(EditTeamPersonPanel.this.getModel(), pt));
  }
 
  }.setReuseItems(true);
 
 
 
  public class PersonPropertyModel extends AbstractModel {
 
  private final IModel teamPerson;
  private final PropertyType propertyType;
 
  public PersonPropertyModel(IModel teamPersonModel,
  PropertyType propertyType) {
  this.teamPerson = teamPersonModel;
  this.propertyType = propertyType;
  }
 
  public Object getObject(Component c) {
  logger.info(Calling getObject for component:  + c.getId());
  TeamPerson tp = (TeamPerson) teamPerson.getObject(c);
  Person person = tp.getPerson();
  PersonProperty pp = person.getPropertyOfType(propertyType);
  if (pp == null) {
  logger.info(Adding new property);
  pp = new PersonProperty();
  pp.setPerson(person);
  pp.setPropertyType(propertyType);
  }
  return pp;
  }
 
  public void setObject(Component c, Object o) {
  TeamPerson tp = (TeamPerson) teamPerson.getObject(c);
  Person person = tp.getPerson();
  logger.info(Calling setObject for property:  +
  ((PersonProperty) o).getPropertyType().getName());
  person.setPropertyOfType((PersonProperty) o);
  }
 
 
  public void detach() {
  super.detach();
  teamPerson.detach();
  }
  }
 
  /Mats
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 Download Wicket 1.2.1 now! - http://wicketframework.org

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security

Re: [Wicket-user] Form-question

2006-08-13 Thread Mats Norén
What I want the following code to do is to iterate all propertyTypes
and create or lookup the appropriate property on my Person-object and
create a TextField for each one.

I've defined a model for the propertyTypes and a model for a
TeamPerson-object which contains my Person.

Everything works fine except that the setObject(Component c, Object o)
in  PersonPropertyModel is never called.
On screen the form renders and look fine but nothing gets written back.

Would appreciate another pair of eyes on this.


IModel propertyTypes = new LoadableDetachableModel() {
protected Object load() {
return userService.allPropertyTypes();
}
};

ListView dynamicProperties = new
ListView(dynamicProperties, propertyTypes) {

protected void populateItem(ListItem item) {

TextField valueField = new TextField(value);
valueField.setOutputMarkupId(true);
FormComponentFeedbackBorder feedbackBorder = new
FormComponentFeedbackBorder(feedback);
feedbackBorder.setRenderBodyOnly(true);
feedbackBorder.add(valueField);

item.add(feedbackBorder);

Label label = new Label(propertyType.name);
label.add(new AttributeModifier(for, true, new
Model(valueField.getId(;
item.add(label);

}

protected IModel getListItemModel(IModel
listViewModel, int index) {
PropertyType pt = (PropertyType)
super.getListItemModel(listViewModel, index).getObject(null);
return new CompoundPropertyModel(new
PersonPropertyModel(EditTeamPersonPanel.this.getModel(), pt));
}

}.setReuseItems(true);



public class PersonPropertyModel extends AbstractModel {

private final IModel teamPerson;
private final PropertyType propertyType;

public PersonPropertyModel(IModel teamPersonModel,
PropertyType propertyType) {
this.teamPerson = teamPersonModel;
this.propertyType = propertyType;
}

public Object getObject(Component c) {
logger.info(Calling getObject for component:  + c.getId());
TeamPerson tp = (TeamPerson) teamPerson.getObject(c);
Person person = tp.getPerson();
PersonProperty pp = person.getPropertyOfType(propertyType);
if (pp == null) {
logger.info(Adding new property);
pp = new PersonProperty();
pp.setPerson(person);
pp.setPropertyType(propertyType);
}
return pp;
}

public void setObject(Component c, Object o) {
TeamPerson tp = (TeamPerson) teamPerson.getObject(c);
Person person = tp.getPerson();
logger.info(Calling setObject for property:  +
((PersonProperty) o).getPropertyType().getName());
person.setPropertyOfType((PersonProperty) o);
}


public void detach() {
super.detach();
teamPerson.detach();
}
}

/Mats

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Change in handling non serializable-objects in 1.2.1?

2006-08-12 Thread Mats Norén
The application works when setting the
setSerializeSessionAttributes(false) but the page is obviously not
serializable so I'll have to correct that. Thanks for the tip, Igor.




On 8/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i dont know, i just replaced the logging level check with a setting.

 -Igor



 On 8/11/06, Johan Compagner  [EMAIL PROTECTED] wrote:
 
  Is the page detached when we do that???
 
  the call comes from Session.touch(Page) (i have the same problem now in
 2.0 with the second level cache)
  Because the page is detached only as the last thing when the
 RequestTarget.detach is called.
  But touch is called much earlier...
 
 
  johan
 
 
 
 
 
  On 8/11/06, Igor Vaynberg [EMAIL PROTECTED]  wrote:
  
   in application.init() call
 getDebugSettings().setSerializeSessionAttributes(false);
  
   this feature defaults to on in devel mode and off in prod mode - before
 it was triggered by having your logger set to debug on a certain package
 which was a bit too ugly.
  
  
   -Igor
  
  
  
  
   On 8/11/06, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
1.2.1 only has bug fixes. May be you the check the mail archive. I
remember this problem has been discussed before.
   
Juergen
   
On 8/11/06, Mats Norén  [EMAIL PROTECTED]  wrote:
 Well, I guess it isn't but it worked under 1.2 prior to the release.
 The only change in my application is that I've switched from 1.2 SVN
 (don't know the exact repository version) to 1.2.1.

 Is 1.2 more lenient?

 /Mats


 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo

 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
 -
Using Tomcat but need to do more? Need to support web services,
 security?
Get stuff done quickly with pre-integrated technology to make your job
 easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
   
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
 easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket + GIS

2006-08-12 Thread Mats Norén
On 8/11/06, Dave Schoorl [EMAIL PROTECTED] wrote:
 Yes, I have build an application which will (someday) be released in
 production on www.nlgis.nl, I'm waiting for the customer to set up a
 meeting for deployment with the hosting party (currently it is
 accessible through it's test-environment on
 http://ip042.niwi.knaw.nl:9099/hgin/app, you can checkout the Demo-link
 in the navigation menu -- just ignore the Dutch ;-) ).

 I have build the user interface with Wicket, basically to define the SLD
 for the the map in the user session. I use Community Mapbuilder as
 client to show the map in the web browser. GeoServer is on the back end.
 Wiring between GeoServer, Community Mapbuilder and my application is
 done with some plain old servlets and a HttpSessionListener. But that
 was mainly necessary because the user can define (and upload) his own
 FeatureTypes (also a custom DataStore was needed for this to let
 GeoServer access the data in the user session).

Interesting, any plans of open sourcing the custom DataStore-part? I
think the GeoServer-guys would be interested in that.

/Mats

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Link and Input

2006-08-11 Thread Mats Norén
The input elements look like this:

div class=formDiv
input class=button type=image
src=img/button_spara.gif wicket:id=save value=Spara
title=Spara/
input class=button type=image
src=img/button_avbryt.gif wicket:id=cancel value=Avbryt
title=Avbryt/
input class=button type=image
src=img/button_ta_bort.gif wicket:id=delete value=Ta bort
title=Ta bort/
/div

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Link and Input

2006-08-11 Thread Mats Norén
On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote:
 ahh see the code:

 // Don't touch any wicket:id component
 if (tag.getId() != null)
 {
 return tag;
 }

 So in that case you have to do it yourself.

That explains it! Thanks.
So how does it normally work to use a Button with type image?

/Mats

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Link and Input

2006-08-11 Thread Mats Norén
Stupid question, but how do override the settings.java?

On 8/11/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 In 2.0 it looks like

 Settings.java
 public IMarkupParserFactory getMarkupParserFactory()
 {
 if (this.markupParserFactory == null)
 {
 this.markupParserFactory = new 
 MarkupParserFactory(application)
 {
  public MarkupParser newMarkupParser(final
 MarkupResourceStream resource)
  {
   MarkupParser parser =
 super.newMarkupParser(resource);
   parser.registerMarkupFilter(new 
 MyHandler());
  }
 }
 }
 return markupParserFactory;

 In 1.2 it looks like
 Settings.java
 public IMarkupParserFactory getMarkupParserFactory()
 {
 if (this.markupParserFactory == null)
 {
 this.markupParserFactory = new 
 MarkupParserFactory(application)
 {
public MarkupParser newMarkupParser()
{
   final MarkupParser parser = new
 MarkupParser(new XmlPullParser())
  {
public void initFilterChain()
{
 appendMarkupFilter(new 
 MyFilter());
}
  }
 }
 }
 };
 return parser;
 }
 }
 }
 return markupParserFactory;


 Juergen

 On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote:
  you can use i guess public final void appendMarkupFilter(final IMarkupFilter
  filter) of MarkupParser
  But juergen just changes some of that code i believe so maybe he can tell
  you the best solution now.
 
  johan
 
 
 
  On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote:
   On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote:
On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote:
 ahh see the code:

 // Don't touch any wicket:id component
 if (tag.getId() != null)
 {
 return tag;
 }

 So in that case you have to do it yourself.
  
   So I want to add my own version of a PrependContextPathHandler and add
   it to my application.
  
   Do I have to supply my own MarkupParser somehow or how do I add my
   IMarkupFilter to the application?
   /Mats
  
  
  -
   Using Tomcat but need to do more? Need to support web services, security?
   Get stuff done quickly with pre-integrated technology to make your job
  easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https

Re: [Wicket-user] Link and Input

2006-08-11 Thread Mats Norén
Disregard my last post. :)

/Mats

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Link and Input

2006-08-11 Thread Mats Norén
Hmm..didn't work out as I expected. Isn't Settings.java final in 1.2.1?

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Link and Input

2006-08-11 Thread Mats Norén
I'm sorry if I come across as a little bit stupid here but the way I
understood it was that getSettings() in Application is deprecated and
shouldn't be used?

And from what class should I derive MySettings? I mean since Settings is final.

I thought I would supply my own IMarkupSettings but since the only
class implementing it is Settings I'm back at square one.

Or have I missed something?

btw, thanks for your help.

/Mats

ps.
I'm using wicket 1.2.1
ds.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Change in handling non serializable-objects in 1.2.1?

2006-08-11 Thread Mats Norén
Has there been any changes between 1.2 and 1.2.1 when it comes to
handling objects that are not serializable?

In my migration from 1.2 to 1.2.1 I suddenly got this exception:

WicketMessage: Internal error cloning object. Make sure all dependent
objects implement Serializable. Class:
se.curalia.plan.web.page.detailedplan.ShowDetailedPlanPage

Root cause:

java.io.NotSerializableException: se.curalia.plan.dao.jcr.Document
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
at wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:57)
at wicket.Session.setAttribute(Session.java:926)
at wicket.PageMap.put(PageMap.java:526)
at wicket.Session.touch(Session.java:714)
at wicket.Page.renderPage(Page.java:422)
at 
wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226)
at 
wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49)
at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:879)
at wicket.RequestCycle.step(RequestCycle.java:960)
at wicket.RequestCycle.steps(RequestCycle.java:1034)
at wicket.RequestCycle.request(RequestCycle.java:453)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 

Re: [Wicket-user] Change in handling non serializable-objects in 1.2.1?

2006-08-11 Thread Mats Norén
Well, I guess it isn't but it worked under 1.2 prior to the release.
The only change in my application is that I've switched from 1.2 SVN
(don't know the exact repository version) to 1.2.1.

Is 1.2 more lenient?

/Mats

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Link and Input

2006-08-10 Thread Mats Norén
Hi,

I've noticed a strange behavior in 1.2.1 when using links with an
img-element inside.

a wicket:id=linkimg src=img/button_lagg_till.gif//a

in my HTML is changed to

a href=/test?wicket:interface=:3:createLink::ILinkListenerimg
src=/test/img/button_lagg_till.gif alt=Lägg till//a

when wicket render it. The thing I don't understand is how/why the
image-element is changed as well.

Btw, the test in the url is the mountpoint of my webapp.

In the same page I've got form-elements with type image and the
src-attribute isn't changed for them.

Has anyone else seen this?

/Mats

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Link and Input

2006-08-10 Thread Mats Norén
On 8/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
 are you saying we introduce the alt attribute? Then wicket would be very
 good! :)

:)
No, I don't think wicket added that one...



 But wicket tries to resolve all relative links to absolute
 So how do you other things look? Are those also relative links?

Its a directory img under my webapplication root

/webapp/img

What I didn't understand was why it didn't do it's magic on the input-element?


  see the PrependContextPathHandler for the place that does this.


Ok, I'll look there...

 johan



 On 8/10/06, Mats Norén [EMAIL PROTECTED]  wrote:
 
 Hi,

 I've noticed a strange behavior in 1.2.1 when using links with an
 img-element inside.

 a wicket:id=linkimg
 src=img/button_lagg_till.gif//a

 in my HTML is changed to

 a
 href=/test?wicket:interface=:3:createLink::ILinkListenerimg
 src=/test/img/button_lagg_till.gif alt=Lägg till//a

 when wicket render it. The thing I don't understand is how/why the
 image-element is changed as well.

 Btw, the test in the url is the mountpoint of my webapp.

 In the same page I've got form-elements with type image and the
 src-attribute isn't changed for them.

 Has anyone else seen this?

 /Mats

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Coding Authentification, Databinding and Role-related application behaviour

2006-08-09 Thread Mats Norén
On 8/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i have recently deprecated springannotwebapp so this no longer should be a
 problem. now to get spring injection going you do this:

 class myapplication extends webapplication {
init() {
  addComponentInstantiationListener(new
 SpringComponentInjector(this));
}
 }

 thats it, no need for extending any spring related application object.

Ok, is this in version 1.2.1 or only in 2.0?

/Mats


 -Igor



 On 7/21/06, Mats Norén  [EMAIL PROTECTED] wrote:
 
 Has there been any progress in merging AuthenticatedWebApplication and
 the spring-stuff lately or is there a best praktice out there
 somewhere?

 Best regards Mats

 On 6/8/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
  The problem is that the wicket-auth-roles package assumes you subclass
  AuthenticatedWebApplication as your application class. If you want to
 reuse
  that, you'll have to subclass the AuthenticatedWebApplication and the
  AuthenticatedSession.
 
  No spring can fix that.
 
  Martijn
 
 
  On 6/8/06, Mark Derricutt [EMAIL PROTECTED] wrote:
  
 
  On 6/7/06, Martijn Dashorst [EMAIL PROTECTED]  wrote:
 
  
   I suggest (tried and tested at my company) to use the Auth application
 as
  your base class and merge the spring related stuff into your subclass. The
  spring integration is agnostic for sessions and such, so you'll be up and
  running much quicker.
  
 
  Personally I'm using the
  wicket.spring.SpringWebApplicationFactory mentioned in
  web.xml then and nice and cleanly inject my authentication strategy into
 my
  Application via normal spring IoC:
 
  bean id=wicketApplication
 
 class=com.theoryinpractice.timetrackr.TimeTrackrApplication
  property name=timeTrackrAuthorizationStrategy
  ref=authorizationStrategy/
  /bean
 
  bean id=authorizationStrategy
 
 class=com.theoryinpractice.timetrackr.TimeTrackrAuthorizationStrategy
  property name=userManager ref=userManager/
  /bean
 
  The authorization strategy also has injected into it my hibernate DAO's so
  have full access to everything they need, cleanly and springy, without
  touching any of those odd little convience classes (actually I never knew
  they existed either).
 
  Doing spring+wicket this way is much much nicer I find.
 
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 
  --
  Download Wicket 1.2 now! Write Ajax applications without touching
  JavaScript!
  -- http://wicketframework.org
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket + GIS

2006-08-08 Thread Mats Norén
Hi,
has anyone on the list any experience with Wicket and GIS-backends
like Geoserver?
I'm trying to figure out the best approach for interfacing Wicket with
GeoServer but I'm interested in other frameworks as well.

/Mats

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket-contrib-navmenu

2006-08-08 Thread Mats Norén
Hi,
I decided to upgrade my project from a pre-release of 1.2 to 1.2.1 and
ran into some problems.
I used the wicket-contrib-navmenu 1.2-SNAPSHOT in my pom.xml, I tried
the easy approach and changed it to 1.2.1...unfortunately maven
couldn't find it.

Has it moved to some other package or is it removed?

/Mats

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket-contrib-navmenu

2006-08-08 Thread Mats Norén
ah, ok, I just assumed that most of the projects there were trying to keep up.
It worked with 1.2. Thanks!

On 8/8/06, Gwyn Evans [EMAIL PROTECTED] wrote:
 wicket-contrib-navmenu's part of wicket-stuff, or more to the point
 it's not part of the core Wicket project, so you shouldn't expect it
 to be versioned up along with the core.  I'd expect you could just go
 with the current version though, as 1.2 - 1.2.1 should be a dropin
 for clients, which is what wicket-contrib-navmenu is (should be,
 anyway) in this context.

 /Gwyn

 On 08/08/06, Mats Norén [EMAIL PROTECTED] wrote:
  Hi,
  I decided to upgrade my project from a pre-release of 1.2 to 1.2.1 and
  ran into some problems.
  I used the wicket-contrib-navmenu 1.2-SNAPSHOT in my pom.xml, I tried
  the easy approach and changed it to 1.2.1...unfortunately maven
  couldn't find it.
 
  Has it moved to some other package or is it removed?
 
  /Mats

 --
 Download Wicket 1.2.1 now! - http://wicketframework.org

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Form-question

2006-08-04 Thread Mats Norén
Hi,
I've got a form problem that I don't really now how to handle.

I've got three entities Person, PersonProperty and PropertyType.

A Person has a SetPersonProperty
A PersonProperty has a reference to a Person, a PropertyType and
contains a value.

What I would like to do is to edit a users dynamic properties by
showing them all on screen.
In a previous email to the list there was an example of a
Master-Detail form which seemed to be a good start. Code below:

ListView dynamicProperties = new ListView(propertiesAsList) {

protected void populateItem(ListItem item) {


TextField valueField = new TextField(value);
valueField.setOutputMarkupId(true);
FormComponentFeedbackBorder feedbackBorder = new
FormComponentFeedbackBorder(feedback);
feedbackBorder.setRenderBodyOnly(true);
feedbackBorder.add(valueField);

item.add(feedbackBorder);

Label label = new Label(propertyType.name);
label.add(new AttributeModifier(for, true, new
Model(item.getId(;
item.add(label);
}

protected IModel getListItemModel(IModel
listViewModel, int index) {
return new
CompoundPropertyModel(super.getListItemModel(listViewModel, index));

}


}.setReuseItems(true);

This works great for editing the values of the dynamic properties a
user has already set, but what I would like to do is to iterate all
the possible ones, ie the PropertyType:s and get the values from the
PersonProperty if one exist or create one if it doesn't.
I think I need some model-trickery to achieve this but I can't really see it.

Any help would be appreciated!

//Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Form-question

2006-08-04 Thread Mats Norén
Thanks,  I'll give it a try!

On 8/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 yep this will indeed require model trickery which is not really that
 tricky.

 public class PersonPropertyModel extends AbstractModel {
private final IModel person;
private final IModel type;

//imagine a constructor here//

Object getObject(Component c) {
   Person p=person.getObject(c);
   PropertyType t=type.getObject(c);
   return p.getPropertyOfType(t);
}

void setObject(Component c, Object o) {
   Person p=person.getObject(c);
PropertyType t=type.getObject(c);
p.setPropertyOfType(t, (PersonProperty)o);
   }

   ondetach() { person.detach(); type.detach(); }
 }

 so this is just a simple wrapper to a map that can insert new values. the
 trick is that the model knows the person and the type which are the two
 extra pieces of info you need to know except for the property itself. notice
 i made person and type models because i dont know how big they are and if
 you want to keep them in session.

 -Igor




 On 8/4/06, Mats Norén [EMAIL PROTECTED] wrote:
 
  Hi,
 I've got a form problem that I don't really now how to handle.

 I've got three entities Person, PersonProperty and PropertyType.

 A Person has a SetPersonProperty
 A PersonProperty has a reference to a Person, a PropertyType and
 contains a value.

 What I would like to do is to edit a users dynamic properties by
 showing them all on screen.
 In a previous email to the list there was an example of a
 Master-Detail form which seemed to be a good start. Code below:

 ListView dynamicProperties = new ListView(propertiesAsList) {

 protected void populateItem(ListItem item) {


 TextField valueField = new TextField(value);
 valueField.setOutputMarkupId(true);
 FormComponentFeedbackBorder
 feedbackBorder = new
 FormComponentFeedbackBorder(feedback);
 feedbackBorder.setRenderBodyOnly
 (true);
 feedbackBorder.add(valueField);

 item.add(feedbackBorder);

 Label label = new Label(propertyType.name);
  label.add(new AttributeModifier(for, true, new
 Model(item.getId(;
 item.add(label);
 }

 protected IModel getListItemModel(IModel
 listViewModel, int index) {
 return new
 CompoundPropertyModel(super.getListItemModel(listViewModel, index));

 }


 }.setReuseItems(true);

 This works great for editing the values of the dynamic properties a
 user has already set, but what I would like to do is to iterate all
 the possible ones, ie the PropertyType:s and get the values from the
 PersonProperty if one exist or create one if it doesn't.
 I think I need some model-trickery to achieve this but I can't really see
 it.

 Any help would be appreciated!

 //Mats

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] VOTE: how should localized attributes work?

2006-08-03 Thread Mats Norén
2 [x]

On 8/3/06, Frank Bille [EMAIL PROTECTED] wrote:
 2 [x]

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys -- and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] url mounting and weird url:s

2006-08-02 Thread Mats Norén
I've noticed something weird that I can't explain. I've created my own
RequestCycle by extending WebRequestCycle:

public class DIFRequestCycle extends WebRequestCycle {

transient Person user;


public DIFRequestCycle(WebSession webSession, WebRequest
webRequest, WebResponse response) {
super(webSession, webRequest, response);
}

public Person getUser() {

if (user == null) {
DIFSession mySession = (DIFSession) session.get();
UserService service = (UserService)
mySession.getDIFApplication().createSpringBeanProxy(UserService.class,
userService);
if (mySession.getUserId() != 0) {
user = service.getUser(mySession.getUserId());
}
}
return user;
}

public void onEndRequest() {
user = null;
}

}

When I started using this, suddenly my urls changed from:

http://localhost:8080/hemsida/test/trupp/id/210

to

http://localhost:8080/hemsida/test/trupp/wicket:pageMapName/wicket-0/id/210

for all my pages.

I mount the pages in the application like this:

mountBookmarkablePage(/trupp, TeamPage.class);

I haven't done any other change to my application.

Any ideas what causes my nice urls to turn bad like this? :)

/Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] HTML tools

2006-08-01 Thread Mats Norén
I can recommend Intellij IDEA as a HTML-editor. Great CSS-support as
well. Theres a video demonstration somewhere. I think it's a google
techtalk where one of the developers demos the HTML support.

/Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Authorization-question

2006-07-31 Thread Mats Norén
On 7/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i wouldnt recommend doint this in session because user entity will become
 detached, i would instead do it in the requestcycle so the user is loaded
 once per request

It is? I've used a User-object in session and I haven't noticed that
it gets detached I guess I'll have to look into to that.

Can I still have a getUser() method in Session that in turn uses the code below?

I think I saw an example (could have been in databinder) where a
IModel was stored in session. Is that an alternative?

 ((MyRequestCycle)RequestCycle.get()).getUser();

 MyRequestCycle {
 private transient User user;

   getuser() { if (user==null) { user=loaduser(session.get().getuserid()); }
   onendrequest() { user=null; }
 }

 -Igor


/Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Authorization-question

2006-07-30 Thread Mats Norén
Hi,
I've got a scenario where I would like to filter rendering of
components based on a users role but the roles change depending on a
page parameter, ie:
- PageA has a page parameter teamId
- if the teamId is 1 the User is admin (for that particular team)
- if the teamId is 2 the User is an ordinary user

Every page in the application works in the same way.
In my other attempts with wicket and authorization I used an
AuthenticatedWebSession and annotations to filter the components but I
don't see how I can combine that with a page parameter?

Any ideas?

/Mats

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Authorization-question

2006-07-30 Thread Mats Norén
Ah, neat. OO to the rescue :)

On 7/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 here is some pseudo code:

 class BaseTeamPage extends Webpage {
 private final long teamid;

 public long getteamid() { return teamid; }

 public BaseTeamPage(long teamid) {
   this.teamid=teamid ;
  }
 }

 


Did you mean isActionAuthorized here?
From the IAuthorizationStrategy?

 isactionallowed(Component c, Action act) {
 if (act==Component.VISIBLE) {
  if (c.getPage()!=nullc.getPage() instanceof BaseTeamPage) {
  final BaseTeamPage page= c.getPage();
  long teamid=page.getteamid();  from here on you have
 the team id so you can do whatever


The problem is that I don't really see how I can get the different
roles associated with the User-object based on the teamId and get a
chance to compare them.

I'm guessing that the isActionAuthorized(Component comp, Action act)
gets called on every component render and I don't want to hit my db
(although I'm using Hibernate and it's cache) every time I render a
component.

Is it safe to get the User-object from the session via the page?

My current implementation of a user object is actually a Person-object:

Person
   SetTeamPerson teamPersons;

TeamPerson
   SetTeamPersonRole roles;

TeamPersonRole
   id
   name

Is there a way I can use to extend/use the annotation-approach? Or
mabye combine the two?
I'm guessing that there will eventually be a mixture of pages that
depend on a team and pages that are for every team so to speak.

Btw, thanks for the quick reply! :)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Coding Authentification, Databinding and Role-related application behaviour

2006-07-21 Thread Mats Norén
Has there been any progress in merging AuthenticatedWebApplication and
the spring-stuff lately or is there a best praktice out there
somewhere?

Best regards Mats

On 6/8/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
 The problem is that the wicket-auth-roles package assumes you subclass
 AuthenticatedWebApplication as your application class. If you want to reuse
 that, you'll have to subclass the AuthenticatedWebApplication and the
 AuthenticatedSession.

 No spring can fix that.

 Martijn


 On 6/8/06, Mark Derricutt [EMAIL PROTECTED] wrote:
 

 On 6/7/06, Martijn Dashorst [EMAIL PROTECTED]  wrote:

 
  I suggest (tried and tested at my company) to use the Auth application as
 your base class and merge the spring related stuff into your subclass. The
 spring integration is agnostic for sessions and such, so you'll be up and
 running much quicker.
 

 Personally I'm using the
 wicket.spring.SpringWebApplicationFactory mentioned in
 web.xml then and nice and cleanly inject my authentication strategy into my
 Application via normal spring IoC:

 bean id=wicketApplication
 class=com.theoryinpractice.timetrackr.TimeTrackrApplication
 property name=timeTrackrAuthorizationStrategy
 ref=authorizationStrategy/
 /bean

 bean id=authorizationStrategy
 class=com.theoryinpractice.timetrackr.TimeTrackrAuthorizationStrategy
 property name=userManager ref=userManager/
 /bean

 The authorization strategy also has injected into it my hibernate DAO's so
 have full access to everything they need, cleanly and springy, without
 touching any of those odd little convience classes (actually I never knew
 they existed either).

 Doing spring+wicket this way is much much nicer I find.



 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user






 --
 Download Wicket 1.2 now! Write Ajax applications without touching
 JavaScript!
 -- http://wicketframework.org


 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2 released!

2006-05-24 Thread Mats Norén

Congrats! A job well done!!

On 5/24/06, David Leangen [EMAIL PROTECTED] wrote:


Congratulations! Excellent job!!





---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid7521bid$8729dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WARNING: head/ trunk is highly experimental for a while

2006-05-23 Thread Mats Norén

Could you define a few months? We're about to start a new project
that may or may not use wicket 2.0 depending on the timetable. The
first release is scheduled in september. Is that to soon for a
reasonably stable wicket 2.0?
Are there any simple issues that a non wicket export could help out with?

/Mats


On 5/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote:

On 5/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
 we did communicate this... See Martijns mails and my replies on it over
 branching..


Ok, my email was explicitly about it though, AND additionally to
wicket-user. Doesn't matter, it is communicated now for sure :)

 And if develop now something to get it into production in a few months you
 should stick to 1.2
 But if it does take longer you could use trunk. It is now a fast moving
 target.
 But many of those changes are java 5 related and that is no behaviour
 change.. So that shouldn't affect at all.
 as far as i can see now there is only one big code change: Converters that
 would affect the compile of code.

Well, even the Java 5 stuff breaks code, and as we're also just half
way implementing that, I suspect there will be a lot of bugs in it
currently. And wicket-extensions and wicket-examples don't even
compile currently. But that's hopefully fixed in a couple of days?

 For the rest only the default change of another kind of pagemap/session
 store is what needs to be tested
 but there are people that already tested that when it was in a branch (the
 clientsidestate branch)

Also, I'd like to get rid of the pre-registration of package
resources. And maybe backport that if that is done.

Eelco


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Replacing components in ListView

2006-04-27 Thread Mats Norén
Ok, and when you mean keep track you mean adding a current_edited
property to my panel and then in the onClick-handler do the switch. Is
the component id available somehow in the onClick?


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Replacing components in ListView

2006-04-26 Thread Mats Norén
Hi,
I'm trying to display a couple of dates in a listview.
When the user clicks on one of the dates I would like to replace the
link with simple form for editing the date.
The list renders fine, I click on the editLink and the replacing view
with edit-text appears in my log. *But* nothing else happens. The
view stays the same.
Is the edit-component I switched in replaced by the original listview
at rendertime or what's going on?


ListView listView = new ListView(timeslots, timeSlots) {
protected void populateItem(ListItem listItem) {
final TimeslotInstance instance = (TimeslotInstance)
listItem.getModelObject();
String name = instance.getTimeslotDefinition().getDescription();
listItem.add(new Label(name, name));
listItem.add(new TimeslotViewPanel(plannedStartDate,
instance.getPlannedStartDate()));
listItem.add(new TimeslotViewPanel(actualStartDate,
instance.getActualStartDate()));
listItem.add(new TimeslotViewPanel(plannedEndDate,
instance.getPlannedEndDate()));
listItem.add(new TimeslotViewPanel(actualEndDate,
instance.getActualEndDate()));
}
};
add(listView);


class TimeslotViewPanel extends Panel {

public TimeslotViewPanel(final String id, final Date date) {
super(id, new Model(date));
//setRenderBodyOnly(true);
//setOutputMarkupId(true);
Link editLink = new Link(editLink) {
public void onClick() {
System.out.println(replacing view with edit);
TimeslotViewPanel.this.getParent().replace(new
TimeslotEditPanel(id, date));
}
};
editLink.add(new Label(value, new Model(date)));
add(editLink);
}
}

class TimeslotEditPanel extends Panel {

public TimeslotEditPanel(String id, final Date date) {
super(id, new Model(date));
//setRenderBodyOnly(true);
Form form = new Form(editForm);
form.add(new TextField(value, new Model(date), Date.class));
add(form);
}
}


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Replacing components in ListView

2006-04-26 Thread Mats Norén
Okey, I forget the setOptimizeRemoval(true) bit.
The problem now is that every link I click is replaced by a form, the
effect I was looking for is that only one date at a time should be
editable.

What am I missing?

On 4/26/06, Mats Norén [EMAIL PROTECTED] wrote:
 Hi,
 I'm trying to display a couple of dates in a listview.
 When the user clicks on one of the dates I would like to replace the
 link with simple form for editing the date.
 The list renders fine, I click on the editLink and the replacing view
 with edit-text appears in my log. *But* nothing else happens. The
 view stays the same.
 Is the edit-component I switched in replaced by the original listview
 at rendertime or what's going on?


 ListView listView = new ListView(timeslots, timeSlots) {
 protected void populateItem(ListItem listItem) {
 final TimeslotInstance instance = (TimeslotInstance)
 listItem.getModelObject();
 String name = 
 instance.getTimeslotDefinition().getDescription();
 listItem.add(new Label(name, name));
 listItem.add(new TimeslotViewPanel(plannedStartDate,
 instance.getPlannedStartDate()));
 listItem.add(new TimeslotViewPanel(actualStartDate,
 instance.getActualStartDate()));
 listItem.add(new TimeslotViewPanel(plannedEndDate,
 instance.getPlannedEndDate()));
 listItem.add(new TimeslotViewPanel(actualEndDate,
 instance.getActualEndDate()));
 }
 };
 add(listView);


 class TimeslotViewPanel extends Panel {

 public TimeslotViewPanel(final String id, final Date date) {
 super(id, new Model(date));
 //setRenderBodyOnly(true);
 //setOutputMarkupId(true);
 Link editLink = new Link(editLink) {
 public void onClick() {
 System.out.println(replacing view with edit);
 TimeslotViewPanel.this.getParent().replace(new
 TimeslotEditPanel(id, date));
 }
 };
 editLink.add(new Label(value, new Model(date)));
 add(editLink);
 }
 }

 class TimeslotEditPanel extends Panel {

 public TimeslotEditPanel(String id, final Date date) {
 super(id, new Model(date));
 //setRenderBodyOnly(true);
 Form form = new Form(editForm);
 form.add(new TextField(value, new Model(date), Date.class));
 add(form);
 }
 }



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Validating single formcomponent with Ajax

2006-03-31 Thread Mats Norén
On 3/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 yes, its called AjaxFormComponentUpdatingBehavior, dont
 know if we have an example of it, but its pretty simple to use

 attach it to the form component and you are pretty much done

 TextField tf=new TextField...
 tf.add(new AjaxFormComponentUpdatingBehavior(onblur) {
   onUpdate(AjaxRequestTarget target) {
  ... do whatever
}
 }

Ok, what if I use a FeedbackBorder (don't remember the exact name)
around my TextField to display a symbol that just my single field is
invalid.
Should I do target.addComponent(border) and not just rerender the textfield?



 -Igor


 On 3/30/06, Mats Norén [EMAIL PROTECTED] wrote:
 
  Hi,
 Is there a behaviour / component for validating a single formfield
 with Ajax without submitting the whole form?

 I'm guessing there is an example somewhere, I just need a pointer in
 the right direction :)


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] NoClassDefFoundError in TreeComponentInitializer#38

2006-03-30 Thread Mats Norén
Don't know if it is related but I've had a couple of similar errors
when my inherited Tree is initialized. The problem then was that the
static blocks of the superclass failed because of missing resources.
This resulted in a NoClassDefFoundError on the MyTree class...


On 3/31/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I have no idea what that might be. Could you try setting a break point
 in that init method?

 Eelco

 On 3/30/06, Matthias Albert [EMAIL PROTECTED] wrote:
  Hi,
  today I tried to use my own class MyReasourceStreamLocator based on
  AbstractResourceStreamLocator and registered it in Application.init()
  (the derived method).
 
  Surprisingly, I got a NoClassDefFoundError. A part of the stack trace
  is shown below. I am using Wicket 1.2beta2.
 
 
  java.lang.NoClassDefFoundError
  java.lang.Class.forName0(Native Method)
  java.lang.Class.forName(Class.java:164)
  wicket.markup.html.tree.TreeComponentInitializer.class$(TreeComponentInitializer.java:38)
  wicket.markup.html.tree.TreeComponentInitializer.init(TreeComponentInitializer.java:38)
  wicket.Initializer.init(Initializer.java:59)
  wicket.Application.initialize(Application.java:651)
  wicket.Application.initializeComponents(Application.java:716)
  wicket.Application.initializeComponents(Application.java:693)
  wicket.protocol.http.WicketServlet.init(WicketServlet.java:287)
 
 
  Line 38 in the source file TreeComponentInitializer.java is the first
  line inside this method:
 
  public void init(Application application)
  {
PackageResource.bind(application, Tree.class, blank.gif); //line #38
PackageResource.bind(application, Tree.class, minus.gif);
PackageResource.bind(application, Tree.class, plus.gif);
PackageResource.bind(application, Tree.class, tree.css);
  }
 
 
  Could it be a problem that Tree is an abstract class?
 
 
  Matthias Albert
 
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
  that extends applications into web and mobile media. Attend the live webcast
  and join the prime developer group breaking into this new coding territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Validating single formcomponent with Ajax

2006-03-30 Thread Mats Norén
Hi,
Is there a behaviour / component for validating a single formfield
with Ajax without submitting the whole form?

I'm guessing there is an example somewhere, I just need a pointer in
the right direction :)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-23 Thread Mats Norén
We solved it with a resource and passed an interface IDataSource to
the resource in the constructor and on getResourceState we made a call
for the datasource. It feels like better solution. Thanks for the
input.

On 3/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Yeah. Having many options is not always a good thing. Please note that
 request targets are not specifically meant for day-to-day end user
 usage. They are meant to more clearly define the request processing,
 and to have extensibility form a framework's perspective, e.g. to
 implement new things like Ajax etc. You may use request targets for
 your own purposes of course, and that is not bad practice either, but
 my preference would be to handle things like that like resources. Then
 you either have requests components (like pages and their variants
 like bookmarkable pages etc) or to resources (including variants like
 shared resources etc).

 Eelco


 On 3/22/06, Mats Norén [EMAIL PROTECTED] wrote:
  Even better. Thanks for the tip. There are so many options it's quite
  easy to get confused :)
 
  Mats
 
  On 3/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
   You don't need a PageRequestTarget as the page doesn't add any value
   here. I would use ResourceStreamRequestTarget and provide your content
   wrapped in a IResourceStream.
  
   Eelco
  
   On 3/22/06, Mats Norén [EMAIL PROTECTED] wrote:
On 3/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 why not just push a download request target into the request cycle? 
 it works
 for 1.2. search this list for excel
   
So if I were to use the request target approach I would do:
   
protected void onSubmit() {
 getRequestCycle().setRequestTarget(new PageRequestTarget(new
  ExportPage(data)););
 WebResponse wr=(WebResponse)getResponse();
 wr.setContentType(excel/ms-excel; name= + msExcelFilename);
 wr.setHeader(content-disposition,
   attachment;filename= + msExcelFilename);
}
   
   
   
   
   

 -Igor



 On 3/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  That has to do with the page render strategy. A way around this is 
  to
  change that strategy, but a much better solution is to make your PO
  worksheet a resource instead of a page. Please check out
  wicket-stuff's JasperReports integration for an idea how to do this.
 
  Eelco
 
  On 3/21/06, Mats Norén [EMAIL PROTECTED] wrote:
   Hi,
   I'm trying to export a POI worksheet as a download link in my 
   wicket
 page.
   The link sets the responsepage to a download page in which
   trying to get the outputbuffer to write to. Only problem is that I
   keep getting this:
   java.lang.UnsupportedOperationException: Cannot get
 output stream on
   BufferedResponse
  
   I looked at the  code from the wicket-examples display-tag export 
   the
   only thing I do differently is the way the page is created.
  
   The weird thing is that I only get it if I instantiate my 
   response like:
   setResponsePage(new DownloadPage(data));
  
   if I do
   setResponsePage(DownloadPage.class) it behaves correctly...
  
   I need to be able to pass data into the class...what am I missing 
   here?
  
   /Mats
  
  
   ---
   This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
   that extends applications into web and mobile media. Attend the 
   live
 webcast
   and join the prime developer group breaking into this new coding
 territory!
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


   
   
---
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language
that extends applications into web and mobile media. Attend the live 
webcast
and join the prime developer group breaking into this new coding 
territory!
http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Mats Norén
On 3/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 That's not the preferred way of working though. If you want to play
 nice with the framework, you should either make it a resource - imo
 the most elegant solution, and again, look at
 wicket-contrib-jasperreports - or a custom request target. By using
 WebResponse directly like that, you are circumventing the RequestCycle
 processing and it thus can be considered being a hack.

Ok, the resource way seems like a good strategy but it looks like you
pass the data in the constructor of the resource. That would mean that
the all the data is collected even if the link is never used, or am I
missing something?

I would like to fetch the data only if the link is clicked. I guess I
could do that by sending the DAO to my resource. Or making some kind
of DataSource interface and pass that to my Resource  constructor.

 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Mats Norén
On 3/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 why not just push a download request target into the request cycle? it works
 for 1.2. search this list for excel

So if I were to use the request target approach I would do:

protected void onSubmit() {
 getRequestCycle().setRequestTarget(new PageRequestTarget(new 
  ExportPage(data)););
 WebResponse wr=(WebResponse)getResponse();
 wr.setContentType(excel/ms-excel; name= + msExcelFilename);
 wr.setHeader(content-disposition,
   attachment;filename= + msExcelFilename);
}






 -Igor



 On 3/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  That has to do with the page render strategy. A way around this is to
  change that strategy, but a much better solution is to make your PO
  worksheet a resource instead of a page. Please check out
  wicket-stuff's JasperReports integration for an idea how to do this.
 
  Eelco
 
  On 3/21/06, Mats Norén [EMAIL PROTECTED] wrote:
   Hi,
   I'm trying to export a POI worksheet as a download link in my wicket
 page.
   The link sets the responsepage to a download page in which
   trying to get the outputbuffer to write to. Only problem is that I
   keep getting this:
   java.lang.UnsupportedOperationException: Cannot get
 output stream on
   BufferedResponse
  
   I looked at the  code from the wicket-examples display-tag export the
   only thing I do differently is the way the page is created.
  
   The weird thing is that I only get it if I instantiate my response like:
   setResponsePage(new DownloadPage(data));
  
   if I do
   setResponsePage(DownloadPage.class) it behaves correctly...
  
   I need to be able to pass data into the class...what am I missing here?
  
   /Mats
  
  
   ---
   This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
   that extends applications into web and mobile media. Attend the live
 webcast
   and join the prime developer group breaking into this new coding
 territory!
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Mats Norén
Sorry, I'm not quite with you.
How is the DynamicByteArrayResource called from the internals?

On 3/22/06, Johan Compagner [EMAIL PROTECTED] wrote:
 See DynamiceByteArrayResource
 Then you can do the load lazy. Only when the link is clicked.

 johan



 On 3/22/06, Mats Norén  [EMAIL PROTECTED] wrote:
  On 3/22/06, Eelco Hillenius  [EMAIL PROTECTED] wrote:
   That's not the preferred way of working though. If you want to play
   nice with the framework, you should either make it a resource - imo
   the most elegant solution, and again, look at
   wicket-contrib-jasperreports - or a custom request target. By using
   WebResponse directly like that, you are circumventing the RequestCycle
   processing and it thus can be considered being a hack.
 
  Ok, the resource way seems like a good strategy but it looks like you
  pass the data in the constructor of the resource. That would mean that
  the all the data is collected even if the link is never used, or am I
  missing something?
 
  I would like to fetch the data only if the link is clicked. I guess I
  could do that by sending the DAO to my resource. Or making some kind
  of DataSource interface and pass that to my Resource  constructor.
 
   ---
   This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
   that extends applications into web and mobile media. Attend the live
 webcast
   and join the prime developer group breaking into this new coding
 territory!
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Mats Norén
Ok, thanks!

On 3/22/06, Johan Compagner [EMAIL PROTECTED] wrote:
 just create ResourceLink with a DynamicByteArrayResource
 And implement getResourceState() and when that is called you do youre
 loading.


 johan


 On 3/22/06, Mats Norén [EMAIL PROTECTED] wrote:
  Sorry, I'm not quite with you.
  How is the DynamicByteArrayResource called from the internals?
 
  On 3/22/06, Johan Compagner [EMAIL PROTECTED] wrote:
   See DynamiceByteArrayResource
   Then you can do the load lazy. Only when the link is clicked.
  
   johan
  
  
  
   On 3/22/06, Mats Norén  [EMAIL PROTECTED] wrote:
On 3/22/06, Eelco Hillenius  [EMAIL PROTECTED] wrote:
 That's not the preferred way of working though. If you want to play
 nice with the framework, you should either make it a resource - imo
 the most elegant solution, and again, look at
 wicket-contrib-jasperreports - or a custom request target. By using
 WebResponse directly like that, you are circumventing the
 RequestCycle
 processing and it thus can be considered being a hack.
   
Ok, the resource way seems like a good strategy but it looks like you
pass the data in the constructor of the resource. That would mean that
the all the data is collected even if the link is never used, or am I
missing something?
   
I would like to fetch the data only if the link is clicked. I guess I
could do that by sending the DAO to my resource. Or making some kind
of DataSource interface and pass that to my Resource  constructor.
   

 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
   language
 that extends applications into web and mobile media. Attend the live
   webcast
 and join the prime developer group breaking into this new coding
   territory!

  
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

  
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
   
 ---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
   language
that extends applications into web and mobile media. Attend the live
   webcast
and join the prime developer group breaking into this new coding
   territory!
   
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Mats Norén
Even better. Thanks for the tip. There are so many options it's quite
easy to get confused :)

Mats

On 3/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 You don't need a PageRequestTarget as the page doesn't add any value
 here. I would use ResourceStreamRequestTarget and provide your content
 wrapped in a IResourceStream.

 Eelco

 On 3/22/06, Mats Norén [EMAIL PROTECTED] wrote:
  On 3/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
   why not just push a download request target into the request cycle? it 
   works
   for 1.2. search this list for excel
 
  So if I were to use the request target approach I would do:
 
  protected void onSubmit() {
   getRequestCycle().setRequestTarget(new PageRequestTarget(new
ExportPage(data)););
   WebResponse wr=(WebResponse)getResponse();
   wr.setContentType(excel/ms-excel; name= + msExcelFilename);
   wr.setHeader(content-disposition,
 attachment;filename= + msExcelFilename);
  }
 
 
 
 
 
  
   -Igor
  
  
  
   On 3/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
That has to do with the page render strategy. A way around this is to
change that strategy, but a much better solution is to make your PO
worksheet a resource instead of a page. Please check out
wicket-stuff's JasperReports integration for an idea how to do this.
   
Eelco
   
On 3/21/06, Mats Norén [EMAIL PROTECTED] wrote:
 Hi,
 I'm trying to export a POI worksheet as a download link in my wicket
   page.
 The link sets the responsepage to a download page in which
 trying to get the outputbuffer to write to. Only problem is that I
 keep getting this:
 java.lang.UnsupportedOperationException: Cannot get
   output stream on
 BufferedResponse

 I looked at the  code from the wicket-examples display-tag export the
 only thing I do differently is the way the page is created.

 The weird thing is that I only get it if I instantiate my response 
 like:
 setResponsePage(new DownloadPage(data));

 if I do
 setResponsePage(DownloadPage.class) it behaves correctly...

 I need to be able to pass data into the class...what am I missing 
 here?

 /Mats


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
   language
 that extends applications into web and mobile media. Attend the live
   webcast
 and join the prime developer group breaking into this new coding
   territory!

   http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

   https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
   language
that extends applications into web and mobile media. Attend the live
   webcast
and join the prime developer group breaking into this new coding
   territory!
   
   http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
  that extends applications into web and mobile media. Attend the live webcast
  and join the prime developer group breaking into this new coding territory!
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Writing to outputstream (Trying to do export)

2006-03-21 Thread Mats Norén
Hi,
I'm trying to export a POI worksheet as a download link in my wicket page.
The link sets the responsepage to a download page in which
trying to get the outputbuffer to write to. Only problem is that I
keep getting this:
java.lang.UnsupportedOperationException: Cannot get output stream on
BufferedResponse

I looked at the  code from the wicket-examples display-tag export the
only thing I do differently is the way the page is created.

The weird thing is that I only get it if I instantiate my response like:
setResponsePage(new DownloadPage(data));

if I do
setResponsePage(DownloadPage.class) it behaves correctly...

I need to be able to pass data into the class...what am I missing here?

/Mats


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-21 Thread Mats Norén
On 3/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 why not just push a download request target into the request cycle? it works
 for 1.2. search this list for excel

Hmmm. I looked at the examples in the thread but I don't see how I can
get the outputstream and use POI:s method write(outputstream)

I'll take a closer look tomorrow. Thanks for the tip.


 -Igor



 On 3/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  That has to do with the page render strategy. A way around this is to
  change that strategy, but a much better solution is to make your PO
  worksheet a resource instead of a page. Please check out
  wicket-stuff's JasperReports integration for an idea how to do this.
 
  Eelco
 
  On 3/21/06, Mats Norén [EMAIL PROTECTED] wrote:
   Hi,
   I'm trying to export a POI worksheet as a download link in my wicket
 page.
   The link sets the responsepage to a download page in which
   trying to get the outputbuffer to write to. Only problem is that I
   keep getting this:
   java.lang.UnsupportedOperationException: Cannot get
 output stream on
   BufferedResponse
  
   I looked at the  code from the wicket-examples display-tag export the
   only thing I do differently is the way the page is created.
  
   The weird thing is that I only get it if I instantiate my response like:
   setResponsePage(new DownloadPage(data));
  
   if I do
   setResponsePage(DownloadPage.class) it behaves correctly...
  
   I need to be able to pass data into the class...what am I missing here?
  
   /Mats
  
  
   ---
   This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
   that extends applications into web and mobile media. Attend the live
 webcast
   and join the prime developer group breaking into this new coding
 territory!
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Session Expired and Ajax

2006-03-17 Thread Mats Norén
I've got a page with a ajaxified form and two listviews updated with ajax.
The two listviews works like the palette-component in wicket which
allows a user to add / remove items. The difference is that I do it
with AjaxFallbackLinks:

ListView selectedItems = new PCMListView(selectedItems, selectedItemsModel) {
public void addUserComponents(ListItem item) {
final PartyContactMechanism pcm =
(PartyContactMechanism) item.getModelObject();
AjaxFallbackLink link =  new AjaxFallbackLink(removeLink) {
public void onClick(AjaxRequestTarget ajaxRequestTarget) {
removeSelectedItem(pcm);
ajaxRequestTarget.addComponent(selectedItemsContainer);
}
};
item.add(link);
}
};

My problem is this, if I add/remove items in the list more than 5
times (the default session?) the page expires when I post the form.

I'm guessing there is a really simple solution to this, but I'm
stomped at the moment... :)

Suggestions?
(increasing the pages in session is one, but to what? The user could
add/remove items from the list x number of times)

/Mats


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Session Expired and Ajax

2006-03-17 Thread Mats Norén
On 3/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 what version are you using?
I'm using subversion HEAD from yesterday

i thought i fixed this a long time ago. if you
 dont mind create a distilled quickstart project that reproduces this so i
 can play with it on my side.

I could try :)

Does it have something to do with if a page is versionable or not?

/Mats


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Session Expired and Ajax

2006-03-17 Thread Mats Norén
ok, I did setVersioned(false) and everything works as expected.

On 3/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 it does indeed. the way i fixed it is that whenever an ajax request is
 processed it temporarily turns off versioning on the page. since the
 backbutton in the browser doesnt capture ajax requests there is no point in
 versioning any changes done inside that request.

 -Igor



 On 3/17/06, Mats Norén [EMAIL PROTECTED] wrote:
 
  On 3/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  what version are you using?
 I'm using subversion HEAD from yesterday

 i thought i fixed this a long time ago. if you
  dont mind create a distilled quickstart project that reproduces this so i
  can play with it on my side.

 I could try :)

 Does it have something to do with if a page is versionable or not?

  /Mats


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Session Expired and Ajax

2006-03-17 Thread Mats Norén
Oh, sorry. I made it in the constructor of my ajax-page.

On 3/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 where did you make that call?


 -Igor


 On 3/17/06, Mats Norén [EMAIL PROTECTED] wrote:
  ok, I did setVersioned(false) and everything works as expected.
 
  On 3/17/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   it does indeed. the way i fixed it is that whenever an ajax request is
   processed it temporarily turns off versioning on the page. since the
   backbutton in the browser doesnt capture ajax requests there is no point
 in
   versioning any changes done inside that request.
  
   -Igor
  
  
  
   On 3/17/06, Mats Norén  [EMAIL PROTECTED] wrote:
   
On 3/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
what version are you using?
   I'm using subversion HEAD from yesterday
  
   i thought i fixed this a long time ago. if you
dont mind create a distilled quickstart project that reproduces this
 so i
can play with it on my side.
  
   I could try :)
  
   Does it have something to do with if a page is versionable or not?
  
/Mats
  
  
   ---
   This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
   that extends applications into web and mobile media. Attend the live
 webcast
   and join the prime developer group breaking into this new coding
 territory!
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Session Expired and Ajax

2006-03-17 Thread Mats Norén
ie, I made the page nonversionable

On 3/17/06, Mats Norén [EMAIL PROTECTED] wrote:
 Oh, sorry. I made it in the constructor of my ajax-page.

 On 3/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  where did you make that call?
 
 
  -Igor
 
 
  On 3/17/06, Mats Norén [EMAIL PROTECTED] wrote:
   ok, I did setVersioned(false) and everything works as expected.
  
   On 3/17/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
it does indeed. the way i fixed it is that whenever an ajax request is
processed it temporarily turns off versioning on the page. since the
backbutton in the browser doesnt capture ajax requests there is no point
  in
versioning any changes done inside that request.
   
-Igor
   
   
   
On 3/17/06, Mats Norén  [EMAIL PROTECTED] wrote:

 On 3/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 what version are you using?
I'm using subversion HEAD from yesterday
   
i thought i fixed this a long time ago. if you
 dont mind create a distilled quickstart project that reproduces this
  so i
 can play with it on my side.
   
I could try :)
   
Does it have something to do with if a page is versionable or not?
   
 /Mats
   
   
---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language
that extends applications into web and mobile media. Attend the live
  webcast
and join the prime developer group breaking into this new coding
  territory!
   
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   ---
   This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language
   that extends applications into web and mobile media. Attend the live
  webcast
   and join the prime developer group breaking into this new coding
  territory!
  
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Authentication

2006-03-15 Thread Mats Norén
Thanks. We made a utility function in the our session. Works great.

On 3/14/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 There is no build in function for that. If you want to shorten that,
 just provide your own request cycle that passes this function through,
 or make it a utility function somewhere.

 Eelco

 On 3/14/06, Mats Norén [EMAIL PROTECTED] wrote:
  Mmm...ok, I'll rephrase. Is there a way within wicket to obtain the
  logged in user if the user is authenticated by the container with
  basic authentication and writing the user to a wicket session?
 
  Without having to do this:
 
  ((WebRequest)getRequest()).getHttpServletRequest().getUserPrincipal()
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
  that extends applications into web and mobile media. Attend the live webcast
  and join the prime developer group breaking into this new coding territory!
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Authentication

2006-03-14 Thread Mats Norén
Can I add a stupid question? :)
Is there wicket way tm on how to get the logged in user and put it
in a Wicket Session-object?

Mats

On 3/14/06, Johan Compagner [EMAIL PROTECTED] wrote:
 are these static pages just in the webroot?
 if so then you can just have links to them in youre dynamic/wicket pages
 And through a Filter you test if they are also logged in (puur for those
 static pages)



  On 3/14/06, Steve Thompson [EMAIL PROTECTED] wrote:
  I'm trying to understand authentication in the new version of Wicket, but
 am
  not having a great deal of success so far.  My dilemna is a simple one - I
  have a lot of static pages that I would like to allow people who are
 logged
  in access to.  I do not want to create programmatic links for every page
 in
  this area of my site, nor do I want these pages bookmarkable.
 
  I've been looking into the different RealmBase derived authentication
 classes,
  but would rather use something within Wicket if similar functionality can
 be
  derived.  Is there a way to, on a global basis, enact this type of
 security?
 
  Let me know and best regards,
 
 
  Steve
 
  --
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Authentication

2006-03-14 Thread Mats Norén
Mmm...ok, I'll rephrase. Is there a way within wicket to obtain the
logged in user if the user is authenticated by the container with
basic authentication and writing the user to a wicket session?

Without having to do this:

((WebRequest)getRequest()).getHttpServletRequest().getUserPrincipal()


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Snapshots at some maven2 repo?

2006-03-12 Thread Mats Norén
Sorry if this is a stupid question,
but are there any 1.2 snapshots of the various wicket projects
available at for instance ibiblio?

/Mats


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] CustomLayoutAjaxAutocompleteTextField

2006-03-03 Thread Mats Norén
Hi,
I've been trying to use the CustomLayoutAjaxAutocompleteTextField from
wicket-contrib-scriptaculous. Everything works as expected but for my
usecase it doesn't quite fit. I was wondering how I could achieve the
following:

What I want to do is to let the user search for a Party by full name
so when the user
writes mats the textfield displays a list with Party-objects with
the full name mats. When I select one in a list the textfield is
populated with the name of the Party. So far so good. But apart from
that I would like to set a hidden field with the *id* of the party.
This hidden field is what I want to save in the database on form
submit.

Has anyone else tried something similar?

/Mats


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problems with AttributeModifier

2006-02-22 Thread Mats Norén
Ah, I see. Makes perfect sense.
Anyway, I had to modify the navmenu a bit for my usecase (the layout
was pretty fixed already) and I thought I made an error somewhere.

Thanks!

/Mats

On 2/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 ItemPanel(String, MenuRow) is called by newItemPanel(String, MenuRow)
 is called by populateItem(ListItem). Populate item looks like this:

 protected void populateItem(ListItem item)
 {
 final MenuItem menuItem = 
 (MenuItem)item.getModelObject();

 final Panel itemPanel = 
 menuItem.newItemPanel(itemPanel, MenuRow.this);
 if (itemPanel == null)
 {
 throw new WicketRuntimeException(item panel 
 must be not-null);
 }
 if (!itemPanel.equals(itemPanel.getId()))
 {
 throw new WicketRuntimeException(item panel 
 must have id
 'itemPanel' assigned);
 }

 itemPanel.setRenderBodyOnly(true);
 item.add(itemPanel);
 }

 The problem with that code is this line:

 itemPanel.setRenderBodyOnly(true);

 that should be itemPanel.setRenderBodyOnly(false); or be removed to
 have any attribute modifier work (as with true, there is no attribute
 as there is no tag).

 Thanks for finding that bug, and sorry that you spent a lot of time on it.

 Cheers,

 Eelco



 On 2/21/06, Mats Norén [EMAIL PROTECTED] wrote:
  This code is taken from the wicket-contrib-navmenu. It defines a
  wicket:panel for the menuitems.
  I'm having real trouble with the AttributeModifier.
  Looking at the code the AttributeModifier is attached to the panel itself.
 
  public ItemPanel(final String id, final MenuRow row)
  {
  super(id);
  final String label = getLabel();
  final BookmarkablePageLink pageLink = new
  BookmarkablePageLink(link, getPageClass(),
  getPageParameters());
  pageLink.setAutoEnable(false);
  pageLink.add(new Label(label, label));
  add(pageLink);
  add(new AttributeModifier(class, true, new Model()
  {
  public Object getObject(final Component component)
  {
  return
  row.getRowStyle().getItemCSSClass(MenuItem.this, row);
  }
  }));
  }
 
  The HTML code for the panel is:
 
  wicket:panela wicket:id=link href=#span wicket:id=labelthe
  label/span/a/wicket:panel
 
  The panel itself is used from the following code:
 
  wicket:panel
 
  div wicket:id=div
   ul wicket:id=ul
li wicket:id=columnsspan wicket:id=itemPanela
  href=#label here/a/span
/li
   /ul
  /div
 
  /wicket:panel
 
  Looking in the css the class tabSelected referenced from the code is
  applied to an li which to me indicates that the AttributeModifier is
  attached to the li.
  However the getObject-method of the Model is never called. And the
  resulting HTML doesn't contain any class-attribute.
 
  I've been looking at the code for two days now and I'm certain that
  I've overlooked something but I don't now what...
 
  Would appreciate another pair of eyes on it...
 
  I'm running wicket 1.2 CVS from friday last week.
 
  /Mats
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
  http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Problems with AttributeModifier

2006-02-21 Thread Mats Norén
This code is taken from the wicket-contrib-navmenu. It defines a
wicket:panel for the menuitems.
I'm having real trouble with the AttributeModifier.
Looking at the code the AttributeModifier is attached to the panel itself.

public ItemPanel(final String id, final MenuRow row)
{
super(id);
final String label = getLabel();
final BookmarkablePageLink pageLink = new
BookmarkablePageLink(link, getPageClass(),
getPageParameters());
pageLink.setAutoEnable(false);
pageLink.add(new Label(label, label));
add(pageLink);
add(new AttributeModifier(class, true, new Model()
{
public Object getObject(final Component component)
{
return
row.getRowStyle().getItemCSSClass(MenuItem.this, row);
}
}));
}

The HTML code for the panel is:

wicket:panela wicket:id=link href=#span wicket:id=labelthe
label/span/a/wicket:panel

The panel itself is used from the following code:

wicket:panel

div wicket:id=div
 ul wicket:id=ul
  li wicket:id=columnsspan wicket:id=itemPanela
href=#label here/a/span
  /li
 /ul
/div

/wicket:panel

Looking in the css the class tabSelected referenced from the code is
applied to an li which to me indicates that the AttributeModifier is
attached to the li.
However the getObject-method of the Model is never called. And the
resulting HTML doesn't contain any class-attribute.

I've been looking at the code for two days now and I'm certain that
I've overlooked something but I don't now what...

Would appreciate another pair of eyes on it...

I'm running wicket 1.2 CVS from friday last week.

/Mats


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket remove tags

2006-02-20 Thread Mats Norén
Stupid question,
but is it possible to remove the actual span-tags from the output?

getMarkupSettings().setStripWicketTags(true);

removes the wicket:ids and the other wicket tags, but is it possible
to remove the span tags for a label?

My output looks almost like the font hell from early Frontpage days,
it's completely littered with span tags :)

/Mats


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket remove tags

2006-02-20 Thread Mats Norén
Hmm...ok, so basically I have to litter my Java code with
setRenderBodyOnly(true) instead. Well, I guess I can live with that.
But it seems a bit weird that the default behaviour for a label is to
leave the span tag. Anyway, thanks for the tip.

On 2/20/06, Alastair Maw [EMAIL PROTECTED] wrote:
 Mats Norén wrote:
  Stupid question,
  but is it possible to remove the actual span-tags from the output?
 
  getMarkupSettings().setStripWicketTags(true);
 
  removes the wicket:ids and the other wicket tags, but is it possible
  to remove the span tags for a label?
 
  My output looks almost like the font hell from early Frontpage days,
  it's completely littered with span tags :)
 
  /Mats

 You can call setRenderBodyOnly(true) on the Component for your span tag.

 Or I suppose one could write a rendering filter that removed all span
 tags that didn't have any attributes set on them, but that would be a
 bit horrid.

 Al


 ---
 This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
 for problems?  Stop!  Download the new AJAX search engine that makes
 searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Navigation

2006-02-20 Thread Mats Norén
Eelco,
I tried the navmenu with a checkout from CVS from friday, and now it
only renders one level or to be more specific the root element.

protected Object onGetObject(Component component)
{
// lazily attach
if (row == null)
{
row = new ArrayList();
Page currentPage = component.getPage();
MenuTreePath currentSelection = 
menuModel.getCurrentSelection(currentPage);
if (currentSelection.getPathCount()  level)
{
MenuItem node = 
(MenuItem)currentSelection.getPathComponent(level);
int len = node.getChildCount();
RequestCycle requestCycle = 
component.getRequestCycle();
for (int i = 0; i  len; i++)
{
MenuItem child = 
(MenuItem)node.getChildAt(i);
if (child.checkAccess())
{
row.add(child);
}
}
}
}
return row;
}

I noticed that the requestcycle is never used, is it safe to remove it?

Another thing, I'm having trouble debugging my wicket applications.
I'm using Intellij IDEA and every breakpoint I add gets a Breakpoint
invalid, source code changed-message. I guess it could be Intellij
but I've managed to debug other applications. Does the bytecode get
enhanced in some way in Wicket?

/Regards Mats

On 2/15/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i tried to make datatable as flexible as possible for css modifications. is
 there something particular you want to do that it doesnt allow?

 you can copy the markup, but be warned that this can be a maintenance
 problem because if i change the code/markup of the datatable it will break
 yours since ids wont match, etc.

 you can copy the code if you want, but then you wont benefit from bug fixes,
 etc.

 you have to choose whichever path you think is best for your case.


 -Igor


 On 2/15/06, Mats Norén [EMAIL PROTECTED] wrote:
  I liked the wicket-contrib-navmenu. :)
  I just have to ask a stupid question, if I want to change the look on
  for instance a DataTable (or the menu in this case) do I have to
  extend DataTable and add my own HTML file with the same wicket:id
  attributes as the original or do I have to copy the code?
 
  On 2/15/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
   And there's wicket-contrib-navmenu you might want to take a look at.
  
   Eelco
  
  
   On 2/15/06, Mats Norén [EMAIL PROTECTED] wrote:
Thanks, I'll take a look at it.
   
On 2/15/06, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 there is a tabbed panel in wicket-extensions. its not really a
 navigation
 tool, just a tabbed panel :)

 maybe that will help.

 -Igor



 On 2/15/06, Mats Norén  [EMAIL PROTECTED] wrote:
 
  Hi,
  I'm looking into adding a navMenu to my  application and was
 wondering
  if there are any existing solutions out there.
  What I'm interested in is a two level tabbed page navigation.
 
  Any pointers?
 
  /Mats
 
 
 
 ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through
 log
 files
  for problems?  Stop!  Download the new AJAX search engine that
 makes
  searching your log files as easy as surfing the  web.  DOWNLOAD
 SPLUNK!
 

 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


   
   
   
 ---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD
 SPLUNK!
   
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
   ---
   This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
   for problems?  Stop!  Download the new AJAX search engine that makes
   searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642

Re: [Wicket-user] Wicket remove tags

2006-02-20 Thread Mats Norén
On 2/20/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
 It is not weird in my opinion to have it leave the span tag. By leaving it
 in there, you maintain previewability between your rendered output and the
 actual template.

Agreed, it's a valid point. My beef with the span tags are more the
fact that the are all over the place and the have no semantic meaning
in the document.
For instance the navmenu - component:

div id=navdiv class=floatRight widthB
span
div class=floatRight widthB
   span
div
 ul class=

  lia 
href=/plan/?wicket:bookmarkablePage=:se.curalia.plan.web.page.ListPlanningRegionsPagespanPlaneringsområde/span/a
  /li
 /ul
/div
/span
The span tags here have no meaning at all. In my opinion, it makes the
document structure harder to follow . It's a tradeoff between
flexibility and readability. I may have been a little bit to hasty in
my earlier comment :)

/Mats


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Debugging wicket apps Tomcat5 + Intellij

2006-02-20 Thread Mats Norén
Has anyone else had any trouble with debugging their wicket apps with
Intellij5.1 and Tomcat5?

I keep getting messages Invalid breakpoint. Source code changed.

/Mats


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket remove tags

2006-02-20 Thread Mats Norén
On 2/20/06, Timo Stamm [EMAIL PROTECTED] wrote:
 Mats Norén schrieb:
  Hmm...ok, so basically I have to litter my Java code with
  setRenderBodyOnly(true) instead.

 Create a subclass and use that.

Good idea, a SimpleText extends Label  with a setRenderBodyOnly(true)
would do the trick. Thanks!


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] No such method

2006-02-18 Thread Mats Norén
Yes, I found the problem. Maven2 didn't pick up on the change to the
src code. Weird.


On 2/17/06, Johan Compagner [EMAIL PROTECTED] wrote:
 Somehow it seems that the code is a bit out of sync
 Or not compiled cleanly.

 Please make sure that you do compile everything from the start.

 If you look at the source code you do see that method?

 johan



 On 2/17/06, Mats Norén [EMAIL PROTECTED] wrote:
 
  Hi,
  I've upgraded from CVS today and got this error:
 
  java.lang.NoSuchMethodError:
 wicket.PageMap.getAccessStack()Ljava/util/Stack
 
  If my memory serves me right I saw somewhere that this method was altered?
 
  I'm using wicket-spring as well, does that have something to do with it?
 
  Stacktrace below:
 
  java.lang.NoSuchMethodError:
 wicket.PageMap.getAccessStack()Ljava/util/Stack;
 
 wicket.session.pagemap.LeastRecentlyAccessedEvictionStrategy.evict
 (LeastRecentlyAccessedEvictionStrategy.java:60)
  wicket.PageMap.put(PageMap.java:531)
  wicket.Session.touch(Session.java:575)
  wicket.Page.doRender(Page.java:390)
  wicket.protocol.http.WebRequestCycle.redirectTo
 (WebRequestCycle.java:143)
 
 wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:60)
 
 wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47)
 
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
 
 wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:824)
  wicket.RequestCycle.processEventsAndRespond
 (RequestCycle.java:851)
  wicket.RequestCycle.step(RequestCycle.java:931)
  wicket.RequestCycle.steps(RequestCycle.java:1005)
  wicket.RequestCycle.request(RequestCycle.java:451)
  wicket.protocol.http.WicketServlet.doGet
 (WicketServlet.java:207)
 
 wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:234)
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  javax.servlet.http.HttpServlet.service
 (HttpServlet.java:802)
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] No such method

2006-02-17 Thread Mats Norén
Hi,
I've upgraded from CVS today and got this error:

java.lang.NoSuchMethodError: wicket.PageMap.getAccessStack()Ljava/util/Stack

If my memory serves me right I saw somewhere that this method was altered?

I'm using wicket-spring as well, does that have something to do with it?

Stacktrace below:

java.lang.NoSuchMethodError: wicket.PageMap.getAccessStack()Ljava/util/Stack;

wicket.session.pagemap.LeastRecentlyAccessedEvictionStrategy.evict(LeastRecentlyAccessedEvictionStrategy.java:60)
wicket.PageMap.put(PageMap.java:531)
wicket.Session.touch(Session.java:575)
wicket.Page.doRender(Page.java:390)

wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:143)

wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:60)

wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:47)

wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:824)
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:851)
wicket.RequestCycle.step(RequestCycle.java:931)
wicket.RequestCycle.steps(RequestCycle.java:1005)
wicket.RequestCycle.request(RequestCycle.java:451)
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:207)
wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:234)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] VOTE

2006-02-17 Thread Mats Norén
 1. Give me the constructor change and the Java 5 functionality in one
 pass (Wicket 2.0)

+1


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


  1   2   >