Re: Remove support for Portlets in Wicket 1.5

2010-08-11 Thread Steve Swinsburg
-1 to removing it

As soon as uPortal supports JSR-286 (and it does, just not in a release yet) 
I'll be using Wicket for my portlet development and have been training my team 
in readiness.

At a minimum move it to wicketstuff.

thanks,
Steve


On 12/08/2010, at 5:19 AM, Rodolfo Hansen wrote:

> I used wikcet 1.4 inside Liferay 5.2 and sent a tiny patch that was
> implemented in 1.4.7 
> 
> I no longer use wicket inside a portlet container, but I can help
> support it.
> 
> 
> On Wed, 2010-08-11 at 14:45 -0400, James Carman wrote:
> 
>> I'd say at least move it to wicketstuff, so that if there's some other
>> person out there with the will and means to take the project on, they
>> can do so.
>> 
>> On Wed, Aug 11, 2010 at 2:35 PM, Martin Grigorov  
>> wrote:
>>> Hi,
>>> 
>>> I just created a ticket (https://issues.apache.org/jira/browse/WICKET-2976)
>>> to remove the support for Portlets in Wicket 1.5.
>>> It is currently broken because of the re-work of WicketFilter and request
>>> processing.
>>> Since none of the active core developers use this technology in his daily
>>> job it is hard for us to support it.
>>> Now is the time to vote against this decision and give us a hand to improve
>>> it or just silently agree.
>>> 
>>> martin-g
>>> 
>>> P.S. I sent this email earlier today but for some reason it was rejected.
>>> Excuse me if you receive it for second time.
>>> 
>> 
>> -
>> 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 1.5-M1 migration experiences

2010-08-11 Thread Major Péter
Hi,

I've just tried to move our application to Wicket 1.5-M1, and I've faced
with the following problems:
* new HeaderContributor(new IHeaderContributor() {...} isn't working
anymore, the constructor is gone.
After looking into JavaDoc I've find out that HeaderContributor.forCss
and other methods are deprecated in 1.4.9, but not in 1.5-M1, so wtf?

* PageParameters#getAsLong and other helper methods are missing, instead
we have PageParameters#getNamedParameter()#toLong and etc.

There are Indexed Parameters and Named Parameters, what's the difference?
based on the JavaDoc I would thought indexed parameter is like
'/show/id/1' and named is 'show?id=1'
if this is true, why isn't there simply a
getParameterIDon'tCareAboutTheTypeOfIt function, if I want to support
both of them?

The deprecated PageParameters constructors are lacking JavaDoc
deprecation note, or it could be a bit enhanced at least.

* AjaxButton now has onError function, which needs to be implemented
* IBehavior#unbind

* In MyApplication I've had a method like this:
@Override
public RequestCycle newRequestCycle(Request request, Response
response) {
if
(!Configuration.getEnvironment().equals(Environment.PRODUCTION)) {
return super.newRequestCycle(request, response);
} else {
return new WebRequestCycle(this, (WebRequest) request,
(WebResponse) response) {

@Override
public Page onRuntimeException(Page page,
RuntimeException ex) {
if (ex instanceof PageExpiredException) {
return new PageExpiredError();
}
return new InternalServerError(page, ex);
}
};
}
}

now newRequestCycle is gone, we have createRequestCycle, which is final
and it uses RequestCycleProvider. so changing this to

setRequestCycleProvider(new IRequestCycleProvider() {

@Override
public RequestCycle get(RequestCycleContext context) {
if
(!Configuration.getEnvironment().equals(Environment.PRODUCTION)) {
return new RequestCycle(context);
} else {
return new RequestCycle(context) {

@Override
protected IRequestHandler
handleException(Exception e) {
//etc
}
};
}
}
});

should have the same behavior, or??

Also I couldn't find a substitute for this:
http://wicket.apache.org/apidocs/1.4/org/apache/wicket/protocol/http/WebApplication.html#mount(java.lang.String,%20org.apache.wicket.util.lang.PackageName)
and also for HybridUrlCodingStrategy. Or is hybrid even needed anymore?
Where can I find out more about these new requestmapper stuff? (Please
don't say in wicket-examples, I'm looking for a doc, like
https://cwiki.apache.org/confluence/display/WICKET/URL+Coding+Strategies )

Thanks

Regards,
Peter

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



Wicket + Shiro > Authentication

2010-08-11 Thread norbert

Hey,

 I'm using Wicket and Shiro and I have a problem with authentication. Once
the user has logged in and I set the response page, on the other site I
found that isAuthenticated is false.

 What's the problem?

Thank you

Norbert
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Shiro-Authentication-tp2321305p2321305.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: FileUpload and IE6

2010-08-11 Thread James Carman
apparently it was.  DUH!

On Wed, Aug 11, 2010 at 4:56 PM, Igor Vaynberg  wrote:
> ajax file upload?
>
> -igor
>
> On Wed, Aug 11, 2010 at 1:06 PM, James Carman
>  wrote:
>> Has anyone had any luck getting this to work?  We've got a page that
>> does a file upload.  Everything works fine in Firefox, IE8, etc.  But,
>> IE6 (of course) fails.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: FileUpload and IE6

2010-08-11 Thread Igor Vaynberg
ajax file upload?

-igor

On Wed, Aug 11, 2010 at 1:06 PM, James Carman
 wrote:
> Has anyone had any luck getting this to work?  We've got a page that
> does a file upload.  Everything works fine in Firefox, IE8, etc.  But,
> IE6 (of course) fails.
>
> -
> 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: PageExpiredException - ajax request

2010-08-11 Thread sbrookes2

Is it possible to restore a page once it has been removed from the PageMap? 
It seems to be possible based on this thread but so far I haven't been able
to work it out.

In the above code:
return
pageFactory.newPage(Class.forName(requestParameters.getPageMapName()),
params);

When I try to generate the page it returns null because the default PageMap
name is null.  What am I missing?


Also, forgive another dumb question but Igor I have been trying to figure
out where the pseudo-code you posted should go in the request cycle but so
far am lost.  Can you provide a few more details?
requestcycle rc=getrequestcycle(); 

response orig=rc.getresponse(); 
rc.setresponse(new noopresponse()); 
page.render(); 
rc.setresponse(orig); 

thanks,
Sean 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/PageExpiredException-ajax-request-tp1878866p2321861.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



Wicket 1.4.10 and 1.5-M1 released!

2010-08-11 Thread Igor Vaynberg
Wicket 1.5-M1
-

This is the first milestone of the new 1.5.x Wicket series. The focus
of 1.5.x is to provide our users with a more powerful and flexible
request processing pipeline.

This release is NOT production-ready, it is more of a technology demo
that should facilitate user-feedback we can fold into the next
milestone.

Migration notes:
http://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5

Subversion tag: http://svn.apache.org/repos/asf/wicket/releases/wicket-1.5-M1/

Maven:

org.apache.wicket
wicket
1.5-M1


Download: http://www.apache.org/dyn/closer.cgi/wicket/1.5-M1

Wicket 1.4.10
-

This is the tenth maintenance release of the 1.4.x series and brings
over thirty bug fixes and improvements.

As well as bringing bug fixes and small improvements, 1.4.10 brings
two major new features:

* Delayed component initialization
* Component configuration

See http://wicket.apache.org for a more detailed announcement.

Tag: http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.10/

Changelog: 
https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&mode=hide&sorter/order=DESC&sorter/field=priority&pid=12310561&fixfor=12315070

Maven:


 org.apache.wicket
 wicket
 1.4.10


Download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.10

Cheers
The Wicket Team

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



Replicating tinyMCE

2010-08-11 Thread David Hendrix

Hi,

I tried to add tinyMCE to my application, which seems easy enough using 
the wicketstuff project. The point where I got stuck (for some hours 
now) is where I start adding the component carrying the TinyMceBehavior 
to any Ajax-Targets.
What I'm trying to do is to populate the textarea based on selections 
from several DropDownChoices. But whenever an onChange-Event is called 
that adds the textarea to it's target, another editor appears right 
above the existing one containing the new content while the other editor 
gets moved down, still displaying the old values.

Unfortunately I can't figure out what I'm doing wrong here...

Any ideas would be greatly appreciated

thanks
David

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



FileUpload and IE6

2010-08-11 Thread James Carman
Has anyone had any luck getting this to work?  We've got a page that
does a file upload.  Everything works fine in Firefox, IE8, etc.  But,
IE6 (of course) fails.

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



Re: Remove support for Portlets in Wicket 1.5

2010-08-11 Thread Rodolfo Hansen
I used wikcet 1.4 inside Liferay 5.2 and sent a tiny patch that was
implemented in 1.4.7 

I no longer use wicket inside a portlet container, but I can help
support it.


On Wed, 2010-08-11 at 14:45 -0400, James Carman wrote:

> I'd say at least move it to wicketstuff, so that if there's some other
> person out there with the will and means to take the project on, they
> can do so.
> 
> On Wed, Aug 11, 2010 at 2:35 PM, Martin Grigorov  wrote:
> > Hi,
> >
> > I just created a ticket (https://issues.apache.org/jira/browse/WICKET-2976)
> > to remove the support for Portlets in Wicket 1.5.
> > It is currently broken because of the re-work of WicketFilter and request
> > processing.
> > Since none of the active core developers use this technology in his daily
> > job it is hard for us to support it.
> > Now is the time to vote against this decision and give us a hand to improve
> > it or just silently agree.
> >
> > martin-g
> >
> > P.S. I sent this email earlier today but for some reason it was rejected.
> > Excuse me if you receive it for second time.
> >
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 




Re: Remove support for Portlets in Wicket 1.5

2010-08-11 Thread James Carman
I'd say at least move it to wicketstuff, so that if there's some other
person out there with the will and means to take the project on, they
can do so.

On Wed, Aug 11, 2010 at 2:35 PM, Martin Grigorov  wrote:
> Hi,
>
> I just created a ticket (https://issues.apache.org/jira/browse/WICKET-2976)
> to remove the support for Portlets in Wicket 1.5.
> It is currently broken because of the re-work of WicketFilter and request
> processing.
> Since none of the active core developers use this technology in his daily
> job it is hard for us to support it.
> Now is the time to vote against this decision and give us a hand to improve
> it or just silently agree.
>
> martin-g
>
> P.S. I sent this email earlier today but for some reason it was rejected.
> Excuse me if you receive it for second time.
>

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



Remove support for Portlets in Wicket 1.5

2010-08-11 Thread Martin Grigorov
Hi,

I just created a ticket (https://issues.apache.org/jira/browse/WICKET-2976)
to remove the support for Portlets in Wicket 1.5.
It is currently broken because of the re-work of WicketFilter and request
processing.
Since none of the active core developers use this technology in his daily
job it is hard for us to support it.
Now is the time to vote against this decision and give us a hand to improve
it or just silently agree.

martin-g

P.S. I sent this email earlier today but for some reason it was rejected.
Excuse me if you receive it for second time.


Re: Wicket Security

2010-08-11 Thread Martin Grigorov
The code is here:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security
The is example/ folder in it.

On Wed, Aug 11, 2010 at 6:29 PM, sakthi vel  wrote:

> Hello,
>
> Could anyone tell about the features of wicket security and how it can be
> implemented in wicket applications.
> Possibly any references would be great.
>


Handling - Cross side scripting in wicket

2010-08-11 Thread sakthi vel
Hello,

I read in the article, that wicket will handle the cross side scripting.
Could anyone explain a bit more, how wicket handles it. Possibly it will be
great if an example is provided.


Wicket Security

2010-08-11 Thread sakthi vel
Hello,

Could anyone tell about the features of wicket security and how it can be
implemented in wicket applications.
Possibly any references would be great.


Wicket page test 1.6.1 is now available

2010-08-11 Thread Kent Tong
Dear all,

Wicket page test 1.6.1 is now available. It is a library allowing
you to unit test your Wicket pages easily, supporting AJAX and
Javascript without changes to your pages.

This minor release contains the follow changes:

* Fixed issue 3043110[1].
* Fixed issue 3037392[2].
* Fixed issue 3037395[3].

Get it from maven as described in http://wicketpagetest.sourceforge.net/



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



Re: Replacing Contents of ModalWindow

2010-08-11 Thread Brad Grier
I found the solution/problem. The default form submit logic was adding the 
form to the AjaxRequestTarget. Skipping this when the form is in a modal 
window and needs to be replaced allows the panel to be swapped out. Also, 
setContent on the ModalWindow doesn't seem to work here. I had to replace 
the form (actually it's enclosing panel) with replaceWith(newPanel).


--
From: "Brad Grier" 
Sent: Tuesday, August 10, 2010 10:38 PM
To: 
Subject: Replacing Contents of ModalWindow

We allow users to define custom "triggers" on a form submit (an ajax 
submit). These triggers can send an email or take the user to another 
form/panel (basically a panel-swap via Ajax). This panel-swap works fine 
until circumstances land the form in a ModalWindow. I can't get the 
ModalWindow to replace it's contents once it's showing. I've tried 
setContent() and replace(). I've tried closing the window, setting the 
content and opening it. Nothing works. And yes, I do have the ModalWindow 
embedded in another form per the javadoc. Something is odd because I also 
have a custom Link class that swaps out its parent panel via ajax and 
those links work fine in a ModelWindow. Does anyone have any insight? Is 
there something about form processing that prevents this from working?


Thanks! 



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



RE: any good ideas about how to add a confirm check before leaving a page?

2010-08-11 Thread Joe Hudson
Thank you all for your feedback.  This helps.

Joe

-Original Message-
From: Rodolfo Hansen [mailto:kry...@gmail.com] 
Sent: Tuesday, August 10, 2010 12:30 PM
To: users@wicket.apache.org
Subject: Re: any good ideas about how to add a confirm check before leaving a 
page?

On Tue, 2010-08-10 at 16:08 +0200, Leszek Gawron wrote:

> On 2010-08-10 15:11, Joe Hudson wrote:
> > Thank you very much for the response but my issue is not a simple as 
> > this
> >
> > Say I have a page with navigation links and the page doesn't "know" about 
> > the navigation links because they are controlled by functionality provided 
> > in the superclass.  What I am trying to do is deal with the case where the 
> > user clicks a link of that type and intercept that event.  Does anyone have 
> > any advice?  Thanks.
> 
> Do you need to intercept the event or just as user for permission to 
> leave the page? If the latter:
> 
> https://cwiki.apache.org/WICKET/composite-behaviors.html


You can also find an implemented version of this behaviour here:

http://code.google.com/p/koodaripalvelut-wicket/

You would want the change detector project.



If your requirements are more conplex and you need to add a behavior to
that link specifically, (to do something on the server, you should just
add a AjaxEventBehaviour for that button, or simply do a
replace(Component) on your child page.


Re: SerializableChecker$WicketNotSerializableException: how to simulate

2010-08-11 Thread Johan Compagner
after viewing a page, when the page gets serialized

But you could also trigger it your self,
for example you can have something in the detach() of your base page

super.onDetach()
if (development)
{
 Objects.objectToByteArray(this)
}

then you should get the same error right away


On Wed, Aug 11, 2010 at 13:56, Thomas Singer  wrote:
> When exactly the serialization happens? When viewing a page?
>
> Tom
>
>
> On 11.08.2010 13:25, Johan Compagner wrote:
>> the only way to do this is as i described look where the exception
>> really comes from
>> and go to that same page in your developer, do as your user does.
>> There is no other way, you really need to be in the same state.
>>
>>
>> On Wed, Aug 11, 2010 at 13:24, Thomas Singer  wrote:
>>> I want to know how I can generate this exception in my development
>>> environment. It is nasty to test on the production system.
>>>
>>> Tom
>
> -
> 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: [wicketstuff-core] Notice of java5/java6 restructuring ahead of 1.4.10 release

2010-08-11 Thread Stefan Lindner
Wich compiler is used for java 1.5 builds? I just tested jWicket with Sun's 
1.5.0_22 on Windows and no errors where shown. Everything compiles without any 
problem. 

Stefan

-Ursprüngliche Nachricht-
Von: Michael O'Cleirigh [mailto:michael.ocleir...@rivulet.ca] 
Gesendet: Mittwoch, 11. August 2010 06:50
An: users@wicket.apache.org
Betreff: Re: [wicketstuff-core] Notice of java5/java6 restructuring ahead of 
1.4.10 release
Wichtigkeit: Hoch

Hello,

I have committed the changes related to moving the modules into seperate 
directories. Right now the hudson build server is not building snapshots 
correctly but I have just run through deploying them manually.  I also 
have to fine tune how the maven compiler plugin is configured as right 
now it requires a -Djava5home to point at the $JAVA_5_HOME for 
jdk-1.5-parent and -Djava6home to point at the $JAVA_6_HOME for 
jdk-1.6-parent but from what I can tell it should be possible to only 
define the $JAVA_HOME variable externally to maven.

As javaee-inject-parent had a dependency on a java 6 library it is the 
first project moved into the jdk-1.6-parent directory.

These were the other failing modules that will probably be moved to 
java6 for the 1.4.10 release:

/home/wicket/.hudson/jobs/Wicket Stuff Core 
Java5/workspace/wicketstuff-core/push-parent/push/src/main/java/org/wicketstuff/push/cometd/CometdAbstractBehavior.java:[15,-1]
 cannot access org.cometd.server.CometdServlet
bad class file: 
/home/wicket/.m2/repository/org/cometd/java/cometd-java-server/2.0.0.RC2/cometd-java-server-2.0.0.RC2.jar(org/cometd/server/CometdServlet.class)
class file has wrong version 50.0, should be 49.0


org.apache.maven.BuildFailureException: Compilation failure
/home/wicket/.hudson/jobs/Wicket Stuff Core 
Java5/workspace/wicketstuff-core/push-parent/push/src/main/java/org/wicketstuff/push/cometd/CometdAbstractBehavior.java:[15,-1]
 cannot access org.cometd.server.CometdServlet
bad class file: 
/home/wicket/.m2/repository/org/cometd/java/cometd-java-server/2.0.0.RC2/cometd-java-server-2.0.0.RC2.jar(org/cometd/server/CometdServlet.class)
class file has wrong version 50.0, should be 49.0


at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at 
org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at hudson.maven.agent.Main.launch(Main.java:165)
at hudson.maven.MavenBuilder.call(MavenBuilder.java:165)
at 
hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:708)
at 
hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:652)
at hudson.remoting.UserRequest.perform(UserRequest.java:114)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:270)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)

Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation 
failure
/home/wicket/.hudson/jobs/Wicket Stuff Core 
Java5/workspace/wicketstuff-core/push-parent/push/src/main/java/org/wicketstuff/push/cometd/CometdAbstractBehavior.java:[15,-1]
 cannot access org.cometd.server.CometdServlet
bad class file: 
/home/wicket/.m2/repository/org/cometd/java/cometd-java-

Re: SerializableChecker$WicketNotSerializableException: how to simulate

2010-08-11 Thread Thomas Singer
When exactly the serialization happens? When viewing a page?

Tom


On 11.08.2010 13:25, Johan Compagner wrote:
> the only way to do this is as i described look where the exception
> really comes from
> and go to that same page in your developer, do as your user does.
> There is no other way, you really need to be in the same state.
> 
> 
> On Wed, Aug 11, 2010 at 13:24, Thomas Singer  wrote:
>> I want to know how I can generate this exception in my development
>> environment. It is nasty to test on the production system.
>>
>> Tom

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



Re: SerializableChecker$WicketNotSerializableException: how to simulate

2010-08-11 Thread Johan Compagner
the only way to do this is as i described look where the exception
really comes from
and go to that same page in your developer, do as your user does.
There is no other way, you really need to be in the same state.


On Wed, Aug 11, 2010 at 13:24, Thomas Singer  wrote:
> I want to know how I can generate this exception in my development
> environment. It is nasty to test on the production system.
>
> Tom
>
>
> On 11.08.2010 10:53, Johan Compagner wrote:
>> why not?
>> if you know which page it was and which component/model that holds
>> that none serializable class
>> then you just have to make sure that you go to that same area in your
>> developer..
>> What else do you expect that you can do?
>
> -
> 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: SerializableChecker$WicketNotSerializableException: how to simulate

2010-08-11 Thread Thomas Singer
I want to know how I can generate this exception in my development
environment. It is nasty to test on the production system.

Tom


On 11.08.2010 10:53, Johan Compagner wrote:
> why not?
> if you know which page it was and which component/model that holds
> that none serializable class
> then you just have to make sure that you go to that same area in your
> developer..
> What else do you expect that you can do?

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



Re: SV: problem with wicket + spring + hibernate

2010-08-11 Thread jcgarciam

Probably some Form validation fail (some field cannot be converted), try
overriding the OnError method in the form, report any error in the
feedbackpanel.


On Wed, Aug 11, 2010 at 4:10 AM, Will Martinez A. [via Apache Wicket] <
ml-node+2320816-430238374-65...@n4.nabble.com
> wrote:

>
> As I said before "I took some configurations files from 5 days of
> wicket(mysticpaste)" and for mysticpaste it works fine.
>
> I think I found the problem for some reason without @transactional it is
> not working, in mysticpaste it works without @transactional, but in my
> project it need it, some one can tell why?
>
> Thanks,
> Will
>
>
>
> > From: [hidden email]
> > To: [hidden email]
> > Date: Wed, 11 Aug 2010 08:50:01 +0200
> > Subject: SV: problem with wicket + spring + hibernate
> >
> > I noticed that you ignored the warning here:
> >
> > > 
> >
> > by placing the Wicket filters first.
> >
> > - Tor Iver
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]
> > For additional commands, e-mail: [hidden 
> > email]
> >
>
>
> --
>  View message @
> http://apache-wicket.1842946.n4.nabble.com/problem-with-wicket-spring-hibernate-tp2320778p2320816.html
> To unsubscribe from Apache Wicket, click 
> here.
>
>
>


-- 
Sincerely,
JC (http://www.linkedin.com/in/jcgarciam)
Work smarter, not harder!.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/problem-with-wicket-spring-hibernate-tp2320778p2321036.html
Sent from the Wicket - User mailing list archive at Nabble.com.


SV: jsr 286 inter-portlet communication

2010-08-11 Thread Wilhelmsen Tor Iver
> Thanks Igor for your response. I thought I had read that wicket 1.4.x
> was JSR
> 286 complaint but not sure how that is possible since JSR 286 does call
> out
> inter-portlet communications.   Did i  mis-read the documentation.

One of our developers had to subclass WicketPortlet to support events, but I am 
not sure it consisted of more than annotating a method with 
@javax.portlet.ProcessEvent(qname="{namespace}eventname"). The container (in 
our case Liferay 5.2.x) deals with the routing as it were. We switched to using 
a portlet URL to accomplish what the events did because we had a need to open 
the portlet even when it was not already added to a page.

- Tor Iver

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



Re: jsr 286 inter-portlet communication

2010-08-11 Thread Martin Grigorov
WicketFilter in 1.5 do not use them currently.
Probably it wont be hard to integrate them back but none of the core
developers use Portlets in their daily job and it will be hard for us to
support and test this part of the framework.
If there are users that want to give us a hand by providing patches and
tests then I'll be happy to support them.

On Wed, Aug 11, 2010 at 10:26 AM, Wilhelmsen Tor Iver wrote:

> > currently 1.5 has no support for portlets
>
> Well the portlet-related classes from 1.4 seem to still be there in
> trunk...?
>
> - Tor Iver
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: SerializableChecker$WicketNotSerializableException: how to simulate

2010-08-11 Thread Johan Compagner
why not?
if you know which page it was and which component/model that holds
that none serializable class
then you just have to make sure that you go to that same area in your
developer..
What else do you expect that you can do?


On Wed, Aug 11, 2010 at 10:29, Thomas Singer  wrote:
> Unfortunately, this does not answer my question.
>
> Tom
>
>
> On 11.08.2010 09:57, Johan Compagner wrote:
>> then you just have to check where those classes are used and where
>> they could be stored in a wicket component/model
>> and make sure you detach that object .
>> Wicket tells you the field hierarchy to that object so you should be
>> able to track it down quite easily
>>
>>
>> On Wed, Aug 11, 2010 at 09:55, Thomas Singer  wrote:
 doesnt the message of that exception tell you which object class is the 
 problem?
>>>
>>> It does, but I don't want to make the logged class serializable, but instead
>>> avoid it. Independent of that I want to verify whether the done steps work
>>> correctly.
>>>
>>> Tom
>>>
>>>
>>> On 11.08.2010 09:27, Johan Compagner wrote:
 doesnt the message of that exception tell you which object class is the 
 problem?


 On Wed, Aug 11, 2010 at 09:24, Thomas Singer  wrote:
> Hi,
>
> In our server logs we have a couple of WicketNotSerializableException
> logged, but we don't know when they occur. How we can create them locally 
> in
> our development environment (to test whether we have avoided them)?
>
> Thanks in advance,
> Tom
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: SerializableChecker$WicketNotSerializableException: how to simulate

2010-08-11 Thread Thomas Singer
Unfortunately, this does not answer my question.

Tom


On 11.08.2010 09:57, Johan Compagner wrote:
> then you just have to check where those classes are used and where
> they could be stored in a wicket component/model
> and make sure you detach that object .
> Wicket tells you the field hierarchy to that object so you should be
> able to track it down quite easily
> 
> 
> On Wed, Aug 11, 2010 at 09:55, Thomas Singer  wrote:
>>> doesnt the message of that exception tell you which object class is the 
>>> problem?
>>
>> It does, but I don't want to make the logged class serializable, but instead
>> avoid it. Independent of that I want to verify whether the done steps work
>> correctly.
>>
>> Tom
>>
>>
>> On 11.08.2010 09:27, Johan Compagner wrote:
>>> doesnt the message of that exception tell you which object class is the 
>>> problem?
>>>
>>>
>>> On Wed, Aug 11, 2010 at 09:24, Thomas Singer  wrote:
 Hi,

 In our server logs we have a couple of WicketNotSerializableException
 logged, but we don't know when they occur. How we can create them locally 
 in
 our development environment (to test whether we have avoided them)?

 Thanks in advance,
 Tom
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 

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



SV: jsr 286 inter-portlet communication

2010-08-11 Thread Wilhelmsen Tor Iver
> currently 1.5 has no support for portlets

Well the portlet-related classes from 1.4 seem to still be there in trunk...?

- Tor Iver

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



Re: SerializableChecker$WicketNotSerializableException: how to simulate

2010-08-11 Thread Johan Compagner
then you just have to check where those classes are used and where
they could be stored in a wicket component/model
and make sure you detach that object .
Wicket tells you the field hierarchy to that object so you should be
able to track it down quite easily


On Wed, Aug 11, 2010 at 09:55, Thomas Singer  wrote:
>> doesnt the message of that exception tell you which object class is the 
>> problem?
>
> It does, but I don't want to make the logged class serializable, but instead
> avoid it. Independent of that I want to verify whether the done steps work
> correctly.
>
> Tom
>
>
> On 11.08.2010 09:27, Johan Compagner wrote:
>> doesnt the message of that exception tell you which object class is the 
>> problem?
>>
>>
>> On Wed, Aug 11, 2010 at 09:24, Thomas Singer  wrote:
>>> Hi,
>>>
>>> In our server logs we have a couple of WicketNotSerializableException
>>> logged, but we don't know when they occur. How we can create them locally in
>>> our development environment (to test whether we have avoided them)?
>>>
>>> Thanks in advance,
>>> Tom
>
> -
> 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: SerializableChecker$WicketNotSerializableException: how to simulate

2010-08-11 Thread Thomas Singer
> doesnt the message of that exception tell you which object class is the 
> problem?

It does, but I don't want to make the logged class serializable, but instead
avoid it. Independent of that I want to verify whether the done steps work
correctly.

Tom


On 11.08.2010 09:27, Johan Compagner wrote:
> doesnt the message of that exception tell you which object class is the 
> problem?
> 
> 
> On Wed, Aug 11, 2010 at 09:24, Thomas Singer  wrote:
>> Hi,
>>
>> In our server logs we have a couple of WicketNotSerializableException
>> logged, but we don't know when they occur. How we can create them locally in
>> our development environment (to test whether we have avoided them)?
>>
>> Thanks in advance,
>> Tom

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



Re: quartz job bean access to properties file

2010-08-11 Thread Martin Grigorov
Where exactly in this code you need access to .properties ?
Here is a way with normal j.u.c Executor:
java.util.concurrent.ThreadPoolExecutor.beforeExecute(Thread t, Runnable r)
{

  if (r instanceof MyRunnable) {
MyRunnable mr = (MyRunnable) r;
mr.setApplication(Application.get());
  }
}

abstract class MyRunnable implements Runnable {
  private Application app;

  public void setApplication(Application a) {app = a;}

  public abstract void onRun();

  public void run() {
try {
  Application.set(app);
  onRun();
} finally {
  Application.unset();
}
  }
}

And don't forget to shutdown the executor on Application#onDestroy()

On Tue, Aug 10, 2010 at 9:52 PM, rmattler  wrote:

>
> I'm struggling with how to get access to the properties file from a quartz
> job bean.  I'm creating a pdf report that will then be emailed.  I want to
> get access to the properties file to tell me where to write the file along
> with other information.  Here is my quartz job code. Thanks in advance.
>
> package com.paybridgeusa.jobs;
>
> public class SendEmail extends QuartzJobBean {
>
>public void executeInternal(JobExecutionContext context) throws
> JobExecutionException {
>
>try {
>// get all tpas
>TPAUsersDAO usersDAO = (TPAUsersDAO)
> getApplicationContext(context).getBean("TPAUsersDAO");
>List users = usersDAO.getAll();
>for (Tpausers user : users) {
>String emailAddressTo = user.getEmail();
>}
>} catch (Exception e) {
>System.out.println(e.getLocalizedMessage());
>}
>}
>
>private static final String APPLICATION_CONTEXT_KEY =
> "applicationContext";
>
>public ApplicationContext getApplicationContext(JobExecutionContext
> context) throws Exception {
>ApplicationContext applicationContext = null;
>applicationContext = (ApplicationContext)
> context.getScheduler().getContext().get(APPLICATION_CONTEXT_KEY);
>if (applicationContext == null) {
>throw new JobExecutionException("No application
> context available in
> scheduler context for key \"" + APPLICATION_CONTEXT_KEY + "\"");
>}
>return applicationContext;
>}
>
> }
>
>
> application context xml
>
> 
>
> class="org.springframework.scheduling.quartz.JobDetailBean">
> value="com.paybridgeusa.jobs.SendTermsEmail"/>
>
>
> class="org.springframework.scheduling.quartz.CronTriggerBean">
>
>
>
>
>
>
> class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
>
>
>
>
>
>
>   applicationContext
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/quartz-job-bean-access-to-properties-file-tp2320367p2320367.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: SerializableChecker$WicketNotSerializableException: how to simulate

2010-08-11 Thread Johan Compagner
doesnt the message of that exception tell you which object class is the problem?


On Wed, Aug 11, 2010 at 09:24, Thomas Singer  wrote:
> Hi,
>
> In our server logs we have a couple of WicketNotSerializableException
> logged, but we don't know when they occur. How we can create them locally in
> our development environment (to test whether we have avoided them)?
>
> Thanks in advance,
> Tom
>
> -
> 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



SerializableChecker$WicketNotSerializableException: how to simulate

2010-08-11 Thread Thomas Singer
Hi,

In our server logs we have a couple of WicketNotSerializableException
logged, but we don't know when they occur. How we can create them locally in
our development environment (to test whether we have avoided them)?

Thanks in advance,
Tom

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



Re: Loading Wicket resources from a background thread

2010-08-11 Thread Alec Swan
I ended up loading Wicket application properties files using Spring's
PropertyPlaceholderConfigurer and then autowiring it in the class which is
called by a Quartz thread.

Thank you everybody for your help.

On Tue, Aug 10, 2010 at 2:14 PM, rmattler  wrote:

>
> Wow just asked this same question.  I didn't see you post (sorry list).
> Please let me know if you figure it out.
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Loading-Wicket-resources-from-a-background-thread-tp2319046p2320388.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: SV: problem with wicket + spring + hibernate

2010-08-11 Thread Will Martinez A .

As I said before "I took some configurations files from 5 days of 
wicket(mysticpaste)" and for mysticpaste it works fine.

I think I found the problem for some reason without @transactional it is not 
working, in mysticpaste it works without @transactional, but in my project it 
need it, some one can tell why?

Thanks,
Will



> From: toriv...@arrive.no
> To: users@wicket.apache.org
> Date: Wed, 11 Aug 2010 08:50:01 +0200
> Subject: SV: problem with wicket + spring + hibernate
> 
> I noticed that you ignored the warning here:
> 
> > 
> 
> by placing the Wicket filters first.
> 
> - Tor Iver
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
  

Re: reusing clientside code for desktop and mobile screens.

2010-08-11 Thread Josh Kamau
Thanks Jeremy. Just what i was looking for.

On Tue, Aug 10, 2010 at 8:01 PM, Jeremy Thomerson  wrote:

> Session.setStyle("mobile")
>
> On Tue, Aug 10, 2010 at 8:55 AM, Josh Kamau  wrote:
>
> > Thanks Jeremy.
> > Am just wondering, how will the application know which template to pick?
> >
> > regards
> > Joshua
> >
> > On Tue, Aug 10, 2010 at 4:15 PM, Jeremy Thomerson <
> > jer...@wickettraining.com
> > > wrote:
> >
> > > Use Wicket's style for the templates and you'll have two sets of html
> > > files,
> > > like foopage.html and foopage_mobile.html.
> > >
> > > Jeremy Thomerson
> > > http://wickettraining.com
> > > -- sent from my "smart" phone, so please excuse spelling, formatting,
> or
> > > compiler errors
> > >
> > > On Aug 10, 2010 2:10 AM, "Josh Kamau"  wrote:
> > >
> > > Hello team;
> > >
> > > I am creating an application that will be accessible via desktop and
> via
> > > the
> > > mobile devices. I understand i can have the same java code and
> different
> > > html templates for mobile and desktop. My question is how to i do this.
> > How
> > > do i make separate templates that will be used when the device is
> mobile
> > > and
> > > not a desktop? Or should i compile separate war files one with each set
> > of
> > > templates.
> > >
> > > I hope my question is clear enough.
> > >
> > > Kind regards
> > > Josh.
> > >
> >
>
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>