Re: Wicket Internalization - Exceptions

2010-09-12 Thread Martin Grigorov
On Sun, Sep 12, 2010 at 8:37 PM, sakthi vel  wrote:

> Hello,
>
> I want to display a value of label using the concept of
> Internationalization.
> Actually there are number of property file for different languages.
> When I try to add the dynamic field to property file, I am getting an
> exception
>
> *WicketMessage: No get method defined for class: class
> org.apache.wicket.markup.html.form.Form expression: personName*
>
>
> Content of files are
>
> *Property files:*
> status: Hello ${personName}
>
>
> *Html file:*
> 
>
> Model file:
>
> public class NameModel
> {
>   private String personName;
>   public String getPersonName()
>   {
>return personName;
>   }
>
>   public void setPersonName(String personName)
>   {
>this.personName;
>   }
> }
>
>
> *Java file:*
>
> NameModel nameModel = new NameModel();
> nameModel.setPersonName("Test");
>
> add(new Label("lblProperty", new StringResourceModel("hello", this, new
> PropertyModel(nameModel, "personName";
>
Can you paste the exact code of this file.
According to the exception Wicket looks for property "personName" in a Form,
not in your model.

>
>
> Could anyone explain what is the reason for receiving this exception and
> steps to overcome this.
>


Re: Wicket 1.4.11 seems to have Ajax support broken under Firefox 3.6.x

2010-09-12 Thread Martin Grigorov
The problem was found and fixed in
https://issues.apache.org/jira/browse/WICKET-3040
Wicket 1.4.12 will be build soon and a vote mail will be sent.

On Sun, Sep 12, 2010 at 8:44 PM, Chris Colman
wrote:

> I read in the 1.4.11 changelogs that there was an improvement in the
> retrieval of resources from a package such as .js files. It appears that
> previously it was possible that resources were retrieved with the
> jsessionid as a parameter even though cookies were enabled. I noticed
> this sometime back when reviewing the objects in the browser cache -
> there were multiple copies of certain wicket .js files - differentiated
> by the jesssionid parameter.
>
> This is obviously not performance optimal for visitors returning to your
> site as the wicket-ajax.js would not be retrieved from the cache but
> downloaded from the server again.
>
> It seems liks 1.4.11 fixes that problem via:
>
> https://issues.apache.org/jira/browse/WICKET-2999
>
>
> I'm wondering if the problem some people are seeing with 1.4.11 is a
> result of a caching issue whereby the browser is using an older, cached,
> version of wicket-ajax.js (or some other .js) now that the removal of
> the jsessionid is allowing reuse of the .js rather than downloading a
> fresh copy for each session.
>
> So perhaps this reported problem 'broken ajax' simply requires a cache
> flush.
>
> There certainly doesn't appear to be any further reports of this bug for
> a few days so maybe the caches have sorted themselves out.
>
> If people are still having this problem after a cache flush please
> respond here because we're trying to decide whether to deploy our next
> production release using 1.4.10 or 1.4.11 and would like to know if this
> issue is still occurring or not.
>
>
> >-Original Message-
> >From: vladimir.kovalyuk [mailto:koval...@gmail.com]
> >Sent: Saturday, 11 September 2010 8:35 PM
> >To: users@wicket.apache.org
> >Subject: Re: Wicket 1.4.11 seems to have Ajax support broken under
> Firefox
> >3.6.x
> >
> >
> >You're not alone.
> >I upgraded to wicket 1.4.11  and noticed  that the ajax handling was
> >broked.
> >Rolled back to 1.4.10 and ajax handling was broken. Ctrl+R in FF
> helped.
> >Probably something is wrong in wicket-ajax.js?
> >
> >--
> >View this message in context: http://apache-
> >wicket.1842946.n4.nabble.com/Wicket-1-4-11-seems-to-have-Ajax-support-
> >broken-under-Firefox-3-6-x-tp2534120p2535557.html
> >Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >-
> >To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


RE: Wicket 1.4.11 seems to have Ajax support broken under Firefox 3.6.x

2010-09-12 Thread Chris Colman
I read in the 1.4.11 changelogs that there was an improvement in the
retrieval of resources from a package such as .js files. It appears that
previously it was possible that resources were retrieved with the
jsessionid as a parameter even though cookies were enabled. I noticed
this sometime back when reviewing the objects in the browser cache -
there were multiple copies of certain wicket .js files - differentiated
by the jesssionid parameter.

This is obviously not performance optimal for visitors returning to your
site as the wicket-ajax.js would not be retrieved from the cache but
downloaded from the server again.

It seems liks 1.4.11 fixes that problem via:

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


I'm wondering if the problem some people are seeing with 1.4.11 is a
result of a caching issue whereby the browser is using an older, cached,
version of wicket-ajax.js (or some other .js) now that the removal of
the jsessionid is allowing reuse of the .js rather than downloading a
fresh copy for each session.

So perhaps this reported problem 'broken ajax' simply requires a cache
flush.

There certainly doesn't appear to be any further reports of this bug for
a few days so maybe the caches have sorted themselves out.

If people are still having this problem after a cache flush please
respond here because we're trying to decide whether to deploy our next
production release using 1.4.10 or 1.4.11 and would like to know if this
issue is still occurring or not.


>-Original Message-
>From: vladimir.kovalyuk [mailto:koval...@gmail.com]
>Sent: Saturday, 11 September 2010 8:35 PM
>To: users@wicket.apache.org
>Subject: Re: Wicket 1.4.11 seems to have Ajax support broken under
Firefox
>3.6.x
>
>
>You're not alone.
>I upgraded to wicket 1.4.11  and noticed  that the ajax handling was
>broked.
>Rolled back to 1.4.10 and ajax handling was broken. Ctrl+R in FF
helped.
>Probably something is wrong in wicket-ajax.js?
>
>--
>View this message in context: http://apache-
>wicket.1842946.n4.nabble.com/Wicket-1-4-11-seems-to-have-Ajax-support-
>broken-under-Firefox-3-6-x-tp2534120p2535557.html
>Sent from the Wicket - User mailing list archive at Nabble.com.
>
>-
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org


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



Wicket Internalization - Exceptions

2010-09-12 Thread sakthi vel
Hello,

I want to display a value of label using the concept of
Internationalization.
Actually there are number of property file for different languages.
When I try to add the dynamic field to property file, I am getting an
exception

*WicketMessage: No get method defined for class: class
org.apache.wicket.markup.html.form.Form expression: personName*


Content of files are

*Property files:*
status: Hello ${personName}


*Html file:*


Model file:

public class NameModel
{
   private String personName;
   public String getPersonName()
   {
return personName;
   }

   public void setPersonName(String personName)
   {
this.personName;
   }
}


*Java file:*

NameModel nameModel = new NameModel();
nameModel.setPersonName("Test");

add(new Label("lblProperty", new StringResourceModel("hello", this, new
PropertyModel(nameModel, "personName";


Could anyone explain what is the reason for receiving this exception and
steps to overcome this.


Re: render google analytics at end of head

2010-09-12 Thread Don Ferguson
FWIW, I've been using async analytics for months with the snippet in the middle 
of the head section, and it seems to work just fine.  I'd be curious to know 
why it matters...
One tip for using analytics with wicket: you can pass an explicit (logical) url 
to track -- just add a string after _trackPageview.  This is useful for 
instrumenting wicket apps where the actual URL may not contain useful tracking 
information.

On Sep 12, 2010, at 2:53 AM, Wouter de Vaal wrote:

> Hm, interesting, on this page:
> http://www.google.com/support/analytics/bin/answer.py?hl=en_US&answer=174090&utm_id=ad
> they say:
> "
> Once you find the code snippet, copy and paste it into your web page, *just
> before the closing*  tag
> "
> 
> This is why I'm asking... If I just dump it in the head in my base page
> html, wicket still puts other script tags after it (default wicket js
> libraries for ajax calls).
> 
> Wouter
> 
> 
> 2010/9/12 Martin Grigorov 
> 
>> What about using plain javascript to create the new 

Re: Demystifying page serialization

2010-09-12 Thread Mike Dee

I think I got it.  Two things, in particular.

jcgarciam pointed out the problematic line.  I wasn't really creating a
detachable model.  So, it wasn't updating dynamically.  Instead Wicket put
the page in the pagestore and updated the page from there.  Once that was
fixed, the page updated upon each browser refresh.

As KingCode pointed out, Bookmarkable pages stores state in the URL. 
Wicket, apparently, doesn't update these pages from the pagestore. These
always updated upon each browser refresh.

Thanks all.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Demystifying-page-serialization-tp2533538p2536347.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: What is the best slideshow?

2010-09-12 Thread danisevsky
I'm using visural wikcet:
http://visural-wicket-examples.appspot.com/app/fancybox and I'm very
satisfied.

2010/9/11 Paolo :
> I found this:
>
> http://lazydev.ildella.net/wicket-slides-080-released-with-smoothgallery
>
> Is it the best solution to show a sequence of image?
>
> I don't like to use flash. And this use javascript, so it may be OK.
>
> thank you.
>
> -
> 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: render google analytics at end of head

2010-09-12 Thread Wouter de Vaal
Hm, interesting, on this page:
http://www.google.com/support/analytics/bin/answer.py?hl=en_US&answer=174090&utm_id=ad
they say:
"
Once you find the code snippet, copy and paste it into your web page, *just
before the closing*  tag
"

This is why I'm asking... If I just dump it in the head in my base page
html, wicket still puts other script tags after it (default wicket js
libraries for ajax calls).

Wouter


2010/9/12 Martin Grigorov 

> What about using plain javascript to create the new 

Re: render google analytics at end of head

2010-09-12 Thread Alexander Morozov

I think this is not hack, but "raw" post-processing :) Strict processing can
be done with XsltTransformerBehavior or as Martin said, you can use JS.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/render-google-analytics-at-end-of-head-tp2536175p2536224.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: render google analytics at end of head

2010-09-12 Thread Martin Grigorov
What about using plain javascript to create the new 

Re: render google analytics at end of head

2010-09-12 Thread Wouter de Vaal
This looks like hacking into the output string buffer? That seems a bit of a
dirty hack to me, that would involve splitting up just before  and
appending code their.

I hope there is a better way than this...

Wouter

2010/9/12 Alexander Morozov 

>
> Hi!
>
> Have you looked at IResponseFilter ?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/render-google-analytics-at-end-of-head-tp2536175p2536213.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
>
>


-- 
check out https://www.memolio.com


Re: render google analytics at end of head

2010-09-12 Thread Alexander Morozov

Hi!

Have you looked at IResponseFilter ?

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/render-google-analytics-at-end-of-head-tp2536175p2536213.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



render google analytics at end of head

2010-09-12 Thread Wouter de Vaal
Hi,

For some time now, google has changed the way you can incorporate an
analytics snippet. The former one was slow and synchronous, the current one
is asynchronous, so I would like to use that one. However you have to place
it just before . Placing it in our base page at the end of
wicket:head doesn't work as wicket pushes it's own extra's for ajax related
stuff. Is there a way to make sure the analytics snippet goes to the exact
end of the head section?

Thanks,
Wouter