Here is the code which was missing from my topic post -->

" #   "

Regards,

Charles
   


Иванов Дмитрий wrote:
> 
> And what is your markup?
> 
> 15 Август 2011 г. 16:28:00, Charles Moulliard писал:
>>
>> Hi,
>>
>> I would like to change the Locale setting when we click on a Image (flag
>> corresponding to the Locale - France, UK, ...).
>>
>> So in my HTML page, I have defined the following HTML
>>
>> #
>>
>> and in the corresponding Wicket Class, the following code :
>>
>> Link link = new Link("goFrench") {
>> @Override
>> public void onClick() {
>> getSession().setLocale(Locale.FRANCE);
>> }
>> };
>>
>>
>> add(link).add(new Image("frenchFlag", new
>> ResourceReference(BasePage.class, "images/karaf-logo.png")));
>>
>> But when I open the page in my browser, I get this error :
>>
>> WicketMessage: Unable to find component with id 'frenchFlag' in
>> [MarkupContainer [Component id = goFrench]]. This means that you declared
>> wicket:id=frenchFlag in your markup, but that you either did not add the
>> component to your page at all, or that the hierarchy does not match.
>>
>> Any help is welcome.
>>
>> Regards,
>>
>> Charles M. - Apache Committer
>>
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/onClick-on-Image-tp3744299p3744299.html
>> Sent from the Users forum 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]
> 

Иванов Дмитрий wrote:
> 
> And what is your markup?
> 
> 15 Август 2011 г. 16:28:00, Charles Moulliard писал:
>>
>> Hi,
>>
>> I would like to change the Locale setting when we click on a Image (flag
>> corresponding to the Locale - France, UK, ...).
>>
>> So in my HTML page, I have defined the following HTML
>>
>> #
>>
>> and in the corresponding Wicket Class, the following code :
>>
>> Link link = new Link("goFrench") {
>> @Override
>> public void onClick() {
>> getSession().setLocale(Locale.FRANCE);
>> }
>> };
>>
>>
>> add(link).add(new Image("frenchFlag", new
>> ResourceReference(BasePage.class, "images/karaf-logo.png")));
>>
>> But when I open the page in my browser, I get this error :
>>
>> WicketMessage: Unable to find component with id 'frenchFlag' in
>> [MarkupContainer [Component id = goFrench]]. This means that you declared
>> wicket:id=frenchFlag in your markup, but that you either did not add the
>> component to your page at all, or that the hierarchy does not match.
>>
>> Any help is welcome.
>>
>> Regards,
>>
>> Charles M. - Apache Committer
>>
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/onClick-on-Image-tp3744299p3744299.html
>> Sent from the Users forum 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]
> 

Иванов Дмитрий wrote:
> 
> And what is your markup?
> 
> 15 Август 2011 г. 16:28:00, Charles Moulliard писал:
>>
>> Hi,
>>
>> I would like to change the Locale setting when we click on a Image (flag
>> corresponding to the Locale - France, UK, ...).
>>
>> So in my HTML page, I have defined the following HTML
>>
>> #
>>
>> and in the corresponding Wicket Class, the following code :
>>
>> Link link = new Link("goFrench") {
>> @Override
>> public void onClick() {
>> getSession().setLocale(Locale.FRANCE);
>> }
>> };
>>
>>
>> add(link).add(new Image("frenchFlag", new
>> ResourceReference(BasePage.class, "images/karaf-logo.png")));
>>
>> But when I open the page in my browser, I get this error :
>>
>> WicketMessage: Unable to find component with id 'frenchFlag' in
>> [MarkupContainer [Component id = goFrench]]. This means that you declared
>> wicket:id=frenchFlag in your markup, but that you either did not add the
>> component to your page at all, or that the hierarchy does not match.
>>
>> Any help is welcome.
>>
>> Regards,
>>
>> Charles M. - Apache Committer
>>
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/onClick-on-Image-tp3744299p3744299.html
>> Sent from the Users forum 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://apache-wicket.1842946.n4.nabble.com/onClick-on-Image-tp3744299p3744330.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to