Re: Ajax Feedback Problem in 1.3

2007-12-20 Thread SantiagoA

As long as setRequired(true), nope. That was what I meant with Validators
block Ajax(onUpdate).

For now I make the validation on my own in onUpdate and set
setRequired(false) on the Component. This works for now, but it seems to me
that working with the Wicket-Validators would be the better, cleaner way.

Thanks for sharing your time,
and btw 
Wicket is nevertheless a great framework and you guys do a great job on
that.
-Santiago


igor.vaynberg wrote:
 
 is onupdate called?
 
 -igor
 
 
 On Dec 19, 2007 12:34 AM, SantiagoA [EMAIL PROTECTED] wrote:

 No exceptions in the console. Debug shows that the onError() is never
 called.

 -Santiago



 igor.vaynberg wrote:
 
  any exceptions in the log/console? seems pretty damn strange to me.
  can you verify onerror() is being called on the ajax behavior?
 
  -igor
 
 
  On Dec 18, 2007 11:27 PM, SantiagoA [EMAIL PROTECTED] wrote:
 
  Thanks for the answer, but that doesn´t work either.
  It´s a bit strange, but if I set the component to be required, the
  feedbackPanel will not be rendered.
  If I make the validation in
protected void onUpdate(AjaxRequestTarget target){
  like
  if(vwd == null)
  vwdComponent.error(vwdErrorMessage);
   }
  and set the component to not required, the feedbackPanel shows up.
  Is there another way, where I can use the setRequired-method and the
  NumberValidator and nevertheless the AjaxCall won´t get blocked or the
  feedbackPanel gets rendered immediately?
 
 
 
 
  igor.vaynberg wrote:
  
   On Dec 18, 2007 1:25 AM, SantiagoA [EMAIL PROTECTED] wrote:
  
   vwdComponent.add(new
 AjaxFormComponentUpdatingBehavior(onblur){
 private static final long serialVersionUID =
  4932149086847602955L;
 @Override
 protected void onUpdate(AjaxRequestTarget target){
   log.debug(VWD-Ajax Update);
   if (vwd  0) {
  // Here are some calculations
   }
  target.addComponent(myOutDate);
  target.addComponent(vwdComponent);
  target.addComponent(myFeedbackPanel);
  target.addComponent(myForm);
 }
  
   protected void onError(AjaxRequestTarget target ){
   target.addComponent(myFeedbackPanel);
   }
  
  
  
   -igor
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Ajax-Feedback-Problem-in-1.3-tp14191234p14412309.html
 
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Ajax-Feedback-Problem-in-1.3-tp14191234p14412962.html

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


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


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

-- 
View this message in context: 
http://www.nabble.com/Ajax-Feedback-Problem-in-1.3-tp14191234p14432230.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: Writing Ajax applications that gracefully degrade

2007-12-20 Thread Maeder Thomas
We are actually implementing such an application. We had to
(re-)implement a couple of components to support AJAX-Fallback. While
that's not trivial sometimes, it's definitely not very hard (we have
about 0.5 years of Wicket experience).

Thomas

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Mittwoch, 19. Dezember 2007 22:25
 To: users@wicket.apache.org
 Subject: Re: Writing Ajax applications that gracefully degrade
 
 yes it is possible and not too hard. Don't know if we support 
 it thoroughly enough, but start with *ajaxfallback* components.
 
 -igor
 
 On 12/19/07, oliverw [EMAIL PROTECTED] wrote:
 
  Being totally new to Wicket I would like to know if it would be 
  technically feasible to write Ajax applications in Wicket that 
  gracefully fallback to ordinary links and full page loads 
 depended on 
  wether the client supports javascript or not. Would it be 
 possible to 
  implement this cleanly or would it turn the project into a mess?
 
 
  --
  View this message in context:
  
 http://www.nabble.com/Writing-Ajax-applications-that-gracefully-degrad
  e-tp14424670p14424670.html Sent from the Wicket - User mailing list 
  archive at Nabble.com.
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



How to get session from panel ?

2007-12-20 Thread tsuresh

Hello,
I have Panel called MenuPanel and a page WelcomePage. When the user is
authenticated through Login page  the user is forwarded to WelcomePage. This
WelcomePage consists of MenuPanel. How do I get the user session from the
MenuPanel. I simply added the MenuPanel in WelcomePage as

 add(new MenuPanel(menuBar));


and in MenuPanel I tried to get Session as
LoginSession sess = (LoginSession) getSession();

But this sess returned null;

I have made the LoginSession class. I have set user session in Login page as 
..
session.setUser(user);

Am i missing something?
thanks
-- 
View this message in context: 
http://www.nabble.com/How-to-get-session-from-panel---tp14432609p14432609.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: How to get session from panel ?

2007-12-20 Thread Suad AlShamsi

Did you try to get it from the application. getApplicaion().getSession();

tsuresh wrote:

Hello,
I have Panel called MenuPanel and a page WelcomePage. When the user is
authenticated through Login page  the user is forwarded to WelcomePage. This
WelcomePage consists of MenuPanel. How do I get the user session from the
MenuPanel. I simply added the MenuPanel in WelcomePage as

 add(new MenuPanel(menuBar));


and in MenuPanel I tried to get Session as
LoginSession sess = (LoginSession) getSession();

But this sess returned null;

I have made the LoginSession class. I have set user session in Login page as 
..

session.setUser(user);

Am i missing something?
thanks
  



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



Re: How to get session from panel ?

2007-12-20 Thread Sebastiaan van Erk
Or Session.get(), or better yet use MySession.get() where in MySession 
you define the static method:


public static MySession get() {
return (MySession) Session.get();
}

which avoids casts. (Use can use the same trick to get the application).

Regards,
Sebastiaan

Suad AlShamsi wrote:

Did you try to get it from the application. getApplicaion().getSession();

tsuresh wrote:

Hello,
I have Panel called MenuPanel and a page WelcomePage. When the user is
authenticated through Login page  the user is forwarded to 
WelcomePage. This

WelcomePage consists of MenuPanel. How do I get the user session from the
MenuPanel. I simply added the MenuPanel in WelcomePage as

 add(new MenuPanel(menuBar));


and in MenuPanel I tried to get Session as
LoginSession sess = (LoginSession) getSession();

But this sess returned null;

I have made the LoginSession class. I have set user session in Login 
page as ..

session.setUser(user);

Am i missing something?
thanks
  



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



smime.p7s
Description: S/MIME Cryptographic Signature


Re: How to get session from panel ?

2007-12-20 Thread Peter Ertl

Looks interesting...

  MySession.get()

Will this reliably work in WicketTester or are there implication you  
should be aware of?


Regards
Peter


Am 20.12.2007 um 10:27 schrieb Sebastiaan van Erk:

Or Session.get(), or better yet use MySession.get() where in  
MySession you define the static method:


public static MySession get() {
return (MySession) Session.get();
}

which avoids casts. (Use can use the same trick to get the  
application).


Regards,
Sebastiaan

Suad AlShamsi wrote:
Did you try to get it from the application.  
getApplicaion().getSession();

tsuresh wrote:

Hello,
I have Panel called MenuPanel and a page WelcomePage. When the  
user is
authenticated through Login page  the user is forwarded to  
WelcomePage. This
WelcomePage consists of MenuPanel. How do I get the user session  
from the

MenuPanel. I simply added the MenuPanel in WelcomePage as

add(new MenuPanel(menuBar));


and in MenuPanel I tried to get Session as
LoginSession sess = (LoginSession) getSession();

But this sess returned null;

I have made the LoginSession class. I have set user session in  
Login page as ..

session.setUser(user);

Am i missing something?
thanks


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



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



Re: How to get session from panel ?

2007-12-20 Thread Sebastiaan van Erk
Actually, if you check out Component.getSession() you'll see it just 
does Session.get() as well, so the idiom below should have no 
implications for testing nor should there be other unexpected implications.


Regards,
Sebastiaan

Peter Ertl wrote:

Looks interesting...

  MySession.get()

Will this reliably work in WicketTester or are there implication you 
should be aware of?


Regards
Peter


Am 20.12.2007 um 10:27 schrieb Sebastiaan van Erk:

Or Session.get(), or better yet use MySession.get() where in MySession 
you define the static method:


public static MySession get() {
return (MySession) Session.get();
}

which avoids casts. (Use can use the same trick to get the application).

Regards,
Sebastiaan

Suad AlShamsi wrote:
Did you try to get it from the application. 
getApplicaion().getSession();

tsuresh wrote:

Hello,
I have Panel called MenuPanel and a page WelcomePage. When the user is
authenticated through Login page  the user is forwarded to 
WelcomePage. This
WelcomePage consists of MenuPanel. How do I get the user session 
from the

MenuPanel. I simply added the MenuPanel in WelcomePage as

add(new MenuPanel(menuBar));


and in MenuPanel I tried to get Session as
LoginSession sess = (LoginSession) getSession();

But this sess returned null;

I have made the LoginSession class. I have set user session in Login 
page as ..

session.setUser(user);

Am i missing something?
thanks


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



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



smime.p7s
Description: S/MIME Cryptographic Signature


Wicket posts missing on nabble

2007-12-20 Thread jweekend

We've just had confirmation from nabble that some messages are not appearing
on their wicket-user list despite coming up in matching search results (eg I
posted yesterday about how we used the forum to successfully find a Wicket
developer, and that never appeared on the list, despite being visible 
http://www.nabble.com/Wicket-training-reviews-contract-work-to13616515.html#a14408227
here ). It seems in particular to be messages posted via their site (rather
than posts sent to the mailing-list directly, by email) that are not
appearing.
nabble say there is no good reason for this (ie it's not ratings related
etc...) and they have passed the issue on to their developers. If you are
experiencing any such problems (ie you're not getting answers to questions
or your announcements relating to Wicket are not getting on the forum
because your posts are not visible at
http://www.nabble.com/Apache-Wicket-f13974.html), it's probably a good idea
to help nabble look into these issues by posting a note to their support
forum  http://www.nabble.com/Nabble-Support-f1.html here  with any other
known cases (include information about how you posted, by email or via
nabble).
Regards - Cemal
http://jWeekend.co.uk http://jWeekend.co.uk 
-- 
View this message in context: 
http://www.nabble.com/Wicket-posts-missing-on-nabble-tp14434422p14434422.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket posts missing on nabble

2007-12-20 Thread Martijn Dashorst
This would explain why we sometimes get 3 or more messages sent from nabble
users.
Anyway: the tip for the wicket user list is to use gmail. This is the power
tool the committers use to keep up with the users list. Despite the volume
we are able to keep track of most messages that are sent.

Martijn

On Dec 20, 2007 12:12 PM, jweekend [EMAIL PROTECTED] wrote:


 We've just had confirmation from nabble that some messages are not
 appearing
 on their wicket-user list despite coming up in matching search results (eg
 I
 posted yesterday about how we used the forum to successfully find a Wicket
 developer, and that never appeared on the list, despite being visible

 http://www.nabble.com/Wicket-training-reviews-contract-work-to13616515.html#a14408227
 here ). It seems in particular to be messages posted via their site
 (rather
 than posts sent to the mailing-list directly, by email) that are not
 appearing.
 nabble say there is no good reason for this (ie it's not ratings related
 etc...) and they have passed the issue on to their developers. If you are
 experiencing any such problems (ie you're not getting answers to questions
 or your announcements relating to Wicket are not getting on the forum
 because your posts are not visible at
 http://www.nabble.com/Apache-Wicket-f13974.html), it's probably a good
 idea
 to help nabble look into these issues by posting a note to their support
 forum  http://www.nabble.com/Nabble-Support-f1.html here  with any other
 known cases (include information about how you posted, by email or via
 nabble).
 Regards - Cemal
 http://jWeekend.co.uk http://jWeekend.co.uk
 --
 View this message in context:
 http://www.nabble.com/Wicket-posts-missing-on-nabble-tp14434422p14434422.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-rc2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/


How to open a popup in onSubmit() of a Form

2007-12-20 Thread thomas jaeckle

Hello.

I am trying to open a popup in onSubmit() of a form.
The form is simple: it has a TextField and a Button. 
When it is submitted the value from the TextField shall become a
PageParameter for the popup and it shall be used in PageMap.forName(...) as
identifier (so for equal values the created Pages are loaded in the same
popup).

I only know how to open a Popup in a static way - with a Link that knows at
Page creation time what popup it should load and with which PageParameters.

I came up with something like that:

Form form = new Form(form)
{
  protected void onSubmit()
  {
PopupSettings popupSettings = new PopupSettings(PageMap.forName(id_
  + textField.getConvertedInput())).setHeight(768).setWidth(1024);

System.out.println(popupSettings.getPopupJavaScript());

PageParameters parameters = new PageParameters();
parameters.add(id, (String)textField.getConvertedInput());

// TODO ** open the Popup here with the pageParameters
  }
};

But I don't know if this is even the right direction.
Is this even possible?


regards Thomas
-- 
View this message in context: 
http://www.nabble.com/How-to-open-a-popup-in-onSubmit%28%29-of-a-Form-tp14435932p14435932.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket training/reviews/contract work

2007-12-20 Thread Uwe Schäfer
http://www.nabble.com/forum/ViewPost.jtp?post=14408227framed=yjweekend 
wrote:


 PS Uwe, are you still looking for another Wicket developer for your 
project? If you have
 already hired someone too, was it down to your announcement here or 
did you use another technique?


Well, we acutally found someone for contract work on this list, but 
we´re still looking for decent java-developers (not even necessarily 
with prior wicket knowledge) for fulltime work in Freiburg, Germany.
shameless-modesooo, if anyone ...feel free to, you 
know.../shameless-mode


We´re using the (here in germany) usual channels like: monster.de, 
jobpilot.de, java magazines and personal contacts.


cu uwe

--

THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  [EMAIL PROTECTED]
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://morningnews.thomas-daily.de für die 
kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens 
um 9:00 in Ihrer Mailbox.

Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [EMAIL PROTECTED] 




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



Re: Ajax Feedback Problem in 1.3

2007-12-20 Thread Johan Compagner
onUpdate or onError are always called, also is validators are causing the
component to be invalid:

*

try
*

{

formComponent.inputChanged();

formComponent.validate();

*if* (formComponent.hasErrorMessage())

{

formComponent.invalid();

onError(target, *null*);

}

*else
*

{

formComponent.valid();

*if* (getUpdateModel())

{

formComponent.updateModel();

}

onUpdate(target);

}

}

*catch* (RuntimeException e)

{

onError(target, e);

}

So if an exception or an validations fails - onError() is called
else onUpdate().
This is a change from 1.2 i think. There onUpdate was always called, also
for validation failures and onError was only called on exceptions (which
don't happen that much)

johan





On Dec 20, 2007 9:04 AM, SantiagoA [EMAIL PROTECTED] wrote:


 As long as setRequired(true), nope. That was what I meant with Validators
 block Ajax(onUpdate).

 For now I make the validation on my own in onUpdate and set
 setRequired(false) on the Component. This works for now, but it seems to
 me
 that working with the Wicket-Validators would be the better, cleaner way.

 Thanks for sharing your time,
 and btw
 Wicket is nevertheless a great framework and you guys do a great job on
 that.
 -Santiago


 igor.vaynberg wrote:
 
  is onupdate called?
 
  -igor
 
 
  On Dec 19, 2007 12:34 AM, SantiagoA [EMAIL PROTECTED] wrote:
 
  No exceptions in the console. Debug shows that the onError() is never
  called.
 
  -Santiago
 
 
 
  igor.vaynberg wrote:
  
   any exceptions in the log/console? seems pretty damn strange to me.
   can you verify onerror() is being called on the ajax behavior?
  
   -igor
  
  
   On Dec 18, 2007 11:27 PM, SantiagoA [EMAIL PROTECTED] wrote:
  
   Thanks for the answer, but that doesn´t work either.
   It´s a bit strange, but if I set the component to be required, the
   feedbackPanel will not be rendered.
   If I make the validation in
 protected void onUpdate(AjaxRequestTarget target){
   like
   if(vwd == null)
   vwdComponent.error(vwdErrorMessage);
}
   and set the component to not required, the feedbackPanel shows up.
   Is there another way, where I can use the setRequired-method and the
   NumberValidator and nevertheless the AjaxCall won´t get blocked or
 the
   feedbackPanel gets rendered immediately?
  
  
  
  
   igor.vaynberg wrote:
   
On Dec 18, 2007 1:25 AM, SantiagoA [EMAIL PROTECTED] wrote:
   
vwdComponent.add(new
  AjaxFormComponentUpdatingBehavior(onblur){
  private static final long serialVersionUID =
   4932149086847602955L;
  @Override
  protected void onUpdate(AjaxRequestTarget target){
log.debug(VWD-Ajax Update);
if (vwd  0) {
   // Here are some calculations
}
   target.addComponent(myOutDate);
   target.addComponent(vwdComponent);
   target.addComponent(myFeedbackPanel);
   target.addComponent(myForm);
  }
   
protected void onError(AjaxRequestTarget target ){
target.addComponent(myFeedbackPanel);
}
   
   
   
-igor
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Ajax-Feedback-Problem-in-1.3-tp14191234p14412309.html
  
   Sent from the Wicket - User mailing list archive at 
   Nabble.comhttp://nabble.com/
 .
  
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Ajax-Feedback-Problem-in-1.3-tp14191234p14412962.html
 
  Sent from the Wicket - User mailing list archive at 
  Nabble.comhttp://nabble.com/
 .
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Ajax-Feedback-Problem-in-1.3-tp14191234p14432230.html
  Sent from the Wicket - User mailing list archive at 
 Nabble.comhttp://nabble.com/
 .


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




wicket-datetime-rc2 javascript error in generated event.js

2007-12-20 Thread Wilko Hische

Hello,

When in a wicket-rc2 Quickstart I try to use
org.apache.wicket.extensions.yui.calendar.DateField from wicket-datetime-rc2
I get an error messsage in FF and IE7 concerning event.js.

If I open the page for the first time:

nl is not defined

looking at the contents of event.js with firebug i only see

nl

(with nl being the only package at root level).


--
HomePage.java:
--
package nl.feeddex;

import org.apache.wicket.PageParameters;
import org.apache.wicket.extensions.yui.calendar.DateField;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.model.IModel;

public class HomePage extends WebPage {
private Date date;
public HomePage(final PageParameters parameters) {

Form form = new Form(form);
form.add( new DateField( testDate, new IModel(){
public Object getObject() {
return date;
}
public void setObject(Object object) {
date = (Date)object;
}
public void detach() {
}   
}));
add( form );
add( new MyDummyPanel( panel ));
}
}

--
HomePage.html:
--

html
head
titleWicket Quickstart Archetype Homepage/title
/head
body
br/br/
form wicket:id=form
Date: 
input type=submit value=Submit!/
/form
div wicket:id=panel/div
/body
/html
--


The panel i include because otherwise i get an exception(?):

WicketMessage: Unknown tag name with Wicket namespace: 'panel'. Might be you
haven't installed the appropriate resolver?


This is a blocker for us, should I make a bug report? I am afraid the
JavaScript is a bit too involved for me to be able to patch this myself on
short notice.

Best regards,

Wilko Hische

-- 
View this message in context: 
http://www.nabble.com/wicket-datetime-rc2-javascript-error-in-generated-event.js-tp14438031p14438031.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Problem with JavaScript when using Wicket AJAX Components

2007-12-20 Thread thomas jaeckle

I think I understand now, why the tooltips don't appear.
The JavaScript is initialized when the Page is initialized. At this time the
DataTable inside the AjaxLazyLoadPanel is not there.
The JavaScript iterates over all elements I have specified ('input', 'td',
'tr', 'textarea', 'select', 'span', 'div', 'a','abbr','acronym') and adds
events for them. But of course none of the DataTable - it is not there yet.

But how do I specify that the JavaScript is again executed after the
AjaxLazyLoadPanel has loaded the DataTable?


regards Thomas
-- 
View this message in context: 
http://www.nabble.com/Problem-with-JavaScript-when-using-Wicket-AJAX-Components-tp14432037p14438456.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket posts missing on nabble

2007-12-20 Thread Gwyn Evans
Sure, we like Nabble; we just don't have any more influence with it
that anyone else, so as far as reporting any issues go, (as far as I'm
aware), there's nothing we could do that anyone else couldn't equally
well do!

/Gwyn

On 20/12/2007, jweekend [EMAIL PROTECTED] wrote:

 Your suggestion would indeed appear to solve the immediate problem (it must
 be quite annoying to regularly receive the same post several times,
 especially for committers like yourself who probably feel almost duty-bound
 to not just ignore too many posts from the same person, only to discover
 some of these are in fact just repeats anyway ;-), but it is much better if
 nabble fix this properly so it works as it should: one of the key benefits
 of using nabble is that their site is almost always accessible, even from
 behind most corporate firewalls, whereas access to gmail, hotmail,
 you_name_itmail is quite often barred.
 Regards - Cemal
 http://jWeekend.co.uk http://jWeekend.co.uk


 Martijn Dashorst wrote:
 
  This would explain why we sometimes get 3 or more messages sent from
  nabble
  users.
  Anyway: the tip for the wicket user list is to use gmail. This is the
  power
  tool the committers use to keep up with the users list. Despite the volume
  we are able to keep track of most messages that are sent.
 
  Martijn
 
  On Dec 20, 2007 12:12 PM, jweekend [EMAIL PROTECTED] wrote:
 
 
  We've just had confirmation from nabble that some messages are not
  appearing
  on their wicket-user list despite coming up in matching search results
  (eg
  I
  posted yesterday about how we used the forum to successfully find a
  Wicket
  developer, and that never appeared on the list, despite being visible
 
  http://www.nabble.com/Wicket-training-reviews-contract-work-to13616515.html#a14408227
  here ). It seems in particular to be messages posted via their site
  (rather
  than posts sent to the mailing-list directly, by email) that are not
  appearing.
  nabble say there is no good reason for this (ie it's not ratings related
  etc...) and they have passed the issue on to their developers. If you are
  experiencing any such problems (ie you're not getting answers to
  questions
  or your announcements relating to Wicket are not getting on the forum
  because your posts are not visible at
  http://www.nabble.com/Apache-Wicket-f13974.html), it's probably a good
  idea
  to help nabble look into these issues by posting a note to their support
  forum  http://www.nabble.com/Nabble-Support-f1.html here  with any other
  known cases (include information about how you posted, by email or via
  nabble).
  Regards - Cemal
  http://jWeekend.co.uk http://jWeekend.co.uk
  --
  View this message in context:
  http://www.nabble.com/Wicket-posts-missing-on-nabble-tp14434422p14434422.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.0-rc2 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
 
 

 --
 View this message in context: 
 http://www.nabble.com/Wicket-posts-missing-on-nabble-tp14434422p14434956.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: Strange wicket bug in DataView?

2007-12-20 Thread Gwyn Evans
No real idea, but I'd be tempted to stick in some diagnostic logging
to log the calls to the DataProvider  the details of the lists it
returns, just to check there's nothing odd happening there...

/Gwyn

On 20/12/2007, Tauren Mills [EMAIL PROTECTED] wrote:
 Thanks.  I will try to put together a quickstart, but I'm not sure I
 can duplicate the problem in it.

 Tauren


 On Dec 19, 2007 3:23 PM, Matej Knopp [EMAIL PROTECTED] wrote:
  This is definitely strange. However without posting more code (or
  preferably a complete testcase to reproduce) I don't really know how
  to help you with it.
 
  -Matej
 
 
  On Dec 20, 2007 12:05 AM, Tauren Mills [EMAIL PROTECTED] wrote:
   Does anyone have any thoughts on this problem?  I realize this it may
   seem unique and isolated, but are there any suggestions even on how to
   figure out what is wrong?  How can I figure out why the component path
   in the URLs for the Links in the DataView are not matching the
   component hierarchy?  These are the URLs output at initial page
   creation time:
  
   http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:1:actions:select::ILinkListener::
   http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:2:actions:select::ILinkListener::
  
   However, at the time that onClick is processed, the component
   hierarchy seems to have changed and now have the value of 3 and 4
   instead of 1 and 2.  The links above don't work, but the following
   links do if I manually enter them:
  
   http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:3:actions:select::ILinkListener::
   http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:4:actions:select::ILinkListener::
  
   Its almost as if a secondary page render has occurred.  But I've added
   logging to my page and don't see any extra log output.
  
   My project is basically done and ready to launch, but this is holding
   it up.  Any ideas or suggestions?
  
   Thanks!
   Tauren
  
  
  
   On Dec 18, 2007 11:21 PM, Tauren Mills [EMAIL PROTECTED] wrote:
I'm having an Exception that is happening before any of my
Link.onClick() code is executed, making me wonder if there is a wicket
bug of some sort.
   
I have a DataView with an ActionPanel in each row that contains a
Link. There is no AJAX on this page.  When I load the page with the
DataView for the first time, clicking the Link doesn't work and I get
an Exception (see below).  But if I click the browser back button,
then click the same link, it works.  However, this problem only occurs
for some of the data records, not all of them.  But the same data
records always break.  I thought it was a data problem because of
this, but tracing back into the wicket code seems to indicate
otherwise.  Also, I'm running on the latest wicket trunk that I
updated to about 15 minutes ago.
   
The URLs that are output for the Links in the dataview when the page
is first loaded is (dataview has only 2 data records):
   
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:1:actions:select::ILinkListener::
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:2:actions:select::ILinkListener::
   
When I hit the back button, the URLs for that same links are:
   
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:5:actions:select::ILinkListener::
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:6:actions:select::ILinkListener::
   
The exception that is thrown is this (only when the first links are
clicked, not the links after hitting the back button):
   
WicketMessage: component reports:reports:1:actions:select not found on
page 
com.theseniorlist.database.web.page.site.service.ServiceDetailsPage[id
= 6], listener interface = [RequestListenerInterface
name=ILinkListener, method=public abstract void
org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
   
Root cause:
   
org.apache.wicket.WicketRuntimeException: component
reports:reports:1:actions:select not found on page
com.theseniorlist.database.web.page.site.service.ServiceDetailsPage[id
= 6], listener interface = [RequestListenerInterface
name=ILinkListener, method=public abstract void
org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:411)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:456)
at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1152)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
at 

Re: Wicket posts missing on nabble

2007-12-20 Thread jweekend

Agreed. As per the initial post on this thread, any issues with nabble (like
disappearing posts or multiple deliveries of same post to Wicket
mailing-list subscribers) should be reported to nabble support - see link in
original post.
Regards - Cemal
http://jWeekend.co.uk http://jWeekend.co.uk 


Gwyn wrote:
 
 Sure, we like Nabble; we just don't have any more influence with it
 that anyone else, so as far as reporting any issues go, (as far as I'm
 aware), there's nothing we could do that anyone else couldn't equally
 well do!
 
 /Gwyn
 
 On 20/12/2007, jweekend [EMAIL PROTECTED] wrote:

 Your suggestion would indeed appear to solve the immediate problem (it
 must
 be quite annoying to regularly receive the same post several times,
 especially for committers like yourself who probably feel almost
 duty-bound
 to not just ignore too many posts from the same person, only to discover
 some of these are in fact just repeats anyway ;-), but it is much better
 if
 nabble fix this properly so it works as it should: one of the key
 benefits
 of using nabble is that their site is almost always accessible, even from
 behind most corporate firewalls, whereas access to gmail, hotmail,
 you_name_itmail is quite often barred.
 Regards - Cemal
 http://jWeekend.co.uk http://jWeekend.co.uk


 Martijn Dashorst wrote:
 
  This would explain why we sometimes get 3 or more messages sent from
  nabble
  users.
  Anyway: the tip for the wicket user list is to use gmail. This is the
  power
  tool the committers use to keep up with the users list. Despite the
 volume
  we are able to keep track of most messages that are sent.
 
  Martijn
 
  On Dec 20, 2007 12:12 PM, jweekend [EMAIL PROTECTED] wrote:
 
 
  We've just had confirmation from nabble that some messages are not
  appearing
  on their wicket-user list despite coming up in matching search results
  (eg
  I
  posted yesterday about how we used the forum to successfully find a
  Wicket
  developer, and that never appeared on the list, despite being visible
 
 
 http://www.nabble.com/Wicket-training-reviews-contract-work-to13616515.html#a14408227
  here ). It seems in particular to be messages posted via their site
  (rather
  than posts sent to the mailing-list directly, by email) that are not
  appearing.
  nabble say there is no good reason for this (ie it's not ratings
 related
  etc...) and they have passed the issue on to their developers. If you
 are
  experiencing any such problems (ie you're not getting answers to
  questions
  or your announcements relating to Wicket are not getting on the forum
  because your posts are not visible at
  http://www.nabble.com/Apache-Wicket-f13974.html), it's probably a good
  idea
  to help nabble look into these issues by posting a note to their
 support
  forum  http://www.nabble.com/Nabble-Support-f1.html here  with any
 other
  known cases (include information about how you posted, by email or via
  nabble).
  Regards - Cemal
  http://jWeekend.co.uk http://jWeekend.co.uk
  --
  View this message in context:
 
 http://www.nabble.com/Wicket-posts-missing-on-nabble-tp14434422p14434422.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.0-rc2 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
 
 

 --
 View this message in context:
 http://www.nabble.com/Wicket-posts-missing-on-nabble-tp14434422p14434956.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Wicket-posts-missing-on-nabble-tp14434422p14439042.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Minor Announcement: wicket-googlecharts

2007-12-20 Thread Daniel Spiewak
Just a minor sidebar, at Johan's suggestion I've released
wicket-googlecharts into the wicket-stuff project.  I played with the build
system a bit to make it work with maven and I think I did it right, but my
maven experience is limited.  License is currently discretionary, though if
I really had to pick one I'd probably go with either ASL2 or BSD.

Warning: anything that isn't tested by the test page in the project is
completely theoretical and untested.  This means things like scatter plots,
color fills, etc are all up in the air.  I'll probably get around to
stabilizing functionality eventually, but for now it can just float.
Hopefully someone will find this useful!

Daniel

(original article:
http://www.codecommit.com/blog/java/a-wicket-api-for-google-charts)


Re: AjaxEditableLabel not saving

2007-12-20 Thread TahitianGabriel

I have the same problem with wicket RC2 and tomcat 6.
Where can I find RC3 to try it as it has not been release yet?

Also when I enter accented characters in the editable label (like 'é', 'è',
'à', ...) they are turn into stange unreadable characters (I've tried with
both rc1 ans rc2)... Any Idea?




igor.vaynberg wrote:
 
 and what about rc3?
 
 -igor
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxEditableLabel-not-saving-tp14413223p14442238.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: Minor Announcement: wicket-googlecharts

2007-12-20 Thread Dan Kaplan
Wow that looks pretty cool.  I'm thinking about making a website that may be
able to use that.  I bookmarked the article

-Original Message-
From: Daniel Spiewak [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 20, 2007 10:17 AM
To: users@wicket.apache.org
Subject: Minor Announcement: wicket-googlecharts

Just a minor sidebar, at Johan's suggestion I've released
wicket-googlecharts into the wicket-stuff project.  I played with the build
system a bit to make it work with maven and I think I did it right, but my
maven experience is limited.  License is currently discretionary, though if
I really had to pick one I'd probably go with either ASL2 or BSD.

Warning: anything that isn't tested by the test page in the project is
completely theoretical and untested.  This means things like scatter plots,
color fills, etc are all up in the air.  I'll probably get around to
stabilizing functionality eventually, but for now it can just float.
Hopefully someone will find this useful!

Daniel

(original article:
http://www.codecommit.com/blog/java/a-wicket-api-for-google-charts)


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



Re: Problem with JavaScript when using Wicket AJAX Components

2007-12-20 Thread Matej Knopp
Try this (it's a bit hacky though):

datatable.add(new AbstractBehavior() {
  public final void afterRender(final Component component) {
 AjaxRequestTaget target = AjaxRequestTarget.get();
 if (target !- null) {
 target.appendJavascript(your javascript to initialize the
tooltips);
 }
  }
});

-Matej

On Dec 20, 2007 4:33 PM, thomas jaeckle [EMAIL PROTECTED] wrote:

 I think I understand now, why the tooltips don't appear.
 The JavaScript is initialized when the Page is initialized. At this time the
 DataTable inside the AjaxLazyLoadPanel is not there.
 The JavaScript iterates over all elements I have specified ('input', 'td',
 'tr', 'textarea', 'select', 'span', 'div', 'a','abbr','acronym') and adds
 events for them. But of course none of the DataTable - it is not there yet.

 But how do I specify that the JavaScript is again executed after the
 AjaxLazyLoadPanel has loaded the DataTable?


 regards Thomas
 --
 View this message in context: 
 http://www.nabble.com/Problem-with-JavaScript-when-using-Wicket-AJAX-Components-tp14432037p14438456.html

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


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



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



Re: Minor Announcement: wicket-googlecharts

2007-12-20 Thread Ryan Sonnek
Wonderful work!  I've been very interested to try this out in my wicket app!

On Dec 20, 2007 1:00 PM, Dan Kaplan [EMAIL PROTECTED] wrote:
 Wow that looks pretty cool.  I'm thinking about making a website that may be
 able to use that.  I bookmarked the article


 -Original Message-
 From: Daniel Spiewak [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 20, 2007 10:17 AM
 To: users@wicket.apache.org
 Subject: Minor Announcement: wicket-googlecharts

 Just a minor sidebar, at Johan's suggestion I've released
 wicket-googlecharts into the wicket-stuff project.  I played with the build
 system a bit to make it work with maven and I think I did it right, but my
 maven experience is limited.  License is currently discretionary, though if
 I really had to pick one I'd probably go with either ASL2 or BSD.

 Warning: anything that isn't tested by the test page in the project is
 completely theoretical and untested.  This means things like scatter plots,
 color fills, etc are all up in the air.  I'll probably get around to
 stabilizing functionality eventually, but for now it can just float.
 Hopefully someone will find this useful!

 Daniel

 (original article:
 http://www.codecommit.com/blog/java/a-wicket-api-for-google-charts)


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



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



Re: Strange wicket bug in DataView?

2007-12-20 Thread Tauren Mills
Gwyn,

Thanks for the guidance!  The DataProvider.iterator was being executed
twice.  I put a breakpoint in iterator() and it would pause when the
page first started to load.  Then I'd continue running the code, and
the breakpoint was hit again.  At that time, the full page was
rendered except for some images on the page, and the browser was
paused loading again because of the breakpoint.  When I continued
running the code, the page would finish loading.

The images that weren't loaded are URLs stored in my DB.  I found that
when I had image URLs in the DB, everything worked fine.  But when I
had NULL entries for the images, then I'd get this exception and the
iterator would run twice.  So when the iterator would run twice, the
component hierarchy would change, causing the link URLs to no longer
be valid.

I'm still tracking it down to figure out exactly what is going on.
But you got me on the right track.  And now  I'm thinking it is more
of a problem in my application or database than in wicket itself.
Which is what I was hoping was the case anyway! :)

Tauren


On Dec 20, 2007 7:43 AM, Gwyn Evans [EMAIL PROTECTED] wrote:
 No real idea, but I'd be tempted to stick in some diagnostic logging
 to log the calls to the DataProvider  the details of the lists it
 returns, just to check there's nothing odd happening there...

 /Gwyn


 On 20/12/2007, Tauren Mills [EMAIL PROTECTED] wrote:
  Thanks.  I will try to put together a quickstart, but I'm not sure I
  can duplicate the problem in it.
 
  Tauren
 
 
  On Dec 19, 2007 3:23 PM, Matej Knopp [EMAIL PROTECTED] wrote:
   This is definitely strange. However without posting more code (or
   preferably a complete testcase to reproduce) I don't really know how
   to help you with it.
  
   -Matej
  
  
   On Dec 20, 2007 12:05 AM, Tauren Mills [EMAIL PROTECTED] wrote:
Does anyone have any thoughts on this problem?  I realize this it may
seem unique and isolated, but are there any suggestions even on how to
figure out what is wrong?  How can I figure out why the component path
in the URLs for the Links in the DataView are not matching the
component hierarchy?  These are the URLs output at initial page
creation time:
   
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:1:actions:select::ILinkListener::
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:2:actions:select::ILinkListener::
   
However, at the time that onClick is processed, the component
hierarchy seems to have changed and now have the value of 3 and 4
instead of 1 and 2.  The links above don't work, but the following
links do if I manually enter them:
   
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:3:actions:select::ILinkListener::
http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:4:actions:select::ILinkListener::
   
Its almost as if a secondary page render has occurred.  But I've added
logging to my page and don't see any extra log output.
   
My project is basically done and ready to launch, but this is holding
it up.  Any ideas or suggestions?
   
Thanks!
Tauren
   
   
   
On Dec 18, 2007 11:21 PM, Tauren Mills [EMAIL PROTECTED] wrote:
 I'm having an Exception that is happening before any of my
 Link.onClick() code is executed, making me wonder if there is a wicket
 bug of some sort.

 I have a DataView with an ActionPanel in each row that contains a
 Link. There is no AJAX on this page.  When I load the page with the
 DataView for the first time, clicking the Link doesn't work and I get
 an Exception (see below).  But if I click the browser back button,
 then click the same link, it works.  However, this problem only occurs
 for some of the data records, not all of them.  But the same data
 records always break.  I thought it was a data problem because of
 this, but tracing back into the wicket code seems to indicate
 otherwise.  Also, I'm running on the latest wicket trunk that I
 updated to about 15 minutes ago.

 The URLs that are output for the Links in the dataview when the page
 is first loaded is (dataview has only 2 data records):

 http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:1:actions:select::ILinkListener::
 http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:2:actions:select::ILinkListener::

 When I hit the back button, the URLs for that same links are:

 http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:5:actions:select::ILinkListener::
 http://localhost:8082/db/app/?wicket:interface=:6:reports:reports:6:actions:select::ILinkListener::

 The exception that is thrown is this (only when the first links are
 clicked, not the links after hitting the back button):

 WicketMessage: component reports:reports:1:actions:select not found on
 page 
 

Re: Strange wicket bug in DataView?

2007-12-20 Thread Tauren Mills
I think this problem is caused by the browser.  Using Firebug, it
looks like the browser is actually requesting the page a second time.
Both requests go to:
http://localhost:8080/db/app/?wicket:interface=:15

Here are the request headers from the first request:

Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8080/db/app/?wicket:interface=:2
Cookie: JSESSIONID=1hndka1no7ub6; styleswitcher_style=small

The browser then makes a second request:

Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8080/db/app/?wicket:interface=:3
Cookie: JSESSIONID=1hndka1no7ub6; styleswitcher_style=small
Cache-Control: max-age=0

Note that the second request has a different Accept (images only?) and
a Cache-Control.

This seems to only be happening to me when the image source is empty.
Even having any text in there works.  The following wicket output
causes the problem:
img wicket:id=image1 src=/

So it looks like if there is an image on the page without a source
(not just a broken image), that Firefox requests the page URL again.
And by doing so, causes my DataView to refresh.  But it doesn't
refresh the DOM on the 2nd request, only images.  Thus the links are
no longer valid.

To solve this problem, I just need to make sure that my image src is
never an empty string.  Here is a simple hack that I did to my
StaticImage class:

public class StaticImage extends WebComponent {
private static final long serialVersionUID = 1L;

public StaticImage(String id, IModel model) {
super(id, model);
}

protected void onComponentTag(ComponentTag tag) {
checkComponentTag(tag, img);
String src = getModelObjectAsString();
tag.put(src, (!src.equals()?src:no_image) );
}

}

With this, img src=no_image in the markup.  It doesn't render of
course, but it also doesn't cause a 2nd page refresh.

One last thing.  If I just add img src=/ to my page's HTML, it
appears that it is rewritten by wicket to be this: img src=..//.
So maybe this is a problem that was already discovered and solved.
But when I made a custom component that alters the src, I lost that
solution.

I guess in the end, this isn't a wicket problem.  It isn't really even
a problem with my application, although I can solve it in my
application.  I don't know enough about why Firefox is doing this, so
it might not even be a browser problem.  Who knows...

I hope this helps someone else who runs into a similar issue.

Tauren







On Dec 20, 2007 4:16 PM, Tauren Mills [EMAIL PROTECTED] wrote:
 Gwyn,

 Thanks for the guidance!  The DataProvider.iterator was being executed
 twice.  I put a breakpoint in iterator() and it would pause when the
 page first started to load.  Then I'd continue running the code, and
 the breakpoint was hit again.  At that time, the full page was
 rendered except for some images on the page, and the browser was
 paused loading again because of the breakpoint.  When I continued
 running the code, the page would finish loading.

 The images that weren't loaded are URLs stored in my DB.  I found that
 when I had image URLs in the DB, everything worked fine.  But when I
 had NULL entries for the images, then I'd get this exception and the
 iterator would run twice.  So when the iterator would run twice, the
 component hierarchy would change, causing the link URLs to no longer
 be valid.

 I'm still tracking it down to figure out exactly what is going on.
 But you got me on the right track.  And now  I'm thinking it is more
 of a problem in my application or database than in wicket itself.
 Which is what I was hoping was the case anyway! :)

 Tauren



 On Dec 20, 2007 7:43 AM, Gwyn Evans [EMAIL PROTECTED] wrote:
  No real idea, but I'd be tempted to stick in some diagnostic logging
  to log the calls to the DataProvider  the details of the lists it
  returns, just to check there's nothing odd happening there...
 
  /Gwyn
 
 
  On 20/12/2007, Tauren Mills [EMAIL PROTECTED] wrote:
   Thanks.  I will try to put together a quickstart, but I'm not sure I
   can duplicate the problem in it.
  
   Tauren
  
  
   On Dec 19, 2007 3:23 PM, Matej Knopp [EMAIL PROTECTED] wrote:
This is definitely strange. However without posting more code (or
preferably a complete testcase to reproduce) I don't really know how
to help you with it.
   
-Matej
   
   
On Dec 20, 2007 

Re: Strange wicket bug in DataView?

2007-12-20 Thread Igor Vaynberg
that is actually in our gotchas wiki page - images with src= cause a
request to the page...

-igor


On Dec 20, 2007 6:54 PM, Tauren Mills [EMAIL PROTECTED] wrote:
 I think this problem is caused by the browser.  Using Firebug, it
 looks like the browser is actually requesting the page a second time.
 Both requests go to:
 http://localhost:8080/db/app/?wicket:interface=:15

 Here are the request headers from the first request:

 Host: localhost:8080
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
 rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
 Accept: 
 text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
 Accept-Language: en-us,en;q=0.5
 Accept-Encoding: gzip,deflate
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive: 300
 Connection: keep-alive
 Referer: http://localhost:8080/db/app/?wicket:interface=:2
 Cookie: JSESSIONID=1hndka1no7ub6; styleswitcher_style=small

 The browser then makes a second request:

 Host: localhost:8080
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
 rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
 Accept: image/png,*/*;q=0.5
 Accept-Language: en-us,en;q=0.5
 Accept-Encoding: gzip,deflate
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
 Keep-Alive: 300
 Connection: keep-alive
 Referer: http://localhost:8080/db/app/?wicket:interface=:3
 Cookie: JSESSIONID=1hndka1no7ub6; styleswitcher_style=small
 Cache-Control: max-age=0

 Note that the second request has a different Accept (images only?) and
 a Cache-Control.

 This seems to only be happening to me when the image source is empty.
 Even having any text in there works.  The following wicket output
 causes the problem:
 img wicket:id=image1 src=/

 So it looks like if there is an image on the page without a source
 (not just a broken image), that Firefox requests the page URL again.
 And by doing so, causes my DataView to refresh.  But it doesn't
 refresh the DOM on the 2nd request, only images.  Thus the links are
 no longer valid.

 To solve this problem, I just need to make sure that my image src is
 never an empty string.  Here is a simple hack that I did to my
 StaticImage class:

 public class StaticImage extends WebComponent {
 private static final long serialVersionUID = 1L;

 public StaticImage(String id, IModel model) {
 super(id, model);
 }

 protected void onComponentTag(ComponentTag tag) {
 checkComponentTag(tag, img);
 String src = getModelObjectAsString();
 tag.put(src, (!src.equals()?src:no_image) );
 }

 }

 With this, img src=no_image in the markup.  It doesn't render of
 course, but it also doesn't cause a 2nd page refresh.

 One last thing.  If I just add img src=/ to my page's HTML, it
 appears that it is rewritten by wicket to be this: img src=..//.
 So maybe this is a problem that was already discovered and solved.
 But when I made a custom component that alters the src, I lost that
 solution.

 I guess in the end, this isn't a wicket problem.  It isn't really even
 a problem with my application, although I can solve it in my
 application.  I don't know enough about why Firefox is doing this, so
 it might not even be a browser problem.  Who knows...

 I hope this helps someone else who runs into a similar issue.

 Tauren








 On Dec 20, 2007 4:16 PM, Tauren Mills [EMAIL PROTECTED] wrote:
  Gwyn,
 
  Thanks for the guidance!  The DataProvider.iterator was being executed
  twice.  I put a breakpoint in iterator() and it would pause when the
  page first started to load.  Then I'd continue running the code, and
  the breakpoint was hit again.  At that time, the full page was
  rendered except for some images on the page, and the browser was
  paused loading again because of the breakpoint.  When I continued
  running the code, the page would finish loading.
 
  The images that weren't loaded are URLs stored in my DB.  I found that
  when I had image URLs in the DB, everything worked fine.  But when I
  had NULL entries for the images, then I'd get this exception and the
  iterator would run twice.  So when the iterator would run twice, the
  component hierarchy would change, causing the link URLs to no longer
  be valid.
 
  I'm still tracking it down to figure out exactly what is going on.
  But you got me on the right track.  And now  I'm thinking it is more
  of a problem in my application or database than in wicket itself.
  Which is what I was hoping was the case anyway! :)
 
  Tauren
 
 
 
  On Dec 20, 2007 7:43 AM, Gwyn Evans [EMAIL PROTECTED] wrote:
   No real idea, but I'd be tempted to stick in some diagnostic logging
   to log the calls to the DataProvider  the details of the lists it
   returns, just to check there's nothing odd happening there...
  
   /Gwyn
  
  
   On 20/12/2007, Tauren Mills [EMAIL PROTECTED] wrote:
Thanks.  I will try to put together a quickstart, but I'm not sure I
can duplicate the problem in it.
   
Tauren
   
   
  

Re: AjaxEditableLabel not saving

2007-12-20 Thread Advanced Technology®
I 've downgrade to wicket-extensions 1.3.0-rc1, and it's working.

AT

2007/12/20, TahitianGabriel [EMAIL PROTECTED]:


 I have the same problem with wicket RC2 and tomcat 6.
 Where can I find RC3 to try it as it has not been release yet?

 Also when I enter accented characters in the editable label (like 'é',
 'è',
 'à', ...) they are turn into stange unreadable characters (I've tried with
 both rc1 ans rc2)... Any Idea?




 igor.vaynberg wrote:
 
  and what about rc3?
 
  -igor
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/AjaxEditableLabel-not-saving-tp14413223p14442238.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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




Re: AjaxEditableLabel not saving

2007-12-20 Thread TahitianGabriel

I've downgraded to RC1 also, but the accented characters are not handled
correctly neither in RC1 or RC2...

By the way I'm using Tomcat...


Azarias Tomás wrote:
 
 I 've downgrade to wicket-extensions 1.3.0-rc1, and it's working.
 
 AT
 
 2007/12/20, TahitianGabriel [EMAIL PROTECTED]:


 I have the same problem with wicket RC2 and tomcat 6.
 Where can I find RC3 to try it as it has not been release yet?

 Also when I enter accented characters in the editable label (like 'é',
 'è',
 'à', ...) they are turn into stange unreadable characters (I've tried
 with
 both rc1 ans rc2)... Any Idea?




 
 

-- 
View this message in context: 
http://www.nabble.com/AjaxEditableLabel-not-saving-tp14413223p14451264.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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