You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Advanced Technology® <th...@gmail.com> on 2007/12/19 09:46:36 UTC

AjaxEditableLabel not saving

Hi,

I am this exception when editing an AjaxEditableLabel :

java.lang.IllegalAccessError: tried to access method
org.apache.wicket.Component.onModelChanging()V from class
org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1
    at
org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1.onModelChanging
(AjaxEditableLabel.java:273)
    at org.apache.wicket.Component.modelChanging(Component.java:2058)
    at org.apache.wicket.Component.setModelObject(Component.java:2823)
    at org.apache.wicket.markup.html.form.FormComponent.updateModel(
FormComponent.java:992)
    at org.apache.wicket.markup.html.form.FormComponent.processInput(
FormComponent.java:874)
    at
org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$EditorAjaxBehavior.respond
(AjaxEditableLabel.java:121)
    at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(
AbstractDefaultAjaxBehavior.java:285)
    at
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents
(BehaviorRequestTarget.java:100)
    at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents
(AbstractRequestCycleProcessor.java:90)
    at org.apache.wicket.RequestCycle.processEventsAndRespond(
RequestCycle.java:1094)
    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1169)
    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1248)
    at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
    at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java
:354)
    at org.apache.wicket.protocol.http.WicketFilter.doFilter(
WicketFilter.java:194)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1084)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java
:360)
    at org.mortbay.jetty.security.SecurityHandler.handle(
SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java
:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java
:722)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java
:139)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java
:505)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
HttpConnection.java:828)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(
SelectChannelEndPoint.java:395)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(
BoundedThreadPool.java:450)
-- 
AT(R)

Re: AjaxEditableLabel not saving

Posted by "Artur W." <a_...@gazeta.pl>.

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

I didn't try it yet.

The diffrence is in method newEditor. In RC1 it is:

	protected FormComponent newEditor(MarkupContainer parent, String
componentId, IModel model)
	{
		TextField editor = new TextField(componentId, model);
		editor.setOutputMarkupId(true);
		editor.setVisible(false);
		editor.add(new EditorAjaxBehavior());
		return editor;
	}

In RC2:

	protected FormComponent newEditor(MarkupContainer parent, String
componentId, IModel model)
	{
		TextField editor = new TextField(componentId, model)
		{
			private static final long serialVersionUID = 1L;

			protected void onModelChanged()
			{
				super.onModelChanged();
				AjaxEditableLabel.this.onModelChanged();
			}

			protected void onModelChanging()
			{
				super.onModelChanging();
				AjaxEditableLabel.this.onModelChanging(); //here is error -
java.lang.IllegalAccessError: tried to access method
org.apache.wicket.Component.onModelChanging()V from class
org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1

			}
		};
		editor.setOutputMarkupId(true);
		editor.setVisible(false);
		editor.add(new EditorAjaxBehavior());
		return editor;
	}


Should I open issue?
Artur
-- 
View this message in context: http://www.nabble.com/AjaxEditableLabel-not-saving-tp14413223p14423831.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: AjaxEditableLabel not saving

Posted by Advanced Technology® <th...@gmail.com>.
Yes I do.
I am using Wicket 1.3.0rc2 with Wicket Extension 1.3.0rc1.


2007/12/22, TahitianGabriel <gl...@piti.pf>:
>
>
> I'm already using the iso-8859-1 in a meta tag in my html file.
> I have also try in the setHeader function and it's not working.
> Do you have a correct behavior with accented character?
>
>
>
>
> Azarias Tomás wrote:
> >
> > Try to change Content-Type of Page to "text/html; charset=iso-8859-1".
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/AjaxEditableLabel-not-saving-tp14413223p14467161.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
AT(R)

Re: AjaxEditableLabel not saving

Posted by TahitianGabriel <gl...@piti.pf>.
I've added URIEncoding="UTF-8" in tomcat's server.xml and its' working now.

Thank you.


Johan Compagner wrote:
> 
> Why not use the default of wicket utf8.
> If you really want to use another one then you have to configure
> wicket's encoding setting. So that wicket does set the right headers
> and encodes the output right
> 
> 
> 

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


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


Re: AjaxEditableLabel not saving

Posted by Johan Compagner <jc...@gmail.com>.
Why not use the default of wicket utf8.
If you really want to use another one then you have to configure
wicket's encoding setting. So that wicket does set the right headers
and encodes the output right

On 12/22/07, TahitianGabriel <gl...@piti.pf> wrote:
>
> I'm already using the iso-8859-1 in a meta tag in my html file.
> I have also try in the setHeader function and it's not working.
> Do you have a correct behavior with accented character?
>
>
>
>
> Azarias Tomás wrote:
> >
> > Try to change Content-Type of Page to "text/html; charset=iso-8859-1".
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/AjaxEditableLabel-not-saving-tp14413223p14467161.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: AjaxEditableLabel not saving

Posted by TahitianGabriel <gl...@piti.pf>.
I'm already using the iso-8859-1 in a meta tag in my html file.
I have also try in the setHeader function and it's not working.
Do you have a correct behavior with accented character?




Azarias Tomás wrote:
> 
> Try to change Content-Type of Page to "text/html; charset=iso-8859-1".
> 
> 

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


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


Re: AjaxEditableLabel not saving

Posted by Advanced Technology® <th...@gmail.com>.
Try to change Content-Type of Page to "text/html; charset=iso-8859-1".



2007/12/21, TahitianGabriel <gl...@piti.pf>:
>
>
> 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 <gl...@piti.pf>:
> >>
> >>
> >> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
AT(R)

Re: AjaxEditableLabel not saving

Posted by "Artur W." <a_...@gazeta.pl>.

Johan Compagner wrote:
> 
> did somebody made a jira issue for this with a small test case then?
> so that we do fix this for the final
> 

I did.

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


Artur

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


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


Re: AjaxEditableLabel not saving

Posted by Johan Compagner <jc...@gmail.com>.
did somebody made a jira issue for this with a small test case then?
so that we do fix this for the final




On Dec 21, 2007 7:58 AM, TahitianGabriel <gl...@piti.pf> wrote:

>
> 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 <gl...@piti.pf>:
> >>
> >>
> >> 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<http://nabble.com/>
> .
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: AjaxEditableLabel not saving

Posted by TahitianGabriel <gl...@piti.pf>.
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 <gl...@piti.pf>:
>>
>>
>> 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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: AjaxEditableLabel not saving

Posted by Advanced Technology® <th...@gmail.com>.
I 've downgrade to wicket-extensions 1.3.0-rc1, and it's working.

AT

2007/12/20, TahitianGabriel <gl...@piti.pf>:
>
>
> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: AjaxEditableLabel not saving

Posted by TahitianGabriel <gl...@piti.pf>.
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: AjaxEditableLabel not saving

Posted by Igor Vaynberg <ig...@gmail.com>.
and what about rc3?

-igor


On Dec 19, 2007 9:54 AM, Artur W. <a_...@gazeta.pl> wrote:
>
>
> Azarias Tomás wrote:
> >
> > Hi,
> >
> > I am this exception when editing an AjaxEditableLabel :
> >
> > java.lang.IllegalAccessError: tried to access method
> > org.apache.wicket.Component.onModelChanging()V from class
> > org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1
> >     at
> >
>
> I had the same problem after migration from rc1 to rc2 :(
>
>
> Artur
>
> --
> View this message in context: http://www.nabble.com/AjaxEditableLabel-not-saving-tp14413223p14421788.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: AjaxEditableLabel not saving

Posted by "Artur W." <a_...@gazeta.pl>.

Eelco Hillenius wrote:
> 
>> I had the same problem after migration from rc1 to rc2 :(
> 
> 
> Not sure what changed, but did you upgrade both wicket and wicket-stuff to
> rc2?
> 
> 

Yes, I upgraded everything to rc2. wicket-extensions too.


Artur

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


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


Re: AjaxEditableLabel not saving

Posted by Eelco Hillenius <ee...@gmail.com>.
>
>
> > I am this exception when editing an AjaxEditableLabel :
> >
> > java.lang.IllegalAccessError: tried to access method
> > org.apache.wicket.Component.onModelChanging()V from class
> > org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1
> >     at
> >
>
> I had the same problem after migration from rc1 to rc2 :(


Not sure what changed, but did you upgrade both wicket and wicket-stuff to
rc2?

Eelco

Re: AjaxEditableLabel not saving

Posted by "Artur W." <a_...@gazeta.pl>.

Azarias Tomás wrote:
> 
> Hi,
> 
> I am this exception when editing an AjaxEditableLabel :
> 
> java.lang.IllegalAccessError: tried to access method
> org.apache.wicket.Component.onModelChanging()V from class
> org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel$1
>     at
> 

I had the same problem after migration from rc1 to rc2 :(


Artur

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


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