Re: More on wicket url stratergy

2008-07-03 Thread Erik van Oosten

Ok, here is my code. Perhaps the way I (ab)use HybridUrlCodingStrategy
is what made the URLs change.

In the ctor of ChangePasswordPage:

Form form = new Form("form", new 
CompoundPropertyModel(passwordObject)) {
  protected void onSubmit() {
try {
  getSession().authenticateMemberByCredentials(me.getEmail(), 
passwordObject.getPassword(), true);
  ... update password ...
  info(getLocalizer().getString("form.info.password.changed", this));
  setResponsePage(new AccountPage());
} catch (AuthenticationFailure authenticationFailure) {
  error(getLocalizer().getString("form.error.wrongpassword", this));
}
  }
};

and in Application#init():

mount(new NonVersionedHybridUrlCodingStrategy("settings/account", 
AccountPage.class));
mount(new NonVersionedHybridUrlCodingStrategy("settings/account/password", 
ChangePasswordPage.class));

NonVersionedHybridUrlCodingStrategy looks like this:

/**
 * Variant of Wicket's HybridUrlCodingStrategy.
 * Use this URL coding strategy in the frontend for non versioned pages
 * (call setVersioned(false) in the constructor) that have some kind of
 * feedback (e.g. a form submit).
 */
private static class NonVersionedHybridUrlCodingStrategy extends 
HybridUrlCodingStrategy {

public NonVersionedHybridUrlCodingStrategy(String mountPath, Class pageClass) {
super(mountPath, pageClass);
}

@Override
protected String addPageInfo(String url, PageInfo pageInfo) {
// Do not add the version number as super.addPageInfo would do.
return url;
}
}


Regards,
 Erik.



Mathias P.W Nilsson wrote:
> Can you please elaborate. 
>
> I have this Link in my List class
> Link itemLink = new Link( "itemLink", listItem.getModel() ){
>   @Override
>   public void onClick() {
> PageParameters parameters = new PageParameters();
> parameters.add( "ItemId", ((Item)getModelObject()).getId().toString());
> ItemPage itemPage = new  ItemPage( parameters, ItemListPage.this );
> itemPage.setRedirect( true );
> setResponsePage( itemPage  );
>   }
> };
> This will produce url like wicket:interface=:2
>
> In My application class I have tried a number of mounting but without
> success. Any more pointers?
> I use the reference for the ItemListPage to go back from ItemPage to
> ItemListPage plus I use the same background as in the ItemListPage.
>
> If a google spider where to index this it would not be successful so I need
> a way to get this to be bookmarkable.
>   

-- 

--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Re: generics

2008-07-03 Thread Johan Compagner
There are many state things in a component. Wicket itself has only a
few like model/visibile/enable. But a developer could add many many
more.

In our project this is easily handled by our components. Every
component knows when it is changed, what ever it is and then a visitor
adds them to ajax. We have a fixed set of components so its not a big
problem.

On 7/4/08, Matthijs Wensveen <[EMAIL PROTECTED]> wrote:
> Matej Knopp wrote:
>> On Thu, Jul 3, 2008 at 9:51 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>>
 And there is some functionality in there that Wicket might
 be better without. For example, onModelChanged / Changing
 things become tricky when you share the same model between
 different instances. And when using setModelObject() with an
 object that is equal to the current model object, but a
 different instance (such as a Hibernate-persisted object
 bound to the correct session), you have to either do
 getModel().setObject() or change the model comparator.


>>> setModelObject isn't the best idea IMHO. Models should support some
>>> kind of state change notifications, we might want to improve that for
>>> 1.5, though it probably wouldn't be very easy to do.
>>>
>> Well, we can hardly detect change of propertypromodels unless we pull
>> and compare the value every time...
>>
>
> Better state change notifications would be a huge improvement IMO
> because that way components could add themselves to AjaxRequestTarget
> when needed. Currently all Ajax functionality requires Ajaxified
> components to know about each other and when they should be displayed.
> Some kind of even mechanism as described in
> https://issues.apache.org/jira/browse/WICKET-1312 would definitely help,
> but a model-driven approach would be even better.
>
> I was thinking to support this using annotations and aspects and the
> likes, but I haven't had the time to create a proof of concept.
>
> Matthijs
>
> PS. Thread subject has become little different than thread content :)
>
> --
> Matthijs Wensveen
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 423
> F +31 20 4223500
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Strange stack trace in logs

2008-07-03 Thread Piller Sébastien
Thank you for your answer... Unfortunately, it doesn't seem to be the 
only reason... I've got some stack trace speaking about css and js


java.lang.IllegalStateException: URL fragment has unmatched key/value pair: 
../../resources/mypack.MyClass/script.js
at 
org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(AbstractRequestTargetUrlCodingStrategy.java:174)
at 
org.apache.wicket.request.target.coding.PackageRequestTargetUrlCodingStrategy.decode(PackageRequestTargetUrlCodingStrategy.java:103)

I think the user didn't try anything with the js scripts... And I really 
have a lot of traces...



Martijn Dashorst a écrit :

usually this is from users that copy/paste incomplete url's from other
users, or people tampering with urls

Martijn
  


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



Re: How to add nodes to a tree using Ajax

2008-07-03 Thread geke

Hello,

to your point 2.
You have to build a subclass from LinkTree.
A example is in the attachement. 
http://www.nabble.com/file/p18273760/MyTree.java MyTree.java 

To point 3.

Why you only want to load only the root and reload the next level?
In my solution all Node are updated via updateTree().

GeKe


Kai Schubert-Altmann wrote:
> 
> HI everybody
> 
> I solved the first problem by my own by adding the following method to the
> tree:
> 
>   public DefaultMutableTreeNode getSelectedNode() {
> Object selected = null;
> try {
>   selected = this.getTreeState().getSelectedNodes().iterator().next();
> } catch (NoSuchElementException nseEx) { }
> return (selected instanceof DefaultMutableTreeNode)?
> (DefaultMutableTreeNode)selected : null;
>   }
> 
> That worked for me without problems. Or is there an easier way?
> 
> Kai
> 
> 2008/7/3 Kai Schubert-Altmann <[EMAIL PROTECTED]>:
> 
>> Hi,
>>
>> thanks to both of you! Matejs code worked very fine, so i didn't tried
>> gekes version.
>>
>> But now i have the next three problems/questions:
>>
>> 1. If i want to add a new node to the selected node, then i have to get
>> the
>> selected node first. How can i do that?
>>
>> 2. Can i change the shown icons to custom ones?
>>
>> 3. Is it possible to load the root element only and reload the next
>> level,
>> when you click the plus-image?
>>
>> Kai
>>
>> 2008/6/27 geke <[EMAIL PROTECTED]>:
>>
>>
>>> try this code:
>>>
>>> fileTree = new LinkTree();
>>>
>>> TreeNode existingTreeNode = ...;
>>>
>>> DefaultMutableTreeNode newTreeNode = new DefaultMutableTreeNode(object);
>>> DefaultTreeModel model = (DefaultTreeModel)fileTree.getModelObject();
>>> model.insertNodeInto(newTreeNode, treeNode, 0);
>>> fileTree.updateTree(target);
>>>
>>>
>>>
>>>
>>> Kai Schubert-Altmann wrote:
>>> >
>>> > Hi,
>>> >
>>> > how can I add nodes to a wicket tree using a AjaxLink?
>>> >
>>> > I tried to add a node to the SimpleTree of this example:
>>> > http://www.wicket-library.com/wicket-examples/ajax/tree/simple.1
>>> >
>>> > with this code:
>>> >
>>> > add(new AjaxLink("addNode")
>>> > {
>>> > public void onClick(AjaxRequestTarget target)
>>> > {
>>> >   List list = new ArrayList();
>>> >   list.add("new node");
>>> >   BaseTreePage.this.add(rootNode,list);
>>> >   getTree().updateTree(target);
>>> > }
>>> > });
>>> >
>>> > But the tree will not update itself.
>>> >
>>> > Thanks in advance,
>>> > Kai
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/How-to-add-nodes-to-a-tree-using-Ajax-tp18130191p18150967.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-add-nodes-to-a-tree-using-Ajax-tp18130191p18273760.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: generics

2008-07-03 Thread Matthijs Wensveen

Matej Knopp wrote:

On Thu, Jul 3, 2008 at 9:51 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
  

And there is some functionality in there that Wicket might
be better without. For example, onModelChanged / Changing
things become tricky when you share the same model between
different instances. And when using setModelObject() with an
object that is equal to the current model object, but a
different instance (such as a Hibernate-persisted object
bound to the correct session), you have to either do
getModel().setObject() or change the model comparator.

  

setModelObject isn't the best idea IMHO. Models should support some
kind of state change notifications, we might want to improve that for
1.5, though it probably wouldn't be very easy to do.


Well, we can hardly detect change of propertypromodels unless we pull
and compare the value every time...
  


Better state change notifications would be a huge improvement IMO 
because that way components could add themselves to AjaxRequestTarget 
when needed. Currently all Ajax functionality requires Ajaxified 
components to know about each other and when they should be displayed. 
Some kind of even mechanism as described in 
https://issues.apache.org/jira/browse/WICKET-1312 would definitely help, 
but a model-driven approach would be even better.


I was thinking to support this using annotations and aspects and the 
likes, but I haven't had the time to create a proof of concept.


Matthijs

PS. Thread subject has become little different than thread content :)

--
Matthijs Wensveen
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500 



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



RE: [PROPOSAL] Use path in URL when target is instance of BookmarkablePageRequestTarget

2008-07-03 Thread David Leangen

> Also there is a complete rewrite of URL handling planned for 1.5 which
> will allow much better control over URL generation and bookmarkability
> in Wicket.

Well, in that case, I won't press this any more.

The current stuff is great, but there is indeed a lot of room for
improvement. Will be looking forward to that. :-)


In the meantime, I'll just use my own patched version.


Thanks for checking this out.


-dml-



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



RE: OSGi and class loading issues solution proposal

2008-07-03 Thread David Leangen

> Before I'll create any JIRA issue, first I want to ask other
> "osgi-guys" what are they thinking about proposed changes.

Well, I use the OSGi/Wicket combination extensively in the form of
pax-wicket. Edward is the lead developer, but we often collaborate.

Personally, I think this is a great initiative. I would really like to see
more OSGi compatibility in Wicket, since I always have to use my own patched
versions to get things working right.

As I reply to your original questions, I'll just voice a few concerns here
in context that I have probably already mentioned before.


> Proposal 1 (change actual method behavior):
> Modify resolveClass() method in DefaultClassResolver as I wrote above

-1

> Proposal 2 (do not change actual method behavior):
> Make DefaultClassResolver extensible (remove final modifier in class
> declaration) and define a new method (invent a better name for it ;)):

+1

> 2. LazyInitProxyFactory - Spring integration

Don't use Spring, so I'll abstain from this vote.


Now, I have two concerns. My assumption is that the bundle providing the
components is to be used as a kind of "library" bundle, and that it should
not need to know in advance where it will be used. If this is not your use
case, then the rest of this discussion may not be relevant to you.

First: classes that derive from private packages. Ideally, the importing
bundle should declare the IClassResolver, since the library bundle should
not need to know where it needs to be used. If you create the IClassResolver
outside of the library bundle, then you will not have access to the bundle's
private classes, and deserialization will fail, so I don't see any way to
make that "ideal" way work. So, probably because of these private packages
the only way to do this is to create an IClassResolver service from within
the library bundle and have this service consumed by bundles that need to
use the library. Consuming bundles can either just grab all implementations
of the IClassResolver service, or can pick and choose them by ID.

Edward has recently made an implementation of this approach in pax-wicket.
So far, it seems to work very well. In this respect, this is no longer a
problem per se, but I think we need to validate and document this approach,
and maybe suggest it as a "best practice", or "pattern" or whatever.


The second issue is a little trickier. Since I've never actually encountered
this potential problem myself, I'm only really guessing at this point.

Since a given class can be provided by more than one bundle, and on top of
that there can be more than one version of the given class, we need to be
very careful about how we choose the source of that class. It's not enough
to simply search by classname, since this may provide us with the wrong
version of that class, and again deserialization will fail. Probably, we'll
need to provide some kind of marker for that class in order to be able to
associate it with it's source bundle.

Actually, I think that Edward has already addressed this issue with his
recent commits to the pax-wicket codebase, but I have not yet had a chance
to review it.

The only other issue, then, it what to do if the source bundle goes away
between serialization and deserialization. I have no ideas here other than
to make deserialization fail somehow gracefully.


Regards,
David


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



Re: Functional testing tools comparison

2008-07-03 Thread Janne Hietamäki
On Thu, Jul 3, 2008 at 11:28 PM, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:

> I just confirmed that watir sucks: it is IE/Windows only. This makes
> it unsuitable to use it inside my company where we value running build
> servers on linux. I'm working on OS X which makes building tests a
> disaster (not to mention that the damned safari port won't build on my
> mac).
>

Here's another one http://code.google.com/p/webdriver/

Janne


Re: Functional testing tools comparison

2008-07-03 Thread Nino Saturnino Martinez Vazquez Wael
hehe on the watir point, I wonder if windows are finally loosing the 
battle(not wanting to start a religious war though):)


btw an a thing that you could you if interested are to use jmeter in 
conjunction with selenium. Eg you always have your selenium test which 
runs.. And then when you decide nows a good time to load test, tell 
firefox to go through the http jmeter proxy. And now you have a way to 
load test with jmeter (if it makes sense to load/stress the functional 
tests)...



regards Nino

Martijn Dashorst wrote:

I just confirmed that watir sucks: it is IE/Windows only. This makes
it unsuitable to use it inside my company where we value running build
servers on linux. I'm working on OS X which makes building tests a
disaster (not to mention that the damned safari port won't build on my
mac).

Martijn

On Wed, Jul 2, 2008 at 6:30 PM, Martijn Dashorst
<[EMAIL PROTECTED]> wrote:
  

All,

I'm trying to discover which functional testing tool suits Wicket
development best. My options are:

 - Canoo webtest
 - Selenium
 - Watir

I'd like some folks to create a couple of functional tests for our
wicket examples in one of these tools so that we get a complete
overview of all three testing platforms.

I've created one test for Canoo webtest, and I like the output of the
tool. The XML stuff is not that great though. Fortunately it also
supports groovy scripts. I intend to create some more tests and hope
that someone will be able to translate those tests to selenium and
watir so that we can compare these tools.

Anyone interested?

Martijn

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






  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Problem with Pagination in Wicket 1.3.4

2008-07-03 Thread Umesh Paliwal
Hi ,

 

I had downloaded Wicket 1.3.4 for the Autocomplete issue with IE.

 

Now the AutoComplete works fine. But when I click on the table with
Pagination, I get the following error.

 


Unexpected RuntimeException

WicketMessage: Unable to find component with id 'first' in
[MarkupContainer [Component id = navigator, page =
com.osi.nx.objeditor.ClassBuilder, path =
0:classattrpanel:panel:navigator.DataViewClassTable$3, isVisible = true,
isVersioned = false]]. This means that you declared wicket:id=first in
your markup, but that you either did not add the component to your page
at all, or that the hierarchy does not match.
[markup =
jar:file:/C:/Documents%20and%20Settings/uxp1/.m2/repository/org/apache/w
icket/wicket/1.3.4/wicket-1.3.4.jar!/org/apache/wicket/markup/html/navig
ation/paging/PagingNavigator.html




  
<< <

 5

> >>
  


, index = 3, current = '' (line 21, column 2)]

Root cause:

org.apache.wicket.markup.MarkupException: Unable to find component with
id 'first' in [MarkupContainer [Component id = navigator, page =
com.osi.nx.objeditor.ClassBuilder, path =
0:classattrpanel:panel:navigator.DataViewClassTable$3, isVisible = true,
isVersioned = false]]. This means that you declared wicket:id=first in
your markup, but that you either did not add the component to your page
at all, or that the hierarchy does not match.
[markup =
jar:file:/C:/Documents%20and%20Settings/uxp1/.m2/repository/org/apache/w
icket/wicket/1.3.4/wicket-1.3.4.jar!/org/apache/wicket/markup/html/navig
ation/paging/PagingNavigator.html




  
<< <

 5

> >>
  


, index = 3, current = '' (line 21, column 2)]
 at
org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.
java:464)
 at
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1344)
 at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer
.java:1476)
 at
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer
.java:639)
 at
org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:
112)
 at org.apache.wicket.Component.renderComponent(Component.java:2481)
 at
org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
 at org.apache.wicket.Component.render(Component.java:2318)
 at
org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1297)
 at
org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer
.java:1476)
 at
org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer
.java:639)
 at
org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:
112)
 at org.apache.wicket.Component.renderComponent(Component.java:2481)
 at
org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1411)
 at org.apache.wicket.Component.render(Component.java:2318)
 at org.apache.wicket.Component.renderComponent(Component.java:2421)
 at
org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTar
get.java:752)
 at
org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTa
rget.java:649)
 at
org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:
564)
 at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(Abstract
RequestCycleProcessor.java:104)
 at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
:1177)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1248)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
 at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387
)
 at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:
199)
 at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHan
dler.java:1084)
 at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
 at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:2
16)
 at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
 at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
 at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
 at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandler
Collection.java:206)
 at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.jav
a:114)
 at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 at org.mortbay.jetty.Server.handle(Server.java:324)
 at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
 at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConne
ction.java:829)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
 at org

Re: ajax event handler with a textfield .. .

2008-07-03 Thread Rakesh Sinha
On 7/3/08, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
> On Thu, 03 Jul 2008, Rakesh Sinha wrote:
>
> > Thanks for pointing this one out. Can you paste / point to a code
>  > fragement for - OnChangeAjaxBehavior and how to integrate with
>  > TextField.
>
>
> Use the source, Luke :) Just use it instead of the normal
>  AjaxFormComponentUpdatingBehavior.

Thanks Timo. Revised code looks something similar to this.

java:

import org.apache.wicket.ajax.form.OnChangeAjaxBehavior;

txtAge.add(new OnChangeAjaxBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
ValidatorResult result =
ageValidator.validate(txtAge
.getValue());
lblModel.setErrorMessage(result.getMessage());
target.addComponent(lblAgeValidate);
}
});



>
>
>  > >  Probably you can trim your code a bit but the basic idea
>  > >  is like that. Instead of passing the error message around
>  > >  you could make your Label use a pull model.
>  >
>  >   Can you clarify about the pull model here and how it gets supported
>  > with Wicket.
>
>
> By "pull model" I meant here just a Wicket IModel that reads
>  the necessary data in getObject, for example
>
>  lblAgeValidate = new Label("lblAgeValidate", new AbstractReadOnlyModel() {
> @Override
> public Object getObject() {
> return txtAge.getValue();
> }
>  }).setOutputMarkupId(true);

Thanks for the suggestion. That removes some boiler-plate code for sure.

>
>
>  Best wishes,
>  Timo
>
>  --
>  Timo Rantalaiho
>  Reaktor Innovations Oyhttp://www.ri.fi/ >
>
>  -
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: wicketstuff-push

2008-07-03 Thread freak182

You can also check out the jetty website for the latest cometd
implementation...fyi, it comes with the jetty server...it's great i use it
also to my project the wicket-push :)


julien Graglia wrote:
> 
> Le jeudi 03 juillet 2008 à 16:28 +0200, Frank Bille a écrit :
>> As far as I know it only lives in subversion. I tried it myself a month
>> ago
>> and it is functional:
>> 
>> http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/
>> http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/
> 
> Thx !!!
> -- 
> Julien Graglia - NetCeler
> Tel: 04-92-57-12-12
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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


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



Re: How to add nodes to a tree using Ajax

2008-07-03 Thread Kai Schubert-Altmann
HI everybody

I solved the first problem by my own by adding the following method to the
tree:

  public DefaultMutableTreeNode getSelectedNode() {
Object selected = null;
try {
  selected = this.getTreeState().getSelectedNodes().iterator().next();
} catch (NoSuchElementException nseEx) { }
return (selected instanceof DefaultMutableTreeNode)?
(DefaultMutableTreeNode)selected : null;
  }

That worked for me without problems. Or is there an easier way?

Kai

2008/7/3 Kai Schubert-Altmann <[EMAIL PROTECTED]>:

> Hi,
>
> thanks to both of you! Matejs code worked very fine, so i didn't tried
> gekes version.
>
> But now i have the next three problems/questions:
>
> 1. If i want to add a new node to the selected node, then i have to get the
> selected node first. How can i do that?
>
> 2. Can i change the shown icons to custom ones?
>
> 3. Is it possible to load the root element only and reload the next level,
> when you click the plus-image?
>
> Kai
>
> 2008/6/27 geke <[EMAIL PROTECTED]>:
>
>
>> try this code:
>>
>> fileTree = new LinkTree();
>>
>> TreeNode existingTreeNode = ...;
>>
>> DefaultMutableTreeNode newTreeNode = new DefaultMutableTreeNode(object);
>> DefaultTreeModel model = (DefaultTreeModel)fileTree.getModelObject();
>> model.insertNodeInto(newTreeNode, treeNode, 0);
>> fileTree.updateTree(target);
>>
>>
>>
>>
>> Kai Schubert-Altmann wrote:
>> >
>> > Hi,
>> >
>> > how can I add nodes to a wicket tree using a AjaxLink?
>> >
>> > I tried to add a node to the SimpleTree of this example:
>> > http://www.wicket-library.com/wicket-examples/ajax/tree/simple.1
>> >
>> > with this code:
>> >
>> > add(new AjaxLink("addNode")
>> > {
>> > public void onClick(AjaxRequestTarget target)
>> > {
>> >   List list = new ArrayList();
>> >   list.add("new node");
>> >   BaseTreePage.this.add(rootNode,list);
>> >   getTree().updateTree(target);
>> > }
>> > });
>> >
>> > But the tree will not update itself.
>> >
>> > Thanks in advance,
>> > Kai
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-add-nodes-to-a-tree-using-Ajax-tp18130191p18150967.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


Re: Gmap2 problem with Firefox 3.0

2008-07-03 Thread Martin Funk

Murat Yücel wrote:

I am not able to see the examples in IE 7 either. Could you confirm this?
  
Yeah, can soemone confirm this. I currently don't have access to a 
windows machine.

There also seems to be a problem with using png images as a marker.
Found this fix which seems to solve the problem.
http://homepage.ntlworld.com/bobosola/pnghowto.htm
  

Same on this issue.

Also could someone give some feedback if stripping the wicket tags makes 
a difference for IE too?


mf

/Murat

2008/6/27 Sven Meier <[EMAIL PROTECTED]>:

  

Hi,

so it seems this problem is not gmap2 specific. It's just the way our
markup is structured, which seems no longer be supported by firefox 3. The
following simple example show the failure:


  
  
  
  


The nested div is no longer strechted to the full size of the containing
div.
I'll see how we can restructure our markup, but generally this change in
forefox's layout might effect other places too.

Sven

Ryan Sonnek schrieb:

 On 6/26/08, Martin Funk <[EMAIL PROTECTED]> wrote:

  

Sven Meier wrote:





Hi,

I'm investigation the issue:
It seems that Google's css is being screwed up in FF3. When I let Wicket
strip all wicket tags *or* assign pixel width (instead of 100%) to the
element holding the map, everthing works fine in FF3.



  

btw. Sven,
I now can confirm the effect of stripping too.

so a quick solution would be running the app in deployment mode.

Can the "strip wicket tags" setting be declared at a component level, or




does it affect the entire server?



  

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





  



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



Re: Gmap2 problem with Firefox 3.0

2008-07-03 Thread Martin Funk

Rafa? Jaskó?ka wrote:

Yes, I didn't updated example sources for few days. And realized that I
should do it, after sending previous post :)
  


yeah:-) sorry for the arrogant tone in my mail.

I just added a little logging message too. So if the programmer doesn't 
notice the sysadmin will tell him.


mf


2008/7/3 Martin Funk <[EMAIL PROTECTED]>:

  

Rafa? Jaskó?ka wrote:



Hi,

It seams that main problem for FF3 are custom wicket tags, 
in
this case.
The most simple solution will be adding line


  

you meant: was, didn't you?

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2-examples/src/main/java/wicket/contrib/examples/GMapExampleApplication.java
mf





  



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



Re: Functional testing tools comparison

2008-07-03 Thread Martijn Dashorst
I just confirmed that watir sucks: it is IE/Windows only. This makes
it unsuitable to use it inside my company where we value running build
servers on linux. I'm working on OS X which makes building tests a
disaster (not to mention that the damned safari port won't build on my
mac).

Martijn

On Wed, Jul 2, 2008 at 6:30 PM, Martijn Dashorst
<[EMAIL PROTECTED]> wrote:
> All,
>
> I'm trying to discover which functional testing tool suits Wicket
> development best. My options are:
>
>  - Canoo webtest
>  - Selenium
>  - Watir
>
> I'd like some folks to create a couple of functional tests for our
> wicket examples in one of these tools so that we get a complete
> overview of all three testing platforms.
>
> I've created one test for Canoo webtest, and I like the output of the
> tool. The XML stuff is not that great though. Fortunately it also
> supports groovy scripts. I intend to create some more tests and hope
> that someone will be able to translate those tests to selenium and
> watir so that we can compare these tools.
>
> Anyone interested?
>
> Martijn
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>



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

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



Re: ajax event handler with a textfield .. .

2008-07-03 Thread Timo Rantalaiho
On Thu, 03 Jul 2008, Rakesh Sinha wrote:
> Thanks for pointing this one out. Can you paste / point to a code
> fragement for - OnChangeAjaxBehavior and how to integrate with
> TextField.

Use the source, Luke :) Just use it instead of the normal
AjaxFormComponentUpdatingBehavior.

> >  Probably you can trim your code a bit but the basic idea
> >  is like that. Instead of passing the error message around
> >  you could make your Label use a pull model.
> 
>   Can you clarify about the pull model here and how it gets supported
> with Wicket.

By "pull model" I meant here just a Wicket IModel that reads
the necessary data in getObject, for example

lblAgeValidate = new Label("lblAgeValidate", new AbstractReadOnlyModel() {
@Override
public Object getObject() {
return txtAge.getValue();
}
}).setOutputMarkupId(true);

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

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



Re: How to add nodes to a tree using Ajax

2008-07-03 Thread Kai Schubert-Altmann
Hi,

thanks to both of you! Matejs code worked very fine, so i didn't tried gekes
version.

But now i have the next three problems/questions:

1. If i want to add a new node to the selected node, then i have to get the
selected node first. How can i do that?

2. Can i change the shown icons to custom ones?

3. Is it possible to load the root element only and reload the next level,
when you click the plus-image?

Kai

2008/6/27 geke <[EMAIL PROTECTED]>:

>
> try this code:
>
> fileTree = new LinkTree();
>
> TreeNode existingTreeNode = ...;
>
> DefaultMutableTreeNode newTreeNode = new DefaultMutableTreeNode(object);
> DefaultTreeModel model = (DefaultTreeModel)fileTree.getModelObject();
> model.insertNodeInto(newTreeNode, treeNode, 0);
> fileTree.updateTree(target);
>
>
>
>
> Kai Schubert-Altmann wrote:
> >
> > Hi,
> >
> > how can I add nodes to a wicket tree using a AjaxLink?
> >
> > I tried to add a node to the SimpleTree of this example:
> > http://www.wicket-library.com/wicket-examples/ajax/tree/simple.1
> >
> > with this code:
> >
> > add(new AjaxLink("addNode")
> > {
> > public void onClick(AjaxRequestTarget target)
> > {
> >   List list = new ArrayList();
> >   list.add("new node");
> >   BaseTreePage.this.add(rootNode,list);
> >   getTree().updateTree(target);
> > }
> > });
> >
> > But the tree will not update itself.
> >
> > Thanks in advance,
> > Kai
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-add-nodes-to-a-tree-using-Ajax-tp18130191p18150967.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Gmap2 problem with Firefox 3.0

2008-07-03 Thread Rafał Jaskółka
Yes, I didn't updated example sources for few days. And realized that I
should do it, after sending previous post :)


2008/7/3 Martin Funk <[EMAIL PROTECTED]>:

> Rafa? Jaskó?ka wrote:
>
>> Hi,
>>
>> It seams that main problem for FF3 are custom wicket tags, 
>> in
>> this case.
>> The most simple solution will be adding line
>>
>>
> you meant: was, didn't you?
>
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2-examples/src/main/java/wicket/contrib/examples/GMapExampleApplication.java
> mf
>
>


Re: How to configure the max space used for all Session store on a WebApplication ?

2008-07-03 Thread Eelco Hillenius
Even 2 MB is more than you'd want. Anyway, it's a worst case thing I assume.

Eelco

On Thu, Jul 3, 2008 at 10:16 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> The 'real' size is more the 2MB. (pagemap size) because if you always
> have 1 pagemap then thats the max. The question is how many pagemaps
> you also want to support.
>
> On 7/3/08, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>> On Thu, Jul 3, 2008 at 2:55 AM, Johan Compagner <[EMAIL PROTECTED]>
>> wrote:
>>> setting the right maxSizePerPagemap is way more importand then
>>> maxSizePerSession
>>>
>>> just see what sizes your pages are.
>>> Then the if they are on average (now taking a big number) 500KB then ask
>>> you
>>> self how many pages you want
>>> if that is 4 then you set the maxSizePerPagemap to 2MB and
>>> maxSizePerSession
>>> to 6MB
>>> (then you can hold max 3 pagemaps of max size)
>>>
>>> then 1000 live sessions will result in 6.000MB is 6GByte of memory if they
>>> all use there MAX 3 pagemap size..
>>> In todays world thats nothing.
>>
>> 6 MB per session would be pretty ridiculous if you ask me!
>>
>> Eelco
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: wicketstuff-push

2008-07-03 Thread Julien Graglia
Le jeudi 03 juillet 2008 à 16:28 +0200, Frank Bille a écrit :
> As far as I know it only lives in subversion. I tried it myself a month ago
> and it is functional:
> 
> http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/
> http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/

Thx !!!
-- 
Julien Graglia - NetCeler
Tel: 04-92-57-12-12


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



Re: Functional testing tools comparison

2008-07-03 Thread Janne Hietamäki
On Wed, Jul 2, 2008 at 11:00 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
>
> I agree that practical examples on examples on each would be
> great! I should try to get around doing an example with
> jdave-wicket-selenium.

I committed some additions to jdave-wicket-selenium trunk last week
and I'm also using it on a real world project. It still needs some
work but so far it seems to be a very nice approach and the ability to
easily access both browser content and Wicket component hierarchy is
really cool. Testing with selenium is very much like testing
components with JDave.

public void clientCanBeSelectedFromTheListAndModified() {

selenium.click(selectAll(AjaxFallbackLink.class).from(context.get("tabs")).get(1).getMarkupId());
waitForAjaxResponse();
DataView list = selectFirst(DataView.class).from(context);
selenium.click(selectFirst(Item.class).from(list).getMarkupId());
waitForAjaxResponse();

selenium.type(selectFirst(TextField.class,
"login").from(context).getInputName(), "client1login2");
selenium.click(selectFirst(AjaxButton.class,
"submit").from(context).getMarkupId());
waitForAjaxResponse();

specify(clientRepository.load(client.id()).login(),
does.equal("client1login2"));
}

Janne

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



Re: How to configure the max space used for all Session store on a WebApplication ?

2008-07-03 Thread Johan Compagner
The 'real' size is more the 2MB. (pagemap size) because if you always
have 1 pagemap then thats the max. The question is how many pagemaps
you also want to support.

On 7/3/08, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 3, 2008 at 2:55 AM, Johan Compagner <[EMAIL PROTECTED]>
> wrote:
>> setting the right maxSizePerPagemap is way more importand then
>> maxSizePerSession
>>
>> just see what sizes your pages are.
>> Then the if they are on average (now taking a big number) 500KB then ask
>> you
>> self how many pages you want
>> if that is 4 then you set the maxSizePerPagemap to 2MB and
>> maxSizePerSession
>> to 6MB
>> (then you can hold max 3 pagemaps of max size)
>>
>> then 1000 live sessions will result in 6.000MB is 6GByte of memory if they
>> all use there MAX 3 pagemap size..
>> In todays world thats nothing.
>
> 6 MB per session would be pretty ridiculous if you ask me!
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: How to configure the max space used for all Session store on a WebApplication ?

2008-07-03 Thread Eelco Hillenius
On Thu, Jul 3, 2008 at 2:55 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> setting the right maxSizePerPagemap is way more importand then
> maxSizePerSession
>
> just see what sizes your pages are.
> Then the if they are on average (now taking a big number) 500KB then ask you
> self how many pages you want
> if that is 4 then you set the maxSizePerPagemap to 2MB and maxSizePerSession
> to 6MB
> (then you can hold max 3 pagemaps of max size)
>
> then 1000 live sessions will result in 6.000MB is 6GByte of memory if they
> all use there MAX 3 pagemap size..
> In todays world thats nothing.

6 MB per session would be pretty ridiculous if you ask me!

Eelco

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



Re: generics

2008-07-03 Thread Eelco Hillenius
On Thu, Jul 3, 2008 at 9:46 AM, Eelco Hillenius
<[EMAIL PROTECTED]> wrote:
>>> On Thu, Jul 3, 2008 at 12:47 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
 Ligther? Does it meen with no Compund and ComponentAssignedModel?
 Wouldn't that feel more like crippled?
 The default model slot doesn't take any runtime space when you don't
 use it, property would. And removing four methods from component will
 hardly make it much lighter.
>>>
>> Big +1 on that :)
>
> That's a +1 on your own reply... cheater! ;-)

Like Martijn said ugh I need to learn to read the rest of the
thread before replying first!

Eelco

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



Re: Gmap2 problem with Firefox 3.0

2008-07-03 Thread Martin Funk

Rafa? Jaskó?ka wrote:

Hi,

It seams that main problem for FF3 are custom wicket tags,  in
this case.
The most simple solution will be adding line
  

you meant: was, didn't you?
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-gmap2-examples/src/main/java/wicket/contrib/examples/GMapExampleApplication.java
mf

getMarkupSettings().setStripWicketTags(true);

in init() method of application class.

After adding:

@Override
protected void init() {
getMarkupSettings().setStripWicketTags(true);
}

in GMapExampleApplication,

and  super.init();
in init() methods of all classes extending GMapExampleApplication, maps in
examples are visible.
It works on trunk and 1.3 branch.

rj

2008/6/27 Sven Meier <[EMAIL PROTECTED]>:

  

Hi,

so it seems this problem is not gmap2 specific. It's just the way our
markup is structured, which seems no longer be supported by firefox 3. The
following simple example show the failure:


  
  
  
  


The nested div is no longer strechted to the full size of the containing
div.
I'll see how we can restructure our markup, but generally this change in
forefox's layout might effect other places too.





  



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



Re: generics

2008-07-03 Thread Eelco Hillenius
>> On Thu, Jul 3, 2008 at 12:47 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>>> Ligther? Does it meen with no Compund and ComponentAssignedModel?
>>> Wouldn't that feel more like crippled?
>>> The default model slot doesn't take any runtime space when you don't
>>> use it, property would. And removing four methods from component will
>>> hardly make it much lighter.
>>
> Big +1 on that :)

That's a +1 on your own reply... cheater! ;-)

Eelco

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



Re: How to catch an Error (and not only RuntimeException) in the RequestCycle ?

2008-07-03 Thread Gerald Reinhart


jwcarman wrote:
> 
> You shouldn't try to catch errors.
> 

In order to log it, not to catch it.
 (the subject of the Thread is not well define)

-- 
View this message in context: 
http://www.nabble.com/How-to-catch-an-Error-%28and-not-only-RuntimeException%29-in-the-RequestCycle---tp18261625p18263667.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: Enabling compoents based on Wicket URI path?

2008-07-03 Thread Michael Mehrle
Last night I figured this out:

final WebRequestCycle cycle = (WebRequestCycle)RequestCycle.get();
final IRequestTarget target = cycle.getRequestTarget();
String path = urlFor(target).toString(); 

Your way is better.

Igor saves the day again - thanks a lot mate.

Michael

-Original Message-
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 03, 2008 7:32 AM
To: users@wicket.apache.org
Cc: [EMAIL PROTECTED]
Subject: Re: Enabling compoents based on Wicket URI path?

((webrequest)getrequest()).gethttpservletrequest().getrequesturi()

-igor

On Thu, Jul 3, 2008 at 7:13 AM, Michael Mehrle <[EMAIL PROTECTED]>
wrote:
> Not to come across snide but of course I know how to set a component
to
> invisible. I need to know how to get the current page URL/URI as the
> page loads - remember that the navigator is only a panel and can be
> inside of many pages. Is this more clear?
>
> Thanks for trying to help.
>
> Michael
>
> -Original Message-
> From: David Leangen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 02, 2008 6:14 PM
> To: users@wicket.apache.org
> Subject: RE: Enabling compoents based on Wicket URI path?
>
>
>> A little bit confused... perhaps I or you misunderstood. I'm using a
>> textfield in the 'navigator' section of my site. So, if a particular
> URL
>> is being accessed (.../foo or .../bar) then I want to hide the
>> textfield. Otherwise the navigator shows the textfield. Does that
make
>> more sense?
>
> In any case, the way you would show/hide any component is by
overriding
> the isVisible method:
>
> @Override public boolean isVisible()
> {
>// do your test here
> }
>
> So you need some way of testing this. The way to do that is using
> PageParameters with one of the IndexedCodingStrategies.
>
> Make more sense? Or do you need more info?
>
>
> Cheers,
> David
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



Re: OSGi and class loading issues solution proposal

2008-07-03 Thread Daniel Stoch
On Thu, Jul 3, 2008 at 4:28 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> why dont you guys hash all this out. since no one uses osgi from the
> core team we are mostly unaware of these issues but do want to support
> the platform. once you settle down on the changes you want to see
> create jira issues and we will take it from there.

Ok, we'll do :).

Before I'll create any JIRA issue, first I want to ask other
"osgi-guys" what are they thinking about proposed changes. Maybe
someone will have a better/other concepts (or vote for these, like
Edward did).

--
Daniel

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



Re: Gmap2 problem with Firefox 3.0

2008-07-03 Thread Rafał Jaskółka
Hi,

It seams that main problem for FF3 are custom wicket tags,  in
this case.
The most simple solution will be adding line

getMarkupSettings().setStripWicketTags(true);

in init() method of application class.

After adding:

@Override
protected void init() {
getMarkupSettings().setStripWicketTags(true);
}

in GMapExampleApplication,

and  super.init();
in init() methods of all classes extending GMapExampleApplication, maps in
examples are visible.
It works on trunk and 1.3 branch.

rj

2008/6/27 Sven Meier <[EMAIL PROTECTED]>:

> Hi,
>
> so it seems this problem is not gmap2 specific. It's just the way our
> markup is structured, which seems no longer be supported by firefox 3. The
> following simple example show the failure:
>
> 
>   
>   
>   
>   
> 
>
> The nested div is no longer strechted to the full size of the containing
> div.
> I'll see how we can restructure our markup, but generally this change in
> forefox's layout might effect other places too.
>
>


Re: How to catch an Error (and not only RuntimeException) in the RequestCycle ?

2008-07-03 Thread James Carman
You shouldn't try to catch errors.

On Thu, Jul 3, 2008 at 11:50 AM, Gerald Reinhart <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm wondering how to catch Error or no RuntimeException in the RequestCycle.
>
> There is a RequestCycle.onRuntimeException(Page page, RuntimeException e)
> but not RequestCycle.onError(Page page, Error e) or
> RequestCycle.onThrowable(Page page, Throwable t)...
>
>
> Regards,
>
> Gerald Reinhart
> --
> View this message in context: 
> http://www.nabble.com/How-to-catch-an-Error-%28and-not-only-RuntimeException%29-in-the-RequestCycle---tp18261625p18261625.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



How to catch an Error (and not only RuntimeException) in the RequestCycle ?

2008-07-03 Thread Gerald Reinhart

Hi,

I'm wondering how to catch Error or no RuntimeException in the RequestCycle.

There is a RequestCycle.onRuntimeException(Page page, RuntimeException e)
but not RequestCycle.onError(Page page, Error e) or
RequestCycle.onThrowable(Page page, Throwable t)...


Regards,

Gerald Reinhart
-- 
View this message in context: 
http://www.nabble.com/How-to-catch-an-Error-%28and-not-only-RuntimeException%29-in-the-RequestCycle---tp18261625p18261625.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Enabling compoents based on Wicket URI path?

2008-07-03 Thread Igor Vaynberg
((webrequest)getrequest()).gethttpservletrequest().getrequesturi()

-igor

On Thu, Jul 3, 2008 at 7:13 AM, Michael Mehrle <[EMAIL PROTECTED]> wrote:
> Not to come across snide but of course I know how to set a component to
> invisible. I need to know how to get the current page URL/URI as the
> page loads - remember that the navigator is only a panel and can be
> inside of many pages. Is this more clear?
>
> Thanks for trying to help.
>
> Michael
>
> -Original Message-
> From: David Leangen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 02, 2008 6:14 PM
> To: users@wicket.apache.org
> Subject: RE: Enabling compoents based on Wicket URI path?
>
>
>> A little bit confused... perhaps I or you misunderstood. I'm using a
>> textfield in the 'navigator' section of my site. So, if a particular
> URL
>> is being accessed (.../foo or .../bar) then I want to hide the
>> textfield. Otherwise the navigator shows the textfield. Does that make
>> more sense?
>
> In any case, the way you would show/hide any component is by overriding
> the isVisible method:
>
> @Override public boolean isVisible()
> {
>// do your test here
> }
>
> So you need some way of testing this. The way to do that is using
> PageParameters with one of the IndexedCodingStrategies.
>
> Make more sense? Or do you need more info?
>
>
> Cheers,
> David
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: wicketstuff-push

2008-07-03 Thread Frank Bille
As far as I know it only lives in subversion. I tried it myself a month ago
and it is functional:

http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push/
http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-push-examples/

On Thu, Jul 3, 2008 at 4:10 PM, Julien Graglia <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> I'am looking for a way to do reverse ajax (or cometd) in Wicket.
>
> I have search the Wicket website, examples, and google and the only
> thing I found was some mail archives talking about a maven artifact
> called "wicketstuff-push", and classes like
> "org.wicketstuff.push.cometd.CometdAbstractBehavior"
>
> It sound's good, but I can't find any reference to that lib, only mail
> archive.(even on the wicketstuff website (1))
>
> The last mail is from may 2008...
>
> Do you know where I can found a wicket lib to do reverse ajax.
>
> I already used the "AjaxSelfUpdatingTimerBehavior" wich works well but i
> need push, no polling.
>
> Thanx,
>
>
> 1 : http://wicketstuff.org
> --
> Julien Graglia
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: OSGi and class loading issues solution proposal

2008-07-03 Thread Igor Vaynberg
why dont you guys hash all this out. since no one uses osgi from the
core team we are mostly unaware of these issues but do want to support
the platform. once you settle down on the changes you want to see
create jira issues and we will take it from there.

-igor

On Thu, Jul 3, 2008 at 5:53 AM, Edward Yakop <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 3, 2008 at 8:24 PM, Daniel Stoch <[EMAIL PROTECTED]> wrote:
>> But there is a one assumption, that bundle with Wicket classes (you
>> probably have a Wicket bundled somehow in your app, don't you? :)),
>> should have a dynamic import for all classes which can be located in
>> many different bundles:
>> DynamicImport-Package: *"
>
> I don't think you should use DynamicImport-Package.
> In pax wicket, we creates a delegating class resolver that tracks
> IClassResolver services.
>
>> Proposal 1 (change actual method behavior):
>> Modify resolveClass() method in DefaultClassResolver as I wrote above
>
> -1. This can be easily work around by setting the class resolver.
>
>> Proposal 2 (do not change actual method behavior):
>> Make DefaultClassResolver extensible (remove final modifier in class
>> declaration) and define a new method (invent a better name for it ;)):
> +1
>
>> 2. LazyInitProxyFactory - Spring integration
>> The first minor thing is a call "Class.forName(type);" in
>> ProxyReplacement. Why not use IClassResolver here (and maybe in other
>> places in Wicket)?
> +1
>
>> Proposal 2 (do not change actual method behavior):
>> Make LazyInitProxyFactory customizable to allows using a different
>> method to create proxy inside OSGi.
> +1
>
> Regards,
> Edward Yakop
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Enabling compoents based on Wicket URI path?

2008-07-03 Thread Michael Mehrle
Not to come across snide but of course I know how to set a component to
invisible. I need to know how to get the current page URL/URI as the
page loads - remember that the navigator is only a panel and can be
inside of many pages. Is this more clear?

Thanks for trying to help.

Michael

-Original Message-
From: David Leangen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2008 6:14 PM
To: users@wicket.apache.org
Subject: RE: Enabling compoents based on Wicket URI path?


> A little bit confused... perhaps I or you misunderstood. I'm using a
> textfield in the 'navigator' section of my site. So, if a particular
URL
> is being accessed (.../foo or .../bar) then I want to hide the
> textfield. Otherwise the navigator shows the textfield. Does that make
> more sense?

In any case, the way you would show/hide any component is by overriding
the isVisible method:

@Override public boolean isVisible()
{
// do your test here
}

So you need some way of testing this. The way to do that is using
PageParameters with one of the IndexedCodingStrategies.

Make more sense? Or do you need more info?


Cheers,
David




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


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



wicketstuff-push

2008-07-03 Thread Julien Graglia
Hi, 

I'am looking for a way to do reverse ajax (or cometd) in Wicket.

I have search the Wicket website, examples, and google and the only
thing I found was some mail archives talking about a maven artifact
called "wicketstuff-push", and classes like
"org.wicketstuff.push.cometd.CometdAbstractBehavior"

It sound's good, but I can't find any reference to that lib, only mail
archive.(even on the wicketstuff website (1))

The last mail is from may 2008...

Do you know where I can found a wicket lib to do reverse ajax. 

I already used the "AjaxSelfUpdatingTimerBehavior" wich works well but i
need push, no polling.

Thanx,


1 : http://wicketstuff.org
--
Julien Graglia


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



Re: Wizard and CheckGroup

2008-07-03 Thread Thomas Mäder
Why would there be raw input for the Checkbbox on page 2 when stepping
from 1 to 2? What is happening is that the checkbox is populated from
the underlying model, which happens to come up unchecked. What you
should check is: why isnt's the model updated when you first step from
2 to 3? Are you looking at the same model instance?

Thomas

1) when you go from page 2 to three, the values in t

On Tue, Jul 1, 2008 at 5:09 AM, David Leangen <[EMAIL PROTECTED]> wrote:
>
> Hello.
>
> I'm using a CheckGroup in a Wizard.
>
> Let's say the CheckGroup is in step 2 of my Wizard:
>
>  [1] <-> [2] <-> [3]
>
> Going through the Wizard, during step 2, I check all the checkboxes,
> then I go to step 3.
>
> If I back up to step 2, everything remains checked.
>
> However, if I back up again to step 1, then click next to step 2, I lose
> all my checkmarks.
>
>
> In the code for Check, whether or not the checkbox is checked is
> determined by this:
>
>  if (group.hasRawInput())
>  {
>final String[] input = group.getInputAsArray();
>
>if (input != null)
>{
>  for (int i = 0; i < input.length; i++)
>  {
>if (uuid.equals(input[i]))
>{
>  tag.put("checked", "checked");
>}
>  }
>}
>  }
>  else if (collection.contains(getModelObject()))
>  {
>tag.put("checked", "checked");
>  }
>
>
> When group.hasRawInput() returns false, and we fall through to the else
> clause, everything works as expected.
>
> However, when group.hasRawInput() returns true, on the next line
> group.getInputAsArray() returns null. This means that the for condition
> never gets executed, so my checkboxes don't get checked.
>
> What's the story with hasRawInput()?
>
>
> Thanks!
> David
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: OSGi and class loading issues solution proposal

2008-07-03 Thread Edward Yakop
On Thu, Jul 3, 2008 at 9:55 PM, Daniel Stoch <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 3, 2008 at 3:35 PM, Edward Yakop <[EMAIL PROTECTED]> wrote:
>> On Thu, Jul 3, 2008 at 9:27 PM, Daniel Stoch <[EMAIL PROTECTED]> wrote:
>>> On Thu, Jul 3, 2008 at 2:53 PM, Edward Yakop <[EMAIL PROTECTED]> wrote:
 On Thu, Jul 3, 2008 at 8:24 PM, Daniel Stoch <[EMAIL PROTECTED]> wrote:
> Ok, but what about other (non-wicket) mechanisms, which do not use
> IClassResolver (eg. creating proxy by Proxy.newProxyInstance(...) - it
> uses classloader directly)?

I'm not too sure about this.
But as last resort, I would probably passed my own implementation of
ClassLoader.

Regards,
Edward Yakop

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



Re: OSGi and class loading issues solution proposal

2008-07-03 Thread Daniel Stoch
On Thu, Jul 3, 2008 at 3:35 PM, Edward Yakop <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 3, 2008 at 9:27 PM, Daniel Stoch <[EMAIL PROTECTED]> wrote:
>> On Thu, Jul 3, 2008 at 2:53 PM, Edward Yakop <[EMAIL PROTECTED]> wrote:
>>> On Thu, Jul 3, 2008 at 8:24 PM, Daniel Stoch <[EMAIL PROTECTED]> wrote:
 But there is a one assumption, that bundle with Wicket classes (you
 probably have a Wicket bundled somehow in your app, don't you? :)),
 should have a dynamic import for all classes which can be located in
 many different bundles:
 DynamicImport-Package: *"
>>>
>>> I don't think you should use DynamicImport-Package.
>>
>> I know it is not a very good practise, but Wicket jars/bundles already
>> have "DynamicImport-Package: *" ;). And sometimes is hard to avoid
>> this.
>
> Isn't this in general depends on the IClassResolver of wicket application?
> If IClassResolver is set and the rest of wicket bundles uses
> Application class resolver, it would be irrelevant whether the other
> wicket jars/bundles has DynamicImport-Package declaration.

Ok, but what about other (non-wicket) mechanisms, which do not use
IClassResolver (eg. creating proxy by Proxy.newProxyInstance(...) - it
uses classloader directly)?

--
Daniel

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



Re: OSGi and class loading issues solution proposal

2008-07-03 Thread Edward Yakop
On Thu, Jul 3, 2008 at 9:27 PM, Daniel Stoch <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 3, 2008 at 2:53 PM, Edward Yakop <[EMAIL PROTECTED]> wrote:
>> On Thu, Jul 3, 2008 at 8:24 PM, Daniel Stoch <[EMAIL PROTECTED]> wrote:
>>> But there is a one assumption, that bundle with Wicket classes (you
>>> probably have a Wicket bundled somehow in your app, don't you? :)),
>>> should have a dynamic import for all classes which can be located in
>>> many different bundles:
>>> DynamicImport-Package: *"
>>
>> I don't think you should use DynamicImport-Package.
>
> I know it is not a very good practise, but Wicket jars/bundles already
> have "DynamicImport-Package: *" ;). And sometimes is hard to avoid
> this.

Isn't this in general depends on the IClassResolver of wicket application?
If IClassResolver is set and the rest of wicket bundles uses
Application class resolver, it would be irrelevant whether the other
wicket jars/bundles has DynamicImport-Package declaration.

> So each bundle must export its IClassResolver service? What about
> bundles independent from Wicket?

It doesn't have to be for each bundle. As long as you have a bundle /
many bundles that have sufficient ImportPackage and there's no
private packages caught in the page serialization. We would be able to
minimize this requirement to application wicket components and
business layer bundles.

Regards,
Edward Yakop

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



Re: OSGi and class loading issues solution proposal

2008-07-03 Thread Daniel Stoch
On Thu, Jul 3, 2008 at 2:53 PM, Edward Yakop <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 3, 2008 at 8:24 PM, Daniel Stoch <[EMAIL PROTECTED]> wrote:
>> But there is a one assumption, that bundle with Wicket classes (you
>> probably have a Wicket bundled somehow in your app, don't you? :)),
>> should have a dynamic import for all classes which can be located in
>> many different bundles:
>> DynamicImport-Package: *"
>
> I don't think you should use DynamicImport-Package.

I know it is not a very good practise, but Wicket jars/bundles already
have "DynamicImport-Package: *" ;). And sometimes is hard to avoid
this.

> In pax wicket, we creates a delegating class resolver that tracks
> IClassResolver services.

So each bundle must export its IClassResolver service? What about
bundles independent from Wicket?

--
Daniel

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



Re: Enable / Disable Container using AJAX

2008-07-03 Thread Timo Rantalaiho
On Thu, 03 Jul 2008, TH Lim wrote:
> I think it will get more complicated as I wanted the effect to kick in after
> the page is rendered. What I do now is enable/disable individual components
> in AjaxCheckbox.onUpdate(). 

You can just change that to use
block.visitChildren(FormComponent.class...
and then you don't need to list all individual components.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

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



Re: WebApplication-level styles?

2008-07-03 Thread richardwilko

We subclass Session and call set style in the constructor.



Miguel Paraz wrote:
> 
> Hi,
> Is it possible to set the style once, at the WebApplication, instead
> of getting the Session in every Page, and calling setStyle() ?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/WebApplication-level-styles--tp18258729p18258871.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



WebApplication-level styles?

2008-07-03 Thread Miguel Paraz
Hi,
Is it possible to set the style once, at the WebApplication, instead
of getting the Session in every Page, and calling setStyle() ?

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



Re: OSGi and class loading issues solution proposal

2008-07-03 Thread Edward Yakop
On Thu, Jul 3, 2008 at 8:24 PM, Daniel Stoch <[EMAIL PROTECTED]> wrote:
> But there is a one assumption, that bundle with Wicket classes (you
> probably have a Wicket bundled somehow in your app, don't you? :)),
> should have a dynamic import for all classes which can be located in
> many different bundles:
> DynamicImport-Package: *"

I don't think you should use DynamicImport-Package.
In pax wicket, we creates a delegating class resolver that tracks
IClassResolver services.

> Proposal 1 (change actual method behavior):
> Modify resolveClass() method in DefaultClassResolver as I wrote above

-1. This can be easily work around by setting the class resolver.

> Proposal 2 (do not change actual method behavior):
> Make DefaultClassResolver extensible (remove final modifier in class
> declaration) and define a new method (invent a better name for it ;)):
+1

> 2. LazyInitProxyFactory - Spring integration
> The first minor thing is a call "Class.forName(type);" in
> ProxyReplacement. Why not use IClassResolver here (and maybe in other
> places in Wicket)?
+1

> Proposal 2 (do not change actual method behavior):
> Make LazyInitProxyFactory customizable to allows using a different
> method to create proxy inside OSGi.
+1

Regards,
Edward Yakop

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



OSGi and class loading issues solution proposal

2008-07-03 Thread Daniel Stoch
Hi,

I'm using Wicket with Spring inside OSGi environment for quite a long
time and during this I had some problems related to class loading. So
below there is a small "proposal" what should be change in Wicket core
to solve these problems.

1. DefaultClassResolver - loading classes
Some time ago (april 2008) I wrote this message in
"java.io.StreamCorruptedException: invalid type code: 29" thread:

"Inside OSGI environment each bundle has its own class loader, so this
could leeds to problem when you try to use in your app a class defined
in another bundle. I've solved this problem by implementing my own
IClassResolver. The default Wicket DefaultClassResolver is a final
class, so we must make a copy of it and make a little change at the
end of resolveClass method.

The default implementation (DefaultClassResolver):

synchronized (classes)
{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
if (loader == null)
{
loader = DefaultClassResolver.class.getClassLoader();
}
clazz = loader.loadClass(classname);
}

When there is a ClassLoader attached to the current thread as context
class loader, then Wicket uses it. The problem is under OSGi, that the
related class (with classname) can be located inside another bundle
and can be loaded by another class loader, not this from current
thread. So DefaultClassResolver fails to find this class. The solution
is to try in such situation use the class loader which loads
DefaultClassResolver class (= which loads all Wicket classes). In our
CustomClassResolver this block was changed to something like this:

synchronized (classes) {
ClassLoader loader = Thread.currentThread().getContextClassLoader();
if (loader == null) {
loader = DefaultClassResolver.class.getClassLoader();
clazz = loader.loadClass(classname);
} else {
try {
clazz = loader.loadClass(classname);
} catch (ClassNotFoundException e) {
loader = DefaultClassResolver.class.getClassLoader();
clazz = loader.loadClass(classname);
}
}
}

Then in your Application class init() method add the following line:
getApplicationSettings().setClassResolver(new CustomClassResolver());

But there is a one assumption, that bundle with Wicket classes (you
probably have a Wicket bundled somehow in your app, don't you? :)),
should have a dynamic import for all classes which can be located in
many different bundles:
DynamicImport-Package: *"

Proposal 1 (change actual method behavior):
Modify resolveClass() method in DefaultClassResolver as I wrote above

Proposal 2 (do not change actual method behavior):
Make DefaultClassResolver extensible (remove final modifier in class
declaration) and define a new method (invent a better name for it ;)):

  protected Class loadClassByClassResolver(final String classname)
throws ClassNotFoundException {
ClassLoader loader = Thread.currentThread().getContextClassLoader();
if (loader == null)
{
loader = DefaultClassResolver.class.getClassLoader();
}
return loader.loadClass(classname);
  }

and call it from resolveClass(..) method in synchronized(..) block.
It allows easy extend DefaultClassResolver and implement custom class
resolving by overriding loadClassByClassResolver() method.


2. LazyInitProxyFactory - Spring integration
The first minor thing is a call "Class.forName(type);" in
ProxyReplacement. Why not use IClassResolver here (and maybe in other
places in Wicket)?

The second (major) thing is class loader issue when creating proxy
using Proxy.newProxyInstance(...) (for interfaces). The current code:

try
{
return 
Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
new Class[] { type, Serializable.class, 
ILazyInitProxy.class,
IWriteReplace.class }, 
handler);
}
catch (IllegalArgumentException e)
{
/*
 * STW: In some clustering environments it 
appears the context
classloader fails to
 * load the proxied interface (currently seen 
in BEA WLS 9.x
clusters). If this
 * happens, we can try and fall back to the 
classloader (current)
that actually
 * loaded this class.
 */
return 
Proxy.newProxyInstance(LazyInitProxyFactory.class.getClassLoader(),
new Class[] { type, Serializable.class, 
ILazyInitProxy.class,
IWriteReplace.class }, 
handler);

Re: Functional testing tools comparison

2008-07-03 Thread John Krasnay
On Thu, Jul 03, 2008 at 04:41:27AM -0700, richardwilko wrote:
> 
> hi,
> 
> I've used selenium in the past and I do like it.  However it uses domIds
> quite a bit, and as these are autogenerated by wicket they can prove
> troublesome.  For example, you might get a test working, then add a new
> component to the page, which then changes all the dom ids on the page,
> breaking all your tests.  I know that you can specify a static domId in the
> wicket code, but I would be interested to hear how other people have solved
> / got around this problem.  I had thought about using wickettester at the
> same time as selenium and using this to get the correct domids, but that
> didnt seem like a very good way of doing things.
> 
> Richard

I find that for Wicket form components the name attribute is more
predictable than the ID, and from Selenium's point-of-view they're
interchangable.  Unfortunately, Selenium IDE defaults to using the ID,
so now I tend to just write my scripts by hand while looking at the page
source.

jk

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



Re: Functional testing tools comparison

2008-07-03 Thread Frank Bille
Selenium uses xpath, so you don't have to use domid's. But if you do, the
selenium IDE is good for maintaining the tests as well. If a test fails when
UI changes it's easy to fix in the IDE.

My 2c

On Thu, Jul 3, 2008 at 1:41 PM, richardwilko <[EMAIL PROTECTED]>
wrote:

>
> hi,
>
> I've used selenium in the past and I do like it.  However it uses domIds
> quite a bit, and as these are autogenerated by wicket they can prove
> troublesome.  For example, you might get a test working, then add a new
> component to the page, which then changes all the dom ids on the page,
> breaking all your tests.  I know that you can specify a static domId in the
> wicket code, but I would be interested to hear how other people have solved
> / got around this problem.  I had thought about using wickettester at the
> same time as selenium and using this to get the correct domids, but that
> didnt seem like a very good way of doing things.
>
> Richard
> --
> View this message in context:
> http://www.nabble.com/Functional-testing-tools-comparison-tp18241663p18257390.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Functional testing tools comparison

2008-07-03 Thread richardwilko

hi,

I've used selenium in the past and I do like it.  However it uses domIds
quite a bit, and as these are autogenerated by wicket they can prove
troublesome.  For example, you might get a test working, then add a new
component to the page, which then changes all the dom ids on the page,
breaking all your tests.  I know that you can specify a static domId in the
wicket code, but I would be interested to hear how other people have solved
/ got around this problem.  I had thought about using wickettester at the
same time as selenium and using this to get the correct domids, but that
didnt seem like a very good way of doing things.

Richard
-- 
View this message in context: 
http://www.nabble.com/Functional-testing-tools-comparison-tp18241663p18257390.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



TextField in IE and Opera

2008-07-03 Thread Alexander Landsnes Keül
I'm having a wee bit of a problem getting TextFields to cooperate in our 
project. I'm baffled by the problem, because it's something that's been working 
fine for months.

 

The panel I'm working with is very a simple, a form with two text fields; 
username and password. If I submit the form in Opera it processes the input 
correctly and I can proceed with the login. If I submit with IE 7, both 
TextFields are submitted with a null value which isn't terribly useful to me.

 

The code is as follows:

 

public LoginPanel ( final String id )

  {

super(id, new ResourceModel("message.login_header"));

setOutputMarkupId(true);

 

final FeedbackPanel feedback = new FeedbackPanel("feedback");

feedback.setOutputMarkupId(true);

add(feedback);

 

final Form form = new Form("form");

form.setOutputMarkupId(true);

add(form);

 

final FormComponent username = new TextField("username", new 
Model(), String.class);

username.setLabel(new ResourceModel("label.username"));

username.setRequired(true);

form.add(username);

form.add(new SimpleFormComponentLabel("username_label", username));

 

final FormComponent password = new PasswordTextField("password", 
new Model());

password.setLabel(new ResourceModel("label.password"));

password.setRequired(true);

form.add(password);

form.add(new SimpleFormComponentLabel("password_label", password));

 

final AjaxFallbackButton submit = new AjaxFallbackButton("submit", 
form)

{

  private static final long serialVersionUID = 1L;

 

  @Override

  public void onSubmit( final AjaxRequestTarget target, final 
Form form )

  {

String user = (String) username.getConvertedInput();

String pwd = (String) password.getConvertedInput();

String abc = username.getRawInput();



loginAction(user, pwd, target);

  }

 

  @Override

  public void onError( final AjaxRequestTarget target, final 
Form form )

  {

error("BAD!");

  }

};

 

submit.setModel(new ResourceModel("button.login"));

form.add(submit);

  }

 

I've tried to create class member models for the TextFields, I've tried to 
fetch the values from the TextFields with getModelObject(), 
getModelObjectAsString(), getInput()...none of them work. I've tried to 
downgrade from wicket 1.3.4 to wicket 1.3.3, which I know worked with IE, and 
still no joy.

 

I don't think my code will help overly much, but it's worth pasting it at 
least. The panel replaces another panel when I click on an ajax link, might be 
related to that but again it's worked like this before.

 

Alex



Re: How to configure the max space used for all Session store on a WebApplication ?

2008-07-03 Thread Johan Compagner
setting the right maxSizePerPagemap is way more importand then
maxSizePerSession

just see what sizes your pages are.
Then the if they are on average (now taking a big number) 500KB then ask you
self how many pages you want
if that is 4 then you set the maxSizePerPagemap to 2MB and maxSizePerSession
to 6MB
(then you can hold max 3 pagemaps of max size)

then 1000 live sessions will result in 6.000MB is 6GByte of memory if they
all use there MAX 3 pagemap size..
In todays world thats nothing.

johan


On Thu, Jul 3, 2008 at 11:48 AM, Gerald Reinhart <[EMAIL PROTECTED]>
wrote:

>
> Use case :
>  - an application with a long session time out
>  - potentially a very important number of session
>  - disk space not huge
>
>
> The solution is perhaps to define a small maxSizePerSession on the
> DiskPageStore, and considering that if the server don't store an important
> number of version of pages for user Session is very important.
>
> But what is a small maxSizePerSession ? Considering that we use properly
> the
> LoadableDetachableModel feature not to serialize all Hibernate session
>
>
>
> (we are about to choose a web framework and I estimate potential risks to
> choose Wicket )
>
> Gerald Reinhart
>
>
> Matej Knopp-2 wrote:
> >
> > Yeah, we don't shrink the files. We can't, that's not how
> > DiskPageStore works. Anyway, what's the usecase? Are you trying to
> > suggest that you're running out of disk space? :)
> >
> > -Matej
> >
> > On Thu, Jul 3, 2008 at 10:18 AM, Johan Compagner <[EMAIL PROTECTED]>
> > wrote:
> >> that wont work.
> >>
> >> Because pages are stored in a file that will grow until max.
> >> And then it will truncate so reuse the file from the beginning
> >> So deleting 1 page in it wont result in the file being smaller.
> >>
> >> johan
> >>
> >>
> >> On Thu, Jul 3, 2008 at 10:00 AM, Gerald Reinhart <
> [EMAIL PROTECTED]>
> >> wrote:
> >>
> >>>
> >>>
> >>> Johan Compagner wrote:
> >>> >
> >>> > What can we then delete when we hit 10 sessions?? Which session or
> >>> which
> >>> > part of a session?
> >>> >
> >>>
> >>> maybe the oldest pages through all sessions.
> >>>
> >>> --
> >>> View this message in context:
> >>>
> http://www.nabble.com/How-to-configure-the-max-space-used-for-all-Session-store-on-a-WebApplication---tp18239631p18253766.html
> >>> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-configure-the-max-space-used-for-all-Session-store-on-a-WebApplication---tp18239631p18255734.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to configure the max space used for all Session store on a WebApplication ?

2008-07-03 Thread Gerald Reinhart

Use case : 
  - an application with a long session time out 
  - potentially a very important number of session
  - disk space not huge


The solution is perhaps to define a small maxSizePerSession on the
DiskPageStore, and considering that if the server don't store an important
number of version of pages for user Session is very important.

But what is a small maxSizePerSession ? Considering that we use properly the
LoadableDetachableModel feature not to serialize all Hibernate session



(we are about to choose a web framework and I estimate potential risks to
choose Wicket )

Gerald Reinhart


Matej Knopp-2 wrote:
> 
> Yeah, we don't shrink the files. We can't, that's not how
> DiskPageStore works. Anyway, what's the usecase? Are you trying to
> suggest that you're running out of disk space? :)
> 
> -Matej
> 
> On Thu, Jul 3, 2008 at 10:18 AM, Johan Compagner <[EMAIL PROTECTED]>
> wrote:
>> that wont work.
>>
>> Because pages are stored in a file that will grow until max.
>> And then it will truncate so reuse the file from the beginning
>> So deleting 1 page in it wont result in the file being smaller.
>>
>> johan
>>
>>
>> On Thu, Jul 3, 2008 at 10:00 AM, Gerald Reinhart <[EMAIL PROTECTED]>
>> wrote:
>>
>>>
>>>
>>> Johan Compagner wrote:
>>> >
>>> > What can we then delete when we hit 10 sessions?? Which session or
>>> which
>>> > part of a session?
>>> >
>>>
>>> maybe the oldest pages through all sessions.
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/How-to-configure-the-max-space-used-for-all-Session-store-on-a-WebApplication---tp18239631p18253766.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-configure-the-max-space-used-for-all-Session-store-on-a-WebApplication---tp18239631p18255734.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Enable / Disable Container using AJAX

2008-07-03 Thread TH Lim

Thanks.

I think it will get more complicated as I wanted the effect to kick in after
the page is rendered. What I do now is enable/disable individual components
in AjaxCheckbox.onUpdate(). 


Mr Mean wrote:
> 
> AFAIK there is no is such thing as isEnabledInHierarchy like there is
> for visibility.
> You can however use an IVisitor to quickly traverse all child
> components of the container and set them to enabled / disabled.
> If you do this in the onBeforeRender of the container you get pretty
> much the behavior you want.
> 
> Note that if you have a listview or some other repeater this is not
> going to work since the items in the listview are created in the
> onbeforeRender of the listview which is called after the
> onbeforerender of the container. For items of listviews you need to
> check the parent yourself in onpopulate.
> 
> Maurice
> 
> On Thu, Jul 3, 2008 at 6:53 AM, TH Lim <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I have a form with 2 address blocks where each "block" is a
>> WebMarkupContainer. The 1st block is the home address which basic the
>> block
>> no, postal code, street name etc. The 2nd block is the billing address.
>> So
>> when a user clicks on the check box stating that his home address is the
>> billing address, 2nd block will be disabled. I can do this by disabling
>> each
>> field in the 2nd "block". Is there a way to disable this by block e.g.
>>
>> form.add(new AjaxCheckBox("sameAddressForBilling")
>>{
>>protected void onUpdate(AjaxRequestTarget target)
>>{
>>/* THIS DOES NOT WORK */
>>form.replace(billingAddressBlock.setEnabled(!((Boolean)
>> getModelObject(;
>>target.addComponent(billingAddressBlock);
>>
>>}
>>});
>>
>> What am I missing here?
>>
>> TQ
>>
>> /lim/
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Enable---Disable-Container-using-AJAX-tp18251827p18251827.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Enable---Disable-Container-using-AJAX-tp18251827p18255726.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Functional testing tools comparison

2008-07-03 Thread Thomas Lutz

I've selenium tests running from maven here... basically it's easy to setup.

"Better Builds With Maven" suggests several ways to do functional tests, 
they'd prefer to put the functional "integration" tests in a separate 
module, but I had to keep them together in one module, so I followed the 
approach from Apache Shale, marking all selenium tests by putting them 
into a gui package.


Then I excluded this gui package for the test phase using:

   
   maven-surefire-plugin
   
   
   **/gui/**
   
   
   

for my default builds

Finally I created a profile in my root pom like this one 
(http://host:port/context-root to be replaced with the url where the "to 
be tested app" is deployed, that's a system property I read in my 
selenium tests).



   guiTest
   
   
   
   org.apache.maven.plugins
   maven-surefire-plugin
   
   
   surefire-it
   integration-test
   
   test
   
   
   
   none
   
   
   **/gui/**
   
   
   
   selenium.target.url
   
http://host:port/context-root

   
   
   
   
   
   
   
   org.codehaus.mojo
   selenium-maven-plugin
   
   
   pre-integration-test
   
   start-server
   
   
   true
   
   
   
  
   

   
   

So far I've not tried to integrate coverage reports, by merging e.g. the 
cobertura ser files, but that should be possible with some tricks, too.


Hope that helps,
Tom

Frank Bille schrieb:

no, I run them manually, from command line. I haven't got that thing set up,
though one of my colleagues have created something that integrated into
maven for work (I think).

We can see if selenium is the best fit for us, and then I can try to
integrate it into maven. It is doable, since we have them running at work.

Frank


On Thu, Jul 3, 2008 at 10:23 AM, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:

  

Do you have them running from maven? Could we RC them onto our build
server?

Martijn

On Thu, Jul 3, 2008 at 10:20 AM, Frank Bille <[EMAIL PROTECTED]>
wrote:


Hi,

I have a test suite for selenium for the wicket examples, which I use to
test with when releasing (or testing your release). In that way I can
quickly test on IE6, IE7 (using vmware (2 pcs unfortunatly)), Firefox
  

etc.


I can wrap them up and put them somewhere.

Frank

On Wed, Jul 2, 2008 at 6:30 PM, Martijn Dashorst <
  

[EMAIL PROTECTED]>


wrote:

  

All,

I'm trying to discover which functional testing tool suits Wicket
development best. My options are:

 - Canoo webtest
 - Selenium
 - Watir

I'd like some folks to create a couple of functional tests for our
wicket examples in one of these tools so that we get a complete
overview of all three testing platforms.

I've created one test for Canoo webtest, and I like the output of the
tool. The XML stuff is not that great though. Fortunately it also
supports groovy scripts. I intend to create some more tests and hope
that someone will be able to translate those tests to selenium and
watir so that we can compare these tools.

Anyone interested?

Martijn

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

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





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

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





  



---

Re: Functional testing tools comparison

2008-07-03 Thread Frank Bille
no, I run them manually, from command line. I haven't got that thing set up,
though one of my colleagues have created something that integrated into
maven for work (I think).

We can see if selenium is the best fit for us, and then I can try to
integrate it into maven. It is doable, since we have them running at work.

Frank


On Thu, Jul 3, 2008 at 10:23 AM, Martijn Dashorst <
[EMAIL PROTECTED]> wrote:

> Do you have them running from maven? Could we RC them onto our build
> server?
>
> Martijn
>
> On Thu, Jul 3, 2008 at 10:20 AM, Frank Bille <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > I have a test suite for selenium for the wicket examples, which I use to
> > test with when releasing (or testing your release). In that way I can
> > quickly test on IE6, IE7 (using vmware (2 pcs unfortunatly)), Firefox
> etc.
> >
> > I can wrap them up and put them somewhere.
> >
> > Frank
> >
> > On Wed, Jul 2, 2008 at 6:30 PM, Martijn Dashorst <
> [EMAIL PROTECTED]>
> > wrote:
> >
> >> All,
> >>
> >> I'm trying to discover which functional testing tool suits Wicket
> >> development best. My options are:
> >>
> >>  - Canoo webtest
> >>  - Selenium
> >>  - Watir
> >>
> >> I'd like some folks to create a couple of functional tests for our
> >> wicket examples in one of these tools so that we get a complete
> >> overview of all three testing platforms.
> >>
> >> I've created one test for Canoo webtest, and I like the output of the
> >> tool. The XML stuff is not that great though. Fortunately it also
> >> supports groovy scripts. I intend to create some more tests and hope
> >> that someone will be able to translate those tests to selenium and
> >> watir so that we can compare these tools.
> >>
> >> Anyone interested?
> >>
> >> Martijn
> >>
> >> --
> >> Become a Wicket expert, learn from the best: http://wicketinaction.com
> >> Apache Wicket 1.3.4 is released
> >> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to configure the max space used for all Session store on a WebApplication ?

2008-07-03 Thread Matej Knopp
Yeah, we don't shrink the files. We can't, that's not how
DiskPageStore works. Anyway, what's the usecase? Are you trying to
suggest that you're running out of disk space? :)

-Matej

On Thu, Jul 3, 2008 at 10:18 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> that wont work.
>
> Because pages are stored in a file that will grow until max.
> And then it will truncate so reuse the file from the beginning
> So deleting 1 page in it wont result in the file being smaller.
>
> johan
>
>
> On Thu, Jul 3, 2008 at 10:00 AM, Gerald Reinhart <[EMAIL PROTECTED]>
> wrote:
>
>>
>>
>> Johan Compagner wrote:
>> >
>> > What can we then delete when we hit 10 sessions?? Which session or which
>> > part of a session?
>> >
>>
>> maybe the oldest pages through all sessions.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-configure-the-max-space-used-for-all-Session-store-on-a-WebApplication---tp18239631p18253766.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

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



Re: generics

2008-07-03 Thread Matej Knopp
On Thu, Jul 3, 2008 at 10:02 AM, Eelco Hillenius
<[EMAIL PROTECTED]> wrote:
> On Thu, Jul 3, 2008 at 12:47 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>> Ligther? Does it meen with no Compund and ComponentAssignedModel?
>> Wouldn't that feel more like crippled?
>> The default model slot doesn't take any runtime space when you don't
>> use it, property would. And removing four methods from component will
>> hardly make it much lighter.
>
> I wasn't just thinking about models though. *I* would like us to go
> through the API when we start on 1.5 and remove anything that isn't
> necessary. Remove all the the deprecations and convenience methods
> that have (easy) alternatives. All the while keeping an easy upgrade
> path in mind of course.
Okay. Big +1 here of course.,

-Matej

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



Re: generics

2008-07-03 Thread Matej Knopp
Rofl :) I've slept like 4 hours. I wanted to +1 Eelco of course. Or
maybe that just my Ego and my subconciousness messing with me.

On Thu, Jul 3, 2008 at 10:22 AM, Martijn Dashorst
<[EMAIL PROTECTED]> wrote:
> Matej: drink some coffee, you're +1-ing yourself now :)
>
> Martijn
>
> On Thu, Jul 3, 2008 at 10:08 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>> On Thu, Jul 3, 2008 at 10:02 AM, Eelco Hillenius
>> <[EMAIL PROTECTED]> wrote:
>>> On Thu, Jul 3, 2008 at 12:47 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
 Ligther? Does it meen with no Compund and ComponentAssignedModel?
 Wouldn't that feel more like crippled?
 The default model slot doesn't take any runtime space when you don't
 use it, property would. And removing four methods from component will
 hardly make it much lighter.
>>>
>> Big +1 on that :)
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Roadmap for Wicket

2008-07-03 Thread Murat Yücel
Thanks will look it :)

2008/7/3 Frank Bille <[EMAIL PROTECTED]>:

> 1.5 wishlist in wiki:
> http://cwiki.apache.org/WICKET/wicket-15-wish-list.html
>
> Non-bug issues in JIRA:
> http://tinyurl.com/4ofab2
>
> Frank
>
>
> On Thu, Jul 3, 2008 at 9:14 AM, Murat Yücel <[EMAIL PROTECTED]>
> wrote:
>
> > Hi All
> >
> > I have been looking for a roadmap for the wicket project, but i could not
> > find anything on your homepage or on google :)...
> > Can anyone provide a link to a roadmap for wicket?
> >
> > Could be nice to see a roadmap for wicket 1.4 and wicket 1.5. What is the
> > idea behind the version? What will be included etc.
> >
> > /Murat
> >
>


Re: Functional testing tools comparison

2008-07-03 Thread Martijn Dashorst
Do you have them running from maven? Could we RC them onto our build server?

Martijn

On Thu, Jul 3, 2008 at 10:20 AM, Frank Bille <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a test suite for selenium for the wicket examples, which I use to
> test with when releasing (or testing your release). In that way I can
> quickly test on IE6, IE7 (using vmware (2 pcs unfortunatly)), Firefox etc.
>
> I can wrap them up and put them somewhere.
>
> Frank
>
> On Wed, Jul 2, 2008 at 6:30 PM, Martijn Dashorst <[EMAIL PROTECTED]>
> wrote:
>
>> All,
>>
>> I'm trying to discover which functional testing tool suits Wicket
>> development best. My options are:
>>
>>  - Canoo webtest
>>  - Selenium
>>  - Watir
>>
>> I'd like some folks to create a couple of functional tests for our
>> wicket examples in one of these tools so that we get a complete
>> overview of all three testing platforms.
>>
>> I've created one test for Canoo webtest, and I like the output of the
>> tool. The XML stuff is not that great though. Fortunately it also
>> supports groovy scripts. I intend to create some more tests and hope
>> that someone will be able to translate those tests to selenium and
>> watir so that we can compare these tools.
>>
>> Anyone interested?
>>
>> Martijn
>>
>> --
>> Become a Wicket expert, learn from the best: http://wicketinaction.com
>> Apache Wicket 1.3.4 is released
>> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>



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

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



Re: generics

2008-07-03 Thread Martijn Dashorst
Matej: drink some coffee, you're +1-ing yourself now :)

Martijn

On Thu, Jul 3, 2008 at 10:08 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 3, 2008 at 10:02 AM, Eelco Hillenius
> <[EMAIL PROTECTED]> wrote:
>> On Thu, Jul 3, 2008 at 12:47 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>>> Ligther? Does it meen with no Compund and ComponentAssignedModel?
>>> Wouldn't that feel more like crippled?
>>> The default model slot doesn't take any runtime space when you don't
>>> use it, property would. And removing four methods from component will
>>> hardly make it much lighter.
>>
> Big +1 on that :)

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

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



Re: Functional testing tools comparison

2008-07-03 Thread Frank Bille
Hi,

I have a test suite for selenium for the wicket examples, which I use to
test with when releasing (or testing your release). In that way I can
quickly test on IE6, IE7 (using vmware (2 pcs unfortunatly)), Firefox etc.

I can wrap them up and put them somewhere.

Frank

On Wed, Jul 2, 2008 at 6:30 PM, Martijn Dashorst <[EMAIL PROTECTED]>
wrote:

> All,
>
> I'm trying to discover which functional testing tool suits Wicket
> development best. My options are:
>
>  - Canoo webtest
>  - Selenium
>  - Watir
>
> I'd like some folks to create a couple of functional tests for our
> wicket examples in one of these tools so that we get a complete
> overview of all three testing platforms.
>
> I've created one test for Canoo webtest, and I like the output of the
> tool. The XML stuff is not that great though. Fortunately it also
> supports groovy scripts. I intend to create some more tests and hope
> that someone will be able to translate those tests to selenium and
> watir so that we can compare these tools.
>
> Anyone interested?
>
> Martijn
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to configure the max space used for all Session store on a WebApplication ?

2008-07-03 Thread Johan Compagner
that wont work.

Because pages are stored in a file that will grow until max.
And then it will truncate so reuse the file from the beginning
So deleting 1 page in it wont result in the file being smaller.

johan


On Thu, Jul 3, 2008 at 10:00 AM, Gerald Reinhart <[EMAIL PROTECTED]>
wrote:

>
>
> Johan Compagner wrote:
> >
> > What can we then delete when we hit 10 sessions?? Which session or which
> > part of a session?
> >
>
> maybe the oldest pages through all sessions.
>
> --
> View this message in context:
> http://www.nabble.com/How-to-configure-the-max-space-used-for-all-Session-store-on-a-WebApplication---tp18239631p18253766.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Roadmap for Wicket

2008-07-03 Thread Frank Bille
1.5 wishlist in wiki:
http://cwiki.apache.org/WICKET/wicket-15-wish-list.html

Non-bug issues in JIRA:
http://tinyurl.com/4ofab2

Frank


On Thu, Jul 3, 2008 at 9:14 AM, Murat Yücel <[EMAIL PROTECTED]> wrote:

> Hi All
>
> I have been looking for a roadmap for the wicket project, but i could not
> find anything on your homepage or on google :)...
> Can anyone provide a link to a roadmap for wicket?
>
> Could be nice to see a roadmap for wicket 1.4 and wicket 1.5. What is the
> idea behind the version? What will be included etc.
>
> /Murat
>


Re: generics

2008-07-03 Thread Matej Knopp
On Thu, Jul 3, 2008 at 10:02 AM, Eelco Hillenius
<[EMAIL PROTECTED]> wrote:
> On Thu, Jul 3, 2008 at 12:47 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>> Ligther? Does it meen with no Compund and ComponentAssignedModel?
>> Wouldn't that feel more like crippled?
>> The default model slot doesn't take any runtime space when you don't
>> use it, property would. And removing four methods from component will
>> hardly make it much lighter.
>
Big +1 on that :)

> I wasn't just thinking about models though. *I* would like us to go
> through the API when we start on 1.5 and remove anything that isn't
> necessary. Remove all the the deprecations and convenience methods
> that have (easy) alternatives. All the while keeping an easy upgrade
> path in mind of course.
>
> Of course, things like compound property models are pretty cool, and
> we should keep supporting the types of models we are supporting now.
> But maybe we can find a way to add this kind of support to components
> without needing it to be built in. Or maybe not and in the end our
> conclusion will be to stick with 1.4's model. But lets try to be
> creative before we give up on that :-)

Creative is ok for me. Destructive isn't :)
>
> We're getting a bit ahead of ourselves now though, unless we already
> want to start coding on 1.5. It is probably a better idea to finalize
> 1.4 first, and decide on what to generify by default based on the
> likeliness it will help users for this version.

Yeah, agree on this as well.

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

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



Re: generics

2008-07-03 Thread Eelco Hillenius
On Thu, Jul 3, 2008 at 12:47 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
> Ligther? Does it meen with no Compund and ComponentAssignedModel?
> Wouldn't that feel more like crippled?
> The default model slot doesn't take any runtime space when you don't
> use it, property would. And removing four methods from component will
> hardly make it much lighter.

I wasn't just thinking about models though. *I* would like us to go
through the API when we start on 1.5 and remove anything that isn't
necessary. Remove all the the deprecations and convenience methods
that have (easy) alternatives. All the while keeping an easy upgrade
path in mind of course.

Of course, things like compound property models are pretty cool, and
we should keep supporting the types of models we are supporting now.
But maybe we can find a way to add this kind of support to components
without needing it to be built in. Or maybe not and in the end our
conclusion will be to stick with 1.4's model. But lets try to be
creative before we give up on that :-)

We're getting a bit ahead of ourselves now though, unless we already
want to start coding on 1.5. It is probably a better idea to finalize
1.4 first, and decide on what to generify by default based on the
likeliness it will help users for this version.

Eelco

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



Re: How to configure the max space used for all Session store on a WebApplication ?

2008-07-03 Thread Gerald Reinhart


Johan Compagner wrote:
> 
> What can we then delete when we hit 10 sessions?? Which session or which
> part of a session?
> 

maybe the oldest pages through all sessions.

-- 
View this message in context: 
http://www.nabble.com/How-to-configure-the-max-space-used-for-all-Session-store-on-a-WebApplication---tp18239631p18253766.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: generics

2008-07-03 Thread Matej Knopp
On Thu, Jul 3, 2008 at 9:51 AM, Matej Knopp <[EMAIL PROTECTED]> wrote:
>>
>> And there is some functionality in there that Wicket might
>> be better without. For example, onModelChanged / Changing
>> things become tricky when you share the same model between
>> different instances. And when using setModelObject() with an
>> object that is equal to the current model object, but a
>> different instance (such as a Hibernate-persisted object
>> bound to the correct session), you have to either do
>> getModel().setObject() or change the model comparator.
>>
>
> setModelObject isn't the best idea IMHO. Models should support some
> kind of state change notifications, we might want to improve that for
> 1.5, though it probably wouldn't be very easy to do.
Well, we can hardly detect change of propertypromodels unless we pull
and compare the value every time...
>
> -Matej
>

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



Re: generics

2008-07-03 Thread Matej Knopp
>
> And there is some functionality in there that Wicket might
> be better without. For example, onModelChanged / Changing
> things become tricky when you share the same model between
> different instances. And when using setModelObject() with an
> object that is equal to the current model object, but a
> different instance (such as a Hibernate-persisted object
> bound to the correct session), you have to either do
> getModel().setObject() or change the model comparator.
>

setModelObject isn't the best idea IMHO. Models should support some
kind of state change notifications, we might want to improve that for
1.5, though it probably wouldn't be very easy to do.

-Matej

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



Re: generics

2008-07-03 Thread Matej Knopp
Ligther? Does it meen with no Compund and ComponentAssignedModel?
Wouldn't that feel more like crippled?
The default model slot doesn't take any runtime space when you don't
use it, property would. And removing four methods from component will
hardly make it much lighter.

-Matej

On Thu, Jul 3, 2008 at 7:13 AM, Eelco Hillenius
<[EMAIL PROTECTED]> wrote:
>> What I mean is that post-1.4 it would be good to remove the
>> defaultModel* stuff and other IModel dependencies from
>> Component, and maybe try to move towards a more case-by-case
>> model handling in generified (actually
>> typed-after-their-default-model-type) components as well.
>
> I'm very much in favor of that. If it were up to me, I would actually
> try to cut away from component (and other pivotal classes for that
> matter) as much as possible. I'd love Wicket to feel lighter and more
> pointed with 1.5 rather than heavy with convenience like it is now.
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: generics

2008-07-03 Thread Matej Knopp
Okay, long story short.

I'm gonna be -1 on removing model utility methods and default model
slot from component until you suggest a clean and transparent way to
support
- compound (inherited) models
- component assigned models
- automatic detachment

Just because you don't use these features it doesn't mean there are
not users who do.
There is convenience, removing bloat and just crippling the API. And
there's difference between these.

Don't take me wrong, I don't mind removing the *default* methods from
components, but not in a way that is going to sacrifice any of the
mentioned functionality.

On Thu, Jul 3, 2008 at 5:32 AM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
> On Wed, 02 Jul 2008, Matej Knopp wrote:
>> I still don't see what's wrong with GenericPanel. It's certainly much
>> easier to type than ModelContainingPanel.
>
> Nothing wrong with that either, it's just very generic :)
>
> There are a lot of ways of making use of generics in a
> component besides just adding the type parameter bound to
> the type parameter of the model of the component.
>
> I mean, if you have
>
> public FooPanel extends GenericPanel {
>public FooPanel(String id, IModel model, IModel> bars) {
>...
>}
> ...
> }
>
> it's not so much more generic than
>
> public FooPanel extends Panel {
>public FooPanel(String id, IModel model, IModel> bars) {
>...
>}
> ...
> }
>
>> I strongly disagree. There are good reasons for Wicket to bind model
>> and component together and I think what we have in 1.4 right now is a
>> balanced compromise.
>
> I'd be glad to hear more on this! For now, I imagine that a
> lot of stuff that the Component IModel dependency exists for
> could be done in other ways.

Sure, mind sharing how?

>
> And there is some functionality in there that Wicket might
> be better without. For example, onModelChanged / Changing
> things become tricky when you share the same model between
> different instances. And when using setModelObject() with an
> object that is equal to the current model object, but a
> different instance (such as a Hibernate-persisted object
> bound to the correct session), you have to either do
> getModel().setObject() or change the model comparator.
>
> Again, I'm just exploring, and perhaps overlooking
> something.
>
>> Also if we don't provide the convenience classes
>> people will bound to write their own (because it's the only reasonable
>> way to migrate project that already uses generics).
>
> That's true, I just thought it would be no big deal and only
> affect the earliest 1.4 adopters (or those still converting
> from 2.0 if there are any left) (sorry :)). I had in mind
> that if we then remove those convenience classes in 1.5,
> they would have to move to the user codebases anyway, but
> maybe 1.4 -> 1.5 will not be such a common migration path
> because of API breaks.
>
>> I don't buy this. Our components have a lot of methods, but most of
>> them are not part of public API. I plan to prefix those methods with a
>> common prefix for 1.5 so they don't confuse regular users. But I
>> really don't see how removing four methods (*defaultModel) improves
>> our api.
>
> It would be better (altough harder) to move responsibilities
> away from Component to other classes, which could be then
> marked as not being a part of the public API. When you do
> the rename I'll be happy to do a spike of moving some of the
> renamed stuff away from Component altogether :)

>From component where? ComponentUtil? Component has a very strong and
complicated contract. There are lot of methods in component, but there
are reasons for it. There are parts like rendering though that might
need to be cleaned up.

>
>> Models have always been conceptually bound to component. Right now the
>> problem of our API is not that we have a model slot in component. It
>> is that we have exactly one model slot. This doesn't work well for all
>> components, since some don't need model at all and some need more than
>> one.
>
> Yeah, if we cannot get rid of the default model handling
> (which I still hope to be possible), at least a more
> flexible abstraction (IModelsContainer?) might be good.
>
>> esier. Now thinking about it, the name should really suggest that
>> there is one model per component. Maybe PanelWithModel could be the
>> name after all :)
>
> PanelWithExactlyOneModelInTheDefaultSlotAndHoldingAnObjectOfTheSameTypeAsTheTypeParameterOfThisComponent
>  :)
>
> Best wishes,
> Timo
>
> --
> Timo Rantalaiho
> Reaktor Innovations Oyhttp://www.ri.fi/ >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Strange stack trace in logs

2008-07-03 Thread Martijn Dashorst
usually this is from users that copy/paste incomplete url's from other
users, or people tampering with urls

Martijn

On Thu, Jul 3, 2008 at 8:58 AM, Piller Sébastien <[EMAIL PROTECTED]> wrote:
> Nobody ever saw stack traces like this on theire logs?
>
> It's strange, I really have a lot of them... About 2MB only with things like
> that... And I haven't any idea on what's going on (I'm not able to reproduce
> it on my side)
>
> Piller Sébastien a écrit :
>>
>> Hello,
>>
>> I've put my wicket app in production for a bit more than a month now.
>> Yesterday, I tried to see what is in the logs. I see a lot of stacktrace
>> like this:
>>
>> org.apache.wicket.WicketRuntimeException: Internal error parsing
>> wicket:interface = :57:container1:link1
>>   at
>> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:583)
>>   at
>> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:554)
>>   at
>> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:199)
>>   at org.apache.wicket.Request.getRequestParameters(Request.java:171)
>>   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
>>   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316)
>>   at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>>   at
>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
>>   at
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
>>   at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>>   at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>   at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>   at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>>   at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>   at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>>   at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>>   at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>>   at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
>>   at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>>   at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>>   at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>>   at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>>   at java.lang.Thread.run(Unknown Source)
>>
>> But I'm not able to reproduce it...
>>
>> My Wicket code looks like this:
>>
>> 1- DefaultPage.java
>> public abstract class DefaultPage extends WebPage {
>>   public DefaultPage() {
>>   WebMarkupContainer container1=...;
>>   Link link1 = ...;
>>   link1.add(new Image("link1", new
>> ResourceReference(DefaultPage.class, "link1.png", getSession().getLocale(),
>> null)));
>>   }
>> }
>>
>> 2- Index.java
>> public class Index extends DefaultPage { ... }
>>
>>
>> May it be a back button issue? Must I put some code on the onBeforeRender
>> to refresh the resource references?
>>
>> Any idea are welcome ;)
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

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



Roadmap for Wicket

2008-07-03 Thread Murat Yücel
Hi All

I have been looking for a roadmap for the wicket project, but i could not
find anything on your homepage or on google :)...
Can anyone provide a link to a roadmap for wicket?

Could be nice to see a roadmap for wicket 1.4 and wicket 1.5. What is the
idea behind the version? What will be included etc.

/Murat


Re: Enable / Disable Container using AJAX

2008-07-03 Thread Maurice Marrink
AFAIK there is no is such thing as isEnabledInHierarchy like there is
for visibility.
You can however use an IVisitor to quickly traverse all child
components of the container and set them to enabled / disabled.
If you do this in the onBeforeRender of the container you get pretty
much the behavior you want.

Note that if you have a listview or some other repeater this is not
going to work since the items in the listview are created in the
onbeforeRender of the listview which is called after the
onbeforerender of the container. For items of listviews you need to
check the parent yourself in onpopulate.

Maurice

On Thu, Jul 3, 2008 at 6:53 AM, TH Lim <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a form with 2 address blocks where each "block" is a
> WebMarkupContainer. The 1st block is the home address which basic the block
> no, postal code, street name etc. The 2nd block is the billing address. So
> when a user clicks on the check box stating that his home address is the
> billing address, 2nd block will be disabled. I can do this by disabling each
> field in the 2nd "block". Is there a way to disable this by block e.g.
>
> form.add(new AjaxCheckBox("sameAddressForBilling")
>{
>protected void onUpdate(AjaxRequestTarget target)
>{
>/* THIS DOES NOT WORK */
>form.replace(billingAddressBlock.setEnabled(!((Boolean)
> getModelObject(;
>target.addComponent(billingAddressBlock);
>
>}
>});
>
> What am I missing here?
>
> TQ
>
> /lim/
>
> --
> View this message in context: 
> http://www.nabble.com/Enable---Disable-Container-using-AJAX-tp18251827p18251827.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Strange stack trace in logs

2008-07-03 Thread Piller Sébastien

Nobody ever saw stack traces like this on theire logs?

It's strange, I really have a lot of them... About 2MB only with things 
like that... And I haven't any idea on what's going on (I'm not able to 
reproduce it on my side)


Piller Sébastien a écrit :

Hello,

I've put my wicket app in production for a bit more than a month now. 
Yesterday, I tried to see what is in the logs. I see a lot of 
stacktrace like this:


org.apache.wicket.WicketRuntimeException: Internal error parsing 
wicket:interface = :57:container1:link1
   at 
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:583) 

   at 
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.addInterfaceParameters(WebRequestCodingStrategy.java:554) 

   at 
org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:199) 


   at org.apache.wicket.Request.getRequestParameters(Request.java:171)
   at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
   at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316)
   at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
   at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
   at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) 

   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) 

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) 

   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 

   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) 

   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 

   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 

   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) 

   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) 

   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) 

   at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) 

   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) 

   at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) 

   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) 


   at java.lang.Thread.run(Unknown Source)

But I'm not able to reproduce it...

My Wicket code looks like this:

1- DefaultPage.java
public abstract class DefaultPage extends WebPage {
   public DefaultPage() {
   WebMarkupContainer container1=...;
   Link link1 = ...;
   link1.add(new Image("link1", new 
ResourceReference(DefaultPage.class, "link1.png", 
getSession().getLocale(), null)));

   }
}

2- Index.java
public class Index extends DefaultPage { ... }


May it be a back button issue? Must I put some code on the 
onBeforeRender to refresh the resource references?


Any idea are welcome ;)

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





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