action on an old versioned page

2010-07-18 Thread Vlad Oleniuk

Hello all,

I have the problem with new page version creating from the older version of
the same page.

So, there is a page with id==x. Versions 0, 1 and 2 are sequentially
created.
After (being on the page with version==2) browser back button is pressed (go
to the version 1) and is tried to perform some action which leads to
creating of a new version of the page. But it's not a case, e.g. the request
is handled but any changes on the page are ignored and the version stays 1.

The question are:
Is it correct behaviour of the framework, and if it's,
Where can I configure it so that new version 2 of the page would be created
and replace the old v.2 in a PageMap.

Thanks in advance.

Best regards, Vladyslav Oleniuk
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/action-on-an-old-versioned-page-tp2293075p2293075.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



I can't subscribe to this list

2010-07-18 Thread Zoran Jeremic
I have tried to subscribe to wicket-user list, but after I confirm in
confirm subscribe to users-al...@wicket.apache.org email, I don't get any
confirmation. My settings show that I'm not subsribed, and I can't post to
mailing list neither I receive email from other users.
I have tried with two different emails several times, but it's the same. Did
I miss something or there are some problems with this list?

Zoran


Re: I can't subscribe to this list

2010-07-18 Thread Martin Makundi
Seems to work fine?

**
Martin

2010/7/18 Zoran Jeremic jeremy...@yahoo.com:
 I have tried to subscribe to wicket-user list, but after I confirm in
 confirm subscribe to users-al...@wicket.apache.org email, I don't get any
 confirmation. My settings show that I'm not subsribed, and I can't post to
 mailing list neither I receive email from other users.
 I have tried with two different emails several times, but it's the same. Did
 I miss something or there are some problems with this list?

 Zoran


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



Re: I can't subscribe to this list

2010-07-18 Thread zoran

I've subscribed with two different emails in a last two months and never
received an email from other users. What I receive is a Nabble email
information Post to mailing list still pending when I post a new topic to
this forum, and I'm receiving this email until I delete the topic. However,
till this topic, I have always created a new topic in forum, rather then
sending email to users@wicket.apache.org, but I believe that these two
should be in sync with each other. 

Zoran 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/I-can-t-subscribe-to-this-list-tp2293122p2293181.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: action on an old versioned page

2010-07-18 Thread Igor Vaynberg
not all actions on the page create new versions

-igor

On Sun, Jul 18, 2010 at 6:35 AM, Vlad Oleniuk vlad.olen...@gmail.com wrote:

 Hello all,

 I have the problem with new page version creating from the older version of
 the same page.

 So, there is a page with id==x. Versions 0, 1 and 2 are sequentially
 created.
 After (being on the page with version==2) browser back button is pressed (go
 to the version 1) and is tried to perform some action which leads to
 creating of a new version of the page. But it's not a case, e.g. the request
 is handled but any changes on the page are ignored and the version stays 1.

 The question are:
 Is it correct behaviour of the framework, and if it's,
 Where can I configure it so that new version 2 of the page would be created
 and replace the old v.2 in a PageMap.

 Thanks in advance.

 Best regards, Vladyslav Oleniuk
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/action-on-an-old-versioned-page-tp2293075p2293075.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: action on an old versioned page

2010-07-18 Thread Vlad Oleniuk

Thanks for the answer,

yes, I understand it, but in my case it does, it creates new version.

Action on the page version 1 after returning to it from version 2 causes to
replacing one panel with the other one, and the interesting thing, that
debuging shows it works as it should, but, nevertheless web-browser shows
version 1 of the page, however with up-to-date models of widgets.

Could u explain to me (or give any reference), what is the expected
behaviour of the framework in such a situation, and where it can be
configured

Thanks a lot.

Best regards, Vladyslav Oleniuk
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/action-on-an-old-versioned-page-tp2293075p2293275.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: getPage() and getParentPage() returns null

2010-07-18 Thread robert.mcguinness

i need to see more code but try constructing your panels like:



@Override
protected void onBeforeRender() {
if (!hasBeenRendered()) {
// call some function that builds/add components here
}
super.onBeforeRender();
}


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/getPage-and-getParentPage-returns-null-tp2293003p2293306.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: action on an old versioned page

2010-07-18 Thread robert.mcguinness

i think this is what you are experiencing:

http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/action-on-an-old-versioned-page-tp2293075p2293308.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: action on an old versioned page

2010-07-18 Thread Vlad Oleniuk

Thanks, I saw this reference, but the problem is a bit other.

As I said my page (version 1) is up-to-date, it shows correct info
(therefore it doesn't need to be refreshed), but wicket doesn't create new
version of the page.

So, if we abstract from the environment niceties the problem sounds like
follow:

there are created 0, 1, 2 versions of a page, after with back button the
version 1 is made current.
What should happen if I perform action that creates new version 2 of the
page (should version 2 in PageMap be replaced with the new one or there
should be two paralell versions 2 created). Because at the moment server
performs all operations properly, but browser just shows version 1 (with the
up-to-date state).

Best regards, Vladyslav Oleniuk
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/action-on-an-old-versioned-page-tp2293075p2293315.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: getPage() and getParentPage() returns null

2010-07-18 Thread zoran

Hi Robert,

I tried this, but this doesn't work or I didn't get idea. If I add this then
I got exception saying that component with that id already exists.

I've attached the whole code, but the hierarchy of pages that makes a
problem are like this:

PLKMBasePage
PLKMBasePanel
 PreviewGoals
CompetencePanel

Do you have some idea?
Zoran 

http://apache-wicket.1842946.n4.nabble.com/file/n2293370/lpc.zip lpc.zip 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/getPage-and-getParentPage-returns-null-tp2293003p2293370.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: getPage() and getParentPage() returns null

2010-07-18 Thread zoran

Robert,

This works :) 
I just removed initialization of the components from the constructor and it
works now.

Thanks.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/getPage-and-getParentPage-returns-null-tp2293003p2293379.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: getPage() and getParentPage() returns null

2010-07-18 Thread robert.mcguinness

FYI in version 1.4.10 the API gets more clean:

http://apache-wicket.1842946.n4.nabble.com/new-feature-in-trunk-and-branch-Component-onInitialize-td2286924.html#a2286924
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/getPage-and-getParentPage-returns-null-tp2293003p2293437.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: Maven archetype and tomcat:run

2010-07-18 Thread Martin Grigorov
Remove servlet.jar from yourApplication.war#WEB-INF/lib/ folder


2010/7/18 Mansour Al Akeel mansour.alak...@gmail.com

 Hello all:
 I am trying to run tomcat from maven and including openEJB. The
 command I am using to run tomcat:

 mvn tomcat:run

 The error I am getting :

 Jul 18, 2010 6:53:29 AM org.apache.catalina.startup.Embedded start
 INFO: Starting tomcat server
 Jul 18, 2010 6:53:29 AM org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
 Jul 18, 2010 6:53:30 AM org.apache.catalina.core.StandardContext
 filterStart
 SEVERE: Exception starting filter wicket.site
 java.lang.ClassCastException:
 org.apache.wicket.protocol.http.WicketFilter cannot be cast to
 javax.servlet.Filter
at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115)
at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.startup.Embedded.start(Embedded.java:825)
at
 org.codehaus.mojo.tomcat.AbstractRunMojo.startContainer(AbstractRunMojo.java:533)
at
 org.codehaus.mojo.tomcat.AbstractRunMojo.execute(AbstractRunMojo.java:239)
at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
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.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
 org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
 Jul 18, 2010 6:53:30 AM org.apache.catalina.core.StandardContext start
 SEVERE: Error filterStart

 So I created a webapp project from maven archetype, and added openEjb
 dependency:

dependency
groupIdorg.apache.openejb/groupId
artifactIdopenejb-core/artifactId
version3.1.2/version
/dependency

 The error I am getting now is:

 Jul 18, 2010 7:02:37 AM org.apache.catalina.core.StandardWrapperValve
 invoke
 SEVERE: Servlet.service() for servlet jsp threw exception
 java.lang.LinkageError: loader constraint violation: loader (instance
 of org/apache/jasper/servlet/JasperLoader) previously initiated
 loading for a different type with name
 javax/servlet/http/HttpServletRequest
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2444)
at java.lang.Class.getDeclaredMethods(Class.java:1808)
at
 org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:226)
at
 org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:148)
at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at 

Re: Sorting and ListView

2010-07-18 Thread always_rick


lenzenc wrote:
 
 
 This issue isn't about how to sort, this issue is at what point do you
 grab
 the translated name.
 
 

Did you solve this problem? I am having same problem. I totally agree with,
it isn't about how to sort,  

I am new in wicket. Any sample code will be appreciated.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Re-Sorting-and-ListView-tp1861768p2293509.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: Form in a Wizard is not showing state of the Model

2010-07-18 Thread drf

Thanks a lot. You are right that I did not need the Form, but it turned out
the problem was something else:
- I was using a TextArea instead of TextField, which did work.
Now I need to understand why a TextArea did not display the data.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-in-a-Wizard-is-not-showing-state-of-the-Model-tp2292627p2293546.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