Wizard Custom Layout example

2009-02-12 Thread John Armstrong
Hi WicketFolk,
  Can anyone point me to a relatively complete example of an Wizard
implementation with custom layout? I'm fairly new to the framework and
this would help me out quite a bit as the default table based
structure is causing my designer to get a bit crazy..

API says :

"This default implementation should be useful for basic cases, if the
layout is exactly what you need. If you want to provide your own
layout and/ or have more or less components (e.g. you want to
additionally provide an overview component), you can override this
class and add the components you want yourself using methods like
newButtonBar(String) et-cetera. "

  If someone points me to one I'll generalize it and update the wiki
for future generations.

Thanks
John-

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



Re: Intellij Idea Plugin Bounty

2009-02-12 Thread Erik van Oosten

Matt Welch wrote:

5) Validation for wicket namespace and attributes in hTML template - In a
similar vein, I would like wicket attributes like "wicket:id" and wicket
tags like  to not show up as either errors or warnings in my
HTML templates. 
  
If you do alt-enter or right-click on such an warning, you will get the 
option to add the attributes as custom attributes. Now it will even code 
complete them for you.


Also make sure you have the Wicket DTD loaded in Intellij.

Regards,
Erik.

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


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



Re: Latest snapshot and CSSPackageResource.getHeaderContribution

2009-02-12 Thread jensiator

Of course! Thanks!

-- 
View this message in context: 
http://www.nabble.com/Latest-snapshot-and-CSSPackageResource.getHeaderContribution-tp21973733p21991737.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Latest snapshot and CSSPackageResource.getHeaderContribution

2009-02-12 Thread Igor Vaynberg
turn it off in debug settings.

-igor

On Thu, Feb 12, 2009 at 11:41 PM, jensiator  wrote:
>
> Found what was causing the problem. The latest snapshot seems to add a
> comment before the doctype tag. IE cant handle that.
> Example form my code for my LoginPage.
>
> 
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>
> What is adding the comment. Im not
> Jens
> --
> View this message in context: 
> http://www.nabble.com/Latest-snapshot-and-CSSPackageResource.getHeaderContribution-tp21973733p21991661.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Latest snapshot and CSSPackageResource.getHeaderContribution

2009-02-12 Thread jensiator

Found what was causing the problem. The latest snapshot seems to add a
comment before the doctype tag. IE cant handle that.
Example form my code for my LoginPage.


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

What is adding the comment. Im not
Jens
-- 
View this message in context: 
http://www.nabble.com/Latest-snapshot-and-CSSPackageResource.getHeaderContribution-tp21973733p21991661.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-12 Thread Thomas Mäder
I guess there are advantages to being a committer ;-) But I maintain, Wicket
is well established on the technical front, but it could use a push on the
corporate side. Of course, I'm now waiting for the inrush of offers to prove
me wrong ;-)

Thomas

On Thu, Feb 12, 2009 at 8:14 PM, Johan Compagner wrote:

> Hm no wicket jobs in switzerland? Damnn
> I am right now waiting for a plane  that will bring me again to basel
> and the bern. I guess i cant stay there much longer then i do now then
> (1.5 week) :(
> The switzerland has to come to holland. :)
>
>
-- 
Thomas Mäder
Wicket & Eclipse Consulting
www.devotek-it.ch


Re: Wicket meetup in Amsterdam news

2009-02-12 Thread Timo Rantalaiho
On Thu, 12 Feb 2009, Jan Kriesten wrote:
> If interest is there I could present something based on my 'Real World Scala 
> and
> Wicket' I held last week in London.

Yes please! I hope there will be enough registrations to our
session so we can make it.

For our schedule (arriving on Monday evening) I suppose that 
Tuesday would fit better.

Best wishes,
Timo

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

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



Adding/Replacing links in Panels

2009-02-12 Thread ashtek

Hey All,

  I apologize for the long content -
  
  I have a navigation bar on the side that contains links to add Users,
Permissions, Roles, etc... When a user clicks on a navigation link (say
Users), a Users home page is displayed that contains a link to add users,
and a list of all available users. 
  
  The link to add users is a panel that contains 
  
  
 #  Add Users  
  
  
  
  In each of the home pages I add the panel like this -
  
On the User home page I add,  add(new AddPanel("addPanel", AddPanel.USER));

On the Roles home page I add,  add(new AddPanel("addPanel",
AddPanel.ROLES));


 And this is what I have in the AddPanel.class
 
public AddPanel(String id, int addWhat) {
super(id);

switch (addWhat) {
case USER:
add(new BookmarkablePageLink("addLink", 
EditUsers.class));
case ROLES:
case PERMISSIONS:
add(new BookmarkablePageLink("addLink", 
EditPermissions.class));
default:
}


The Problem is, when I click on the Users homepage, and then I click on the
Permissions home page, I get an error saying "addLink already exists in the
markup". Is there a better way to handle links than this?   

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Adding-Replacing-links-in-Panels-tp21989041p21989041.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: question about adding "synchronized" on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread Igor Vaynberg
prove that it hurts and we will be happy to rewrite it.

-igor

On Thu, Feb 12, 2009 at 4:55 PM, ywtsang  wrote:
>
> i don't have concrete stress test results to support if this "synchronized"
> hurts the performance badly
>
> but instead i was trying to throw a question on the code to see if it is
> necessary to use "synchronized" at the case (in fact, i don't support adding
> mount paths dynamically during runtime, so it is just read-only and not
> necessary to have it synchronized)
>
> btw, i also find other places in the codes have the similar situation , e.g.
>
> WebRequestCodingStrategy#getMountEncoder
>
>
> and if there are too much unnecessary synchronized codes, i think it hurts
>
>
>
> Thomas Mäder-2 wrote:
>>
>> Root of all evil! Root of all evil! ;-)
>>
>> On Thu, Feb 12, 2009 at 6:41 PM, Johan Compagner
>> wrote:
>>
>>> And for 1.4+ we could make that map concurrent if that isnt already the
>>> case
>>>
>>>
>>>
>>
>> --
>> Thomas Mäder
>> Wicket & Eclipse Consulting
>> www.devotek-it.ch
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/question-about-adding-%22synchronized%22-on-mountsOnPath-at-WebRequestCodingStrategy-tp21970542p21988196.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: question about adding "synchronized" on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread ywtsang

i don't have concrete stress test results to support if this "synchronized"
hurts the performance badly

but instead i was trying to throw a question on the code to see if it is
necessary to use "synchronized" at the case (in fact, i don't support adding
mount paths dynamically during runtime, so it is just read-only and not
necessary to have it synchronized)

btw, i also find other places in the codes have the similar situation , e.g.

WebRequestCodingStrategy#getMountEncoder


and if there are too much unnecessary synchronized codes, i think it hurts



Thomas Mäder-2 wrote:
> 
> Root of all evil! Root of all evil! ;-)
> 
> On Thu, Feb 12, 2009 at 6:41 PM, Johan Compagner
> wrote:
> 
>> And for 1.4+ we could make that map concurrent if that isnt already the
>> case
>>
>>
>>
> 
> -- 
> Thomas Mäder
> Wicket & Eclipse Consulting
> www.devotek-it.ch
> 
> 

-- 
View this message in context: 
http://www.nabble.com/question-about-adding-%22synchronized%22-on-mountsOnPath-at-WebRequestCodingStrategy-tp21970542p21988196.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



create custom feedback panel list

2009-02-12 Thread Christoph Grün
Hello!

 

How can I create a custom ComponentFeedbackPanel so that I the html markup
is customized (without )?

 

Thanks a lot,

Christoph

 



Re: Graphs, Charts and Wicket

2009-02-12 Thread Thies Edeling

Thanks, that worked !

PY wrote:

The javascript is done in the SWFObject.

To make it work in a Ajax request you need to add :
if (AjaxRequestTarget.get() != null){
   AjaxRequestTarget.get().appendJavascript(js);
}

where js is the javascript generated .
This will make evaluate the javascript and therefore add the flash object.

-PY

Thies Edeling-2 wrote:
  

Works nicely but how to initialize the chart when the panel is loaded
through an ajax req/res ? Is there a javascript method that writes out the
Flash object tag ? That seems to be completely missing.

On Mon, Feb 2, 2009 at 10:28 AM, Maarten Bosteels
wrote:



Also have a look at
http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html

Maarten

On Thu, Jan 29, 2009 at 2:45 PM, newbieabc  wrote:

  

If you don't mind, could you post your code to display the chart you


used?
  

I was interested the gradient fill chart they offered, but am really


new
to
  

wicket and didn't understand how to add it in wicket.

Thanks!


Jurek Piasek wrote:


I have been using Amcharts

http://www.amcharts.com/

together with SWFObject

  

http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-library.html
  

Regards,
Jurek


On Sun, Nov 16, 2008 at 8:20 PM, Yazbek, Daniel (Daniel)
wrote:

  

Hi all,



I'd like to put some simple bar graphs, pie graphs and possible line
graphs into my wicket pages.



Have any of you used a good framework that you can recommend, that


also
  

plays nicely with Wicket?



Thanks!



-Daniel.







  

--
View this message in context:



http://www.nabble.com/Graphs%2C-Charts-and-Wicket-tp20532374p21727142.html
  

Sent from the Wicket - User mailing list archive at Nabble.com.


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






  



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



RE: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

2009-02-12 Thread M Goodell
Whoo-H!!! That worked. Thank you!

Should that be made more clear on the Wicket home page or did I miss something 
on the SLF4J page?

Again . . . Thank you!

M. Goodell

-Original Message-
From: Martin Voigt [mailto:martin.vo...@artnology.com] 
Sent: Thursday, February 12, 2009 3:53 PM
To: users@wicket.apache.org; li...@pdc4u.com
Subject: Re: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

It looks like your missing the slf4j-api.jar.

slf4j-log4j12-1.5.6.jar is just the glue to make slf4j use log4j.

Martin

2009/2/12 M Goodell :
> Hello,
>
>
>
> I am in the process of evaluating Wicket for an upcoming project and in the
> process of writing some proof of concept code. Or trying to anyway. The
> problem I am having is that I keep getting the exception:
>
>
>
> java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
>
> after deploying and attempting to run the application.
>
>
>
> According to the Wicket quick start all I need to do is:
>
>
>
> "You cannot use Wicket without adding an SLF4J logging implementation to
> your classpath. Most people use log4j. If you do, just include
> slf4j-log4j12.jar on your classpath to get Wicket to use log4j too. If you
> want to use commons-logging or JDK14 logging or something else, please see
> the SLF4J site for more information."
>
>
>
> The following jars are on my classpath:
>
>
>
> -  log4j-1.2.15.jar
>
> -  slf4j-log4j12-1.5.6.jar
>
> -  wicket-1.3.5.jar
>
> -  wicket-auth-roles-1.3.5.jar
>
> -  wicket-datetime-1.3.5.jar
>
> -  wicket-extensions-1.3.5.jar
>
> -  wicket-guice-1.3.5.jar
>
> -  wicket-ioc-1.3.5.jar
>
> -  wicket-jmx-1.3.5.jar
>
> -  wicket-objectsizeof-agent-1.3.5.jar
>
> -  wicket-spring-1.3.5.jar
>
> -  wicket-spring-annot-1.3.5.jar
>
>
>
> Bear in mind that this is a NetBeans 6.5 project using apache-tomcat-5.5.23
> and JDK 5
>
>
>
> Am I missing jar a jar file(s) here that is not mentioned in the docs?
>
>
>
> I have tried to find the correct jar from the SLF4J distro but still no
> luck.
>
>
>
> Any suggestions are welcome!!!
>
>
>
> Thank you!
>
>
>
> M. Goodell
>
>
>
> NetBeans stack trace:
>
>
>
> SEVERE: Exception starting filter WicketApplication
>
> java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
>
>at
> org.apache.wicket.protocol.http.WicketFilter.(WicketFilter.java:76)
>
>at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>
>at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
> sorImpl.java:39)
>
>at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
> torAccessorImpl.java:27)
>
>at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>
>at java.lang.Class.newInstance0(Class.java:350)
>
>at java.lang.Class.newInstance(Class.java:303)
>
>at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
> Config.java:208)
>
>at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
> terConfig.java:302)
>
>at
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon
> fig.java:78)
>
>at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36
> 35)
>
>at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
>
>at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
> 60)
>
>at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>
>at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>
>at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
>
>at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511)
>
>at
> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)
>
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>
>at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>
>at java.lang.reflect.Method.invoke(Method.java:585)
>
>at
> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457)
>
>at
> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:
> 213)
>
>at
> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
>
>at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer
> verInterceptor.java:815)
>
>at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
>
>at
> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397)
>
>at
> org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:815)
>
>at
> org.apache.catalina.manager.ManagerServlet.doGet

RE: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

2009-02-12 Thread Fatih Mehmet UCAR


Just add slf4j-api-1.5.0.jar or appropriate version to classpath.

-Original Message-
From: M Goodell [mailto:li...@pdc4u.com] 
Sent: 12 February 2009 22:39
To: users@wicket.apache.org
Subject: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

Hello,

 

I am in the process of evaluating Wicket for an upcoming project and in the
process of writing some proof of concept code. Or trying to anyway. The
problem I am having is that I keep getting the exception:

 

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

after deploying and attempting to run the application.

 

According to the Wicket quick start all I need to do is:

 

"You cannot use Wicket without adding an SLF4J logging implementation to
your classpath. Most people use log4j. If you do, just include
slf4j-log4j12.jar on your classpath to get Wicket to use log4j too. If you
want to use commons-logging or JDK14 logging or something else, please see
the SLF4J site for more information."

 

The following jars are on my classpath:

 

-  log4j-1.2.15.jar

-  slf4j-log4j12-1.5.6.jar

-  wicket-1.3.5.jar

-  wicket-auth-roles-1.3.5.jar

-  wicket-datetime-1.3.5.jar

-  wicket-extensions-1.3.5.jar

-  wicket-guice-1.3.5.jar

-  wicket-ioc-1.3.5.jar

-  wicket-jmx-1.3.5.jar

-  wicket-objectsizeof-agent-1.3.5.jar

-  wicket-spring-1.3.5.jar

-  wicket-spring-annot-1.3.5.jar

 

Bear in mind that this is a NetBeans 6.5 project using apache-tomcat-5.5.23
and JDK 5

 

Am I missing jar a jar file(s) here that is not mentioned in the docs?

 

I have tried to find the correct jar from the SLF4J distro but still no
luck.

 

Any suggestions are welcome!!!

 

Thank you!

 

M. Goodell

 

NetBeans stack trace:

 

SEVERE: Exception starting filter WicketApplication

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

at
org.apache.wicket.protocol.http.WicketFilter.(WicketFilter.java:76)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:494)

at java.lang.Class.newInstance0(Class.java:350)

at java.lang.Class.newInstance(Class.java:303)

at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:208)

at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:302)

at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon
fig.java:78)

at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36
35)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
60)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511)

at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457)

at
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:
213)

at
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)

at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer
verInterceptor.java:815)

at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)

at
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397)

at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:815)

at
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:344)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)

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

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:210)

at
org.apache.catalina.core.StandardContextValve.in

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

2009-02-12 Thread M Goodell
Hello,

 

I am in the process of evaluating Wicket for an upcoming project and in the
process of writing some proof of concept code. Or trying to anyway. The
problem I am having is that I keep getting the exception:

 

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

after deploying and attempting to run the application.

 

According to the Wicket quick start all I need to do is:

 

"You cannot use Wicket without adding an SLF4J logging implementation to
your classpath. Most people use log4j. If you do, just include
slf4j-log4j12.jar on your classpath to get Wicket to use log4j too. If you
want to use commons-logging or JDK14 logging or something else, please see
the SLF4J site for more information."

 

The following jars are on my classpath:

 

-  log4j-1.2.15.jar

-  slf4j-log4j12-1.5.6.jar

-  wicket-1.3.5.jar

-  wicket-auth-roles-1.3.5.jar

-  wicket-datetime-1.3.5.jar

-  wicket-extensions-1.3.5.jar

-  wicket-guice-1.3.5.jar

-  wicket-ioc-1.3.5.jar

-  wicket-jmx-1.3.5.jar

-  wicket-objectsizeof-agent-1.3.5.jar

-  wicket-spring-1.3.5.jar

-  wicket-spring-annot-1.3.5.jar

 

Bear in mind that this is a NetBeans 6.5 project using apache-tomcat-5.5.23
and JDK 5

 

Am I missing jar a jar file(s) here that is not mentioned in the docs?

 

I have tried to find the correct jar from the SLF4J distro but still no
luck.

 

Any suggestions are welcome!!!

 

Thank you!

 

M. Goodell

 

NetBeans stack trace:

 

SEVERE: Exception starting filter WicketApplication

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

at
org.apache.wicket.protocol.http.WicketFilter.(WicketFilter.java:76)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:494)

at java.lang.Class.newInstance0(Class.java:350)

at java.lang.Class.newInstance(Class.java:303)

at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:208)

at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:302)

at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon
fig.java:78)

at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36
35)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
60)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511)

at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457)

at
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:
213)

at
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)

at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer
verInterceptor.java:815)

at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)

at
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397)

at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:815)

at
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:344)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)

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

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:210)

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

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:525)

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

at
org.apache.catalina.v

Correct way to deal with serialization and casting

2009-02-12 Thread pieter claassen
Just to make sure I understand this correctly.
1. Line 2:  By storing an IModel mywebmodel that nulls the object reference
onDetach(), on my webpage, is ok for serialiazation?
2. Line 8: When I cast the IModel to MyObject, is there a way to make this
more safe at compile time?
3. Line 8: object is a database object in a field on MyObject. The fact that
I assign a reference to it in a local variable, does that mean this object
is going to be serialized with the page? What is actually being serialized
(the java, the html, bytecode?)
4. Line 9: Rather than call EditWebPage with a generic IModel and do the
runtime cast thing, I subclassed IModel into a number of webmodels such as
ObjectModel implements IModel. This creates more programming work but at
least provides some type safety during compile time. Is this the recommended
way to go or is there a better way?


1  public class MyWebPage extends WebPage{
2  private final IModel mywebmodel;
3  public MyWebPage(IModel model){
4   mywebmodel=model;
5   setModel(new CompoundPropertyModel(mywebmodel);
6   add(new Link("edit"){
7public void onClick(){
8 MyObject object=(MyObject) mywebmodel.getModelObject().getChild();
9 setResponsePage(new EditWebPage(new IModel(object)));
10}
11  }
12}
13}


Re: How can I clear the value of an AutoCompleteTextField

2009-02-12 Thread Azzeddine Daddah
This is what I've till now. Clearing the text field does not work:
private void addTagsPart(final Recipe recipe) {
final WebMarkupContainer tagsContainer = new
WebMarkupContainer("tagsContainer");
final TagsAutoCompleteTextField tagsTextfield = new
TagsAutoCompleteTextField("tags", new Model());

add(tagsTextfield);
tagsTextfield.add(new AjaxFormComponentUpdatingBehavior("onchange")
{
@Override
protected void onUpdate(AjaxRequestTarget target) {
String inputValue = tagsTextfield.getValue();
if (StringUtils.isNotBlank(inputValue)) {
String[] splittedInputValues =
StringUtils.split(inputValue, ",");
for (String value : splittedInputValues) {
recipe.addTag(new Tag(value));
}
}
}
});
add(new IndicatingAjaxLink("addTagLink") {
@Override
public void onClick(AjaxRequestTarget target) {
target.addComponent(tagsContainer);

 target.appendJavascript(String.format("document.getElementById(%s).value =
''", tagsTextfield.getMarkupId()));
target.appendJavascript("new Effect.Shake($('" +
tagsContainer.getMarkupId() + "'));");
}
});
tagsContainer.add(new ListView("tags", new
PropertyModel>(recipe, "tags")) {
@Override
protected void populateItem(ListItem item) {
Tag tag = item.getModelObject();
item.add(new Label("tag", tag.getName()));
}
});

tagsContainer.setOutputMarkupId(true);
add(tagsContainer);
}

...

private class TagsAutoCompleteTextField extends AutoCompleteTextField {
public TagsAutoCompleteTextField(String id, final IModel model)
{
super(id, model, new AbstractAutoCompleteTextRenderer() {
@Override
protected String getTextValue(Tag tag) {
return tag.getName();
}
});
}

@SuppressWarnings("unchecked")
@Override
protected Iterator getChoices(String input) {
if (StringUtils.isBlank(input)) return
Collections.EMPTY_LIST.iterator();
List choices = new ArrayList(10);
List tags =
RecipeService.getInstance().getAllPersistentTags();

for (Tag tag : tags) {
if
(tag.getName().toUpperCase().startsWith(input.toUpperCase())) {
choices.add(tag);
if (choices.size() == 10) break;
}
}

return choices.iterator();
}

}

Regards,

Hbiloo


On Thu, Feb 12, 2009 at 5:00 PM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> If you copy-paste your code here we can probably dig into it better  ...
>
> **
> Martin
>
> 2009/2/12 Azzeddine Daddah :
> > Thanks guys for the quick replay.
> > Martin: What I want to do is to select a value from the auto complete
> text
> > field, and when clicking the "Add" button, the selected value should be
> > added to the tagsContainer (which is in fact a div that wraps the added
> > values) and cleared from the text field.
> >
> > Luca: I've tried your suggestion but it didn't help. I've also tried to
> > clear the text field using Javascript
> >
> target.appendJavascript(String.format("document.getElementById('%s').value =
> > ''", auto.getOutputMarkupId()));
> > but it also didn't work.
> >
> > Are there any other suggestions ways to implement this?
> >
> >
> >
> > Kind Regards
> >
> > Hbiloo
> >
> >
> >
> >
> >
> > On Thu, Feb 12, 2009 at 11:24 AM, Martin Makundi <
> > martin.maku...@koodaripalvelut.com> wrote:
> >
> >> Also depending on your situation, clearInput might be necessary?
> >>
> >> **
> >> Martin
> >>
> >> 2009/2/12 Luca Provenzani :
> >> > i think you can put the field of the model/bean of the form to empty
> and
> >> > then call target.addComponet(tagsContainer);
> >> > what kind of effect do you want? If you need to call javascript you
> can
> >> use
> >> > target.appendJavaScript()...
> >> >
> >> > Luca
> >> >
> >> > 2009/2/12 Azzeddine Daddah 
> >> >
> >> >> Hello everyone,
> >> >>
> >> >> Could someone please tell me how I can clear the selected value of an
> >> >> AutoCompleteTextField. I've an AutoCompleteTextField and a link which
> >> >> should
> >> >> clear the value of the text field after clicking it. I would also do
> >> some
> >> >> effects after clearing this value. Below my code:
> >> >>
> >> >> final AutoCompleteTextField auto = new
> >> >> AutoCompleteTextField("auto", new Model())
> >> >> ...
> >> >> form.add(auto);
> >> >>
> >> >> form.add(new IndicatingAjaxLink("addLink", new
> >> >> Model("Add"))
> >> >> {
> >> >>@Override
> >> >>public void onClick(AjaxRequestTarget target) {
> >> >>String inputValue = auto.getValue();
> >> >>auto.cle

Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-12 Thread Igor Vaynberg
we like the agility that the independence from any sort of a standard offers us.

-igor

On Thu, Feb 12, 2009 at 12:01 PM, Hoover, William  wrote:
> Judging by the responses (or the lack thereof), It seems as though there 
> isn't enough support from the Wicket community to push for something like 
> this :(
>
> -Original Message-
> From: tomlist0...@gmail.com [mailto:tomlist0...@gmail.com] On Behalf Of 
> Thomas Mäder
> Sent: Thursday, February 12, 2009 12:57 PM
> To: users@wicket.apache.org
> Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam
>
> I totally agree that the JSR process is horrid. However, Wicket could really 
> use some more corporate credibility (which a JSR would provide).
> The problem, I guess is that there are simply no corporate interests behind 
> Wicket that would push the agenda. What wicket need is some evangelism, but I 
> guess all the core people have real jobs. What we need is less talks titled 
> "why wicket is cool" and more "cut your development costs in two with 
> Wicket". From experience, I am totally convinced that you can save 50% off 
> your development costs if you switch to wicket (from just about any other 
> framework), however, I've yet to find a contracting job here in Zürich where 
> wicket is asked for (it's JSF, or even Struts).
>
> Thomas
>
> On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner wrote:
>
>> And then come into the horrible voting/administive stuff? Long Release
>> cycles that are controlled, features that are discussed over and over.
>>
>> Hmm
>>
>> On 12/02/2009, Hoover, William  wrote:
>> > Just out of curiosity... Are there any plans to push a JSR that
>> > Wicket could follow. I think there would be a lot more acceptance of
>> > Wicket if this was to happen :o)
>> >
>> > -Original Message-
>> > From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com]
>> > On Behalf Of Martijn Dashorst
>> > Sent: Wednesday, February 11, 2009 5:33 PM
>> > To: users@wicket.apache.org
>> > Subject: Wicket at ApacheCon EU'09 in Amsterdam
>> >
>> > We're happy to announce a lot of Wicket involvement at the upcoming
>> > ApacheCon in Amsterdam (23-27 March 2009)
>> >
>> > First of all we have 2 training sessions available:
>> >  - Introduction to Wicket by Martijn Dashorst on Mon 23 March
>> > (http://tinyurl.com/aceu09wicket1)
>> >  - Behavior-Driving Your Apache Wicket Application by Timo
>> > Rantalaiho on Tue 24 March (http://tinyurl.com/aceu09wicket2)
>> >
>> > Both courses are hosted by core members. Martijn has co-authored
>> > Wicket in Action and Timo has been involved with WicketTester and
>> > JDave. There is no better team to get you and your team up to speed
>> > with the finest Java web framework available and start cranking out
>> > fully tested applications.
>> >
>> > Martijn will also present Wicket in Action during the normal
>> > conference days. A quick introduction to Wicket's core features in just 
>> > one hour.
>> > But attending the conference will give you much more:
>> > over 60 sessions covering your favorite Apache projects.
>> >
>> > Amsterdam is great, but Wicket meetups in Amsterdam are even better!
>> > We're attempting to schedule a Wicket meetup during the conference
>> > at the conference floor. Details will follow soon.
>> >
>> > Read more about ApacheCon EU 2009 here:
>> > http://www.eu.apachecon.com/c/aceu2009/
>> >
>> > See you in Amsterdam!
>> >
>> > Martijn
>> >
>> > 
>> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>> >
>> > 
>> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Thomas Mäder
> Wicket & Eclipse Consulting
> www.devotek-it.ch
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: HTML can't reference a component (Label) multiple times?

2009-02-12 Thread Martin Makundi
Fragment can be used... won't reduce your markup, though.

**
Martin

2009/2/12 James Carman :
> Use a repeater?
>
> On Thu, Feb 12, 2009 at 2:54 PM, Phil Grimm  wrote:
>> Guys,
>>
>> If I need to reference a Label multiple times on the page.
>> Is there a better way than creating multiple redundant but distinct labels?
>>
>> Is this the only option?
>>
>> add(new Label("authorName1"));
>> add(new Label("authorName2"));
>> add(new Label("authorName3"));
>>
>> 
>> 
>> 
>>
>> This (non-one-to-one) usage...
>>
>> add(new Label("authorName"));
>>
>> 
>> 
>>
>> ... causes error:
>>
>> WicketMessage: The component [Component id = author.name] has the same
>> wicket:id as another component already added at the same level
>>
>>
>> Phil
>>
>> --
>> Phil Grimm
>> Mobile: (858) 335-3426
>> Skype: philgrimm336
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: HTML can't reference a component (Label) multiple times?

2009-02-12 Thread James Carman
Use a repeater?

On Thu, Feb 12, 2009 at 2:54 PM, Phil Grimm  wrote:
> Guys,
>
> If I need to reference a Label multiple times on the page.
> Is there a better way than creating multiple redundant but distinct labels?
>
> Is this the only option?
>
> add(new Label("authorName1"));
> add(new Label("authorName2"));
> add(new Label("authorName3"));
>
> 
> 
> 
>
> This (non-one-to-one) usage...
>
> add(new Label("authorName"));
>
> 
> 
>
> ... causes error:
>
> WicketMessage: The component [Component id = author.name] has the same
> wicket:id as another component already added at the same level
>
>
> Phil
>
> --
> Phil Grimm
> Mobile: (858) 335-3426
> Skype: philgrimm336
>

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



RE: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-12 Thread Hoover, William
Judging by the responses (or the lack thereof), It seems as though there isn't 
enough support from the Wicket community to push for something like this :(

-Original Message-
From: tomlist0...@gmail.com [mailto:tomlist0...@gmail.com] On Behalf Of Thomas 
Mäder
Sent: Thursday, February 12, 2009 12:57 PM
To: users@wicket.apache.org
Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam

I totally agree that the JSR process is horrid. However, Wicket could really 
use some more corporate credibility (which a JSR would provide).
The problem, I guess is that there are simply no corporate interests behind 
Wicket that would push the agenda. What wicket need is some evangelism, but I 
guess all the core people have real jobs. What we need is less talks titled 
"why wicket is cool" and more "cut your development costs in two with Wicket". 
From experience, I am totally convinced that you can save 50% off your 
development costs if you switch to wicket (from just about any other 
framework), however, I've yet to find a contracting job here in Zürich where 
wicket is asked for (it's JSF, or even Struts).

Thomas

On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner wrote:

> And then come into the horrible voting/administive stuff? Long Release 
> cycles that are controlled, features that are discussed over and over.
>
> Hmm
>
> On 12/02/2009, Hoover, William  wrote:
> > Just out of curiosity... Are there any plans to push a JSR that 
> > Wicket could follow. I think there would be a lot more acceptance of 
> > Wicket if this was to happen :o)
> >
> > -Original Message-
> > From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] 
> > On Behalf Of Martijn Dashorst
> > Sent: Wednesday, February 11, 2009 5:33 PM
> > To: users@wicket.apache.org
> > Subject: Wicket at ApacheCon EU'09 in Amsterdam
> >
> > We're happy to announce a lot of Wicket involvement at the upcoming 
> > ApacheCon in Amsterdam (23-27 March 2009)
> >
> > First of all we have 2 training sessions available:
> >  - Introduction to Wicket by Martijn Dashorst on Mon 23 March
> > (http://tinyurl.com/aceu09wicket1)
> >  - Behavior-Driving Your Apache Wicket Application by Timo 
> > Rantalaiho on Tue 24 March (http://tinyurl.com/aceu09wicket2)
> >
> > Both courses are hosted by core members. Martijn has co-authored 
> > Wicket in Action and Timo has been involved with WicketTester and 
> > JDave. There is no better team to get you and your team up to speed 
> > with the finest Java web framework available and start cranking out 
> > fully tested applications.
> >
> > Martijn will also present Wicket in Action during the normal 
> > conference days. A quick introduction to Wicket's core features in just one 
> > hour.
> > But attending the conference will give you much more:
> > over 60 sessions covering your favorite Apache projects.
> >
> > Amsterdam is great, but Wicket meetups in Amsterdam are even better!
> > We're attempting to schedule a Wicket meetup during the conference 
> > at the conference floor. Details will follow soon.
> >
> > Read more about ApacheCon EU 2009 here:
> > http://www.eu.apachecon.com/c/aceu2009/
> >
> > See you in Amsterdam!
> >
> > Martijn
> >
> > 
> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> >
> > 
> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


--
Thomas Mäder
Wicket & Eclipse Consulting
www.devotek-it.ch


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



HTML can't reference a component (Label) multiple times?

2009-02-12 Thread Phil Grimm
Guys,

If I need to reference a Label multiple times on the page.
Is there a better way than creating multiple redundant but distinct labels?

Is this the only option?

add(new Label("authorName1"));
add(new Label("authorName2"));
add(new Label("authorName3"));





This (non-one-to-one) usage...

add(new Label("authorName"));




... causes error:

WicketMessage: The component [Component id = author.name] has the same
wicket:id as another component already added at the same level


Phil

-- 
Phil Grimm
Mobile: (858) 335-3426
Skype: philgrimm336


Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-12 Thread Johan Compagner
Hm no wicket jobs in switzerland? Damnn
I am right now waiting for a plane  that will bring me again to basel
and the bern. I guess i cant stay there much longer then i do now then
(1.5 week) :(
The switzerland has to come to holland. :)



On 12/02/2009, Thomas Mäder  wrote:
> I totally agree that the JSR process is horrid. However, Wicket could really
> use some more corporate credibility (which a JSR would provide).
> The problem, I guess is that there are simply no corporate interests behind
> Wicket that would push the agenda. What wicket need is some evangelism, but
> I guess all the core people have real jobs. What we need is less talks
> titled "why wicket is cool" and more "cut your development costs in two with
> Wicket". From experience, I am totally convinced that you can save 50% off
> your development costs if you switch to wicket (from just about any other
> framework), however, I've yet to find a contracting job here in Zürich where
> wicket is asked for (it's JSF, or even Struts).
>
> Thomas
>
> On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner
> wrote:
>
>> And then come into the horrible voting/administive stuff? Long Release
>> cycles that are controlled, features that are discussed over and over.
>>
>> Hmm
>>
>> On 12/02/2009, Hoover, William  wrote:
>> > Just out of curiosity... Are there any plans to push a JSR that Wicket
>> > could follow. I think there would be a lot more acceptance of Wicket if
>> > this was to happen :o)
>> >
>> > -Original Message-
>> > From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On
>> > Behalf Of Martijn Dashorst
>> > Sent: Wednesday, February 11, 2009 5:33 PM
>> > To: users@wicket.apache.org
>> > Subject: Wicket at ApacheCon EU'09 in Amsterdam
>> >
>> > We're happy to announce a lot of Wicket involvement at the upcoming
>> > ApacheCon in Amsterdam (23-27 March 2009)
>> >
>> > First of all we have 2 training sessions available:
>> >  - Introduction to Wicket by Martijn Dashorst on Mon 23 March
>> > (http://tinyurl.com/aceu09wicket1)
>> >  - Behavior-Driving Your Apache Wicket Application by Timo Rantalaiho on
>> > Tue 24 March (http://tinyurl.com/aceu09wicket2)
>> >
>> > Both courses are hosted by core members. Martijn has co-authored Wicket
>> > in Action and Timo has been involved with WicketTester and JDave. There
>> > is no better team to get you and your team up to speed with the finest
>> > Java web framework available and start cranking out fully tested
>> > applications.
>> >
>> > Martijn will also present Wicket in Action during the normal conference
>> > days. A quick introduction to Wicket's core features in just one hour.
>> > But attending the conference will give you much more:
>> > over 60 sessions covering your favorite Apache projects.
>> >
>> > Amsterdam is great, but Wicket meetups in Amsterdam are even better!
>> > We're attempting to schedule a Wicket meetup during the conference at
>> > the conference floor. Details will follow soon.
>> >
>> > Read more about ApacheCon EU 2009 here:
>> > http://www.eu.apachecon.com/c/aceu2009/
>> >
>> > See you in Amsterdam!
>> >
>> > Martijn
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Thomas Mäder
> Wicket & Eclipse Consulting
> www.devotek-it.ch
>

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



Re: Testing DataView

2009-02-12 Thread Erick Fleming
I was able to get my tests to work.  Timo's advice of using
HttpSessionStore, led me to realize that WicketTester and, more importantly,
DummyApplication (which I was not using since I'm not using JUnit) seem to
take care of the mocking serialization problems.

I decided to use those built-in classes for now, until I can create a custom
ones specifically for use with Specs (the testing framework i'm using).

I'm not seeing the 2.7.3 serialization issue as of now, but it's good to now
for future problems.

By the way, I think the hardest part about Unit testing and TDD specifically
is that, if you don't know your frameworks really well (I'm new to Wicket),
then you constantly run into brick walls.  It's kind of a chicken before the
egg problem.


Re: InstanceAlreadyExistsException when Redeploying in Websphere

2009-02-12 Thread shetc

Bump

This issue still exits -- should I open a JIRA?
-- 
View this message in context: 
http://www.nabble.com/InstanceAlreadyExistsException-when-Redeploying-in-Websphere-tp15617038p21982323.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??

2009-02-12 Thread Martin Makundi
Hi!

My problem:
1. I have a form
2. The form has checkboxes
3. The form has other fields

The checkboxes are used to disable specific fields in the form.
Whenever the user changes the checkbox state, I want to use
AjaxEventBehavior or similar to update the form components dependent
on the particular checkbox (just to set them enabled/disabled).

The problem is that OnChangeAjaxBehavior does not submit the form
component values to the server so their original model values
displayed, which does not look cool if the user just wrote something
there... I tried using AjaxFormSubmitBehavior but that ended up
clearing the fields completely after toggling them into disabled state
and back.

The funny thing, again, is that I can get almost what I want by using
"wantOnSelectionChangedNotifications()=true". But that's not ajax, it
scrolls my page ;) How to make it ajax on a checkbox?

**
Martin

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



Re: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

2009-02-12 Thread Sergio García



igor.vaynberg wrote:
> 
> create a quickstart and attach it to a jira issue so we can take a look.
> 
> -igor
> 
> 
> 

I've created a quickstart with page and panel code.+
https://issues.apache.org/jira/browse/WICKET-2100
https://issues.apache.org/jira/browse/WICKET-2100 


Thankyou so much
-- 
View this message in context: 
http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21981558.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: question about adding "synchronized" on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread Thomas Mäder
Root of all evil! Root of all evil! ;-)

On Thu, Feb 12, 2009 at 6:41 PM, Johan Compagner wrote:

> And for 1.4+ we could make that map concurrent if that isnt already the
> case
>
>
>

-- 
Thomas Mäder
Wicket & Eclipse Consulting
www.devotek-it.ch


Re: Nested Label Components

2009-02-12 Thread Thomas Mäder
No, you cannot attach a label component to the li item and then nest another
labe inside. How does your Java code look?

Thomas

On Thu, Feb 12, 2009 at 6:30 PM, Matías Tito  wrote:

> I need to use span tag inside a li tag, both has a label componente.
> Then I get "Expected close tag for ' 
>GRUPO
>( #
>  Participantes)
>
>
>
> On Thu, 2009-02-12 at 18:22 +0100, Thomas Mäder wrote:
> > You cannot nest components inside labels. What are you trying to achieve?
> >
> > Thomas
> >
> > On Thu, Feb 12, 2009 at 5:02 PM, Matías Tito 
> wrote:
> >
> > > How can I nested label components?
> > >
> > > WicketMessage: Expected close tag for ' > > wicket:id="groupDescription">' Possible attempt to embed component(s)
> > > '' in the body of this component which
> > > discards its body
> > >
> > > 
> > > 
> > >
> > >jphernandez
> > >
> > >
> > >
> > >   Mi perfil | 
> > >   Salir
> > >
> > >
> > >
> > >
> > >
> > ># Notas / #Debates
> > ># puntos en este torneo
> > ># es mi posición en el
> > >ranking de este torneo
> > >
> > >Mis
> Grupos y
> > > Foros
> > >
> > >GRUPO
> > >( #
> > > Participantes)
> > >
> > >
> > >
> > >
> > >
> > >
> > > 
> > > 
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Thomas Mäder
Wicket & Eclipse Consulting
www.devotek-it.ch


Re: Model on Select

2009-02-12 Thread Mathias P.W Nilsson

How is this possible.

The first time my web container is loaded and I access the page all
dropdowns and Select are set according to the values that my class has( new
CompoundPropertyModel( new Model( myClass ) ) ). When returning to this page
a second time the Select is not set. I have tried all that I can come up
with. 

Any pointers? 
-- 
View this message in context: 
http://www.nabble.com/Model-on-Select-tp21973981p21981372.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-12 Thread Thomas Mäder
I totally agree that the JSR process is horrid. However, Wicket could really
use some more corporate credibility (which a JSR would provide).
The problem, I guess is that there are simply no corporate interests behind
Wicket that would push the agenda. What wicket need is some evangelism, but
I guess all the core people have real jobs. What we need is less talks
titled "why wicket is cool" and more "cut your development costs in two with
Wicket". From experience, I am totally convinced that you can save 50% off
your development costs if you switch to wicket (from just about any other
framework), however, I've yet to find a contracting job here in Zürich where
wicket is asked for (it's JSF, or even Struts).

Thomas

On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner wrote:

> And then come into the horrible voting/administive stuff? Long Release
> cycles that are controlled, features that are discussed over and over.
>
> Hmm
>
> On 12/02/2009, Hoover, William  wrote:
> > Just out of curiosity... Are there any plans to push a JSR that Wicket
> > could follow. I think there would be a lot more acceptance of Wicket if
> > this was to happen :o)
> >
> > -Original Message-
> > From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On
> > Behalf Of Martijn Dashorst
> > Sent: Wednesday, February 11, 2009 5:33 PM
> > To: users@wicket.apache.org
> > Subject: Wicket at ApacheCon EU'09 in Amsterdam
> >
> > We're happy to announce a lot of Wicket involvement at the upcoming
> > ApacheCon in Amsterdam (23-27 March 2009)
> >
> > First of all we have 2 training sessions available:
> >  - Introduction to Wicket by Martijn Dashorst on Mon 23 March
> > (http://tinyurl.com/aceu09wicket1)
> >  - Behavior-Driving Your Apache Wicket Application by Timo Rantalaiho on
> > Tue 24 March (http://tinyurl.com/aceu09wicket2)
> >
> > Both courses are hosted by core members. Martijn has co-authored Wicket
> > in Action and Timo has been involved with WicketTester and JDave. There
> > is no better team to get you and your team up to speed with the finest
> > Java web framework available and start cranking out fully tested
> > applications.
> >
> > Martijn will also present Wicket in Action during the normal conference
> > days. A quick introduction to Wicket's core features in just one hour.
> > But attending the conference will give you much more:
> > over 60 sessions covering your favorite Apache projects.
> >
> > Amsterdam is great, but Wicket meetups in Amsterdam are even better!
> > We're attempting to schedule a Wicket meetup during the conference at
> > the conference floor. Details will follow soon.
> >
> > Read more about ApacheCon EU 2009 here:
> > http://www.eu.apachecon.com/c/aceu2009/
> >
> > See you in Amsterdam!
> >
> > Martijn
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Thomas Mäder
Wicket & Eclipse Consulting
www.devotek-it.ch


Re: AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-12 Thread Adriano dos Santos Fernandes

Thomas Mäder escreveu:

Why don't you put a breakpoint in the constructor and see let us know what
you find out? Is the constructor called through the same stack trace twice?
The constructor is called by the filter, it's another request from the 
browser. The first URL is the entered one, and the second has a new 
parameter about wicket pagemap. The page is a bookmarkable.


I haven't succeed to debug with Firebug.


Adriano


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



Re: question about adding "synchronized" on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread Johan Compagner
And for 1.4+ we could make that map concurrent if that isnt already the case

On 12/02/2009, Thomas Mäder  wrote:
> The synchronizationn is around a HashMap lookup. Considering how much longer
> it takes to actually process a request, I very much doubt that there is much
> contention. Modern VM's are MUCH better at handling slight contention (like
> 2-4 contending threads) than older VMs. Don't worry!
>
> Thomas
>
> On Thu, Feb 12, 2009 at 7:12 AM, ywtsang  wrote:
>
>>
>> at 1.3.5
>>
>> class: org.apache.wicket.protocol.http.request.WebRequestCodingStrategy
>> method: urlCodingStrategyForPath
>>
>> the variable "mountsOnPath" is synchronized
>> is this necessary?
>>
>> because the WebRequestCodingStrategy is initialized once by "request cycle
>> processor", which in turns is shared by all requests (i read this at
>> Wicket
>> In Action)
>>
>> so synchornized the "mountsOnPath" can produce a big lock contention
>> problem
>> if we have many requests at the same time?
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/question-about-adding-%22synchronized%22-on-mountsOnPath-at-WebRequestCodingStrategy-tp21970542p21970542.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Thomas Mäder
> Wicket & Eclipse Consulting
> www.devotek-it.ch
>

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



Re: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-12 Thread Johan Compagner
And then come into the horrible voting/administive stuff? Long Release
cycles that are controlled, features that are discussed over and over.

Hmm

On 12/02/2009, Hoover, William  wrote:
> Just out of curiosity... Are there any plans to push a JSR that Wicket
> could follow. I think there would be a lot more acceptance of Wicket if
> this was to happen :o)
>
> -Original Message-
> From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On
> Behalf Of Martijn Dashorst
> Sent: Wednesday, February 11, 2009 5:33 PM
> To: users@wicket.apache.org
> Subject: Wicket at ApacheCon EU'09 in Amsterdam
>
> We're happy to announce a lot of Wicket involvement at the upcoming
> ApacheCon in Amsterdam (23-27 March 2009)
>
> First of all we have 2 training sessions available:
>  - Introduction to Wicket by Martijn Dashorst on Mon 23 March
> (http://tinyurl.com/aceu09wicket1)
>  - Behavior-Driving Your Apache Wicket Application by Timo Rantalaiho on
> Tue 24 March (http://tinyurl.com/aceu09wicket2)
>
> Both courses are hosted by core members. Martijn has co-authored Wicket
> in Action and Timo has been involved with WicketTester and JDave. There
> is no better team to get you and your team up to speed with the finest
> Java web framework available and start cranking out fully tested
> applications.
>
> Martijn will also present Wicket in Action during the normal conference
> days. A quick introduction to Wicket's core features in just one hour.
> But attending the conference will give you much more:
> over 60 sessions covering your favorite Apache projects.
>
> Amsterdam is great, but Wicket meetups in Amsterdam are even better!
> We're attempting to schedule a Wicket meetup during the conference at
> the conference floor. Details will follow soon.
>
> Read more about ApacheCon EU 2009 here:
> http://www.eu.apachecon.com/c/aceu2009/
>
> See you in Amsterdam!
>
> Martijn
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-12 Thread Thomas Mäder
Why don't you put a breakpoint in the constructor and see let us know what
you find out? Is the constructor called through the same stack trace twice?

Thomas

On Thu, Feb 12, 2009 at 5:50 PM, Adriano dos Santos Fernandes <
adrian...@gmail.com> wrote:

> I've a simple page as below, and when I call it from Firefox, ReportPage
> constructor is almost always called two times. Some times it's correctly
> called once. What may be wrong?
>
> public class ReportPage extends WebPage
> {
>   private static final long serialVersionUID = 1L;
>   private static final int CHECK_INTERVAL = 2;// segundos
>
>   public ReportPage(PageParameters parameters)
>   {
>   super(parameters);
>
>   WebMarkupContainer update = new WebMarkupContainer("update");
>   add(update);
>   update.add(new
> AbstractAjaxTimerBehavior(Duration.seconds(CHECK_INTERVAL)) {
>   private static final long serialVersionUID = 1L;
>
>   @Override
>   protected void onTimer(AjaxRequestTarget target)
>   {
>   }
>   });
>   }
> }
>
>
> Adriano
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Thomas Mäder
Wicket & Eclipse Consulting
www.devotek-it.ch


Re: Nested Label Components

2009-02-12 Thread Matías Tito
I need to use span tag inside a li tag, both has a label componente.
Then I get "Expected close tag for '
GRUPO
( #
 Participantes)



On Thu, 2009-02-12 at 18:22 +0100, Thomas Mäder wrote:
> You cannot nest components inside labels. What are you trying to achieve?
> 
> Thomas
> 
> On Thu, Feb 12, 2009 at 5:02 PM, Matías Tito  wrote:
> 
> > How can I nested label components?
> >
> > WicketMessage: Expected close tag for ' > wicket:id="groupDescription">' Possible attempt to embed component(s)
> > '' in the body of this component which
> > discards its body
> >
> > 
> > 
> >
> >jphernandez
> >
> >
> >
> >   Mi perfil | 
> >   Salir
> >
> >
> >
> >
> >
> ># Notas / #Debates
> ># puntos en este torneo
> ># es mi posición en el
> >ranking de este torneo
> >
> >Mis Grupos y
> > Foros
> >
> >GRUPO
> >( #
> > Participantes)
> >
> >
> >
> >
> >
> >
> > 
> > 
> >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> 
> 


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



Re: Nested Label Components

2009-02-12 Thread Thomas Mäder
You cannot nest components inside labels. What are you trying to achieve?

Thomas

On Thu, Feb 12, 2009 at 5:02 PM, Matías Tito  wrote:

> How can I nested label components?
>
> WicketMessage: Expected close tag for ' wicket:id="groupDescription">' Possible attempt to embed component(s)
> '' in the body of this component which
> discards its body
>
> 
> 
>
>jphernandez
>
>
>
>   Mi perfil | 
>   Salir
>
>
>
>
>
># Notas / #Debates
># puntos en este torneo
># es mi posición en el
>ranking de este torneo
>
>Mis Grupos y
> Foros
>
>GRUPO
>( #
> Participantes)
>
>
>
>
>
>
> 
> 
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Thomas Mäder
Wicket & Eclipse Consulting
www.devotek-it.ch


Re: question about adding "synchronized" on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread Thomas Mäder
The synchronizationn is around a HashMap lookup. Considering how much longer
it takes to actually process a request, I very much doubt that there is much
contention. Modern VM's are MUCH better at handling slight contention (like
2-4 contending threads) than older VMs. Don't worry!

Thomas

On Thu, Feb 12, 2009 at 7:12 AM, ywtsang  wrote:

>
> at 1.3.5
>
> class: org.apache.wicket.protocol.http.request.WebRequestCodingStrategy
> method: urlCodingStrategyForPath
>
> the variable "mountsOnPath" is synchronized
> is this necessary?
>
> because the WebRequestCodingStrategy is initialized once by "request cycle
> processor", which in turns is shared by all requests (i read this at Wicket
> In Action)
>
> so synchornized the "mountsOnPath" can produce a big lock contention
> problem
> if we have many requests at the same time?
>
>
> --
> View this message in context:
> http://www.nabble.com/question-about-adding-%22synchronized%22-on-mountsOnPath-at-WebRequestCodingStrategy-tp21970542p21970542.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Thomas Mäder
Wicket & Eclipse Consulting
www.devotek-it.ch


Re: Change browser title using wicket

2009-02-12 Thread Martin Makundi
Here are some pointers:

* http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html
* http://markmail.org/message/z75nsjoakmkq6zl2

**
Martin

2009/2/12 yauhen p :
>
> Hi everyone.
> I need to change browser title in my wicket application. For example user
> has logged in application and I want to display user's name in browser's
> title bar. What staff of wicket should I use to implement such behavior?
> Thanks,
> Yauhen
> --
> View this message in context: 
> http://www.nabble.com/Change-browser-title-using-wicket-tp21980215p21980215.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: how to give static pages consistant look with wicket - partial repeat

2009-02-12 Thread Martijn Dashorst
On Thu, Feb 12, 2009 at 4:18 PM, Vika  wrote:
> This works great! I have a few of questions:
> 1) Why do you use  ? If i replace
> wicket:container with span seems to work the same. Is there a place i can
> read about the usage of all the wicket tags like wicket:container,
> wicket:link etc... ?

http://letmegooglethatforyou.com/?q=%22wicket%3Acontainer%22

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

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



Change browser title using wicket

2009-02-12 Thread yauhen p

Hi everyone.
I need to change browser title in my wicket application. For example user
has logged in application and I want to display user's name in browser's
title bar. What staff of wicket should I use to implement such behavior?
Thanks,
Yauhen
-- 
View this message in context: 
http://www.nabble.com/Change-browser-title-using-wicket-tp21980215p21980215.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



AbstractAjaxTimerBehavior / Firefox / Page constructor

2009-02-12 Thread Adriano dos Santos Fernandes
I've a simple page as below, and when I call it from Firefox, ReportPage 
constructor is almost always called two times. Some times it's correctly 
called once. What may be wrong?


public class ReportPage extends WebPage
{
   private static final long serialVersionUID = 1L;
   private static final int CHECK_INTERVAL = 2;// segundos

   public ReportPage(PageParameters parameters)
   {
   super(parameters);

   WebMarkupContainer update = new WebMarkupContainer("update");
   add(update);
   update.add(new 
AbstractAjaxTimerBehavior(Duration.seconds(CHECK_INTERVAL)) {

   private static final long serialVersionUID = 1L;

   @Override
   protected void onTimer(AjaxRequestTarget target)
   {
   }
   });
   }
}


Adriano


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



Re: inmethod grid and add/delete examples

2009-02-12 Thread Warren Bell
The books "Wicket in Action" and "Enjoying Web Development with Wicket" 
helped me a lot when I first started using Wicket.


Warren

On Wed, Feb 11, 2009 at 9:58 AM, Will Jaynes  wrote:

  

I have just started to look at the inmethod datagrid in wicketstuff. The
one thing that the examples don't show are how to add and delete items. Are
there such examples somewhere?

Will




I'm really missing a lot with regard to the datagrid examples. Perhaps it's
because I'm still relatively new to Wicket and very new to the Ajax stuff in
Wicket. As I've said, I don't see how to add or delete rows to the
datagrid.  But also I don't see in the examples how to actually update the
database with any edited values. Nor do I see, once a row is selected, how
to get that selected row and do something with it.

So, I'm pretty clueless, which makes it hard to help me, but I'd appreciate
any info or pointers.

Will

  



--
Thanks,

Warren Bell
909-645-8864
warrenbe...@gmail.com


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



Re: Month Field?

2009-02-12 Thread Martin Makundi
There is a DateTextField which takes a pattern.

**
Martin

2009/2/12 Piotr Jakubowski :
>
> I am in need of creating a DateFieldlike form component but it would be only
> precise to the month - so like mm-. Do you have any suggestions on how
> to create this thing? Maybe it's already somewhere in Wicket.
>
> Anyway ... thanks in advance for help.
> --
> View this message in context: 
> http://www.nabble.com/Month-Field--tp21979456p21979456.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Month Field?

2009-02-12 Thread Piotr Jakubowski

I am in need of creating a DateFieldlike form component but it would be only
precise to the month - so like mm-. Do you have any suggestions on how
to create this thing? Maybe it's already somewhere in Wicket. 

Anyway ... thanks in advance for help.
-- 
View this message in context: 
http://www.nabble.com/Month-Field--tp21979456p21979456.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread Igor Vaynberg
so getmodelobject() returns another imodel?

you should really look into a dataview instead of a listview - it will
make things easier to understand.

a listview does not expect a list of imodels, it expects a list of
objects. each item then wraps each object in a imodel that can
retrieve it if needed in listview#getlistitemmodel(). the list should
usually be retrieved via a loadabledetachablemodel.

anyways, dataviews make all this much simpler.

-igor

On Thu, Feb 12, 2009 at 7:56 AM, pieter claassen
 wrote:
> Hi Igor,
>
> Am I screwing up because I thought I did convert all my code to use only
> webmodels? Maybe I still fail to understand the database-wicket integration
> part.
>
> First I get all objects from the database:
>
> List templates = getTemplateFactory().getAll();
>
> But they are fat and need to be wrapped by models:
>
>ListView templateList = new ListView("listview",
> ModelConverter.getModelList(templates, TemplateWebModel.class)) {
>
> ModelConverter.getModelList(templates, TemplateWebModel.class)) is a helper
> method that converts all my objects into models.
>
>final TemplateWebModel templatewebmodel = (TemplateWebModel)
> item
>.getModelObject();
>item.setModel(new CompoundPropertyModel(templatewebmodel));
>
> This is more verbose, but isn't this the same as what you just recommended?
> TemplateWebModel is an implementation of IModel.
>
> getModelObject() returns an IModel object because I convert my database
> objects to webmodels before I even render the list
>
> Debugging this problem with a debugger seems unproductive because it seems
> to never be there when I debug.
>
> P
>
>
> On Thu, Feb 12, 2009 at 4:15 PM, Igor Vaynberg wrote:
>
>> this code is very bad, you should use models so that you do not end up
>> serializing your entities...
>>
>> item.setModel(new CompoundPropertyModel(  item.getmodel()  ));
>>...
>>   item.add(new Link("edit"   , item.getmodel()   ) {
>>@Override
>>   public void onClick() {
>>   System.out.println("TEMPLATE NAME IN onClick(): "
>>+ getmodelobject()
>> .getEntity().getName());
>>   setResponsePage(new
>> TemplateEditPage(getmodel()   ));
>>   }
>>   });
>>
>> -igor
>>
>> On Thu, Feb 12, 2009 at 5:57 AM, pieter claassen 
>> wrote:
>> > Listviews with Links in them, sometimes fail to retrieve the object in
>> the
>> > onClick() method the first time around. When I reload the page, the code
>> > works fine.
>> >
>> > Here is a test. In the listview below, I load the page and in the
>> listview
>> > loop code, I correctly retrieve the item. Note that in the onClick() the
>> > modelobject is null.
>> >
>> > TEMPLATE NAME IN listview: first
>> > TEMPLATE NAME IN onClick(): null
>> >
>> > Reloading the page, and the problem goes away.
>> >
>> > TEMPLATE NAME IN listview: first
>> > TEMPLATE NAME IN onClick(): first
>> >
>> >
>> > This is using wicket 1.3.5. and db4o 7.8. This problem is normally there
>> > when I restart my application.
>> >
>> > Any ideas?
>> >
>> > Example code:
>> >
>> > ListView templateList = new ListView("listview", ModelConverter
>> >.getModelList(templates, TemplateWebModel.class)) {
>> >@Override
>> >protected void populateItem(ListItem item) {
>> >final TemplateWebModel templatewebmodel =
>> (TemplateWebModel)
>> > item
>> >.getModelObject();
>> >System.out.println("TEMPLATE NAME IN listview: "
>> >+ templatewebmodel.getEntity().getName());
>> >
>> >item.setModel(new
>> CompoundPropertyModel(templatewebmodel));
>> > ...
>> >item.add(new Link("edit") {
>> >@Override
>> >public void onClick() {
>> >System.out.println("TEMPLATE NAME IN onClick(): "
>> >+ templatewebmodel.getEntity().getName());
>> >setResponsePage(new
>> > TemplateEditPage(templatewebmodel));
>> >}
>> >});
>> > ...
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

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



Nested Label Components

2009-02-12 Thread Matías Tito
How can I nested label components?

WicketMessage: Expected close tag for '' Possible attempt to embed component(s)
'' in the body of this component which
discards its body




jphernandez



   Mi perfil | 
   Salir





# Notas / #Debates
# puntos en este torneo
# es mi posición en el
ranking de este torneo

Mis Grupos y 
Foros

GRUPO
( # Participantes)




  






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



Re: How can I clear the value of an AutoCompleteTextField

2009-02-12 Thread Martin Makundi
If you copy-paste your code here we can probably dig into it better  ...

**
Martin

2009/2/12 Azzeddine Daddah :
> Thanks guys for the quick replay.
> Martin: What I want to do is to select a value from the auto complete text
> field, and when clicking the "Add" button, the selected value should be
> added to the tagsContainer (which is in fact a div that wraps the added
> values) and cleared from the text field.
>
> Luca: I've tried your suggestion but it didn't help. I've also tried to
> clear the text field using Javascript
> target.appendJavascript(String.format("document.getElementById('%s').value =
> ''", auto.getOutputMarkupId()));
> but it also didn't work.
>
> Are there any other suggestions ways to implement this?
>
>
>
> Kind Regards
>
> Hbiloo
>
>
>
>
>
> On Thu, Feb 12, 2009 at 11:24 AM, Martin Makundi <
> martin.maku...@koodaripalvelut.com> wrote:
>
>> Also depending on your situation, clearInput might be necessary?
>>
>> **
>> Martin
>>
>> 2009/2/12 Luca Provenzani :
>> > i think you can put the field of the model/bean of the form to empty and
>> > then call target.addComponet(tagsContainer);
>> > what kind of effect do you want? If you need to call javascript you can
>> use
>> > target.appendJavaScript()...
>> >
>> > Luca
>> >
>> > 2009/2/12 Azzeddine Daddah 
>> >
>> >> Hello everyone,
>> >>
>> >> Could someone please tell me how I can clear the selected value of an
>> >> AutoCompleteTextField. I've an AutoCompleteTextField and a link which
>> >> should
>> >> clear the value of the text field after clicking it. I would also do
>> some
>> >> effects after clearing this value. Below my code:
>> >>
>> >> final AutoCompleteTextField auto = new
>> >> AutoCompleteTextField("auto", new Model())
>> >> ...
>> >> form.add(auto);
>> >>
>> >> form.add(new IndicatingAjaxLink("addLink", new
>> >> Model("Add"))
>> >> {
>> >>@Override
>> >>public void onClick(AjaxRequestTarget target) {
>> >>String inputValue = auto.getValue();
>> >>auto.clearInput();
>> >>// How to clear the auto's value and add some effects to the
>> >> tagsContainer?
>> >>target.addComponent(tagsContainer);
>> >>}
>> >> });
>> >>
>> >>
>> >> Kind Regards,
>> >>
>> >> Hbiloo
>> >>
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

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



Re: Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread pieter claassen
Hi Igor,

Am I screwing up because I thought I did convert all my code to use only
webmodels? Maybe I still fail to understand the database-wicket integration
part.

First I get all objects from the database:

List templates = getTemplateFactory().getAll();

But they are fat and need to be wrapped by models:

ListView templateList = new ListView("listview",
ModelConverter.getModelList(templates, TemplateWebModel.class)) {

ModelConverter.getModelList(templates, TemplateWebModel.class)) is a helper
method that converts all my objects into models.

final TemplateWebModel templatewebmodel = (TemplateWebModel)
item
.getModelObject();
item.setModel(new CompoundPropertyModel(templatewebmodel));

This is more verbose, but isn't this the same as what you just recommended?
TemplateWebModel is an implementation of IModel.

getModelObject() returns an IModel object because I convert my database
objects to webmodels before I even render the list

Debugging this problem with a debugger seems unproductive because it seems
to never be there when I debug.

P


On Thu, Feb 12, 2009 at 4:15 PM, Igor Vaynberg wrote:

> this code is very bad, you should use models so that you do not end up
> serializing your entities...
>
> item.setModel(new CompoundPropertyModel(  item.getmodel()  ));
>...
>   item.add(new Link("edit"   , item.getmodel()   ) {
>@Override
>   public void onClick() {
>   System.out.println("TEMPLATE NAME IN onClick(): "
>+ getmodelobject()
> .getEntity().getName());
>   setResponsePage(new
> TemplateEditPage(getmodel()   ));
>   }
>   });
>
> -igor
>
> On Thu, Feb 12, 2009 at 5:57 AM, pieter claassen 
> wrote:
> > Listviews with Links in them, sometimes fail to retrieve the object in
> the
> > onClick() method the first time around. When I reload the page, the code
> > works fine.
> >
> > Here is a test. In the listview below, I load the page and in the
> listview
> > loop code, I correctly retrieve the item. Note that in the onClick() the
> > modelobject is null.
> >
> > TEMPLATE NAME IN listview: first
> > TEMPLATE NAME IN onClick(): null
> >
> > Reloading the page, and the problem goes away.
> >
> > TEMPLATE NAME IN listview: first
> > TEMPLATE NAME IN onClick(): first
> >
> >
> > This is using wicket 1.3.5. and db4o 7.8. This problem is normally there
> > when I restart my application.
> >
> > Any ideas?
> >
> > Example code:
> >
> > ListView templateList = new ListView("listview", ModelConverter
> >.getModelList(templates, TemplateWebModel.class)) {
> >@Override
> >protected void populateItem(ListItem item) {
> >final TemplateWebModel templatewebmodel =
> (TemplateWebModel)
> > item
> >.getModelObject();
> >System.out.println("TEMPLATE NAME IN listview: "
> >+ templatewebmodel.getEntity().getName());
> >
> >item.setModel(new
> CompoundPropertyModel(templatewebmodel));
> > ...
> >item.add(new Link("edit") {
> >@Override
> >public void onClick() {
> >System.out.println("TEMPLATE NAME IN onClick(): "
> >+ templatewebmodel.getEntity().getName());
> >setResponsePage(new
> > TemplateEditPage(templatewebmodel));
> >}
> >});
> > ...
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How can I clear the value of an AutoCompleteTextField

2009-02-12 Thread Azzeddine Daddah
Thanks guys for the quick replay.
Martin: What I want to do is to select a value from the auto complete text
field, and when clicking the "Add" button, the selected value should be
added to the tagsContainer (which is in fact a div that wraps the added
values) and cleared from the text field.

Luca: I've tried your suggestion but it didn't help. I've also tried to
clear the text field using Javascript
target.appendJavascript(String.format("document.getElementById('%s').value =
''", auto.getOutputMarkupId()));
but it also didn't work.

Are there any other suggestions ways to implement this?



Kind Regards

Hbiloo





On Thu, Feb 12, 2009 at 11:24 AM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Also depending on your situation, clearInput might be necessary?
>
> **
> Martin
>
> 2009/2/12 Luca Provenzani :
> > i think you can put the field of the model/bean of the form to empty and
> > then call target.addComponet(tagsContainer);
> > what kind of effect do you want? If you need to call javascript you can
> use
> > target.appendJavaScript()...
> >
> > Luca
> >
> > 2009/2/12 Azzeddine Daddah 
> >
> >> Hello everyone,
> >>
> >> Could someone please tell me how I can clear the selected value of an
> >> AutoCompleteTextField. I've an AutoCompleteTextField and a link which
> >> should
> >> clear the value of the text field after clicking it. I would also do
> some
> >> effects after clearing this value. Below my code:
> >>
> >> final AutoCompleteTextField auto = new
> >> AutoCompleteTextField("auto", new Model())
> >> ...
> >> form.add(auto);
> >>
> >> form.add(new IndicatingAjaxLink("addLink", new
> >> Model("Add"))
> >> {
> >>@Override
> >>public void onClick(AjaxRequestTarget target) {
> >>String inputValue = auto.getValue();
> >>auto.clearInput();
> >>// How to clear the auto's value and add some effects to the
> >> tagsContainer?
> >>target.addComponent(tagsContainer);
> >>}
> >> });
> >>
> >>
> >> Kind Regards,
> >>
> >> Hbiloo
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: how to give static pages consistant look with wicket - partial repeat

2009-02-12 Thread Vika

Igor, 

This works great! I have a few of questions:
1) Why do you use  ? If i replace
wicket:container with span seems to work the same. Is there a place i can
read about the usage of all the wicket tags like wicket:container,
wicket:link etc... ?

2) With sitemesh i put info  like section and subsection in META tags of
each page.  Then the decorator template can access that info to display the
navigation correctly. What would be the best way to accomplish this in
wicket with static pages ? One way i see is to have file name contain
section and subsection info. Is there a better way ?

3) The code you provided works correctly if
MyBasePageWithDecoratingMarkup.html doesn't have a title tag. Then the
decorated page gets the title from the static page. However if
MyBasePageWithDecoratingMarkup.html has a default title 
 then the title from the static page is not displayed. Any suggestions ?

thanks

Vicky


igor.vaynberg wrote:
> 
> all you have to do is this:
> 
> mount(new indexedparamcodingstrategy("/static", StaticPage.class));
> 
> class staticpage extends MyBasePageWithDecoratingMarkup {
>   private final String resource;
>   public staticpage(PageParameters params) {
> resource=params.get("0");
> add(new Label("content", new PropertyModel(this,
> "content")).setEscapeModelStrings(false));
>   }
> 
>   public String getContent() {
>  // load the resource content however you want
>  InputStream is=new FileInputStream(basePath+"/"+resource);
>  try {
> return Streams.readIntoString(is);
>  } finally { is.close(); }
>   }
> }
> 
> static.page.html: [wicket:extend][wicket:container
> wicket:id="content"]content will be
> here[/wicket:container][/wicket:extend]
> 
> then if you go to /static/myfile.html the contents of myfile.html will
> be shown within your decorated page
> 
> -igor
> 
> On Wed, Feb 11, 2009 at 8:45 AM, Vika  wrote:
>>
>> I am looking at wicket trying to decide if i would want to use it for my
>> project.
>> Currently I am struggling trying to give static and dynamic pages
>> consistent
>> look with wicket without using sitemesh.  I was able to get wicket
>> application to direct all static page requests to my wicket StaticPage
>> that
>> would read the content of a file and add it to the page as
>> MultiLineLabel.
>> However my problem is that i don't want to add whole html file. I need to
>> extract the content of ,  and  tags and add these
>> separately. Is there anything in api or any examples i should look at ?
>>
>> Please see the code below.
>>
>> in Aplication.java  init()
>>
>> mount(new URIRequestTargetUrlCodingStrategy("/docs")
>>{
>>@Override
>>public IRequestTarget decode(RequestParameters
>> requestParameters)
>>{
>>String path = "/app/" + getURI(requestParameters);
>>return new PageRequestTarget(new StaticPage(new
>> WebExternalResourceRequestTarget(path)));
>>}
>>});
>> 
>> in StaicPage.java
>> public class StaticPage extends BasePage implements AuthenticatedWebPage
>> {
>>public StaticPage(WebExternalResourceRequestTarget staticResource)
>>{
>>String staticResourceContent = "";
>>try {
>>staticResourceContent =
>>
>> convertStreamToString(staticResource.getResourceStream().getInputStream());
>>} catch (ResourceStreamNotFoundException e)
>>{
>>// TODO Auto-generated catch block
>>e.printStackTrace();
>>}
>>add(new MultiLineLabel("staticContent",
>> staticResourceContent));
>>}
>> }
>> ---
>> Here is what i get in the browser when click on static link:
>>
>> > "http://www.w3.org/TR/html4/loose.dtd";>
>> 
>> 
>> 
>> Insert title here
>> 
>> 
>> this is a test
>> 
>> 
>> This is in the footer
>> --
>>
>> Another variation of StaticPage.java i tried was
>> public class StaticPage extends BasePage implements AuthenticatedWebPage
>> {
>>public StaticPage(WebExternalResourceRequestTarget staticResource)
>>{
>>MarkupResourceStream markupStream =
>>new
>> MarkupResourceStream(staticResource.getResourceStream());
>>
>>
>>MarkupParser parser = new MarkupParser(markupStream);
>>
>>Markup markup = parser.parse();
>>
>> However I got stuck at this point since i still don't see a way of
>> getting
>> individual html tags from Markup
>>
>>
>> thank you in advance,
>>
>> Vicky
>>
>> --
>> View this message in context:
>>

Re: Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread Igor Vaynberg
this code is very bad, you should use models so that you do not end up
serializing your entities...

item.setModel(new CompoundPropertyModel(  item.getmodel()  ));
...
   item.add(new Link("edit"   , item.getmodel()   ) {
   @Override
   public void onClick() {
   System.out.println("TEMPLATE NAME IN onClick(): "
   + getmodelobject()   .getEntity().getName());
   setResponsePage(new
TemplateEditPage(getmodel()   ));
   }
   });

-igor

On Thu, Feb 12, 2009 at 5:57 AM, pieter claassen  wrote:
> Listviews with Links in them, sometimes fail to retrieve the object in the
> onClick() method the first time around. When I reload the page, the code
> works fine.
>
> Here is a test. In the listview below, I load the page and in the listview
> loop code, I correctly retrieve the item. Note that in the onClick() the
> modelobject is null.
>
> TEMPLATE NAME IN listview: first
> TEMPLATE NAME IN onClick(): null
>
> Reloading the page, and the problem goes away.
>
> TEMPLATE NAME IN listview: first
> TEMPLATE NAME IN onClick(): first
>
>
> This is using wicket 1.3.5. and db4o 7.8. This problem is normally there
> when I restart my application.
>
> Any ideas?
>
> Example code:
>
> ListView templateList = new ListView("listview", ModelConverter
>.getModelList(templates, TemplateWebModel.class)) {
>@Override
>protected void populateItem(ListItem item) {
>final TemplateWebModel templatewebmodel = (TemplateWebModel)
> item
>.getModelObject();
>System.out.println("TEMPLATE NAME IN listview: "
>+ templatewebmodel.getEntity().getName());
>
>item.setModel(new CompoundPropertyModel(templatewebmodel));
> ...
>item.add(new Link("edit") {
>@Override
>public void onClick() {
>System.out.println("TEMPLATE NAME IN onClick(): "
>+ templatewebmodel.getEntity().getName());
>setResponsePage(new
> TemplateEditPage(templatewebmodel));
>}
>});
> ...
>

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



Re: question about adding "synchronized" on mountsOnPath at WebRequestCodingStrategy

2009-02-12 Thread Igor Vaynberg
has this shown up in the profiler during a load test?

-igor

On Wed, Feb 11, 2009 at 10:12 PM, ywtsang  wrote:
>
> at 1.3.5
>
> class: org.apache.wicket.protocol.http.request.WebRequestCodingStrategy
> method: urlCodingStrategyForPath
>
> the variable "mountsOnPath" is synchronized
> is this necessary?
>
> because the WebRequestCodingStrategy is initialized once by "request cycle
> processor", which in turns is shared by all requests (i read this at Wicket
> In Action)
>
> so synchornized the "mountsOnPath" can produce a big lock contention problem
> if we have many requests at the same time?
>
>
> --
> View this message in context: 
> http://www.nabble.com/question-about-adding-%22synchronized%22-on-mountsOnPath-at-WebRequestCodingStrategy-tp21970542p21970542.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

2009-02-12 Thread Igor Vaynberg
create a quickstart and attach it to a jira issue so we can take a look.

-igor

On Thu, Feb 12, 2009 at 2:51 AM, Felix Cachaldora  wrote:
>
> Thanks for yout answer but I've tried an it didn't work.
> I've tried another test. Instead of using an ALLP I used a Panel. It's even
> worst it doesn't load any of the ALLP. So I think there may be a problem
> when using ALLP and DynamicImageResource in the same page.
>
> Any clues?
>
>
> igor.vaynberg wrote:
>>
>> try calling image.setversioned(false)
>>
>> -igor
>>
>> On Wed, Feb 11, 2009 at 8:29 AM, Felix Cachaldora 
>> wrote:
>>>
>>> I am also stuck in the same situation. I have a page with several
>>> AjaxLazyLoadPanels(ALLP) with one of them loading a DynamicImageResource.
>>> If
>>> the ALLP contaning the DynamicImageResource gets loaded before some of
>>> the
>>> other ALLP the remaining ones do not load. It's like if that ALLP (the
>>> one
>>> with the DynamicImageResource) changed the state of the page. Examing the
>>> ajax response from the server I can see that those ALLP that fail get
>>> this
>>> response: 
>>> I don't what's going on.
>>> Has anyone any idea?
>>>
>>>
>>> Sergio García wrote:

 Well, i will try to explain the situation as good as i can.

 We have a grid with multiple AjaxLazyLoadPanel(ALLP) that load a query
 each one. One of the ALLP is a ListView with an ALLP into each row (each
 row is a different query). This enviroment works very well.

 The problem comes with a ALLP with a Jfreechart image inside. When
 wicket
 loads the image, i think it changes the state of the page from
 "domready"
 to "load", and this makes that the rest of the ALLP don't load properly.
 I
 fix it making a new implementation of ALLP for that image. The new
 version
 substitutes the call of
 response.renderOnDomReadyJavascript(getCallbackScript().toString()); to
 a
 new call of
 response.renderOnLoadJavascript(getCallbackScript().toString());. With
 the
 new call the image loads at the end.

 But i still have a problem. The rows do not load because they will load
 at
 end and changing the javascript event from render to load does not fix
 anything.

 Any ideas?

>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21958242.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21973743.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread Martin Makundi
What happens if you run a debugger and debug line-by-line? Put a
breakpoint somewhere where the null value appears from. It looks like
something else than a wicket bug.

**
Martin

2009/2/12 pieter claassen :
> The value "first" is a field on a template, that is retrieved as one
> template from the list of all templates, from a db4o database using a DAO
> class.
>
> List templates = getTemplateFactory().getAll();
>
> So, this list is *always* retrieved correctly. Each of the templates are
> correctly backed by a database object and I can retrieve any field on any
> one of them.
> Each one of the template objects are wrapped in a thin wrapper where they
> are converted from a "heavy" object (Template) to a thin webmodel
> (TemplateWebModel)
>
> List templatewebmodels = ModelConverter.getModelList(templates,
> TemplateWebModel.class)
>
> In the listview block, I set the model for each list iteration:
>
> final TemplateWebModel templatewebmodel = (TemplateWebModel)
> item.getModelObject();
> item.setModel(new CompoundPropertyModel(templatewebmodel));
>
> and when I want to access the database object, I use:
>
> getModelObject().getEntity()
>
> This approach works both in the listview block of code, but not in any
> onClick() methods of Links that I include in the listview, just after I
> started my application. The second time around, things work fine.
>
> Is this possibly a wicket problem?
>
> Rgrds,
> Pieter
>
>
>
> On Thu, Feb 12, 2009 at 3:06 PM, Martin Makundi <
> martin.maku...@koodaripalvelut.com> wrote:
>
>> Where do you set the value "first"?
>>
>> **
>> Martin
>>
>> 2009/2/12 pieter claassen :
>> > Listviews with Links in them, sometimes fail to retrieve the object in
>> the
>> > onClick() method the first time around. When I reload the page, the code
>> > works fine.
>> >
>> > Here is a test. In the listview below, I load the page and in the
>> listview
>> > loop code, I correctly retrieve the item. Note that in the onClick() the
>> > modelobject is null.
>> >
>> > TEMPLATE NAME IN listview: first
>> > TEMPLATE NAME IN onClick(): null
>> >
>> > Reloading the page, and the problem goes away.
>> >
>> > TEMPLATE NAME IN listview: first
>> > TEMPLATE NAME IN onClick(): first
>> >
>> >
>> > This is using wicket 1.3.5. and db4o 7.8. This problem is normally there
>> > when I restart my application.
>> >
>> > Any ideas?
>> >
>> > Example code:
>> >
>> > ListView templateList = new ListView("listview", ModelConverter
>> >.getModelList(templates, TemplateWebModel.class)) {
>> >@Override
>> >protected void populateItem(ListItem item) {
>> >final TemplateWebModel templatewebmodel =
>> (TemplateWebModel)
>> > item
>> >.getModelObject();
>> >System.out.println("TEMPLATE NAME IN listview: "
>> >+ templatewebmodel.getEntity().getName());
>> >
>> >item.setModel(new
>> CompoundPropertyModel(templatewebmodel));
>> > ...
>> >item.add(new Link("edit") {
>> >@Override
>> >public void onClick() {
>> >System.out.println("TEMPLATE NAME IN onClick(): "
>> >+ templatewebmodel.getEntity().getName());
>> >setResponsePage(new
>> > TemplateEditPage(templatewebmodel));
>> >}
>> >});
>> > ...
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

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



Re: Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread pieter claassen
The value "first" is a field on a template, that is retrieved as one
template from the list of all templates, from a db4o database using a DAO
class.

List templates = getTemplateFactory().getAll();

So, this list is *always* retrieved correctly. Each of the templates are
correctly backed by a database object and I can retrieve any field on any
one of them.
Each one of the template objects are wrapped in a thin wrapper where they
are converted from a "heavy" object (Template) to a thin webmodel
(TemplateWebModel)

List templatewebmodels = ModelConverter.getModelList(templates,
TemplateWebModel.class)

In the listview block, I set the model for each list iteration:

final TemplateWebModel templatewebmodel = (TemplateWebModel)
item.getModelObject();
item.setModel(new CompoundPropertyModel(templatewebmodel));

and when I want to access the database object, I use:

getModelObject().getEntity()

This approach works both in the listview block of code, but not in any
onClick() methods of Links that I include in the listview, just after I
started my application. The second time around, things work fine.

Is this possibly a wicket problem?

Rgrds,
Pieter



On Thu, Feb 12, 2009 at 3:06 PM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Where do you set the value "first"?
>
> **
> Martin
>
> 2009/2/12 pieter claassen :
> > Listviews with Links in them, sometimes fail to retrieve the object in
> the
> > onClick() method the first time around. When I reload the page, the code
> > works fine.
> >
> > Here is a test. In the listview below, I load the page and in the
> listview
> > loop code, I correctly retrieve the item. Note that in the onClick() the
> > modelobject is null.
> >
> > TEMPLATE NAME IN listview: first
> > TEMPLATE NAME IN onClick(): null
> >
> > Reloading the page, and the problem goes away.
> >
> > TEMPLATE NAME IN listview: first
> > TEMPLATE NAME IN onClick(): first
> >
> >
> > This is using wicket 1.3.5. and db4o 7.8. This problem is normally there
> > when I restart my application.
> >
> > Any ideas?
> >
> > Example code:
> >
> > ListView templateList = new ListView("listview", ModelConverter
> >.getModelList(templates, TemplateWebModel.class)) {
> >@Override
> >protected void populateItem(ListItem item) {
> >final TemplateWebModel templatewebmodel =
> (TemplateWebModel)
> > item
> >.getModelObject();
> >System.out.println("TEMPLATE NAME IN listview: "
> >+ templatewebmodel.getEntity().getName());
> >
> >item.setModel(new
> CompoundPropertyModel(templatewebmodel));
> > ...
> >item.add(new Link("edit") {
> >@Override
> >public void onClick() {
> >System.out.println("TEMPLATE NAME IN onClick(): "
> >+ templatewebmodel.getEntity().getName());
> >setResponsePage(new
> > TemplateEditPage(templatewebmodel));
> >}
> >});
> > ...
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: inmethod grid and add/delete examples

2009-02-12 Thread Will Jaynes
On Wed, Feb 11, 2009 at 9:58 AM, Will Jaynes  wrote:

> I have just started to look at the inmethod datagrid in wicketstuff. The
> one thing that the examples don't show are how to add and delete items. Are
> there such examples somewhere?
>
> Will
>

I'm really missing a lot with regard to the datagrid examples. Perhaps it's
because I'm still relatively new to Wicket and very new to the Ajax stuff in
Wicket. As I've said, I don't see how to add or delete rows to the
datagrid.  But also I don't see in the examples how to actually update the
database with any edited values. Nor do I see, once a row is selected, how
to get that selected row and do something with it.

So, I'm pretty clueless, which makes it hard to help me, but I'd appreciate
any info or pointers.

Will


Re: Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread Martin Makundi
Where do you set the value "first"?

**
Martin

2009/2/12 pieter claassen :
> Listviews with Links in them, sometimes fail to retrieve the object in the
> onClick() method the first time around. When I reload the page, the code
> works fine.
>
> Here is a test. In the listview below, I load the page and in the listview
> loop code, I correctly retrieve the item. Note that in the onClick() the
> modelobject is null.
>
> TEMPLATE NAME IN listview: first
> TEMPLATE NAME IN onClick(): null
>
> Reloading the page, and the problem goes away.
>
> TEMPLATE NAME IN listview: first
> TEMPLATE NAME IN onClick(): first
>
>
> This is using wicket 1.3.5. and db4o 7.8. This problem is normally there
> when I restart my application.
>
> Any ideas?
>
> Example code:
>
> ListView templateList = new ListView("listview", ModelConverter
>.getModelList(templates, TemplateWebModel.class)) {
>@Override
>protected void populateItem(ListItem item) {
>final TemplateWebModel templatewebmodel = (TemplateWebModel)
> item
>.getModelObject();
>System.out.println("TEMPLATE NAME IN listview: "
>+ templatewebmodel.getEntity().getName());
>
>item.setModel(new CompoundPropertyModel(templatewebmodel));
> ...
>item.add(new Link("edit") {
>@Override
>public void onClick() {
>System.out.println("TEMPLATE NAME IN onClick(): "
>+ templatewebmodel.getEntity().getName());
>setResponsePage(new
> TemplateEditPage(templatewebmodel));
>}
>});
> ...
>

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



Listview and Link sometimes fail to get objects from DB

2009-02-12 Thread pieter claassen
Listviews with Links in them, sometimes fail to retrieve the object in the
onClick() method the first time around. When I reload the page, the code
works fine.

Here is a test. In the listview below, I load the page and in the listview
loop code, I correctly retrieve the item. Note that in the onClick() the
modelobject is null.

TEMPLATE NAME IN listview: first
TEMPLATE NAME IN onClick(): null

Reloading the page, and the problem goes away.

TEMPLATE NAME IN listview: first
TEMPLATE NAME IN onClick(): first


This is using wicket 1.3.5. and db4o 7.8. This problem is normally there
when I restart my application.

Any ideas?

Example code:

ListView templateList = new ListView("listview", ModelConverter
.getModelList(templates, TemplateWebModel.class)) {
@Override
protected void populateItem(ListItem item) {
final TemplateWebModel templatewebmodel = (TemplateWebModel)
item
.getModelObject();
System.out.println("TEMPLATE NAME IN listview: "
+ templatewebmodel.getEntity().getName());

item.setModel(new CompoundPropertyModel(templatewebmodel));
 ...
item.add(new Link("edit") {
@Override
public void onClick() {
System.out.println("TEMPLATE NAME IN onClick(): "
+ templatewebmodel.getEntity().getName());
setResponsePage(new
TemplateEditPage(templatewebmodel));
}
});
...


Re: Feedback Next To Component

2009-02-12 Thread Serkan Camurcuoglu
there is something called 
org.apache.wicket.markup.html.form.validation.FormComponentFeedbackBorder, 
are you trying to build something like it?



walnutmon wrote:

That makes sense, I did pull out the surrounding markup so that it could be
edited by calls to the behavior, but that's not really much better.  Are
there any approaches that you can think of that may be more extensible?  I'd
prefer to not write directly to the page at all, since I'm not particularly
familiar with how that works, and I'm nervous about introducing hard to find
bugs down the road for other developers not as familiar with the framework.


Jonathan Locke wrote:
  

behaviors aren't really designed to work like components and render markup
like that, so it's a bit weird... what if you want to go extend or change
the markup for the feedback error? it's now embedded in a bunch of code.


walnutmon wrote:


In order to add feedback next to the component I used a behavior.  I had
some code from Igor which got me on the right track, although I was
unable to actually get it to work the same way, I simplified it down to
the following code:

AbstractBehavior printMessagesNextToComponent = new AbstractBehavior()
{

@Override
public void onRendered(Component component)
{
super.onRendered(component);
FeedbackMessage message = 
component.getFeedbackMessage();
if (message != null)
{
final Response out = component.getResponse();
out.write("");
out.write(message.getMessage().toString());
out.write("");
}
}
};

It almost seems too simple, I've tried it and with limited testing it
seems to work just fine, although there are some odd behaviors with
Ajax... does anyone have any comments, better solutions, or possible
breaking conditions that I should check out?

  



  



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



Re: Feedback Next To Component

2009-02-12 Thread walnutmon

That makes sense, I did pull out the surrounding markup so that it could be
edited by calls to the behavior, but that's not really much better.  Are
there any approaches that you can think of that may be more extensible?  I'd
prefer to not write directly to the page at all, since I'm not particularly
familiar with how that works, and I'm nervous about introducing hard to find
bugs down the road for other developers not as familiar with the framework.


Jonathan Locke wrote:
> 
> 
> behaviors aren't really designed to work like components and render markup
> like that, so it's a bit weird... what if you want to go extend or change
> the markup for the feedback error? it's now embedded in a bunch of code.
> 
> 
> walnutmon wrote:
>> 
>> In order to add feedback next to the component I used a behavior.  I had
>> some code from Igor which got me on the right track, although I was
>> unable to actually get it to work the same way, I simplified it down to
>> the following code:
>> 
>> AbstractBehavior printMessagesNextToComponent = new AbstractBehavior()
>>  {
>> 
>>  @Override
>>  public void onRendered(Component component)
>>  {
>>  super.onRendered(component);
>>  FeedbackMessage message = 
>> component.getFeedbackMessage();
>>  if (message != null)
>>  {
>>  final Response out = component.getResponse();
>>  out.write("");
>>  out.write(message.getMessage().toString());
>>  out.write("");
>>  }
>>  }
>>  };
>> 
>> It almost seems too simple, I've tried it and with limited testing it
>> seems to work just fine, although there are some odd behaviors with
>> Ajax... does anyone have any comments, better solutions, or possible
>> breaking conditions that I should check out?
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Feedback-Next-To-Component-tp21959520p21975479.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: Wicket at ApacheCon EU'09 in Amsterdam

2009-02-12 Thread Hoover, William
Just out of curiosity... Are there any plans to push a JSR that Wicket
could follow. I think there would be a lot more acceptance of Wicket if
this was to happen :o)

-Original Message-
From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On
Behalf Of Martijn Dashorst
Sent: Wednesday, February 11, 2009 5:33 PM
To: users@wicket.apache.org
Subject: Wicket at ApacheCon EU'09 in Amsterdam

We're happy to announce a lot of Wicket involvement at the upcoming
ApacheCon in Amsterdam (23-27 March 2009)

First of all we have 2 training sessions available:
 - Introduction to Wicket by Martijn Dashorst on Mon 23 March
(http://tinyurl.com/aceu09wicket1)
 - Behavior-Driving Your Apache Wicket Application by Timo Rantalaiho on
Tue 24 March (http://tinyurl.com/aceu09wicket2)

Both courses are hosted by core members. Martijn has co-authored Wicket
in Action and Timo has been involved with WicketTester and JDave. There
is no better team to get you and your team up to speed with the finest
Java web framework available and start cranking out fully tested
applications.

Martijn will also present Wicket in Action during the normal conference
days. A quick introduction to Wicket's core features in just one hour.
But attending the conference will give you much more:
over 60 sessions covering your favorite Apache projects.

Amsterdam is great, but Wicket meetups in Amsterdam are even better!
We're attempting to schedule a Wicket meetup during the conference at
the conference floor. Details will follow soon.

Read more about ApacheCon EU 2009 here:
http://www.eu.apachecon.com/c/aceu2009/

See you in Amsterdam!

Martijn

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



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



Re: Model on Select

2009-02-12 Thread Mathias P.W Nilsson

Odd, the first time ever I access the page the select option is set otherwise
it is not.
-- 
View this message in context: 
http://www.nabble.com/Model-on-Select-tp21973981p21975007.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Modal window callback issue

2009-02-12 Thread FireWalter

We have a button that launches a modal window - this modal window contains a
TreeView, from which the user will make a selection, and then either click
'OK' or 'Cancel'.
Should the user select 'OK' the value of the selected node should be passed
back to the first page.

The above fails when opening the modal window for the first time - selecting
a tree node and hitting 'OK' returns null...? Subsequent attempts work
perfectly - we no longer get null returned - instead the correct values are
passed back to our page and everything behaves as normal.


-- 
View this message in context: 
http://www.nabble.com/Modal-window-callback-issue-tp21974338p21974338.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Model on Select

2009-02-12 Thread Mathias P.W Nilsson

Hi,

I'm using CompoundPropertyModel on a form. When using with SelectOption I
can't set the selected index.
The "none" select option is there to add a none to the list. How can I set
the selected option in the listview? Any Pointers?

 materialCategoryInformation = new Select("materialCategoryInformation" );
materialCategoryInformation.add(new SelectOption("none", new
Model(/*NULL*/)));
materialCategoryInformation.setRequired(true);
materialCategoryInformation.setOutputMarkupId( true );

ListView materialCategoryList = new ListView( "materialCategoryList"
, materialCategoryModel ){
private static final long serialVersionUID = 1L;

@Override
protected void populateItem( final ListItem item ){
item.setRenderBodyOnly( true );
final CodedChainInformation codedInformation =
(CodedChainInformation) item.getModelObject();

SelectOption option = new SelectOption( "option" , new 
Model(
(Serializable) item.getModelObject() )){
private static final long 
serialVersionUID = 1L;

@Override
protected void onComponentTagBody( MarkupStream 
markupStream,
ComponentTag tag ){
String name = 
codedInformation.getName();
if( ! codedInformation.isSeparator() )
name = "  " + name;
replaceComponentTagBody(markupStream, 
tag, name  );

}
};

item.add( option );

if( codedInformation.isSeparator() ){
option.add( new SimpleAttributeModifier( 
"class" , "separator"
));
}else{
option.add( new SimpleAttributeModifier( 
"class" , "sub" ) );
}


}
};
-- 
View this message in context: 
http://www.nabble.com/Model-on-Select-tp21973981p21973981.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

2009-02-12 Thread Felix Cachaldora

Thanks for yout answer but I've tried an it didn't work. 
I've tried another test. Instead of using an ALLP I used a Panel. It's even
worst it doesn't load any of the ALLP. So I think there may be a problem
when using ALLP and DynamicImageResource in the same page.

Any clues?


igor.vaynberg wrote:
> 
> try calling image.setversioned(false)
> 
> -igor
> 
> On Wed, Feb 11, 2009 at 8:29 AM, Felix Cachaldora 
> wrote:
>>
>> I am also stuck in the same situation. I have a page with several
>> AjaxLazyLoadPanels(ALLP) with one of them loading a DynamicImageResource.
>> If
>> the ALLP contaning the DynamicImageResource gets loaded before some of
>> the
>> other ALLP the remaining ones do not load. It's like if that ALLP (the
>> one
>> with the DynamicImageResource) changed the state of the page. Examing the
>> ajax response from the server I can see that those ALLP that fail get
>> this
>> response: 
>> I don't what's going on.
>> Has anyone any idea?
>>
>>
>> Sergio García wrote:
>>>
>>> Well, i will try to explain the situation as good as i can.
>>>
>>> We have a grid with multiple AjaxLazyLoadPanel(ALLP) that load a query
>>> each one. One of the ALLP is a ListView with an ALLP into each row (each
>>> row is a different query). This enviroment works very well.
>>>
>>> The problem comes with a ALLP with a Jfreechart image inside. When
>>> wicket
>>> loads the image, i think it changes the state of the page from
>>> "domready"
>>> to "load", and this makes that the rest of the ALLP don't load properly.
>>> I
>>> fix it making a new implementation of ALLP for that image. The new
>>> version
>>> substitutes the call of
>>> response.renderOnDomReadyJavascript(getCallbackScript().toString()); to
>>> a
>>> new call of
>>> response.renderOnLoadJavascript(getCallbackScript().toString());. With
>>> the
>>> new call the image loads at the end.
>>>
>>> But i still have a problem. The rows do not load because they will load
>>> at
>>> end and changing the javascript event from render to load does not fix
>>> anything.
>>>
>>> Any ideas?
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21958242.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21973743.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Latest snapshot and CSSPackageResource.getHeaderContribution

2009-02-12 Thread jensiator

Hi
After my post with the private wizardmodel inside wizardstep I decided to
change to the latest snapshot instead of using rc2. Suddenly IE wont display
my markup correct. But Firefox does.The corrupted design in IE is a typical
stylesheet error. 
I noticed that HeaderContributor.forCss is now depricated and its body has
changed. It now calls CSSPackageResource.getHeaderContribution direct. I'm
adding all my stylesheet links in this way. I dont hardcode them inte to
base page markup header. 
I went back to rc1 and then everything looks fine. Back to snapshot the
design is corrupted. 
Has something changed in the way that the css resources loads?
Jens
-- 
View this message in context: 
http://www.nabble.com/Latest-snapshot-and-CSSPackageResource.getHeaderContribution-tp21973733p21973733.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket meetup in Amsterdam news

2009-02-12 Thread Martijn Dashorst
I've created a page for registering interest and presentations on our wiki:

http://cwiki.apache.org/WICKET/wicket-community-meetups-amsterdam.html

Martijn

On Thu, Feb 12, 2009 at 11:17 AM, Frank Prins  wrote:
> Martijn,
>
> A meetup, that would be great!
>
> I can attend both evenings, providing that it will be separate from the 
> Apache Con.
> (probably I can't attend during the day... not sure yet)
>
> regards,
> Frank
>
>
>> -Original Message-
>> From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On
>> Behalf Of Martijn Dashorst
>> Sent: woensdag 11 februari 2009 23:53
>> To: users@wicket.apache.org
>> Subject: Wicket meetup in Amsterdam news
>>
>> During ApacheCon EU 2009 we can fill a 3 hour slot in the evening with
>> a real Wicket community meetup. The meetup will be hosted in the
>> conference hotel, from 19:00 until 22:00, in one of the conference
>> rooms available on either 23 or 24 March. The conference is held in
>> Amsterdam, the Netherlands, in the Mövenpick hotel, near the central
>> train station.
>>
>> If there's enough interest, presentations and sponsors we can let this
>> meetup take place. So to make this happen we need:
>>  - enough people that want to attend the meetup
>>  - enough people that want to give a presentation at the meetup
>>  - companies that want to sponsor the meetup
>>
>> The deadline for the meetup is next monday, so we need to make this a
>> quick process.
>>
>> Ideally presentations are about 20-30 minutes, but shorter or longer
>> presentations are fine. Just propose and we'll discuss the details (if
>> you wish, contact me off list).
>>
>> [ ] I'll attend the 23rd
>> [ ] I'll attend the 24th
>> [ ] I want to present xyz on the 23rd
>> [ ] I want to present xyz on the 24th
>>
>> If you want to sponsor this event, please contact me off list and I'll
>> hook you up with the right people. Sponsoring the event is not
>> expensive: a recruiter costs more, and you become an official
>> ApacheCon sponsor! Consider all the Apache software your company uses
>> and then think about all the money you've saved during all those
>> years. Give back to the community and sponsor this event!
>>
>> Let's make this happen!
>>
>> Martijn
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



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

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



Re: Wicket meetup in Amsterdam news

2009-02-12 Thread Jan Kriesten

Hi Martijn,

I'd happy to attend as well - though only the Wicket meetup and not the
ApacheCon. Both dates would do.

If interest is there I could present something based on my 'Real World Scala and
Wicket' I held last week in London.

Best regards, --- Jan.



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



Re: How can I clear the value of an AutoCompleteTextField

2009-02-12 Thread Martin Makundi
Also depending on your situation, clearInput might be necessary?

**
Martin

2009/2/12 Luca Provenzani :
> i think you can put the field of the model/bean of the form to empty and
> then call target.addComponet(tagsContainer);
> what kind of effect do you want? If you need to call javascript you can use
> target.appendJavaScript()...
>
> Luca
>
> 2009/2/12 Azzeddine Daddah 
>
>> Hello everyone,
>>
>> Could someone please tell me how I can clear the selected value of an
>> AutoCompleteTextField. I've an AutoCompleteTextField and a link which
>> should
>> clear the value of the text field after clicking it. I would also do some
>> effects after clearing this value. Below my code:
>>
>> final AutoCompleteTextField auto = new
>> AutoCompleteTextField("auto", new Model())
>> ...
>> form.add(auto);
>>
>> form.add(new IndicatingAjaxLink("addLink", new
>> Model("Add"))
>> {
>>@Override
>>public void onClick(AjaxRequestTarget target) {
>>String inputValue = auto.getValue();
>>auto.clearInput();
>>// How to clear the auto's value and add some effects to the
>> tagsContainer?
>>target.addComponent(tagsContainer);
>>}
>> });
>>
>>
>> Kind Regards,
>>
>> Hbiloo
>>
>

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



Re: How can I clear the value of an AutoCompleteTextField

2009-02-12 Thread Luca Provenzani
i think you can put the field of the model/bean of the form to empty and
then call target.addComponet(tagsContainer);
what kind of effect do you want? If you need to call javascript you can use
target.appendJavaScript()...

Luca

2009/2/12 Azzeddine Daddah 

> Hello everyone,
>
> Could someone please tell me how I can clear the selected value of an
> AutoCompleteTextField. I've an AutoCompleteTextField and a link which
> should
> clear the value of the text field after clicking it. I would also do some
> effects after clearing this value. Below my code:
>
> final AutoCompleteTextField auto = new
> AutoCompleteTextField("auto", new Model())
> ...
> form.add(auto);
>
> form.add(new IndicatingAjaxLink("addLink", new
> Model("Add"))
> {
>@Override
>public void onClick(AjaxRequestTarget target) {
>String inputValue = auto.getValue();
>auto.clearInput();
>// How to clear the auto's value and add some effects to the
> tagsContainer?
>target.addComponent(tagsContainer);
>}
> });
>
>
> Kind Regards,
>
> Hbiloo
>


RE: Wicket meetup in Amsterdam news

2009-02-12 Thread Frank Prins
Martijn,

A meetup, that would be great!

I can attend both evenings, providing that it will be separate from the Apache 
Con.
(probably I can't attend during the day... not sure yet)

regards,
Frank


> -Original Message-
> From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On
> Behalf Of Martijn Dashorst
> Sent: woensdag 11 februari 2009 23:53
> To: users@wicket.apache.org
> Subject: Wicket meetup in Amsterdam news
> 
> During ApacheCon EU 2009 we can fill a 3 hour slot in the evening with
> a real Wicket community meetup. The meetup will be hosted in the
> conference hotel, from 19:00 until 22:00, in one of the conference
> rooms available on either 23 or 24 March. The conference is held in
> Amsterdam, the Netherlands, in the Mövenpick hotel, near the central
> train station.
> 
> If there's enough interest, presentations and sponsors we can let this
> meetup take place. So to make this happen we need:
>  - enough people that want to attend the meetup
>  - enough people that want to give a presentation at the meetup
>  - companies that want to sponsor the meetup
> 
> The deadline for the meetup is next monday, so we need to make this a
> quick process.
> 
> Ideally presentations are about 20-30 minutes, but shorter or longer
> presentations are fine. Just propose and we'll discuss the details (if
> you wish, contact me off list).
> 
> [ ] I'll attend the 23rd
> [ ] I'll attend the 24th
> [ ] I want to present xyz on the 23rd
> [ ] I want to present xyz on the 24th
> 
> If you want to sponsor this event, please contact me off list and I'll
> hook you up with the right people. Sponsoring the event is not
> expensive: a recruiter costs more, and you become an official
> ApacheCon sponsor! Consider all the Apache software your company uses
> and then think about all the money you've saved during all those
> years. Give back to the community and sponsor this event!
> 
> Let's make this happen!
> 
> Martijn
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org


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



XML-Properties for Validator throw ClassCastException

2009-02-12 Thread news . luczyk
Hi all,
 i've a Panel with a Form wich has a TextField with a MinimumValidator and a 
FeedbackPanel for validation error messages.

First i've written a standard text propertie file to customize the error 
message and it works fine.
Then i've trouble to put in the Euro-Sign and found that it is possible to use 
xml propertie file, but this lead me to the following stack trace:
Caused by: java.lang.ClassCastException: org.apache.xerces.dom.DeferredTextImpl
at org.apache.wicket.util.io.Streams.loadFromXml(Streams.java:158)
at 
org.apache.wicket.resource.PropertiesFactory.loadPropertiesFile(PropertiesFactory.java:199)

The xml properties file looks like that:

http://java.sun.com/dtd/properties.dtd";>

The error text with the EURO 
Symbol.


Does anyonen know what i've done wrong.

Thanks in advance,
Achim Luczyk



Ist Ihr wunschn...@freenet.de noch frei?
Jetzt prüfen und kostenlose E-Mail-Adresse sichern!
http://email.freenet.de/dienste/emailoffice/produktuebersicht/basic/mail/index.html?pid=6829


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



Re: Wicket meetup in Amsterdam news

2009-02-12 Thread Johan Compagner
i can attend both
and also can present something on both if needed. But i dont know what :)

johan


On Wed, Feb 11, 2009 at 23:53, Martijn Dashorst  wrote:

> During ApacheCon EU 2009 we can fill a 3 hour slot in the evening with
> a real Wicket community meetup. The meetup will be hosted in the
> conference hotel, from 19:00 until 22:00, in one of the conference
> rooms available on either 23 or 24 March. The conference is held in
> Amsterdam, the Netherlands, in the Mövenpick hotel, near the central
> train station.
>
> If there's enough interest, presentations and sponsors we can let this
> meetup take place. So to make this happen we need:
>  - enough people that want to attend the meetup
>  - enough people that want to give a presentation at the meetup
>  - companies that want to sponsor the meetup
>
> The deadline for the meetup is next monday, so we need to make this a
> quick process.
>
> Ideally presentations are about 20-30 minutes, but shorter or longer
> presentations are fine. Just propose and we'll discuss the details (if
> you wish, contact me off list).
>
> [ ] I'll attend the 23rd
> [ ] I'll attend the 24th
> [ ] I want to present xyz on the 23rd
> [ ] I want to present xyz on the 24th
>
> If you want to sponsor this event, please contact me off list and I'll
> hook you up with the right people. Sponsoring the event is not
> expensive: a recruiter costs more, and you become an official
> ApacheCon sponsor! Consider all the Apache software your company uses
> and then think about all the money you've saved during all those
> years. Give back to the community and sponsor this event!
>
> Let's make this happen!
>
> Martijn
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


How can I clear the value of an AutoCompleteTextField

2009-02-12 Thread Azzeddine Daddah
Hello everyone,

Could someone please tell me how I can clear the selected value of an
AutoCompleteTextField. I've an AutoCompleteTextField and a link which should
clear the value of the text field after clicking it. I would also do some
effects after clearing this value. Below my code:

final AutoCompleteTextField auto = new
AutoCompleteTextField("auto", new Model())
...
form.add(auto);

form.add(new IndicatingAjaxLink("addLink", new Model("Add"))
{
@Override
public void onClick(AjaxRequestTarget target) {
String inputValue = auto.getValue();
auto.clearInput();
// How to clear the auto's value and add some effects to the
tagsContainer?
target.addComponent(tagsContainer);
}
});


Kind Regards,

Hbiloo


Re: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource

2009-02-12 Thread Sergio García



igor.vaynberg wrote:
> 
> try calling image.setversioned(false)
> 
> -igor
> 
> 

Thanks for you answer but this does not solve my problem. If i have only one
jfreechart image my workaround of reimplementing ALLP solves partially the
problem. But when the grid page has two Jfreechart images, the second does
not load. When my reimplementation of ALLP calls
target.addComponent(getPage()) the second image loads but the ALLP rows that
are inside an ALLP does not load properly (sometimes no one loads and
sometimes  two or three loads). This is a very rude solution, i think, and i
accept any ideas.

I'm stuck with this :( (maybe i want to do a too fashion web page with
wicket ?)

-- 
View this message in context: 
http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21972743.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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