any hints , how to resolve ? please .
miro wrote: > > > > Jeremy Thomerson-5 wrote: >> >> Can you paste in your web.xml? >> >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >> On Thu, Aug 14, 2008 at 2:45 PM, miro <[EMAIL PROTECTED]> wrote: >> >>> >>> >>> >>> Jeremy Thomerson-5 wrote: >>> > >>> > So, your web.xml must be mounting your application on /pcr/* right? >>> > >>> > This is standard behavior for Wicket - it generates form post URLs to >>> the >>> > root of the application generally, although if I recall correctly, >>> there >>> > are >>> > some optional url strategies that might change that. Perhaps hybrid? >>> I >>> > can't remember off the top of my head. >>> > >>> > Is the form working? What is the problem with the generated URL? >>> > >>> > -- >>> > Jeremy Thomerson >>> > http://www.wickettraining.com >>> > >>> > >>> > On Thu, Aug 14, 2008 at 2:34 PM, miro <[EMAIL PROTECTED]> wrote: >>> > >>> >> >>> >> I am using this prefix /secure/index.jas/ to mount my pages . >>> >> >>> >> mountBookmarkablePage("/secure/index.jas/create",foo.class); >>> >> mountBookmarkablePage("/secure/index.jas/view",foo1.class); >>> >> >>> >> both of these classes have form. >>> >> so the html i am using <form wicket:id="movementAuthorizerForm"> >>> and >>> >> this >>> >> is the generated html >>> >> >>> >> <form >>> >> >>> >> >>> action="../../?wicket:interface=:3:movementAuthorizerPanel:movementAuthorizerForm::IFormSubmitListener::" >>> >> method="post" id="movementAuthorizerForm6"> >>> >> >>> >> so when I click the submit button the url in browser get replaced >>> with >>> >> >>> >> >>> >> >>> http://localhost/pcr/?wicket:interface=:3:movementAuthorizerPanel:movementAuthorizerForm::IFormSubmitListener >>> >> :: >>> >> >>> >> not clear why this is happening ?It works fine If I mapped my pages >>> just >>> >> with "create" or "view". >>> >> >>> >> >>> >> -- >>> >> View this message in context: >>> >> >>> http://www.nabble.com/%3Cform-wicket%3Aid%3D%22movementAuthorizerForm%22%3E--getting-replaced-by----%3Cform-action%3D%22..-..--wicket%3Ainterface%3D%3A3%3A.......-tp18988229p18988229.html >>> >> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >> >>> >> >>> >> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >>> >> >>> > >>> > >>> >>> >>> when I post to the genrated url wicket filter is not getting called >>> and >>> index.jsp is called becasue url is pcr/? ...... >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/%3Cform-wicket%3Aid%3D%22movementAuthorizerForm%22%3E--getting-replaced-by----%3Cform-action%3D%22..-..--wicket%3Ainterface%3D%3A3%3A.......-tp18988229p18988391.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> > here it is wicket part > > <filter> > <filter-name>wicket</filter-name> > > <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> > <init-param> > <param-name>applicationFactoryClassName</param-name> > > <param-value>org.apache.wicket.spring.SpringWebApplicationFactory</param-value> > </init-param> > </filter> > > > <filter-mapping> > <filter-name>wicket</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > complete web.xml > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application > 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> > > <web-app> > <display-name>PCR</display-name> > <context-param> > <param-name> > javax.servlet.jsp.jstl.fmt.localizationContext > </param-name> > <param-value>messages</param-value> > </context-param> > > <context-param> > <param-name>contextConfigLocation</param-name> > <param-value> > /WEB-INF/applicationContext.xml > > classpath:com/uprr/app/pcr/dao/hibernate/applicationContext-hibernate.xml > > classpath:com/uprr/app/pcr/dao/ibatis/applicationContext-ibatis.xml > > classpath:com/uprr/app/pcr/service/applicationContext-service.xml > classpath:com/uprr/app/pcr/service/applicationXMF-services.xml > </param-value> > </context-param> > <!-- > <filter> > <filter-name>SpringSecurityFilter</filter-name> > <filter-class> > org.acegisecurity.util.FilterToBeanProxy > </filter-class> > <init-param> > <param-name>targetClass</param-name> > <param-value> > org.acegisecurity.util.FilterChainProxy > </param-value> > </init-param> > </filter> > --> > > > > > > <filter> > <filter-name>encodingFilter</filter-name> > <filter-class> > org.springframework.web.filter.CharacterEncodingFilter > </filter-class> > <init-param> > <param-name>encoding</param-name> > <param-value>UTF-8</param-value> > </init-param> > <init-param> > <param-name>forceEncoding</param-name> > <param-value>true</param-value> > </init-param> > </filter> > > > <filter> > <filter-name>wicket</filter-name> > > <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> > <init-param> > <param-name>applicationFactoryClassName</param-name> > > <param-value>org.apache.wicket.spring.SpringWebApplicationFactory</param-value> > </init-param> > </filter> > > > <filter-mapping> > <filter-name>wicket</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > > <filter-mapping> > <filter-name>encodingFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > <!-- > <filter-mapping> > <filter-name>SpringSecurityFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > --> > <listener> > <listener-class> > org.springframework.web.context.ContextLoaderListener > </listener-class> > </listener> > > <!-- <servlet> > <servlet-name>wicket</servlet-name> > <servlet-class> > org.apache.wicket.protocol.http.WicketServlet > </servlet-class> > <init-param> > <param-name>applicationFactoryClassName</param-name> > <param-value> > org.apache.wicket.spring.SpringWebApplicationFactory > </param-value> > </init-param> > <load-on-startup>1</load-on-startup> > </servlet> > > <servlet-mapping> > <servlet-name>wicket</servlet-name> > <url-pattern>/*</url-pattern> > </servlet-mapping> > --> > > > <error-page> > <error-code>401</error-code> > <location>/secure/index.jas/nres/unauthorized</location> > </error-page> > > > <error-page> > <error-code>404</error-code> > <location>/404.jsp</location> > </error-page> > > > <error-page> > <error-code>500</error-code> > <location>/error.jsp</location> > </error-page> > > > > <security-constraint> > <web-resource-collection> > <web-resource-name>All</web-resource-name> > <url-pattern>/secure/index.jas/*</url-pattern> > </web-resource-collection> > <auth-constraint> > <role-name>PCR-MANAGER</role-name> > <role-name>PCR-REGISTRANT</role-name> > <role-name>PCR-DEVELOPER</role-name> > </auth-constraint> > </security-constraint> > > <!-- > <login-config> > <auth-method>CLIENT-CERT</auth-method> > <realm-name>SiteMinderRealm</realm-name> > </login-config> > --> > > <login-config> > <auth-method>FORM</auth-method> > <form-login-config> > <form-login-page>/login.jsp</form-login-page> > <form-error-page>/login.jsp</form-error-page> > </form-login-config> > </login-config> > <security-role> > <description>PCR-MANAGER</description> > <role-name>PCR-MANAGER</role-name> > </security-role> > <security-role> > <description>PCR-DEVELOPER</description> > <role-name>PCR-DEVELOPER</role-name> > </security-role> > <security-role> > <description>PCR-REGISTRANT</description> > <role-name>PCR-REGISTRANT</role-name> > </security-role> > > </web-app> > > > > -- View this message in context: http://www.nabble.com/%3Cform-wicket%3Aid%3D%22movementAuthorizerForm%22%3E--getting-replaced-by----%3Cform-action%3D%22..-..--wicket%3Ainterface%3D%3A3%3A.......-tp18988229p18988876.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
