Re: Registering 'global' Ajax listeners?

2009-04-23 Thread Martin Funk

Hi Liam,

what is it that you'd like to achieve?

On the server side, when executing protected abstract void  
respond(AjaxRequestTarget target);

any component can be added to the target.

mf

Am 23.04.2009 um 00:43 schrieb Liam Clarke-Hutchinson:


Hi,

I have  page with several child components, and several of the
children update themselves using Ajax. Is it possible for the page to
register an Ajax listener that is called on the Ajax events of the
children?

Regards,

Liam Clarke

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





Re: How to determine which validator failed in a CompoundValidator?

2009-04-23 Thread Daan van Etten

Hi,

I think you have to be sure that you do not send an unencrypted  
password across the wire...
That said, I think you can post back the value to the server and  
update the PasswordStrengthMeter with that.

Or you could use Javascript to make it all client-side.

It all depends on implementation if you could reuse classes from my  
blog post.
I think you can use standard Ajax behaviors to update the  
PasswordStrengthMeter. After that, you could use standard form  
validation to validate the strength of the password. With my code, you  
can display an error next to the password field and highlight it.


- Daan

Op 22 apr 2009, om 17:52 heeft Tauren Mills het volgende geschreven:


Daan,

Yes, this definitely looks like the direction I should go for most of
my form components.  Thanks for sharing it!

However, I also need to make a PasswordStrengthMeter, which will show
different values (and css styling) based on the strength of a password
entered into a password field.  Something like one of these:
http://ui-patterns.com/pattern/PasswordStrengthMeter
http://ui-patterns.com/userset/39/image/1104#focus

Before I embark on building it, do you have any suggestions on easy
ways to use your solution to do this?

Thanks!
Tauren



On Tue, Apr 21, 2009 at 10:18 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:

Yeah looks like the way Tauren should go.. Did'nt know that was what
he was looking fore..

2009/4/22 Daan van Etten d...@stuq.nl:

Hi Tauren,

A while ago I wrote this article, which may give you some hints on  
how to

achieve this:
http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket

Regards,

Daan

Op 21 apr 2009, om 17:36 heeft Tauren Mills het volgende geschreven:


Thanks Nino,

Actually, I want just one error message right next to the  
username field
that is specific to the username. I also want to highlight via  
css the
username field. A messagepanel would list errors in other fields  
as well,

wouldn't it?

Tauren

On Apr 21, 2009 5:06 AM, nino martinez wael
nino.martinez.w...@gmail.com
wrote:

Hmm, it happens automatically, a validator can register errors..  
Like

this:

 form.add(new TextFieldString(email,new
PropertyModelString(form.getModel(),email)).add(
  
EmailAddressValidator.getInstance()).add(new

IValidator() {
 public void validate(IValidatable  
validatable) {

 String string = (String)
validatable.getValue();
 if  
(userRepository.areEmailThere(string)) {

 validatable.error(new
ValidationError().addMessageKey(

error.unique).setVariable(email,

validatable.getValue()));
 }

 }
 }));

 form.add(new CheckBox(agree, new  
ModelBoolean(false))

 .add(new IValidatorBoolean() {
 public void
validate(IValidatableBoolean validatable) {
 Boolean agree =
validatable.getValue();
 if (!agree) {
  
validatable.error(new

ValidationError()

.addMessageKey(error.mustagree));
 }

 }
 }));


And then just in your ajax add the error message panel to the
response.. Works just fine... Or is it something more you want?

2009/4/21 Tauren Mills tau...@tauren.com:

On a site registration form, I have three validators on the  
username 


field.  One tests to make s...


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




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



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




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




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




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



java.sql.Timestamp converter bug in 1.4RC2

2009-04-23 Thread Steve Flasby

Chaps,

  Ive just noticed that SqlTimestampConverter appears to be broken.
  I expected it to produce a Date/Time as output, but it only produces
  a time. SqlTimeConverter prints a simple time as I expected.

Looking in the code SqlTimestampConverter::convertToString uses:

DateFormat format = DateFormat.getTimeInstance(dateFormat, locale);

when I think it should say:

DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT, 
DateFormat.SHORT, locale);


instead.

convertToObject would need a corresponding change to:
DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT, 
DateFormat.SHORT, locale);




Am I right or is this behavior by design?


Cheers - Steve


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



Pagemap locking issue

2009-04-23 Thread Tokalak Ahmet
Hi all,

i'm developing a wicket application, in which i have to lookup mutiple tables 
with millions of datasets depending of the user inputs. 
Any operation on these tables is very time consuming not to talk about join 
operations ... (A request can take a few seconds or some minutes to complete)

Since we have changed to production mode we are facing very often with pagemap 
locking errors which is big annoyance.

I have increased the timeout value using 
getRequestCycleSettings().setTimeout(Duration.minutes(10)), which isn't a 
solution.

The problem ist that long running requests block new requests (some requests 
running undefinitely long?).
In our application we see that long running time consuming requests are 
blocking the whole application (tomcat). 
I think that long running request should be aborted after the timeout. 
This is a severe problem for us and could lead to the decision to give up 
Wicket.
Does anybody has any idea to solve this problem? 
Thanks in advance.


  

AbstractColumn's getSortProperty()

2009-04-23 Thread Anton Veretennikov
Hi, Wicket community

While working with AbstractColumn I found that overriding
getSortProperty() does not make column sortable until isSortable() is
not overrided also.

AbstractColumn::isSortable() is looking like now:

public boolean isSortable()
{
return sortProperty != null;
}

May be changing it to return getSortProperty() != null; will solve
this problem?

-- Tony

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



New site developed in wicket - www.inlaconia.gr

2009-04-23 Thread Giannis Koutsoubos
Inlaconia.gr is a travel and business guide for the prefecture of 
Laconia in Greece.

The site uses :
Wicket 1.4
Wicket GMap2
Tomcat with apache frontend
Spring, Hibernate, Mysql

The site is multilingual and wicket made the development a complete fun.
Many thanks to everyone involved in Wicket.


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



Re: New site developed in wicket - www.inlaconia.gr

2009-04-23 Thread Azzeddine Daddah
Looks great. Yet another cool website built in Wicket :).
I liked especially the integration of the photo gallery, it's beautiful.

Cheers,

Azzeddine Daddah
www.hbiloo.com


On Thu, Apr 23, 2009 at 10:18 AM, Giannis Koutsoubos
kouts...@kproject.grwrote:

 Inlaconia.gr is a travel and business guide for the prefecture of Laconia
 in Greece.
 The site uses :
 Wicket 1.4
 Wicket GMap2
 Tomcat with apache frontend
 Spring, Hibernate, Mysql

 The site is multilingual and wicket made the development a complete fun.
 Many thanks to everyone involved in Wicket.


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




Re: Pagemap locking issue

2009-04-23 Thread Martijn Dashorst
Why would you want your users to wait for 1 minute to get results? On
what planet and time/space continuum do you expect users to wait for
that?

Don't do the computation in the request thread. Compute the stuff in a
separate thread, process or whatever and subscribe the user's
session/page/whatever to a future outcome of that thread, and then
rendering that directly.

Sounds more like an application design issue than anything related to wicket.

Martijn

On Thu, Apr 23, 2009 at 10:06 AM, Tokalak Ahmet toka...@yahoo.de wrote:
 Hi all,

 i'm developing a wicket application, in which i have to lookup mutiple tables 
 with millions of datasets depending of the user inputs.
 Any operation on these tables is very time consuming not to talk about join 
 operations ... (A request can take a few seconds or some minutes to complete)

 Since we have changed to production mode we are facing very often with 
 pagemap locking errors which is big annoyance.

 I have increased the timeout value using 
 getRequestCycleSettings().setTimeout(Duration.minutes(10)), which isn't a 
 solution.

 The problem ist that long running requests block new requests (some requests 
 running undefinitely long?).
 In our application we see that long running time consuming requests are 
 blocking the whole application (tomcat).
 I think that long running request should be aborted after the timeout.
 This is a severe problem for us and could lead to the decision to give up 
 Wicket.
 Does anybody has any idea to solve this problem?
 Thanks in advance.






-- 
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: New site developed in wicket - www.inlaconia.gr

2009-04-23 Thread Steve Flasby

Mmm,
  more and more sites being announced. Excellent stuff.
  Great looking site, Giannis.

How many of you guys work for big organizations developing with
Wicket?
Some people I know would be very interested to find out. I work
mainly for banks who are a bit conservative (except when it comes
to dodgy lending) so being able to point to big organizations
using Wicket would help when we try and push it.


Cheers - Steve


Giannis Koutsoubos wrote:
Inlaconia.gr is a travel and business guide for the prefecture of 
Laconia in Greece.

The site uses :
Wicket 1.4
Wicket GMap2
Tomcat with apache frontend
Spring, Hibernate, Mysql

The site is multilingual and wicket made the development a complete fun.
Many thanks to everyone involved in Wicket.


-
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: Random exception at ResourceListenerInterface

2009-04-23 Thread Daniel Fernandez
Thank you again for your time, Igor.

Your explanation makes sense by itself, but it is not my problem, I'm
afraid... this thing can happen to me even the first time I load the
page, without reloading at all.

I investigated deeper and I realised that what was happening was that,
when the server received the request from the flash object for
retrieving the data (a request on the IResourceListener interface of
the DataPanel)... the onBeforeRender() method of the outer container
was being executed some times (and this onBeforeRender created a new
LoadingPanel, which is what caused the exception)...  and this makes
no sense to me.

Let me put it clear, once loaded by the DataPanel onto the browser,
the flash object requests:

http://myserver/MyPage/wicket:interface/:5:outerpanel:panelloader:datapanel::IResourceListener::

Which means that it is calling the datapanel which created the flash
object itself as a resource listener, to simply obtain a resource
declared there (a WebResource object) containing a String of data in
JSON format.

In my understanding this request, which is executed via the
XmlHttpRequest object in the browser, should never provoke
outerpanel's onBeforeRender() method to execute... but it does! I
put a log sentence in this onBeforeRender method which outputs
RequestCycle.get().getRequest().getURL() and I receive an URL like
the one above... but only sometimes, only when it fails.

Is this possible, is there something I am not understanding about the
way this URL should be served?

Thanks again,
Daniel.




2009/4/22 Igor Vaynberg igor.vaynb...@gmail.com:
 browsers are asynchronous, so you might have a race codition. eg
 browser requests the data url and you press the refresh button, so now
 there are two urls in the queue: the data and the page. if page is
 processed first then the data url will fail because when the page is
 first constructed you have a loading panel in there. makes sense?

 take a look at wicket's ajaxlazyloadingpanel, it might have a way to
 handle this.

 -igor

 On Wed, Apr 22, 2009 at 10:23 AM, Daniel Fernandez
 daniel.f...@gmail.com wrote:
 Thanks for your answer, Igor.

 Now I know what is happening more in detail. It is not easy to
 explain, sorry for the long text:

 I have:

  - DataPanel: a panel with data I want to show.

  - LoadingPanel: a panel which just shows a loading... image.

  - PanelLoader: a Panel with an inner panel called content, which
 is loaded initially with LoadingPanel, and sets an AjaxTimerBehavior
 which polls the server until the data is ready, and then creates the
 DataPanel, replaces the inner content with this DataPanel, and stops
 the timer behavior.


 All this works perfectly until I use a subclass of DataPanel called
 FlashDataPanel which, for showing data, shows a flash object which in
 turn has to make a request from the browser to get its data. I offer
 this data to the flash object as a resource, by making this subclass
 of DataPanel implement IResourceListener, and implementing its
 onResourceRequested method. The URL I add to the flash object is
 obtained like:

        CharSequence dataPath =
 RequestCycle.get().urlFor(FlashDataContainer.this,
 IResourceListener.INTERFACE);
        return RequestUtils.toAbsolutePath( dataPath.toString() );

 The problems seems to be that *sometimes, and only sometimes* (maybe
 once each 50 correct loads or so), the onResourceRequested method
 gets called on the LoadingPanel instead of the DataPanel... which is
 something strange to my eyes (unless there is something I don't
 understand, of course). The URL is created passing the
 FlashDataContainer.this object, so I cannot understand how it gets
 called on a LoadingPanel, which of course does not implement
 IResourceListener, and thus provokes this exception.

 Regards,
 Daniel.



 2009/4/22 Igor Vaynberg igor.vaynb...@gmail.com:
 why dont you set a breakpoint for classcastexception and see what it
 is trying to cast to what.

 -igor

 On Wed, Apr 22, 2009 at 3:52 AM, Daniel Fernandez daniel.f...@gmail.com 
 wrote:
 Hello,

 I have a page which makes quite a heavy use of an
 AbstractAjaxTimerBehavior for retrieving the content of some Panels
 (and stops itself after the content is ready, like a sort of
 polling) and I am getting a very strange exception which only seems
 to appear randomly:


 -

 2009-04-22 12:21:30,592 ERROR [RequestCycle] (RequestCycle.java:1463)
 - Method onResourceRequested of interface
 org.apache.wicket.IResourceListener targeted at component
 [MarkupContainer [Component id = content]] threw an exception
 org.apache.wicket.WicketRuntimeException: Method onResourceRequested
 of interface org.apache.wicket.IResourceListener targeted at component
 [MarkupContainer [Component id = content]] threw an exception
        at 
 org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:199)
        at 
 

QueryStringUrlCodingStrategy not encoding te?t - is this correct?

2009-04-23 Thread Antoine van Wel
Hi all,

using 1.3.5 :
mounted a bookmarkable page using the QueryStringUrlCodingStrategy, now I'm
passing in a page parameter with key search and value te?t -- the target
url is

?search=te?t

tracing this, turns out the QueryStringUrlCodingStrategy just applies UTF-8
encoding (or whatever has been set on the application level).

Are this behavior and the constructed URL correct? I would expect a URL like

?search=te%3Ft


regards
Antoine

-- 

--8--8--
take your photos everywhere you go - http://www.memolio.com
--8--8--
We don't see things as they are, we see things as we are. - Anais Nin
Whether you think you can or whether you think you can't, you're right. -
Henry Ford
--8--8--


Re: Random exception at ResourceListenerInterface

2009-04-23 Thread francisco treacy
I don't think it's the same issue, but I had some trouble with loading
a Flash stream and IResourceListener

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

Francisco

2009/4/23 Daniel Fernandez daniel.f...@gmail.com:
 By the way, in case this gives you more information, my DataPanel is
 very similar to the OpenFlashChart Panel class defined in
 http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html, as in
 fact my flash object is Open Flash Chart (I am loading many charts in
 the same page in an asynchronous way).

 Regards,
 Daniel.


 2009/4/23 Daniel Fernandez daniel.f...@gmail.com:
 Thank you again for your time, Igor.

 Your explanation makes sense by itself, but it is not my problem, I'm
 afraid... this thing can happen to me even the first time I load the
 page, without reloading at all.

 I investigated deeper and I realised that what was happening was that,
 when the server received the request from the flash object for
 retrieving the data (a request on the IResourceListener interface of
 the DataPanel)... the onBeforeRender() method of the outer container
 was being executed some times (and this onBeforeRender created a new
 LoadingPanel, which is what caused the exception)...  and this makes
 no sense to me.

 Let me put it clear, once loaded by the DataPanel onto the browser,
 the flash object requests:

 http://myserver/MyPage/wicket:interface/:5:outerpanel:panelloader:datapanel::IResourceListener::

 Which means that it is calling the datapanel which created the flash
 object itself as a resource listener, to simply obtain a resource
 declared there (a WebResource object) containing a String of data in
 JSON format.

 In my understanding this request, which is executed via the
 XmlHttpRequest object in the browser, should never provoke
 outerpanel's onBeforeRender() method to execute... but it does! I
 put a log sentence in this onBeforeRender method which outputs
 RequestCycle.get().getRequest().getURL() and I receive an URL like
 the one above... but only sometimes, only when it fails.

 Is this possible, is there something I am not understanding about the
 way this URL should be served?

 Thanks again,
 Daniel.




 2009/4/22 Igor Vaynberg igor.vaynb...@gmail.com:
 browsers are asynchronous, so you might have a race codition. eg
 browser requests the data url and you press the refresh button, so now
 there are two urls in the queue: the data and the page. if page is
 processed first then the data url will fail because when the page is
 first constructed you have a loading panel in there. makes sense?

 take a look at wicket's ajaxlazyloadingpanel, it might have a way to
 handle this.

 -igor

 On Wed, Apr 22, 2009 at 10:23 AM, Daniel Fernandez
 daniel.f...@gmail.com wrote:
 Thanks for your answer, Igor.

 Now I know what is happening more in detail. It is not easy to
 explain, sorry for the long text:

 I have:

  - DataPanel: a panel with data I want to show.

  - LoadingPanel: a panel which just shows a loading... image.

  - PanelLoader: a Panel with an inner panel called content, which
 is loaded initially with LoadingPanel, and sets an AjaxTimerBehavior
 which polls the server until the data is ready, and then creates the
 DataPanel, replaces the inner content with this DataPanel, and stops
 the timer behavior.


 All this works perfectly until I use a subclass of DataPanel called
 FlashDataPanel which, for showing data, shows a flash object which in
 turn has to make a request from the browser to get its data. I offer
 this data to the flash object as a resource, by making this subclass
 of DataPanel implement IResourceListener, and implementing its
 onResourceRequested method. The URL I add to the flash object is
 obtained like:

        CharSequence dataPath =
 RequestCycle.get().urlFor(FlashDataContainer.this,
 IResourceListener.INTERFACE);
        return RequestUtils.toAbsolutePath( dataPath.toString() );

 The problems seems to be that *sometimes, and only sometimes* (maybe
 once each 50 correct loads or so), the onResourceRequested method
 gets called on the LoadingPanel instead of the DataPanel... which is
 something strange to my eyes (unless there is something I don't
 understand, of course). The URL is created passing the
 FlashDataContainer.this object, so I cannot understand how it gets
 called on a LoadingPanel, which of course does not implement
 IResourceListener, and thus provokes this exception.

 Regards,
 Daniel.



 2009/4/22 Igor Vaynberg igor.vaynb...@gmail.com:
 why dont you set a breakpoint for classcastexception and see what it
 is trying to cast to what.

 -igor

 On Wed, Apr 22, 2009 at 3:52 AM, Daniel Fernandez daniel.f...@gmail.com 
 wrote:
 Hello,

 I have a page which makes quite a heavy use of an
 AbstractAjaxTimerBehavior for retrieving the content of some Panels
 (and stops itself after the content is ready, like a sort of
 polling) and I am getting a very strange exception which only seems
 to appear randomly:


 -

 

Exceptions after Tomcat restart

2009-04-23 Thread Wicket Newbie Wicket Newbie
Hi everybody,

our wicket application behaves in a strange way. After restarting Tomcat server 
in Eclipse everything works fine. But after restarting Tomcat server in Eclipse 
for the second time, Page Expired is shown. Several Exceptions appear in log 
file, but I don't know, how to get rid of them. After the next restart 
everything is fine again. The problem does not just appear in combination with 
Eclipse.


Hope, anybody can help.

Betty


These exceptions occur the most:

2009-04-09 09:28:17,262 
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] 
org.apache.catalina.session.StandardManager::start ERROR Exception loading 
sessions from persistent storage
java.lang.ExceptionInInitializerError
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at 
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
at 
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
at java.lang.reflect.Field.getLong(Field.java:527)
at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1586)
at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.init(ObjectStreamClass.java:400)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at 
org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:403)
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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at 
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1402)
at 
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:931)
at 
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
at 
org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
at 
org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4166)
at 
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3025)
at 
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
at 
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.wicket.WicketRuntimeException: There is no application 
attached to current thread 
ContainerBackgroundProcessor[StandardEngine[Catalina]]
at org.apache.wicket.Application.get(Application.java:177)
at org.apache.wicket.Component.getApplication(Component.java:1277)
at org.apache.wicket.Component.init(Component.java:892)
at org.apache.wicket.MarkupContainer.init(MarkupContainer.java:106)
at org.apache.wicket.Page.init(Page.java:236)
at 
org.apache.wicket.protocol.http.pagestore.SerializedPagesCache$SerializedPageWithSession$1.init(SerializedPagesCache.java:206)
at 
org.apache.wicket.protocol.http.pagestore.SerializedPagesCache$SerializedPageWithSession.clinit(SerializedPagesCache.java:205)
... 42 more


2009-04-09 10:10:53,053 [http-8080-Processor24] 
org.apache.catalina.core.StandardWrapperValve::invoke ERROR 

Re: Random exception at ResourceListenerInterface

2009-04-23 Thread Daniel Fernandez
By the way, in case this gives you more information, my DataPanel is
very similar to the OpenFlashChart Panel class defined in
http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html, as in
fact my flash object is Open Flash Chart (I am loading many charts in
the same page in an asynchronous way).

Regards,
Daniel.


2009/4/23 Daniel Fernandez daniel.f...@gmail.com:
 Thank you again for your time, Igor.

 Your explanation makes sense by itself, but it is not my problem, I'm
 afraid... this thing can happen to me even the first time I load the
 page, without reloading at all.

 I investigated deeper and I realised that what was happening was that,
 when the server received the request from the flash object for
 retrieving the data (a request on the IResourceListener interface of
 the DataPanel)... the onBeforeRender() method of the outer container
 was being executed some times (and this onBeforeRender created a new
 LoadingPanel, which is what caused the exception)...  and this makes
 no sense to me.

 Let me put it clear, once loaded by the DataPanel onto the browser,
 the flash object requests:

 http://myserver/MyPage/wicket:interface/:5:outerpanel:panelloader:datapanel::IResourceListener::

 Which means that it is calling the datapanel which created the flash
 object itself as a resource listener, to simply obtain a resource
 declared there (a WebResource object) containing a String of data in
 JSON format.

 In my understanding this request, which is executed via the
 XmlHttpRequest object in the browser, should never provoke
 outerpanel's onBeforeRender() method to execute... but it does! I
 put a log sentence in this onBeforeRender method which outputs
 RequestCycle.get().getRequest().getURL() and I receive an URL like
 the one above... but only sometimes, only when it fails.

 Is this possible, is there something I am not understanding about the
 way this URL should be served?

 Thanks again,
 Daniel.




 2009/4/22 Igor Vaynberg igor.vaynb...@gmail.com:
 browsers are asynchronous, so you might have a race codition. eg
 browser requests the data url and you press the refresh button, so now
 there are two urls in the queue: the data and the page. if page is
 processed first then the data url will fail because when the page is
 first constructed you have a loading panel in there. makes sense?

 take a look at wicket's ajaxlazyloadingpanel, it might have a way to
 handle this.

 -igor

 On Wed, Apr 22, 2009 at 10:23 AM, Daniel Fernandez
 daniel.f...@gmail.com wrote:
 Thanks for your answer, Igor.

 Now I know what is happening more in detail. It is not easy to
 explain, sorry for the long text:

 I have:

  - DataPanel: a panel with data I want to show.

  - LoadingPanel: a panel which just shows a loading... image.

  - PanelLoader: a Panel with an inner panel called content, which
 is loaded initially with LoadingPanel, and sets an AjaxTimerBehavior
 which polls the server until the data is ready, and then creates the
 DataPanel, replaces the inner content with this DataPanel, and stops
 the timer behavior.


 All this works perfectly until I use a subclass of DataPanel called
 FlashDataPanel which, for showing data, shows a flash object which in
 turn has to make a request from the browser to get its data. I offer
 this data to the flash object as a resource, by making this subclass
 of DataPanel implement IResourceListener, and implementing its
 onResourceRequested method. The URL I add to the flash object is
 obtained like:

        CharSequence dataPath =
 RequestCycle.get().urlFor(FlashDataContainer.this,
 IResourceListener.INTERFACE);
        return RequestUtils.toAbsolutePath( dataPath.toString() );

 The problems seems to be that *sometimes, and only sometimes* (maybe
 once each 50 correct loads or so), the onResourceRequested method
 gets called on the LoadingPanel instead of the DataPanel... which is
 something strange to my eyes (unless there is something I don't
 understand, of course). The URL is created passing the
 FlashDataContainer.this object, so I cannot understand how it gets
 called on a LoadingPanel, which of course does not implement
 IResourceListener, and thus provokes this exception.

 Regards,
 Daniel.



 2009/4/22 Igor Vaynberg igor.vaynb...@gmail.com:
 why dont you set a breakpoint for classcastexception and see what it
 is trying to cast to what.

 -igor

 On Wed, Apr 22, 2009 at 3:52 AM, Daniel Fernandez daniel.f...@gmail.com 
 wrote:
 Hello,

 I have a page which makes quite a heavy use of an
 AbstractAjaxTimerBehavior for retrieving the content of some Panels
 (and stops itself after the content is ready, like a sort of
 polling) and I am getting a very strange exception which only seems
 to appear randomly:


 -

 2009-04-22 12:21:30,592 ERROR [RequestCycle] (RequestCycle.java:1463)
 - Method onResourceRequested of interface
 org.apache.wicket.IResourceListener targeted at component
 [MarkupContainer [Component id = content]] threw an exception

Re: New site developed in wicket - www.inlaconia.gr

2009-04-23 Thread francisco treacy
συγχαρητήρια!

btw, I noticed you used Smooth Gallery. Really neat.
If you did some work around it you might be interested in contributing
to the project at http://code.google.com/p/wicket-slides/ ?

Francisco

2009/4/23 Giannis Koutsoubos kouts...@kproject.gr:
 Inlaconia.gr is a travel and business guide for the prefecture of Laconia in
 Greece.
 The site uses :
 Wicket 1.4
 Wicket GMap2
 Tomcat with apache frontend
 Spring, Hibernate, Mysql

 The site is multilingual and wicket made the development a complete fun.
 Many thanks to everyone involved in Wicket.


 -
 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



How to set content of an ajax enabled link?

2009-04-23 Thread HHB
Hey,
Is there a way to set the content of a link 
dynamically (the value is coming from model object)?
The link has to be Ajax enabled for sure.
Thanks.


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



Re: Random exception at ResourceListenerInterface

2009-04-23 Thread Daniel Fernandez
Hello Francisco,

I don't think the issue is exactly the same, as I am always getting
interface URLs, the good ones... but it might be related, as I am
also having component + resource listener on the same page (though I
have no header contributor).

Regards,
Daniel.


2009/4/23 francisco treacy francisco.tre...@gmail.com:
 I don't think it's the same issue, but I had some trouble with loading
 a Flash stream and IResourceListener

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

 Francisco

 2009/4/23 Daniel Fernandez daniel.f...@gmail.com:
 By the way, in case this gives you more information, my DataPanel is
 very similar to the OpenFlashChart Panel class defined in
 http://cwiki.apache.org/WICKET/open-flash-chart-and-wicket.html, as in
 fact my flash object is Open Flash Chart (I am loading many charts in
 the same page in an asynchronous way).

 Regards,
 Daniel.


 2009/4/23 Daniel Fernandez daniel.f...@gmail.com:
 Thank you again for your time, Igor.

 Your explanation makes sense by itself, but it is not my problem, I'm
 afraid... this thing can happen to me even the first time I load the
 page, without reloading at all.

 I investigated deeper and I realised that what was happening was that,
 when the server received the request from the flash object for
 retrieving the data (a request on the IResourceListener interface of
 the DataPanel)... the onBeforeRender() method of the outer container
 was being executed some times (and this onBeforeRender created a new
 LoadingPanel, which is what caused the exception)...  and this makes
 no sense to me.

 Let me put it clear, once loaded by the DataPanel onto the browser,
 the flash object requests:

 http://myserver/MyPage/wicket:interface/:5:outerpanel:panelloader:datapanel::IResourceListener::

 Which means that it is calling the datapanel which created the flash
 object itself as a resource listener, to simply obtain a resource
 declared there (a WebResource object) containing a String of data in
 JSON format.

 In my understanding this request, which is executed via the
 XmlHttpRequest object in the browser, should never provoke
 outerpanel's onBeforeRender() method to execute... but it does! I
 put a log sentence in this onBeforeRender method which outputs
 RequestCycle.get().getRequest().getURL() and I receive an URL like
 the one above... but only sometimes, only when it fails.

 Is this possible, is there something I am not understanding about the
 way this URL should be served?

 Thanks again,
 Daniel.




 2009/4/22 Igor Vaynberg igor.vaynb...@gmail.com:
 browsers are asynchronous, so you might have a race codition. eg
 browser requests the data url and you press the refresh button, so now
 there are two urls in the queue: the data and the page. if page is
 processed first then the data url will fail because when the page is
 first constructed you have a loading panel in there. makes sense?

 take a look at wicket's ajaxlazyloadingpanel, it might have a way to
 handle this.

 -igor

 On Wed, Apr 22, 2009 at 10:23 AM, Daniel Fernandez
 daniel.f...@gmail.com wrote:
 Thanks for your answer, Igor.

 Now I know what is happening more in detail. It is not easy to
 explain, sorry for the long text:

 I have:

  - DataPanel: a panel with data I want to show.

  - LoadingPanel: a panel which just shows a loading... image.

  - PanelLoader: a Panel with an inner panel called content, which
 is loaded initially with LoadingPanel, and sets an AjaxTimerBehavior
 which polls the server until the data is ready, and then creates the
 DataPanel, replaces the inner content with this DataPanel, and stops
 the timer behavior.


 All this works perfectly until I use a subclass of DataPanel called
 FlashDataPanel which, for showing data, shows a flash object which in
 turn has to make a request from the browser to get its data. I offer
 this data to the flash object as a resource, by making this subclass
 of DataPanel implement IResourceListener, and implementing its
 onResourceRequested method. The URL I add to the flash object is
 obtained like:

        CharSequence dataPath =
 RequestCycle.get().urlFor(FlashDataContainer.this,
 IResourceListener.INTERFACE);
        return RequestUtils.toAbsolutePath( dataPath.toString() );

 The problems seems to be that *sometimes, and only sometimes* (maybe
 once each 50 correct loads or so), the onResourceRequested method
 gets called on the LoadingPanel instead of the DataPanel... which is
 something strange to my eyes (unless there is something I don't
 understand, of course). The URL is created passing the
 FlashDataContainer.this object, so I cannot understand how it gets
 called on a LoadingPanel, which of course does not implement
 IResourceListener, and thus provokes this exception.

 Regards,
 Daniel.



 2009/4/22 Igor Vaynberg igor.vaynb...@gmail.com:
 why dont you set a breakpoint for classcastexception and see what it
 is trying to cast to what.

 -igor

 On Wed, Apr 22, 2009 at 3:52 AM, Daniel Fernandez 
 

Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1

2009-04-23 Thread Basak, Prasan (TCS)
Hi,

Our web application use following configuration for development, and it
frequently gives Java core dump without enough load.
We contacted IBM support, who, after analysing dump file, has found that
some of the html files of our app have been stored in the native memory
space ( not heap memory) , presumably by wicket.

Did any other user of wicket 1.2.x experience similar issues?

Env:
JDK = IBM JDK 1.4
OS = Windows 2003 Server SP1
Application Server = Websphere Process Server 6.0.2x
Web application = Is a pure java app
Wicket Version = 1.2.6

Thanks
prasun


**
This email (and any attachments) may contain privileged and/or confidential 
information. If you are not the intended recipient please do not disclose, 
copy, distribute, disseminate or take any action in reliance on it. If you have 
received this message in error please reply and tell us and then delete it. 
Should you wish to communicate with us by email we cannot guarantee the 
security of any data outside our own computer systems. For the protection of 
Legal  General's systems and staff, incoming emails will be automatically 
scanned. Any information contained in this message may be subject to applicable 
terms and conditions and must not be construed as giving investment advice 
within or outside the United Kingdom. 
 
Legal  General Group plc is registered in England under company number 1417162 
and is a holding company.
 
The registered office for all companies in the Legal  General group is One 
Coleman Street London EC2R 5AA.
 
The following subsidiary companies of Legal  General Group Plc are authorised 
and regulated by the Financial Services Authority: Legal  General Partnership 
Services Limited, Legal  General Insurance Limited, Legal  General Assurance 
Society Limited, Legal  General (Unit Trust Managers) Limited and Legal  
General (Portfolio Management Services) Limited.
 
Legal  General International (Ireland) is incorporated in Ireland under 
company number 440141 with its registered office at Beaux Lane House, Lower 
Mercer Street, Dublin 2, Ireland and is authorised by the Financial Regulator 
in Ireland and by the Financial Services Authority for the conduct of insurance 
business in the UK. 
 
Full details can be found at http://www.legalandgeneralgroup.com

**


Re: Registering 'global' Ajax listeners?

2009-04-23 Thread Liam Clarke-Hutchinson
Hi Martin,

Yeah, we've got a page that has an immediate child label that needs to
be refreshed on pretty much every Ajax request being generated by the
other children on the page..

We were trying to avoid passing a reference to the label to the other
children's constructors, as it smells bad and makes it hard to test.

Ultimately we've gone for the usual method of exposing an overrideable
method in the children for the parent to override where we can add the
label, but was just wondering if there was a way to get an event to
fire for the whole page - similar to how you can get DOM events
bubbling through various event handlers in the component hierachy.


Cheers,

Liam Clarke

On 4/23/09, Martin Funk mafulaf...@googlemail.com wrote:
 Hi Liam,

 what is it that you'd like to achieve?

 On the server side, when executing protected abstract void
 respond(AjaxRequestTarget target);
 any component can be added to the target.

 mf

 Am 23.04.2009 um 00:43 schrieb Liam Clarke-Hutchinson:

 Hi,

 I have  page with several child components, and several of the
 children update themselves using Ajax. Is it possible for the page to
 register an Ajax listener that is called on the Ajax events of the
 children?

 Regards,

 Liam Clarke

 -
 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: Exceptions after Tomcat restart

2009-04-23 Thread Liam Clarke-Hutchinson
Our  Eclipse users have varying issues with Tomcat, and I've picked up
a couple myself today in Intellij cause by half-assed deployments,
although I suspect that's more a Maven issue. /tangent.

In Eclipse, for us, it seems to be caused by resources from a earlier
deployment still remaining, so try cleaning it and then redeploying.

On 4/23/09, Wicket Newbie Wicket Newbie wicket-new...@gmx.de wrote:
 Hi everybody,

 our wicket application behaves in a strange way. After restarting Tomcat
 server in Eclipse everything works fine. But after restarting Tomcat server
 in Eclipse for the second time, Page Expired is shown. Several Exceptions
 appear in log file, but I don't know, how to get rid of them. After the next
 restart everything is fine again. The problem does not just appear in
 combination with Eclipse.


 Hope, anybody can help.

 Betty


 These exceptions occur the most:

 2009-04-09 09:28:17,262
 [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
 org.apache.catalina.session.StandardManager::start ERROR Exception loading
 sessions from persistent storage
 java.lang.ExceptionInInitializerError
 at sun.misc.Unsafe.ensureClassInitialized(Native Method)
 at
 sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
 at
 sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
 at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
 at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
 at java.lang.reflect.Field.getLong(Field.java:527)
 at
 java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1586)
 at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
 at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.io.ObjectStreamClass.init(ObjectStreamClass.java:400)
 at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
 at
 java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
 at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at
 org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:403)
 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
 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
 at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at
 org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1402)
 at
 org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:931)
 at
 org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
 at
 org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
 at
 org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4166)
 at
 org.apache.catalina.core.StandardContext.reload(StandardContext.java:3025)
 at
 org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
 at
 org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278)
 at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
 at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
 at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
 at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
 at java.lang.Thread.run(Thread.java:595)
 Caused by: org.apache.wicket.WicketRuntimeException: There is no application
 attached to current thread
 ContainerBackgroundProcessor[StandardEngine[Catalina]]
 at org.apache.wicket.Application.get(Application.java:177)
 at org.apache.wicket.Component.getApplication(Component.java:1277)
 at org.apache.wicket.Component.init(Component.java:892)
 at 

Re: Strange behavior with palette (1.3.4) and IE7

2009-04-23 Thread Eyal Golan
Thanks guys.

I created a jira issue (https://issues.apache.org/jira/browse/WICKET-2236)
I also added a patch to it.

I just hope I did everything correctly as this is a first time for me.


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Apr 23, 2009 at 1:37 AM, Ryan McKinley ryan...@gmail.com wrote:

 The following like is for Apache Solr, but most of it applies to any Apache
 project:
 http://wiki.apache.org/solr/HowToContribute

 In particular, check:

 http://wiki.apache.org/solr/HowToContribute#head-23efb2d0bdccabdfb1de743a6dea519e9194



 On Apr 22, 2009, at 3:55 PM, Jeremy Thomerson wrote:

  http://issues.apache.org/jira/browse/WICKET

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




 On Wed, Apr 22, 2009 at 2:53 PM, Eyal Golan egola...@gmail.com wrote:

 I would love doing so.
 Is there a special way / place?
 (where to put? what to put?)


 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really
 necessary


 On Wed, Apr 22, 2009 at 7:43 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:

  the right thing to do would be to provide a patch back to the
 community...

 -igor

 On Wed, Apr 22, 2009 at 7:52 AM, Eyal Golan egola...@gmail.com wrote:

 With pleasure.

 1. I overridden Palette.java and Palette.html
 In Palette.html I added the line below (with the span).
 In Palette.java all we did is override renderHead (see below)
 2. We created a new palette.js and added the script file as below.

 Hope that helps.

 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really

 necessary



 On Wed, Apr 22, 2009 at 5:34 PM, Carlo Camerino cmcamer...@gmail.com
 wrote:

  I think we are also expericning this problem same as yours
 If you will allow, can I have a copy of your fix for this one?
 what files did you modify?
 Thanks

 Carlo

 2009/4/22 Eyal Golan egola...@gmail.com

  I fixed the annoying thing by overriding the html panel of the
 palette
 (which I did previously for other purposes) and adding an element

 (1484

 is

 our bugzilla issue number):
 !-- Do not remove ie7bug-1484. customepalette.js uses this element

 --

  span id=ie7bug-1484 style=display: none;/span

 Also:
   /**
* Renders header contributions
*
* @param response
*/
   @Override
   public void renderHead(IHeaderResponse response) {
   super.renderHead(response);
   response.renderJavascriptReference(new
 ResourceReference(CustomPalette.class, customepalette.js));
   }

 and finally:
 Wicket.Palette.moveUp=function(choicesId, selectionId, recorderId) {
   var selection=Wicket.Palette.$(selectionId);

   if (Wicket.Palette.moveUpHelper(selection)) {
   document.getElementById('ie7bug-1484').innerHTML = '';
   var recorder=Wicket.Palette.$(recorderId);
   Wicket.Palette.updateRecorder(selection, recorder);
   } else {
   document.getElementById('ie7bug-1484').innerHTML = '';
   }
   }

 I really don't like these kinds of hacks, but what can I say? IE7

 wouldn't

 let me any other option.

 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really

 necessary



 On Wed, Apr 22, 2009 at 12:13 PM, Eyal Golan egola...@gmail.com

 wrote:


  We have a very strange behavior in palette and IE7.
 We use Wicket 1.3.4 .

 The situation is:
 when pressing the UP button, the selected element goes up in each

 click.

 That's OK.
 The problem occurs when this element is in the second row.
 When pressing UP, it won't go to the first (upper) row. Only when we

 move

 the mouse to the area of the selected elements it goes up.

 In FF it doesn't happen.
 in IE6 it doesn't happen as well.

 I looked in the mailing list and couldn't see something about it.

 Was it fixed in 1.3.5 ?

 Thanks


 Eyal Golan
 egola...@gmail.com

 Visit: http://jvdrums.sourceforge.net/
 LinkedIn: http://www.linkedin.com/in/egolan74

 P  Save a tree. Please don't print this e-mail unless it's really

 necessary






 -
 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 

Re: How to set content of an ajax enabled link?

2009-04-23 Thread Liam Clarke-Hutchinson
By content you mean the text yeah? Create your link (We use
AjaxFallbackLinks for Ajax links, but there's others), and then create
a label with an appropriate model, and add the label to the link.
You're markup would look like so:

a href=# wicket:id=ajaxLinkspan wicket:id=linkContent/span/a

How dynamic a content you're after really depends on what you're
doing. If you're not using a dynamic model (I'm a big fan of property
models over domain objects) you could easily change the Model of the
linkContent label in the ajaxLink's onUpdate method. Just make sure
you add the link to the ajaxRequestTarget to see it update.

If you want a more specific model behaviour, not too hard to knock up
a class implementing IModel that does what you need.

Regards,

Liam Clarke

On 4/23/09, HHB hubaghd...@yahoo.ca wrote:
 Hey,
 Is there a way to set the content of a link
 dynamically (the value is coming from model object)?
 The link has to be Ajax enabled for sure.
 Thanks.


 -
 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: QueryStringUrlCodingStrategy not encoding te?t - is this correct?

2009-04-23 Thread Liam Clarke-Hutchinson
Unless I'm reading the RFC wrong,  the behaviour of
QueryStringUrlCodingStrategy is correct...

http://labs.apache.org/webarch/uri/rfc/rfc3986.html#components

The query component contains non-hierarchical data that, along with
data in the path component, serves to identify a resource within the
scope of the URI's scheme and naming authority (if any). The query
component is indicated by the first question mark (?) character and
terminated by a number sign (#) character or by the end of the URI.

   query   = *( pchar / / / ? )

The characters slash (/) and question mark (?) may represent data
within the query component. Beware that some older, erroneous
implementations may not handle such data correctly when it is used as
the base URI for relative references (Section 5.1), apparently because
they fail to distinguish query data from path data when looking for
hierarchical separators. However, as query components are often used
to carry identifying information in the form of key=value pairs and
one frequently used value is a reference to another URI, it is
sometimes better for usability to avoid percent-encoding those
characters.



On 4/23/09, Antoine van Wel antoine.van@gmail.com wrote:
 Hi all,

 using 1.3.5 :
 mounted a bookmarkable page using the QueryStringUrlCodingStrategy, now I'm
 passing in a page parameter with key search and value te?t -- the target
 url is

 ?search=te?t

 tracing this, turns out the QueryStringUrlCodingStrategy just applies UTF-8
 encoding (or whatever has been set on the application level).

 Are this behavior and the constructed URL correct? I would expect a URL like

 ?search=te%3Ft


 regards
 Antoine

 --

 --8--8--
 take your photos everywhere you go - http://www.memolio.com
 --8--8--
 We don't see things as they are, we see things as we are. - Anais Nin
 Whether you think you can or whether you think you can't, you're right. -
 Henry Ford
 --8--8--


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



Re: AjaxLink causing a redirect

2009-04-23 Thread Matt Welch



Jeremy Thomerson-5 wrote:
 
 Bummer - if you didn't throw in the towel, I'd be interested in seeing
 the result.  All session-relative wicket links are going to have a
 very distinct pattern that should be fairly easy [sic] to get in the
 pattern and not rewrite.
 
 Mind posting your rewrite code and maybe somebody can help with the
 regex?  I may not be able to help, but I have put together some pretty
 hideous regex in my time.
 
Sure. When I get home today I'll attach or host a quickstart with my results
so far.

-Matt

-- 
View this message in context: 
http://www.nabble.com/AjaxLink-causing-a-redirect-tp23189186p23196413.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: AjaxLink causing a redirect

2009-04-23 Thread Matt Welch



Liam Clarke-Hutchinson-3 wrote:
 
 What do you mean by processing? Form processing? Normal rendering?
 
Normal rendering, but as I mentioned later in the thread, even though it was
Wicket issuing the redirect, it was somehow being caused by my attempts at
URL rewriting and the redirects do not occur if the URL manipulation is
disabled. 

-- 
View this message in context: 
http://www.nabble.com/AjaxLink-causing-a-redirect-tp23189186p23196451.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



AW: Pagemap locking issue

2009-04-23 Thread Tokalak Ahmet
Thanks for your feedback Martijn. 
Yes, you're right. I will solve this issue using threads.






Von: Martijn Dashorst martijn.dasho...@gmail.com
An: users@wicket.apache.org
Gesendet: Donnerstag, den 23. April 2009, 10:59:39 Uhr
Betreff: Re: Pagemap locking issue

Why would you want your users to wait for 1 minute to get results? On
what planet and time/space continuum do you expect users to wait for
that?

Don't do the computation in the request thread. Compute the stuff in a
separate thread, process or whatever and subscribe the user's
session/page/whatever to a future outcome of that thread, and then
rendering that directly.

Sounds more like an application design issue than anything related to wicket.

Martijn

On Thu, Apr 23, 2009 at 10:06 AM, Tokalak Ahmet toka...@yahoo.de wrote:
 Hi all,

 i'm developing a wicket application, in which i have to lookup mutiple tables 
 with millions of datasets depending of the user inputs.
 Any operation on these tables is very time consuming not to talk about join 
 operations ... (A request can take a few seconds or some minutes to complete)

 Since we have changed to production mode we are facing very often with 
 pagemap locking errors which is big annoyance.

 I have increased the timeout value using 
 getRequestCycleSettings().setTimeout(Duration.minutes(10)), which isn't a 
 solution.

 The problem ist that long running requests block new requests (some requests 
 running undefinitely long?).
 In our application we see that long running time consuming requests are 
 blocking the whole application (tomcat).
 I think that long running request should be aborted after the timeout.
 This is a severe problem for us and could lead to the decision to give up 
 Wicket.
 Does anybody has any idea to solve this problem?
 Thanks in advance.






-- 
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: Registering 'global' Ajax listeners?

2009-04-23 Thread Peter Ertl

Maybe these help...

- you can override WebApplication.newAjaxRequestTarget(Page page)
- you can use AjaxRequestTarget.addListener() to add listeners



Am 23.04.2009 um 13:45 schrieb Liam Clarke-Hutchinson:


Hi Martin,

Yeah, we've got a page that has an immediate child label that needs to
be refreshed on pretty much every Ajax request being generated by the
other children on the page..

We were trying to avoid passing a reference to the label to the other
children's constructors, as it smells bad and makes it hard to test.

Ultimately we've gone for the usual method of exposing an overrideable
method in the children for the parent to override where we can add the
label, but was just wondering if there was a way to get an event to
fire for the whole page - similar to how you can get DOM events
bubbling through various event handlers in the component hierachy.


Cheers,

Liam Clarke

On 4/23/09, Martin Funk mafulaf...@googlemail.com wrote:

Hi Liam,

what is it that you'd like to achieve?

On the server side, when executing protected abstract void
respond(AjaxRequestTarget target);
any component can be added to the target.

mf

Am 23.04.2009 um 00:43 schrieb Liam Clarke-Hutchinson:


Hi,

I have  page with several child components, and several of the
children update themselves using Ajax. Is it possible for the page  
to

register an Ajax listener that is called on the Ajax events of the
children?

Regards,

Liam Clarke

-
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: How to send data to server - form submission

2009-04-23 Thread Juan G. Arias
I don't see why having multiple ways to send information is reinventing the
wheel.
My point was that form submission is a standard for send information. Is the
classic way.
Ajax doesn't require this. You are able to send information on any
javascript event. And maybe someone had implemented that.

I agree is simpler to have only one entry point. And has consistency, seems
robust.
Wicket triggers the same conceptual event, form submission. No matter how
this is triggered, regular sumit or ajax.

Finally, I will add the form component and send info using the standard way.

Thanks!
Juan

On Wed, Apr 22, 2009 at 6:12 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 Not really - I'd liken that to reinventing the wheel.  Wicket provides
 easy support for linking the component and the model through an ajax
 event - form submission.  But, you could probably write your own JS
 that takes advantage of the wicket-ajax stuff and manually sends the
 form values as parameters on the ajax request, etc...

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




 On Wed, Apr 22, 2009 at 4:06 PM, Juan G. Arias juangar...@gmail.com
 wrote:
  The html and the object component hierarchy would be simplier.My question
 is
  why stay attached to the HTML standard (use forms to submit), if AJAX
  doesn't need to.
 
  I need this inside a form, and only for one or maybe two text fields.
  If I can link the component to the model without a form, I think it might
 be
  better.
 
  Do you agree?
 
  On Wed, Apr 22, 2009 at 4:15 PM, Jeremy Thomerson 
 jer...@wickettraining.com
  wrote:
 
  Why do you want an alternate way?  Is there some advantage you see?
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
 
  On Wed, Apr 22, 2009 at 2:10 PM, Juan G. Arias juangar...@gmail.com
  wrote:
   Hi all,I wanted to check with you if my reasoning is ok.
  
   I have my model object, bound to some controls displayed in the page
  using
   PropertyModel.
   I also have one ajax event (using a simple AjaxLink).
  
   When the user clicks this ajax link, some components in the page are
  added
   to the ajax target in order to be updated.
   And the components linked to my model object resets to their original
   values.
  
   This is happening because there is no submission of information from
   browser, that's ok.
  
   One possible solution to this is to add a form component, surrounding
 my
   components. And replace the AjaxLink with a AjaxSubmitLink.
   That would submit information from the form in the browser, update my
  model,
   and finally render the components updated.
  
   Finally, the question: Is there any other option to do this? Does
 wicket
   have some component to send information via ajax without a form?
  
   Form submission is the regular way to send information from browser to
   server, in regular (no ajax) pages.
   I understand that AjaxSubmitLink doesn't submit the whole page, only
 the
   form, and that's nice.
   But i wonder if there is some alternate way to link properties to
   components.
  
   Thanks in advance!
   Juan
  
 
  -
  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




Embedding a ListView in scrollable area

2009-04-23 Thread HHB
Hey,
I have a ListView that could hold a lot of rows.
Is there a way to embed the list view an a 
scroll-able area/thing?
or I have to fallback to pagination ?
Thanks.


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



Re: Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1

2009-04-23 Thread Jeremy Thomerson
I can't really remember - I just had to say that I think you win the
award for longest signature yet to this list.

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




On Thu, Apr 23, 2009 at 6:37 AM, Basak, Prasan (TCS)
prasan.ba...@landg.com wrote:
 Hi,

 Our web application use following configuration for development, and it
 frequently gives Java core dump without enough load.
 We contacted IBM support, who, after analysing dump file, has found that
 some of the html files of our app have been stored in the native memory
 space ( not heap memory) , presumably by wicket.

 Did any other user of wicket 1.2.x experience similar issues?

 Env:
 JDK = IBM JDK 1.4
 OS = Windows 2003 Server SP1
 Application Server = Websphere Process Server 6.0.2x
 Web application = Is a pure java app
 Wicket Version = 1.2.6

 Thanks
 prasun


 **
 This email (and any attachments) may contain privileged and/or confidential 
 information. If you are not the intended recipient please do not disclose, 
 copy, distribute, disseminate or take any action in reliance on it. If you 
 have received this message in error please reply and tell us and then delete 
 it. Should you wish to communicate with us by email we cannot guarantee the 
 security of any data outside our own computer systems. For the protection of 
 Legal  General's systems and staff, incoming emails will be automatically 
 scanned. Any information contained in this message may be subject to 
 applicable terms and conditions and must not be construed as giving 
 investment advice within or outside the United Kingdom.

 Legal  General Group plc is registered in England under company number 
 1417162 and is a holding company.

 The registered office for all companies in the Legal  General group is One 
 Coleman Street London EC2R 5AA.

 The following subsidiary companies of Legal  General Group Plc are 
 authorised and regulated by the Financial Services Authority: Legal  General 
 Partnership Services Limited, Legal  General Insurance Limited, Legal  
 General Assurance Society Limited, Legal  General (Unit Trust Managers) 
 Limited and Legal  General (Portfolio Management Services) Limited.

 Legal  General International (Ireland) is incorporated in Ireland under 
 company number 440141 with its registered office at Beaux Lane House, Lower 
 Mercer Street, Dublin 2, Ireland and is authorised by the Financial Regulator 
 in Ireland and by the Financial Services Authority for the conduct of 
 insurance business in the UK.

 Full details can be found at http://www.legalandgeneralgroup.com

 **


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



Re: Embedding a ListView in scrollable area

2009-04-23 Thread Jeremy Thomerson
Two points:

1 - really long lists are nearly always bad for users

2 - can't you just do this with CSS?  put a div around the list and
put overflow: auto into it's style?

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




On Thu, Apr 23, 2009 at 9:11 AM, HHB hubaghd...@yahoo.ca wrote:
 Hey,
 I have a ListView that could hold a lot of rows.
 Is there a way to embed the list view an a
 scroll-able area/thing?
 or I have to fallback to pagination ?
 Thanks.


 -
 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: Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1

2009-04-23 Thread Martijn Dashorst
Wicket doesn't do anything with native stuff—we're doing pure Java.
Either you did something strange, or there's a bug in WebSphere or the
IBM JDK you're running into.

Martijn

On Thu, Apr 23, 2009 at 1:37 PM, Basak, Prasan (TCS)
prasan.ba...@landg.com wrote:
 Hi,

 Our web application use following configuration for development, and it
 frequently gives Java core dump without enough load.
 We contacted IBM support, who, after analysing dump file, has found that
 some of the html files of our app have been stored in the native memory
 space ( not heap memory) , presumably by wicket.

 Did any other user of wicket 1.2.x experience similar issues?

 Env:
 JDK = IBM JDK 1.4
 OS = Windows 2003 Server SP1
 Application Server = Websphere Process Server 6.0.2x
 Web application = Is a pure java app
 Wicket Version = 1.2.6

 Thanks
 prasun


 **
 This email (and any attachments) may contain privileged and/or confidential 
 information. If you are not the intended recipient please do not disclose, 
 copy, distribute, disseminate or take any action in reliance on it. If you 
 have received this message in error please reply and tell us and then delete 
 it. Should you wish to communicate with us by email we cannot guarantee the 
 security of any data outside our own computer systems. For the protection of 
 Legal  General's systems and staff, incoming emails will be automatically 
 scanned. Any information contained in this message may be subject to 
 applicable terms and conditions and must not be construed as giving 
 investment advice within or outside the United Kingdom.

 Legal  General Group plc is registered in England under company number 
 1417162 and is a holding company.

 The registered office for all companies in the Legal  General group is One 
 Coleman Street London EC2R 5AA.

 The following subsidiary companies of Legal  General Group Plc are 
 authorised and regulated by the Financial Services Authority: Legal  General 
 Partnership Services Limited, Legal  General Insurance Limited, Legal  
 General Assurance Society Limited, Legal  General (Unit Trust Managers) 
 Limited and Legal  General (Portfolio Management Services) Limited.

 Legal  General International (Ireland) is incorporated in Ireland under 
 company number 440141 with its registered office at Beaux Lane House, Lower 
 Mercer Street, Dublin 2, Ireland and is authorised by the Financial Regulator 
 in Ireland and by the Financial Services Authority for the conduct of 
 insurance business in the UK.

 Full details can be found at http://www.legalandgeneralgroup.com

 **




-- 
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



anchor links

2009-04-23 Thread tubin gen
I created a simple linkfor java script to open a client side popup
window  and not forserver processing.


here is the code

div class=model_test
p a href=# class=model_anchorView/a /p
/div

when   i see generated html source   the codeit is the same no
difference

but when I put my mouse on the anchor   the browser status bar shows a
different url

http://localhost:8080/audit/app/inbox.1?wicket:bookmarkablePage=:com.xyz.pages.stg.audit.AfmsReviewNewAssignmentPagePARAM_PROCESS_INSTANCE_ID=1232#

because of this my java script function is not responding , Please tell me
how can I have   anchor tag untouched by wicket ?


datatable columns shuffle

2009-04-23 Thread Alfredo Aleandri

Hi,
I'm a wicket beginner.
I'm trying to shuffle the columns of a datatable using an 
AjaxFallbackLink, this is my code (only relevant part):


my WebPage content:

   private AjaxFallbackDefaultDataTable usersTable;
   private ListIColumn? userColumns = new ArrayListIColumn?();
   private UserProvider userProvider = new UserProvider();

   public QueryPage() {
  
   userColumns.add(new PropertyColumn(new ModelString(First 
Name), FIRSTNAME, firstName));
   userColumns.add(new PropertyColumn(new ModelString(Last 
Name), LASTNAME, lastName));
   usersTable = new AjaxFallbackDefaultDataTable(users_table, 
userColumns, userProvider, 20);

   usersTable.setOutputMarkupId(true);
   add(usersTable);
  
   add(new AjaxFallbackLink(users_shuffle) {

   @Override
   public void onClick(AjaxRequestTarget target) {
   Collections.shuffle(userColumns);
   usersTable = new 
AjaxFallbackDefaultDataTable(users_table, userColumns, userProvider, 20);

   if (target != null) {
   target.addComponent(usersTable);
   }
   }
   });

   }

my html page content:

   a wicket:id=users_shuffle href=#Shuffle!/a
   table wicket:id=users_table[table]/table


When I click the ajax link the onClick is executed, the userColumns 
list is shuffled but the page rendering is always the same as defined in 
the constructor of the WebPage.

I've tryied also using a standard Link (no ajax) getting the same result.
I'm using Wicket 1.4rc2.

Thank you

Alfredo


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



Re: New site developed in wicket - www.inlaconia.gr

2009-04-23 Thread Martin Grigorov
El jue, 23-04-2009 a las 11:03 +0200, Steve Flasby escribió:
 Mmm,
more and more sites being announced. Excellent stuff.
Great looking site, Giannis.
 
Please add your sites to
http://cwiki.apache.org/WICKET/sites-using-wicket.html

A lot of people ask Are there sites made with Wicket?
The bigger the list the better.

 How many of you guys work for big organizations developing with
 Wicket?
 Some people I know would be very interested to find out. I work
 mainly for banks who are a bit conservative (except when it comes
 to dodgy lending) so being able to point to big organizations
 using Wicket would help when we try and push it.
 
 
 Cheers - Steve
 
 
 Giannis Koutsoubos wrote:
  Inlaconia.gr is a travel and business guide for the prefecture of 
  Laconia in Greece.
  The site uses :
  Wicket 1.4
  Wicket GMap2
  Tomcat with apache frontend
  Spring, Hibernate, Mysql
  
  The site is multilingual and wicket made the development a complete fun.
  Many thanks to everyone involved in Wicket.
  
  
  -
  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



Problem with ListView embedded in another ListView

2009-04-23 Thread Thierry Leveque
Hi

I have a ListView that is embedded inside another ListView. Both ListView
are dynamic: Both have an Add and a Remove button.
The ietms in both ListView are a series of form fields.

The problem I have is only with my second ListView when I add more than one
item without submitting the form. The fields lost their content. i.e. If I
click on my Add button a new row with fields appear. I put some values in
those fields. I click again on my Add button, the new row appear but the
values I just enter before are lost!
And yes I put my getReuseItems() to true.

The same thing is working fine with the ListView at the first level. The
values in the fields are not lost.
The problem is only with the embeded one.

Any idea??

Thierry
Sent from Montreal, Quebec, Canada


Time Component

2009-04-23 Thread Vidhya Kailash
Is there a time component available anywhere to basically let the user select 
hr / min and am/pm?
thanks
Vidhya


  

Re: java.sql.Timestamp converter bug in 1.4RC2

2009-04-23 Thread Igor Vaynberg
sounds like a bug, please open a jira issue.

-igor

On Thu, Apr 23, 2009 at 12:47 AM, Steve Flasby st...@flasby.org wrote:
 Chaps,

  Ive just noticed that SqlTimestampConverter appears to be broken.
  I expected it to produce a Date/Time as output, but it only produces
  a time. SqlTimeConverter prints a simple time as I expected.

 Looking in the code SqlTimestampConverter::convertToString uses:

 DateFormat format = DateFormat.getTimeInstance(dateFormat, locale);

 when I think it should say:

 DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT,
 DateFormat.SHORT, locale);

 instead.

 convertToObject would need a corresponding change to:
 DateFormat format = DateFormat.getDateTimeInstance(DateFormat.SHORT,
 DateFormat.SHORT, locale);



 Am I right or is this behavior by design?


 Cheers - Steve


 -
 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: AbstractColumn's getSortProperty()

2009-04-23 Thread Igor Vaynberg
open a jira issue.

-igor

On Thu, Apr 23, 2009 at 1:08 AM, Anton Veretennikov
anton.veretenni...@gmail.com wrote:
 Hi, Wicket community

 While working with AbstractColumn I found that overriding
 getSortProperty() does not make column sortable until isSortable() is
 not overrided also.

 AbstractColumn::isSortable() is looking like now:

        public boolean isSortable()
        {
                return sortProperty != null;
        }

 May be changing it to return getSortProperty() != null; will solve
 this problem?

 -- Tony

 -
 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: Exceptions after Tomcat restart

2009-04-23 Thread Igor Vaynberg
looks like tomcat is trying to save sessions to disk and restore them
on restart. this should be turned off while developing because you
change the structure of objects and they cannot always be loaded back.
this is a tomcat setting.

-igor

On Thu, Apr 23, 2009 at 3:19 AM, Wicket Newbie Wicket Newbie
wicket-new...@gmx.de wrote:
 Hi everybody,

 our wicket application behaves in a strange way. After restarting Tomcat 
 server in Eclipse everything works fine. But after restarting Tomcat server 
 in Eclipse for the second time, Page Expired is shown. Several Exceptions 
 appear in log file, but I don't know, how to get rid of them. After the next 
 restart everything is fine again. The problem does not just appear in 
 combination with Eclipse.


 Hope, anybody can help.

 Betty


 These exceptions occur the most:

 2009-04-09 09:28:17,262 
 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] 
 org.apache.catalina.session.StandardManager::start ERROR Exception loading 
 sessions from persistent storage
 java.lang.ExceptionInInitializerError
    at sun.misc.Unsafe.ensureClassInitialized(Native Method)
    at 
 sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
    at 
 sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
    at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
    at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
    at java.lang.reflect.Field.getLong(Field.java:527)
    at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1586)
    at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
    at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.io.ObjectStreamClass.init(ObjectStreamClass.java:400)
    at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
    at 
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
    at 
 org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.readObject(SecondLevelCacheSessionStore.java:403)
    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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
    at 
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
    at 
 org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1402)
    at 
 org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:931)
    at 
 org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
    at 
 org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
    at 
 org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
    at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4166)
    at 
 org.apache.catalina.core.StandardContext.reload(StandardContext.java:3025)
    at 
 org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
    at 
 org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278)
    at 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
    at 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
    at 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
    at 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
    at java.lang.Thread.run(Thread.java:595)
 Caused by: org.apache.wicket.WicketRuntimeException: There is no application 
 attached to current thread 
 ContainerBackgroundProcessor[StandardEngine[Catalina]]
    at org.apache.wicket.Application.get(Application.java:177)
    at org.apache.wicket.Component.getApplication(Component.java:1277)
    at org.apache.wicket.Component.init(Component.java:892)
    at org.apache.wicket.MarkupContainer.init(MarkupContainer.java:106)
    at org.apache.wicket.Page.init(Page.java:236)
    at 
 

Re: Problem with ListView embedded in another ListView

2009-04-23 Thread Igor Vaynberg
is your add button submitting the form?

is setreuseitems turned on on both listviews?


-igor

On Thu, Apr 23, 2009 at 8:45 AM, Thierry Leveque tleve...@gmail.com wrote:
 Hi

 I have a ListView that is embedded inside another ListView. Both ListView
 are dynamic: Both have an Add and a Remove button.
 The ietms in both ListView are a series of form fields.

 The problem I have is only with my second ListView when I add more than one
 item without submitting the form. The fields lost their content. i.e. If I
 click on my Add button a new row with fields appear. I put some values in
 those fields. I click again on my Add button, the new row appear but the
 values I just enter before are lost!
 And yes I put my getReuseItems() to true.

 The same thing is working fine with the ListView at the first level. The
 values in the fields are not lost.
 The problem is only with the embeded one.

 Any idea??

 Thierry
 Sent from Montreal, Quebec, Canada


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



Re: datatable columns shuffle

2009-04-23 Thread Igor Vaynberg
datatable does not support changing columns, something on a todo list
to fix in 1.5. for now you can just recreate the datatable itself.

-igor

On Thu, Apr 23, 2009 at 8:35 AM, Alfredo Aleandri
alfredo.alean...@logobject.ch wrote:
 Hi,
 I'm a wicket beginner.
 I'm trying to shuffle the columns of a datatable using an AjaxFallbackLink,
 this is my code (only relevant part):

 my WebPage content:

   private AjaxFallbackDefaultDataTable usersTable;
   private ListIColumn? userColumns = new ArrayListIColumn?();
   private UserProvider userProvider = new UserProvider();

   public QueryPage() {
             userColumns.add(new PropertyColumn(new ModelString(First
 Name), FIRSTNAME, firstName));
       userColumns.add(new PropertyColumn(new ModelString(Last Name),
 LASTNAME, lastName));
       usersTable = new AjaxFallbackDefaultDataTable(users_table,
 userColumns, userProvider, 20);
       usersTable.setOutputMarkupId(true);
       add(usersTable);
             add(new AjaxFallbackLink(users_shuffle) {
           @Override
           public void onClick(AjaxRequestTarget target) {
               Collections.shuffle(userColumns);
               usersTable = new AjaxFallbackDefaultDataTable(users_table,
 userColumns, userProvider, 20);
               if (target != null) {
                   target.addComponent(usersTable);
               }
           }
       });

   }

 my html page content:

   a wicket:id=users_shuffle href=#Shuffle!/a
   table wicket:id=users_table[table]/table


 When I click the ajax link the onClick is executed, the userColumns list
 is shuffled but the page rendering is always the same as defined in the
 constructor of the WebPage.
 I've tryied also using a standard Link (no ajax) getting the same result.
 I'm using Wicket 1.4rc2.

 Thank you

 Alfredo


 -
 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 ListView embedded in another ListView

2009-04-23 Thread Thierry Leveque
No, it is an AjaxFallbackLink

Both ListView use AjaxFallbackLink to Add or Remove item.

Thierry
Sent from Montreal, Quebec, Canada

On Thu, Apr 23, 2009 at 12:44, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 is your add button submitting the form?

 is setreuseitems turned on on both listviews?


 -igor

 On Thu, Apr 23, 2009 at 8:45 AM, Thierry Leveque tleve...@gmail.com
 wrote:
  Hi
 
  I have a ListView that is embedded inside another ListView. Both ListView
  are dynamic: Both have an Add and a Remove button.
  The ietms in both ListView are a series of form fields.
 
  The problem I have is only with my second ListView when I add more than
 one
  item without submitting the form. The fields lost their content. i.e. If
 I
  click on my Add button a new row with fields appear. I put some values in
  those fields. I click again on my Add button, the new row appear but the
  values I just enter before are lost!
  And yes I put my getReuseItems() to true.
 
  The same thing is working fine with the ListView at the first level. The
  values in the fields are not lost.
  The problem is only with the embeded one.
 
  Any idea??
 
  Thierry
  Sent from Montreal, Quebec, Canada
 

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




Time Component

2009-04-23 Thread Vidhya Kailash
Is there a time component already available where the user can choose hrs /mins 
/ am-pm? If so can somebody please point me to the package?
thanks




  

Re: Native memory leak using wicket-1.2.6 / IBM JDK 1.4 / Windows 2003 Server SP1

2009-04-23 Thread Carlo Camerino
did yous witch your aplication to deployment mode.
Using development mode in websphere using wicket will cause it to have
memory leaks.
Even in 1.3.5 we experience it.
Try switching to deployment mode and see if helps

On Thu, Apr 23, 2009 at 10:20 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 Wicket doesn't do anything with native stuff—we're doing pure Java.
 Either you did something strange, or there's a bug in WebSphere or the
 IBM JDK you're running into.

 Martijn

 On Thu, Apr 23, 2009 at 1:37 PM, Basak, Prasan (TCS)
 prasan.ba...@landg.com wrote:
  Hi,
 
  Our web application use following configuration for development, and it
  frequently gives Java core dump without enough load.
  We contacted IBM support, who, after analysing dump file, has found that
  some of the html files of our app have been stored in the native memory
  space ( not heap memory) , presumably by wicket.
 
  Did any other user of wicket 1.2.x experience similar issues?
 
  Env:
  JDK = IBM JDK 1.4
  OS = Windows 2003 Server SP1
  Application Server = Websphere Process Server 6.0.2x
  Web application = Is a pure java app
  Wicket Version = 1.2.6
 
  Thanks
  prasun
 
 
  **
  This email (and any attachments) may contain privileged and/or
 confidential information. If you are not the intended recipient please do
 not disclose, copy, distribute, disseminate or take any action in reliance
 on it. If you have received this message in error please reply and tell us
 and then delete it. Should you wish to communicate with us by email we
 cannot guarantee the security of any data outside our own computer systems.
 For the protection of Legal  General's systems and staff, incoming emails
 will be automatically scanned. Any information contained in this message may
 be subject to applicable terms and conditions and must not be construed as
 giving investment advice within or outside the United Kingdom.
 
  Legal  General Group plc is registered in England under company number
 1417162 and is a holding company.
 
  The registered office for all companies in the Legal  General group is
 One Coleman Street London EC2R 5AA.
 
  The following subsidiary companies of Legal  General Group Plc are
 authorised and regulated by the Financial Services Authority: Legal 
 General Partnership Services Limited, Legal  General Insurance Limited,
 Legal  General Assurance Society Limited, Legal  General (Unit Trust
 Managers) Limited and Legal  General (Portfolio Management Services)
 Limited.
 
  Legal  General International (Ireland) is incorporated in Ireland under
 company number 440141 with its registered office at Beaux Lane House, Lower
 Mercer Street, Dublin 2, Ireland and is authorised by the Financial
 Regulator in Ireland and by the Financial Services Authority for the conduct
 of insurance business in the UK.
 
  Full details can be found at http://www.legalandgeneralgroup.com
 
  **
 



 --
 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




simple example of RadioGroup

2009-04-23 Thread Jason Novotny


Hi,

   Somehow I seem to have problems if I want to do individual radio 
buttons in my HTML and it looks like I need to use RadioGroup. Here is 
the example HTML and I'm trying to figure out how to wicket-ize it... 
the model just needs to be a boolean since I have only two values.


pinput wicket:id=option type=radio value= Click here for 
option one/p
   p class=bottomOptioninput name= type=radio 
value= Click here for option two/p



Thanks, Jason


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



Re: Problem with ListView embedded in another ListView

2009-04-23 Thread Igor Vaynberg
is the link repainting the entire listview? in that case all values
will be lost because they are not submitted. either use
ajaxsubmitlink, or only repaint the new row. there is an article on
wicketinaction.com that shows how to do it.

-igor

On Thu, Apr 23, 2009 at 9:57 AM, Thierry Leveque tleve...@gmail.com wrote:
 No, it is an AjaxFallbackLink

 Both ListView use AjaxFallbackLink to Add or Remove item.

 Thierry
 Sent from Montreal, Quebec, Canada

 On Thu, Apr 23, 2009 at 12:44, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 is your add button submitting the form?

 is setreuseitems turned on on both listviews?


 -igor

 On Thu, Apr 23, 2009 at 8:45 AM, Thierry Leveque tleve...@gmail.com
 wrote:
  Hi
 
  I have a ListView that is embedded inside another ListView. Both ListView
  are dynamic: Both have an Add and a Remove button.
  The ietms in both ListView are a series of form fields.
 
  The problem I have is only with my second ListView when I add more than
 one
  item without submitting the form. The fields lost their content. i.e. If
 I
  click on my Add button a new row with fields appear. I put some values in
  those fields. I click again on my Add button, the new row appear but the
  values I just enter before are lost!
  And yes I put my getReuseItems() to true.
 
  The same thing is working fine with the ListView at the first level. The
  values in the fields are not lost.
  The problem is only with the embeded one.
 
  Any idea??
 
  Thierry
  Sent from Montreal, Quebec, Canada
 

 -
 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: simple example of RadioGroup

2009-04-23 Thread Igor Vaynberg
radiogroup g=new radiogroup(group, mybooleanmodel());
g.add(new radio(t,new model(boolean.true));
g.add(new radio(f,new model(boolean.false));

wicket:container wicket:id=group
pinput wicket:id=t type=radio value= Click here for option one/p
  p class=bottomOptioninput wicket:id=f name=
type=radio value= Click here for option two/p
/wicket:container

-igor

On Thu, Apr 23, 2009 at 10:28 AM, Jason Novotny novo...@gridsphere.org wrote:

 Hi,

   Somehow I seem to have problems if I want to do individual radio buttons
 in my HTML and it looks like I need to use RadioGroup. Here is the example
 HTML and I'm trying to figure out how to wicket-ize it... the model just
 needs to be a boolean since I have only two values.

 pinput wicket:id=option type=radio value= Click here for option
 one/p
               p class=bottomOptioninput name= type=radio value=
 Click here for option two/p


 Thanks, Jason


 -
 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 ListView embedded in another ListView

2009-04-23 Thread Thierry Leveque
Thank you very much!!!
The AjaxSubmitLink ( with the DefaultFormProcessing set to false) solve my
problem!!

This is what happening when using to much copy-paste!! I was already using
AjaxSubmitLink everywhere in my code

Thierry
Sent from Montreal, Quebec, Canada

On Thu, Apr 23, 2009 at 13:28, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 is the link repainting the entire listview? in that case all values
 will be lost because they are not submitted. either use
 ajaxsubmitlink, or only repaint the new row. there is an article on
 wicketinaction.com that shows how to do it.

 -igor

 On Thu, Apr 23, 2009 at 9:57 AM, Thierry Leveque tleve...@gmail.com
 wrote:
  No, it is an AjaxFallbackLink
 
  Both ListView use AjaxFallbackLink to Add or Remove item.
 
  Thierry
  Sent from Montreal, Quebec, Canada
 
  On Thu, Apr 23, 2009 at 12:44, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:
 
  is your add button submitting the form?
 
  is setreuseitems turned on on both listviews?
 
 
  -igor
 
  On Thu, Apr 23, 2009 at 8:45 AM, Thierry Leveque tleve...@gmail.com
  wrote:
   Hi
  
   I have a ListView that is embedded inside another ListView. Both
 ListView
   are dynamic: Both have an Add and a Remove button.
   The ietms in both ListView are a series of form fields.
  
   The problem I have is only with my second ListView when I add more
 than
  one
   item without submitting the form. The fields lost their content. i.e.
 If
  I
   click on my Add button a new row with fields appear. I put some values
 in
   those fields. I click again on my Add button, the new row appear but
 the
   values I just enter before are lost!
   And yes I put my getReuseItems() to true.
  
   The same thing is working fine with the ListView at the first level.
 The
   values in the fields are not lost.
   The problem is only with the embeded one.
  
   Any idea??
  
   Thierry
   Sent from Montreal, Quebec, Canada
  
 
  -
  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: adding javascript to response

2009-04-23 Thread Mathias P.W Nilsson

If you have an AjaxSubmitLink you can do the following

public void onSubmit( AjaxRequestTarget target, Form form ){
   target.appendJavascript( alert( 'hi!' ); );
}
-- 
View this message in context: 
http://www.nabble.com/adding-javascript-to-response-tp23187923p23197512.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: ModalWindow Position

2009-04-23 Thread Mathias P.W Nilsson

You could maybe make your own javascript for the modal window

Wicket.Window.prototype.center = function() { 
  // Set your window here.
 }; 
-- 
View this message in context: 
http://www.nabble.com/ModalWindow-Position-tp23156615p23197519.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



Ajax timer behavior not updating component in IE, Chrome and Opera

2009-04-23 Thread Daniel Fernandez
Hello,

I am sorry I am not going to be very specific here, because the error
I am experiencing is not very deterministic.

The scenario: I am using 1.4-rc2, and I have a page with several (six,
to be precise) panels which load its contents by using a subclass of
AbstractAjaxTimerBehavior, which polls the server until the data for
each of them is ready and if so returns a Panel with the adequate
content. I cannot use LazyLoadPanel because I need their data
obtention to be concurrent, and LazyLoadPanel would serialize their
requests.

This page works perfectly in Firefox, but sometimes I get some weird
behaviour in other browsers. The one most affected is Chrome, but
Opera 9.6 also fails sometimes, and the same goes for IE7.

So, I have this piece of HTML in my page:

wicket:container wicket:id=rows
  tr wicket:id=row id=row248
wicket:panelwicket:panel
  td wicket:id=rowLabelITALY/td
  td wicket:id=rowColumnsimg wicket:id=loadingImage
src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif//td
  td wicket:id=rowColumnsimg wicket:id=loadingImage
src=resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif//td
/wicket:panel/wicket:panel
  /tr
/wicket:container

...being row248 a wicket-generated markup id, and of course a unique
identifier in the page.

I can see in the Wicket AJAX Debug window that the panel containing
the data is correctly retrieved...

-

INFO:
INFO: Initiating Ajax GET request on
?wicket:interface=:220:test2:content:rows:0:row::IActivePageBehaviorListener:0:-1amp;wicket:ignoreIfNotActive=truerandom=0.6747844972740807
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (226 characters)
INFO:
?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
id=row248 ![CDATA[tr id=row248

tdITALY/td
td colspan=2spanNo data to show!/span/td

/tr]]/component/ajax-response
INFO: Response parsed. Now invoking steps...
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...
INFO: Calling posponed function...
INFO: last focus id was not set
INFO:




...but *that tr is never updated in the page's DOM*, and I never get
to see it. The symptoms are exactly the same in the three mentioned
browsers, and it only happens sometimes.

And I don't get any errors in the javascript console...


Any clues?


Thank you,
Daniel.

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



creating alink just for java script

2009-04-23 Thread balingen tame
I want to add  long java  script   to the onclick of a anchor , was
wondering if I do this using a Link , The reason  I want to use a link is I
can append the java script with the attribute modifier.My concern is , any
link will also adds   java script   to call the server , in this case I
want link to call just the java script and nothing more ,Can I do this ?


Re: creating alink just for java script

2009-04-23 Thread Jeremy Thomerson
Use a WebMarkupContainer and either:

- add the AttributeModifier for the onclick
- or, override onComponentTag and do tag.put(onclick, javascript)

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



On Thu, Apr 23, 2009 at 3:38 PM, balingen tame euuesundtrin...@gmail.comwrote:

 I want to add  long java  script   to the onclick of a anchor , was
 wondering if I do this using a Link , The reason  I want to use a link is I
 can append the java script with the attribute modifier.My concern is , any
 link will also adds   java script   to call the server , in this case I
 want link to call just the java script and nothing more ,Can I do this ?



Re: Registering 'global' Ajax listeners?

2009-04-23 Thread Liam Clarke-Hutchinson
Thanks Peter, that looks like what I was after, albeit at an even
higher level. :)

On Fri, Apr 24, 2009 at 12:05 AM, Peter Ertl pe...@gmx.org wrote:
 Maybe these help...

 - you can override WebApplication.newAjaxRequestTarget(Page page)
 - you can use AjaxRequestTarget.addListener() to add listeners



 Am 23.04.2009 um 13:45 schrieb Liam Clarke-Hutchinson:

 Hi Martin,

 Yeah, we've got a page that has an immediate child label that needs to
 be refreshed on pretty much every Ajax request being generated by the
 other children on the page..

 We were trying to avoid passing a reference to the label to the other
 children's constructors, as it smells bad and makes it hard to test.

 Ultimately we've gone for the usual method of exposing an overrideable
 method in the children for the parent to override where we can add the
 label, but was just wondering if there was a way to get an event to
 fire for the whole page - similar to how you can get DOM events
 bubbling through various event handlers in the component hierachy.


 Cheers,

 Liam Clarke

 On 4/23/09, Martin Funk mafulaf...@googlemail.com wrote:

 Hi Liam,

 what is it that you'd like to achieve?

 On the server side, when executing protected abstract void
 respond(AjaxRequestTarget target);
 any component can be added to the target.

 mf

 Am 23.04.2009 um 00:43 schrieb Liam Clarke-Hutchinson:

 Hi,

 I have  page with several child components, and several of the
 children update themselves using Ajax. Is it possible for the page to
 register an Ajax listener that is called on the Ajax events of the
 children?

 Regards,

 Liam Clarke

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




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


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



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



Re: anchor links

2009-04-23 Thread Liam Clarke-Hutchinson
That's a normal anchor link...

This bit:
http://localhost:8080/audit/app/inbox.1?wicket:bookmarkablePage=:com.xyz.pages.stg.audit.AfmsReviewNewAssignmentPagePARAM_PROCESS_INSTANCE_ID=1232

Is the URL for your generated page

This bit:
#

Is your anchor. It's normal behaviour.  Try it on here:
http://www.w3schools.com/HTML/tryit.asp?filename=tryhtml_links Add a
link like so: a href=#foofoo/a and when you hover over it,
you'll get http://www.w3schools.com/HTML/tryit_view.asp#foo as the
displayed link.

On Fri, Apr 24, 2009 at 3:04 AM, tubin gen fachh...@gmail.com wrote:
 I created a simple link    for java script to open a client side popup
 window  and not for    server processing.


 here is the code

                div class=model_test
                    p a href=# class=model_anchorView/a /p
                /div

 when   i see generated html source   the code    it is the same no
 difference

 but when I put my mouse on the anchor   the browser status bar shows a
 different url

 http://localhost:8080/audit/app/inbox.1?wicket:bookmarkablePage=:com.xyz.pages.stg.audit.AfmsReviewNewAssignmentPagePARAM_PROCESS_INSTANCE_ID=1232#

 because of this my java script function is not responding , Please tell me
 how can I have   anchor tag untouched by wicket ?


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



RadioGroup and nested ListView

2009-04-23 Thread c c
Hi all, I am new at this so please be gentle.

I would like to use a RadioGroup to select one element among a list
of elements organized in groups.
I have two nested ListView, the outer looping over the groups, the
inner one looping over the elements of each group.
Each element of the inner listview has a Radio.

I have tried the following but I get the error:
WicketMessage: Component radio must be applied to a tag with 'type'
attribute matching 'radio', not 'null'
probably because the radio are in the items of the inner ListView
while the outer ListView is added to the RadioGroup.


Form form = new Form(form);
add(form);  
final RadioGroup radioGroup = new RadioGroup(radioGroup, new Model());

ListView listviewGroups = new ListView(listviewGroups, groups){

@Override
protected void populateItem(ListItem groupItem) {
SubCategory group = (SubCategory) groupItem.getModelObject();
groupItem.add(new Label(group, group.getName()));

ListView listviewElements = new ListView(listviewElements,
 service.getElementsForGroup(group.getId())) {

@Override
protected void populateItem(ListItem elementItem) {
Element element = (Element) 
futureItem.getModelObject();
elementItem.add(
new Label(element, 
element.getName()));
elementItem.add(
new Radio(radio, 
elementItem.getModel()); 
}   
};
groupItem.add(listviewElements);
}
};
radioGroup.add(listviewGroups);
form.add(radioGroup);

/*- and this in the html ---*/

form wicket:id=form
div wicket:id=radioGroup
div wicket:id=listviewGroups 
span wicket:id=group/span
table
tr wicket:id=listviewElements
td
input wicket:id=radio/
span 
wicket:id=element/span
/td
/tr
/table
/div
/div
/form

Many thanks in advance for any help!

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



How to handle multiple choices?

2009-04-23 Thread Major Péter

Hi all,

I'm quite new to Wicket, and I really started to liking it. ;)
But now I have a problem, which I don't know how to solve:
In my application there are groups, users, and memberships. Every 
membership has an entitlement (member, group leader, pr_manager and so 
on), which is used for authorization information at other pages.
I need to make a page where these entitlements can be easily managed by 
the group leader (for example: add an entitlement, remove an entitlement 
- a member can have multiple entitlements at the same time and an 
entitlement can be belong only to one member).

Is there some tool, which could make this to a little simpler problem?
(I was thought about ListView with RadioButtons, where the RB's are 
interpreted by columns, but I didn't found an example to do this)

Please help me.
Thanks in advance.

Best Regards,
Peter Major

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



Re: How to handle multiple choices?

2009-04-23 Thread James Carman
2009/4/23 Major Péter majorpe...@sch.bme.hu:
 Is there some tool, which could make this to a little simpler problem?
 (I was thought about ListView with RadioButtons, where the RB's are
 interpreted by columns, but I didn't found an example to do this)

I would check out ListMultipleChoice or perhaps even Palette (from
extensions).  You can see a demo of ListMultipleChoice here (it's the
one that allows you to select your favorite sites):

http://www.wicketstuff.org/wicket13/forminput/

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



Re: AjaxLink causing a redirect

2009-04-23 Thread Matt Welch


Jeremy Thomerson-5 wrote:
 
 Bummer - if you didn't throw in the towel, I'd be interested in seeing
 the result.  All session-relative wicket links are going to have a
 very distinct pattern that should be fairly easy [sic] to get in the
 pattern and not rewrite.
 
 Mind posting your rewrite code and maybe somebody can help with the
 regex?  I may not be able to help, but I have put together some pretty
 hideous regex in my time.
 

Here's the link to the quickstart:
http://www.nabble.com/file/p23208312/myproject.zip myproject.zip 

Some notes:
1) This won't work as written in Jetty. Jetty uses an unmodifiable map for
request parameters so to make it work in Jetty, one would need to change the
rewrite rule to set a request attribute instead of a request parameter.

2) I had to include the jar for the 3.2.0 version of the URL Rewrite filter
as it isn't in the central Maven repo yet. 

3) Instead of launching to the start page of the app I would recommend going
straight to http://localhost:8080/whateveryouwant/testpage1;. Replace 
whateveryouwant with anything. That's the value that will be rewritten out
of the URL and set as a request parameter with the name organization. 

4) I'm using the HybridUrlCodingStrategy for URLs. You should be able to use
any URL coding stratgy, but since this is what I'm using in my main app,
it's what I've configured the rule for.


-Matt

-- 
View this message in context: 
http://www.nabble.com/AjaxLink-causing-a-redirect-tp23189186p23208312.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



jQuery query for all Ajax-enabled links

2009-04-23 Thread Anton Veretennikov
Hi, all wicket users,

I hope somebody knows.
What is the jQuery filter for all wicket Ajax-enabled links?

Wicket version is 1.4-SNAPSHOT.

-- Tony.

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



Whats the best way to do a form component validation?

2009-04-23 Thread Jason Wang

Hi all,

I have a form with a couple form components, most of which have 
validators attached. For example, the mobile number input field has a 
patternValidator attached:


mobile.add(new PatternValidator(^[1-9]([0-9]{8,14})));

I have hooked all the validation actions with onblur events using this:

AjaxFormValidatingBehavior.addToAllFormComponents(signUpForm, onblur, 
Duration.ONE_SECOND);


But unfortunately all the validations are triggered as soon as the focus 
leaves any of the form component.


Is there a way to hook the validator(like the patterValidator) with the 
event(onblur for example) on the form component(the mobile filed) rather 
than the whole form?


It would be nice that the AjaxFormValidatingBehavior class could provide 
the option to trigger the validations on events on every components.


Thanks.

Jasonw



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



Re: Whats the best way to do a form component validation?

2009-04-23 Thread Liam Clarke-Hutchinson
I use an AjaxFormComponentSubmittingBehavior onblur for each field -
so it triggers the submission processing behaviour (including
validation) for the given field - although it updates the model. You
could use an applicable Ajax behaviour and then call the component's
validate() method if you wanted to avoid the model update.

Regards,

Liam Clarke

On Fri, Apr 24, 2009 at 3:50 PM, Jason Wang jason.w...@bulletin.net wrote:
 Hi all,

 I have a form with a couple form components, most of which have validators
 attached. For example, the mobile number input field has a patternValidator
 attached:

 mobile.add(new PatternValidator(^[1-9]([0-9]{8,14})));

 I have hooked all the validation actions with onblur events using this:

 AjaxFormValidatingBehavior.addToAllFormComponents(signUpForm, onblur,
 Duration.ONE_SECOND);

 But unfortunately all the validations are triggered as soon as the focus
 leaves any of the form component.

 Is there a way to hook the validator(like the patterValidator) with the
 event(onblur for example) on the form component(the mobile filed) rather
 than the whole form?

 It would be nice that the AjaxFormValidatingBehavior class could provide the
 option to trigger the validations on events on every components.

 Thanks.

 Jasonw



 -
 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: Whats the best way to do a form component validation?

2009-04-23 Thread Jason Wang

Liam Clarke-Hutchinson wrote:

I use an AjaxFormComponentSubmittingBehavior onblur for each field -
so it triggers the submission processing behaviour (including
validation) for the given field - although it updates the model. You
could use an applicable Ajax behaviour and then call the component's
validate() method if you wanted to avoid the model update.

Regards,

Liam Clarke

On Fri, Apr 24, 2009 at 3:50 PM, Jason Wang jason.w...@bulletin.net wrote:
  

Hi all,

I have a form with a couple form components, most of which have validators
attached. For example, the mobile number input field has a patternValidator
attached:

mobile.add(new PatternValidator(^[1-9]([0-9]{8,14})));

I have hooked all the validation actions with onblur events using this:

AjaxFormValidatingBehavior.addToAllFormComponents(signUpForm, onblur,
Duration.ONE_SECOND);

But unfortunately all the validations are triggered as soon as the focus
leaves any of the form component.

Is there a way to hook the validator(like the patterValidator) with the
event(onblur for example) on the form component(the mobile filed) rather
than the whole form?

It would be nice that the AjaxFormValidatingBehavior class could provide the
option to trigger the validations on events on every components.

Thanks.

Jasonw



-
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

  
Thanks for the reply. I think you meant 
AjaxFormComponentUpdatingBehavior 
http://wicket.apache.org/docs/1.4/org/apache/wicket/ajax/form/AjaxFormComponentUpdatingBehavior.html.


I will give it a try. Any other options to discuss?

Regards,
Jasonw

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



Re: Wicket portlet into liferay

2009-04-23 Thread Rob Sonke

Hi,

Nice to hear that everything seems to work now. About the datepicker, 
which one is that? Because I'm using one from the wicketstuff projects 
(http://www.dynarch.com/static/jscalendar-1.0/index.html) and that one 
is working fine. But we're about to migrate to a jquery based one.


Rob

On 4/23/09 5:28 AM, Tonio Caputo wrote:

Hi,

After trying a lot I finally was able to show and work (more or less).

A warning: Never call your appl/portlet-name with the same name
as the url-mapping, if not it won't work that was the main problem.

My new problem I'm using DatePicker from wicket-extensions/wicket-date
in a form, the date picker is not working (I mean the button that shows the
calendar
and let you choose a date in a friendly way)

Not found something useful in mailing-lists so
I added supports mime-type: text/javascript and application/x-javascript to
portlet.xml, but still not working.

Any idea of what is happening, or a solution to this problem

Thanks very much in advance
tonio

On Tue, Apr 21, 2009 at 5:33 PM, Rob Sonker...@tigrou.nl  wrote:

   

Hi,

We're running wicket 1.4m2 on liferay 5.2.x and that's working fine. We
only use the sun portlet container instead of the one from Liferay. Search
the mailinglist and the liferay forum for the steps which you'll have to
perform.

Rob


On 4/21/09 4:45 AM, Tonio Caputo wrote:

 

Hi,

I've tried with liferay 5.2.2 tomcat6/tomcat55/jetty6.1.14, and no
success.

In both tomcat, application is deployed, but when put into a page, the
application
is not shown.

In jetty, the application doesn't get deployed.

In all cases there is no log, or any message that let me know what is
happening.

Any help will be greatly welcome
Wicket is really a nice framework (the nicer I've seen), and it would be
wonderful if I can use it instead JSP framework provided by liferay.

Thanks in advance
tonio

On Mon, Apr 20, 2009 at 12:21 PM, Tonio Caputoton...@exeo.com.ar
  wrote:



   

Hi wicket users,

I'm a newbie in wicket and portlets, I'm involved in trying to find a
web framework to create portlets in a liferay portal, my duty is to
try wicket and see if it works.

Versions   wicket 1-4-rc2
  liferay 5.2

After reading  Issue https://issues.apache.org/jira/browse/WICKET-1620,
it
seems clear
that this is possible.

Reading wicket portlet examples, I realized there is a lot of stuff in
WicketPortlet, that
is a bit difficult to understand for a newbie for both things
(wicket/portlet).

I'll just like to know, if this is the correct example after WICKET-1620,
or perhaps there
is a simpler one.

Thanks in advance
tonio




 


   


   


1.3.6?

2009-04-23 Thread Nicklas Johnson
I've seen a few posts in the archive over the last few months asking about
1.3.6, but not a definitive answer.

Is 1.3.6 coming?  If so, is there a ballpark about when?

(I've got a project that needs to upgrade, and we're trying to decide
whether to go to 1.3.5 or wait a bit for 1.3.6.)

   Nick

-- 
Courage isn't just a matter of not being frightened, you know. It's being
afraid and doing what you have to do anyway.
  -- Doctor Who - Planet of the Daleks
This message has been brought to you by Nick Johnson 2.3b1 and the number 6.
http://healerNick.com/   http://morons.org/http://spatula.net/


RE: jQuery query for all Ajax-enabled links

2009-04-23 Thread Stefan Lindner
Hi Tony,

I don't have the answer but the same question. If you find a solution by your 
own, please let me know!

Thank you!

Stefan

-Ursprüngliche Nachricht-
Von: Anton Veretennikov [mailto:anton.veretenni...@gmail.com] 
Gesendet: Freitag, 24. April 2009 04:45
An: users@wicket.apache.org
Betreff: jQuery query for all Ajax-enabled links

Hi, all wicket users,

I hope somebody knows.
What is the jQuery filter for all wicket Ajax-enabled links?

Wicket version is 1.4-SNAPSHOT.

-- Tony.

-
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: RadioGroup and nested ListView

2009-04-23 Thread Per Newgro

The message says that you have to put in the type attribute to this line

input wicket:id=radio/
should be
input type=radio wicket:id=radio/

Hth
Per

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