Re: Set Double to more than 3 digits in AjaxEditableLabel
Thanks Martin, that worked great! Just for completeness, I needed to make a slight modification as I did not find super.createNumberFormat DoubleConverter dc = new DoubleConverter() { @Override protected NumberFormat newNumberFormat(final Locale locale) { NumberFormat format = NumberFormat.getInstance(locale); format.setMaximumFractionDigits(12); return format; } }; -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketstuff-gmap3 marker label
Hi Martin, I will try and do this when work permits. Thanks for confirming -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: rememberMe not working in 6.19
Great! So I assume that will be available in 6.20? Is there an ETA for that? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/rememberMe-not-working-in-6-19-tp4670527p4670533.html Sent from the Users forum 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: Paypal Integration in wicket
Hi jayeshps, I have implemented PayPal IPN in the following way: In the html form you submit, you set the notifyUrl to a path i.e. www.example.com/payment/ipn In my Application class I have the following: mountPage(/payment/ipn, IPNPaymentHandler.class); Then my IPNPaymentHandler.class is as follows: public class IPNPaymentHandler extends WebPage { private static final Log log = LogFactory.getLog(IPNPaymentHandler.class); public IPNPaymentHandler() { super(); log.debug(IPN Payment being received); Request request = getRequest(); try { SetString paramSet = request.getRequestParameters().getParameterNames(); IteratorString iterator = paramSet.iterator(); StringBuffer sb = new StringBuffer(); sb.append(cmd=_notify-validate); while(iterator.hasNext()){ String paramName = (String)iterator.next(); String paramValue = request.getRequestParameters().getParameterValue(paramName).toString(); sb.append( + paramName + = + URLEncoder.encode(paramValue, UTF-8)); } URL u = new URL(AppUtil.getSettings().getPayPalWebsiteStandardUrl()); URLConnection uc = u.openConnection(); uc.setDoOutput(true); uc.setRequestProperty(Content-Type,application/x-www-form-urlencoded); PrintWriter pw = new PrintWriter(uc.getOutputStream()); pw.println(sb.toString()); pw.close(); BufferedReader in = new BufferedReader(new InputStreamReader(uc.getInputStream())); String res = in.readLine(); in.close(); // assign posted variables to local variables String itemName = request.getRequestParameters().getParameterValue(item_name).toString(); String itemNumber = request.getRequestParameters().getParameterValue(item_number).toString(); String paymentStatus = request.getRequestParameters().getParameterValue(payment_status).toString(); String paymentAmount = request.getRequestParameters().getParameterValue(mc_gross).toString(); String paymentCurrency = request.getRequestParameters().getParameterValue(mc_currency).toString(); String txnId = request.getRequestParameters().getParameterValue(txn_id).toString(); String receiverEmail = request.getRequestParameters().getParameterValue(receiver_email).toString(); String payerEmail = request.getRequestParameters().getParameterValue(payer_email).toString(); //check notification validation if(res != null res.equals(VERIFIED)) { if(paymentStatus.equals(Completed)) { //Do business logic } else { log.debug(paymentStatus = + paymentStatus); } } else if(res != null res.equals(INVALID)) { log.info(result = + res); log.info(itemName = + itemName + itemNumber = + itemNumber + paymentStatus = + paymentStatus + paymentAmount = + paymentAmount + + paymentCurrency); log.info( txnId = + txnId + receiverEmail = + receiverEmail + payerEmail = + payerEmail); } else { log.info(result = + res); log.info(itemName = + itemName + itemNumber = + itemNumber + paymentStatus = + paymentStatus + paymentAmount = + paymentAmount + + paymentCurrency); log.info( txnId = + txnId + receiverEmail = + receiverEmail + payerEmail = + payerEmail); } } catch(MalformedURLException mue) { mue.printStackTrace(); } catch(IOException ioe) { ioe.printStackTrace(); } } } The above is just the skeleton where you can fine tune to your needs... Please do let me know if you see any flaws payment needs to be done right especially with security etc. Regards Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Paypal-Integration-in-wicket-tp4670325p4670415.html Sent from the Users forum mailing list archive at Nabble.com.
Re: Foundation integrated in wicket
I am not sure I understand what you are after... I do not have anything on GitHub. I used SASS to install and compile my sass files and put my js files in my webapp directory. Let me know if you have any specific questions. Regards Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Foundation-integrated-in-wicket-tp4666792p4666936.html Sent from the Users forum 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: Foundation integrated in wicket
I have implemented Foundation from Zurb with Wicket, currently using version 3 though. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Foundation-integrated-in-wicket-tp4666792p4666796.html Sent from the Users forum 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: Page reloads continuously- AjaxLazyLoadPanel ?
Martin Grigorov-4 wrote Upgrade Wicket version by version to identify in which version the behavior has changed. I found the wicket version to be 6.13+. I then removed virtually all code in the page except the AjaxLaxyLoadPanel but was still reloading. I then recalled I have used a customer MountedMapper that I had found here: http://stackoverflow.com/questions/8602489/delete-version-number-in-url And now in the comments I see that someone has also written it does not work for 6.13+. What is the best way to not cache the page and reload a fresh page every time? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Page-reloads-continuously-AjaxLazyLoadPanel-tp471p475.html Sent from the Users forum 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: Page reloads continuously- AjaxLazyLoadPanel ?
Sorry, I missed the that post. Works fine so far. Many thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Page-reloads-continuously-AjaxLazyLoadPanel-tp471p479.html Sent from the Users forum 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: Ajax Form Submit via jquery plugin / javascript
I wasnt able to get anything working... I tried adding wicket:id via jquery to the plugin button but wicket did not recognise it. However, I had been using wicket 6.7.0 up until then. I see that AjaxWizardButtonBar within the Wizard functionality has been added in a latter wicket version which I had not found when researching. This solved my problems perfectly! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Form-Submit-via-jquery-plugin-javascript-tp4666170p4666457.html Sent from the Users forum 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: Model data lost when calling target.add before onSubmit
Many thanks! I solved my original issue using AjaxWizardButtonBar which I was not aware of as I was using an older version of Wicket. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-data-lost-when-calling-target-add-before-onSubmit-tp4666385p4666458.html Sent from the Users forum 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: Ajax Form Submit via jquery plugin / javascript
Paul Bors wrote http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/ajax/form/AjaxFormSubmitBehavior.html Ajax event behavior that submits a form via ajax when the event it is attached to, is invoked.” You’re attaching the submit event so who fires that? You are right, I missed that but I am still a little stumped on what to do. I am assuming the form gets submitted when calling jQuery(#selectionForm).submit() I was assuming this part add(new AjaxFormSubmitBehavior(this, onsubmit) { would be waiting for the submit of the form and then get executed. Have I understood correctly? What am I missing? Regards Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Form-Submit-via-jquery-plugin-javascript-tp4666170p4666257.html Sent from the Users forum 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: replaceWith method in Panel not working with AjaxLazyLoadPanel
This is what I am doing: final Panel emptyPanel = new EmptyPanel(additionalInfo); emptyPanel.setOutputMarkupId(true); item.add(emptyPanel); IndicatingAjaxFallbackLink additionalInfoLink = new IndicatingAjaxFallbackLink(additionalInfoLink) { @Override public void onClick(AjaxRequestTarget target) { MyNewPanel info = new MyNewPanel(emptyPanel.getId()); emptyPanel.replaceWith(info); target.add(emptyPanel); } }; item.add(additionalInfoLink); I think this is correct? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replaceWith-method-in-Panel-not-working-with-AjaxLazyLoadPanel-tp4664232p4664246.html Sent from the Users forum 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: replaceWith method in Panel not working with AjaxLazyLoadPanel
That was it! Thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replaceWith-method-in-Panel-not-working-with-AjaxLazyLoadPanel-tp4664232p4664257.html Sent from the Users forum 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: AjaxLazyLoadPanel loading asynchronously
Martin Grigorov-4 wrote Hi, Create a panel that has a child an image (the busy indicator). Add a timer behavior to this panel and check whether the slow operation is done and replace the image with another component that renders the new data: public void onTimer(AjaxRequestTarget target) { Data newData = getNewData(); if (newData != null) { NewComponent c = new Component(image.getId(), newData); image.replaceWith(c); target.add(c); } else { // target.appendJavaScript(still waiting ...); } } Martin Grigorov Wicket Training and Consulting Thanks Martin! This pattern seems very similar to https://gist.github.com/jonnywray/594468 and https://gist.github.com/jonnywray/636875 which I have seen referenced in some posts here. While trying these, I am finding in FutureUpdateBehavior, onTimer(), the line if(future.isDone()) is null most times (not all). I am not quite sure why this would be. When it is null, the constructor value passed through is not null, but is null within onTimer. Any ideas on this? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-asynchronously-tp4664035p4664140.html Sent from the Users forum 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: AjaxLazyLoadPanel loading asynchronously
I cannot get future here (https://gist.github.com/jonnywray/636875#file-futureupdatebehavior-java-L31) to have a value. I do not understand when/how it gets deserialized? Martin Grigorov-4 wrote Because it is transient: https://gist.github.com/jonnywray/636875#file-futureupdatebehavior-java-L19 After deserialization it will be null. Martin Grigorov Wicket Training and Consulting -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-asynchronously-tp4664035p4664151.html Sent from the Users forum 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: AjaxLazyLoadPanel loading asynchronously
Ernesto Reinaldo Barreiro-4 wrote Hi, I remember Igor posted and example of a non-blocking lazy load panel (long time ago). As far as I remember all it did was: 1-Check is results where ready is so render the panel 2-If not then schedule a timer to poll the panel again Regards - Ernesto Reinaldo Barreiro Does anyone have a link to this post as I cannot find it? Regards, V -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-asynchronously-tp4664035p4664063.html Sent from the Users forum 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: AjaxLazyLoadPanel loading asynchronously
Peter Henderson wrote You could try native web sockets. Get your worker threads to broadcast a message to the page, it ends up being very similar to an ajax update. Peter Henderson Thanks for the tip Peter, but as I understand it, Web Sockets is not production ready so I would prefer to stay away from it as REST functionality would be heavily used area on the website. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-asynchronously-tp4664035p4664064.html Sent from the Users forum 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: Gmap3 NullPointerException
Hi Martin, I am not sure on the resolution to this. I do not know why overlay.overlayId would be null? Regards Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Gmap3-NullPointerException-tp4660777p4660781.html Sent from the Users forum 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: Gmap3 Geocoding shows Status 610
The new code works for me!! Thanks again! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Gmap3-Geocoding-shows-Status-610-tp4657298p4657703.html Sent from the Users forum 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: Gmap3 Geocoding shows Status 610
Thank you very much for this Dieter and Martin! One other question, when will wicketstuff gmap3 be packaged up? I normally pick up the jar from maven central. Thanks Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Gmap3-Geocoding-shows-Status-610-tp4657298p4657429.html Sent from the Users forum 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: [Wicketstuff] Google Maps 3 component
Hi Sylvain, I too am wondering how to pass a component into GInfoWindow rather than a string? Did you find a answer this this. Or does anyone know how to convert a component to an html string? Regards Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicketstuff-Google-Maps-3-component-tp4651103p4655295.html Sent from the Users forum 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: CSS load order in 6.x
Just to let everyone know, I ended up resolving this issue but changing to http://www.7thweb.net/wicket-jquery-ui/ DatePicker. I prefer this DatePicker (so far) for other reasons too. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-load-order-in-6-x-tp4654942p4655298.html Sent from the Users forum 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: [Wicketstuff] Google Maps 3 component
Martin Grigorov-4 wrote Check the panel example at: http://www.wicket-library.com/wicket-examples-6.0.x/mailtemplate/lt;http://www.wicket-library.com/wicket-examples-6.0.x/mailtemplate/?0gt; Many thanks Martin, that got me the string I required. FYI if a panel html has something like this: pSome paragraph text 1/p pSome paragraph text 2/p Then Gmap does not like the string as goes on to two lines in the JS and complains about SyntaxError: unterminated string literal To resolve this, I had to write the panel content in this format pSome paragraph text 1/ppSome paragraph text 2/p i.e. all in one line. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicketstuff-Google-Maps-3-component-tp4651103p4655312.html Sent from the Users forum 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: CSS load order in 6.x
Many thanks for your help. This is what I have done: public class YUICalendarCssResourceReference extends CssResourceReference { private static final long serialVersionUID = 1L; public YUICalendarCssResourceReference() { super(YUICalendarCssResourceReference.class, yui.css); } public Iterable? extends HeaderItem getDependencies() { ListHeaderItem dependencies = new ArrayListHeaderItem(); dependencies.add(CssHeaderItem.forReference(new CssResourceReference(YuiLib.class, calendar/assets/skins/sam/calendar.css))); return dependencies; } } And then in my page: @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.render(CssHeaderItem.forReference(APP_CSS)); //my css file response.render(CssHeaderItem.forReference(new YUICalendarCssResourceReference())); } Where yui.css is my custom css Firstly is the above correct? The result is that in the source the .css files appear correctly. However, visually it does not work. Looking at Firebug I have the following css files loaded: 1) app-ver-.css 2) wicket/resource/org.apache.wicket.extensions.yui.YuiLib/calendar/assets/skins/sam/calendar-ver-1356690284000.css 3) yui-ver-.css 4) wicket/resource/org.apache.wicket.extensions.yui.YuiLib/calendar/assets/skins/sam/calendar.css My understanding is that the 4th css file should not be loaded there. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-load-order-in-6-x-tp4654942p4655095.html Sent from the Users forum 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: CSS load order in 6.x
The HTML source appears correctly to me: link rel=stylesheet type=text/css href=../../../../wicket/resource/web.pages.BasePage/::/::/::/css/app-ver-1356687988000.css / link rel=stylesheet type=text/css href=../../../../wicket/resource/org.apache.wicket.extensions.yui.YuiLib/calendar/assets/skins/sam/calendar-ver-1356690284000.css / link rel=stylesheet type=text/css href=../../../../wicket/resource/web.wicket.extensions.YUICalendarCssResourceReference/yui-ver-1356640705000.css / It is a bit strange that there is no reference to 4) at all in the source but Firebug loads it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-load-order-in-6-x-tp4654942p4655097.html Sent from the Users forum 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: Two YUI DatePickers - use first date as basis for second date
Thanks for your answer. I was hoping that there might something in Wicket. I did look at the YUI docs but so far cant find exactly what I need to do. It seems like I need to add a listener which calls a JS method which I think I have understood but cant work out what is required to change the minimum date. Regards Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Two-YUI-DatePickers-use-first-date-as-basis-for-second-date-tp4623018p4626281.html Sent from the Users forum 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: Configure http and https with apache and jboss
All, I think I have this resolved, at least no problems so far. There were many things that I needed to add: 1) Within server.xml, I added proxyName and proxyPort to the 8080 connector. I found this in the Tomcat documentation When you are running behind a proxy server (or a web server that is configured to behave like a proxy server), you will sometimes prefer to manage the values returned by these calls. In particular, you will generally want the port number to reflect that specified in the original request, not the one on which the Connector itself is listening. You can use the proxyName and proxyPort attributes on the Connector element to configure these values. I also added a NEW connector at 8443 for https support. I found that request.getScheme and similar code was returning incorrect values. To solve this, this connector should have the value scheme=https. Here are the new connectors: Connector protocol=HTTP/1.1 port=8080 address=${jboss.bind.address} connectionTimeout=2 proxyName=myserver.com proxyPort=80/ Connector protocol=HTTP/1.1 port=8443 address=${jboss.bind.address} connectionTimeout=2 proxyName=myserver.com proxyPort=443 scheme=https / 2) A mistake I made was putting myserver.com within the ProxyPass and ProxyPassReverse. This was a mistake because this address was not valid for port 8080 as my firewall was blocking it. My firewall only allows 80 and 443. I change these values to localhost. Additionally, the VirtualHost for 443 should point to 8443- the new connector created above. Additionally, the myapp is removed entirely (see the next point for the reasons). The httpd.conf I have now is as follows: NameVirtualHost *:80 VirtualHost *:80 ServerName myserver.com:80 ProxyPreserveHost On ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ /VirtualHost NameVirtualHost *:443 VirtualHost *:443 ServerName myserver.com:443 SSLEngine On SSLCertificateKeyFile /etc/ssl/private/server.key SSLCertificateFile /etc/ssl/certs/server.crt ProxyPass / http://localhost:8443/ ProxyPassReverse / http://localhost:8443/ #Cookie stuff- untested for now ProxyPreserveHost On ProxyPassReverseCookiePath / / /VirtualHost 3) Finally, my war file that I deploy needs to be called ROOT.war. From the Jboss documentation The only special case to this naming special name ROOT. To deploy an application under the root context, you simply name it ROOT.war. JBoss already contains a ROOT.war web application in the jbossweb.sar directory. You will need to remove or rename that one to create your own root application. Renaming it ROOT removes the myapp in the url within wicket. I hope this helps any one else trying to setup in a similar way. As I first thought, it wasnt anything in wicket. Thank you all for your help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Configure-http-and-https-with-apache-and-jboss-tp3633546p3649180.html Sent from the Users forum 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: Configure http and https with apache and jboss
I am delving into the SwitchProtocolRequestTarget code a little to see if it gives me any answers. When the requireProtocol is called the protocol is https but request.getScheme() returns http. Why would this be? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Configure-http-and-https-with-apache-and-jboss-tp3633546p3638188.html Sent from the Users forum 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: Configure http and https with apache and jboss
I have seen posts talking about this connector in Tomcat/Jboss Connector protocol=HTTP/1.1 SSLEnabled=true port=8443 address=${jboss.bind.address} scheme=https secure=true clientAuth=false keystoreFile=${jboss.server.home.dir}/conf/chap8.keystore keystorePass=rmi+ssl sslProtocol = TLS / My understanding from what I have read is that this connector does not need to be enabled because I am using Apache as the web server which handles all the SSL traffic i.e SSL traffic is transparent to the Tomcat/Jboss, hence ProxyPass etc are forwarding to port 8080 even for VirtualHost 443. Can anyone verify this is correct? On 1 Jul 2011, at 14:32, Martin Grigorov-4 [via Apache Wicket] wrote: Your Apache conf is SSL for 443, but the proxyed web server (Tomcat?!) is http:// Maybe this is the problem. If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/Configure-http-and-https-with-apache-and-jboss-tp3633546p3638211.html To unsubscribe from Configure http and https with apache and jboss, click here. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Configure-http-and-https-with-apache-and-jboss-tp3633546p3638231.html Sent from the Users forum 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: Configure http and https with apache and jboss
The MyHttpsRequestCycleProcessor was just used to debug i.e. no changes of code. The same problem is there without my custom class. You say the httpsPort is being ignored. How can I check this? What should be outputted if I print the url as nothing is being outputted? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Configure-http-and-https-with-apache-and-jboss-tp3633546p3635048.html Sent from the Users forum 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: Configure http and https with apache and jboss
The port being passed was null. The code in HttpsRequestCycleProcessor that sets the port is: Integer port = null; if (protocol == Protocol.HTTP) { if (processor.getConfig().getHttpPort() != 80) { port = processor.getConfig().getHttpPort(); } } else if (protocol == Protocol.HTTPS) { if (processor.getConfig().getHttpsPort() != 443) { port = processor.getConfig().getHttpsPort(); } } Why is the port only set if its not 80 or 443. If its 80 or 443 then its null. I guess if its the default ports then they do not need to be set? I amended the code so that a port is set, but still no difference i.e. I still get a 404. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Configure-http-and-https-with-apache-and-jboss-tp3633546p3635246.html Sent from the Users forum 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: Configure http and https with apache and jboss
One additional point... if I take out protected IRequestCycleProcessor newRequestCycleProcessor() { HttpsConfig config = new HttpsConfig(80, 443); return new HttpsRequestCycleProcessor(config); } and I navigate manually to an https link i.e. https://myserver.com/login. Everything looks fine, loads, padlock etc is working as expected. So I am sure them the answer is in HttpsRequestCycleProcessor/SwitchProtocolRequestTarget although the fix may be in the setup of the web server. Any other suggestions on what to look out for in HttpsRequestCycleProcessor/SwitchProtocolRequestTarget classes? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Configure-http-and-https-with-apache-and-jboss-tp3633546p3635299.html Sent from the Users forum 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: Configure http and https with apache and jboss
/myapp is only used within the apache httpd.conf and not accessing it through the browser. The pages are accessed like http://myserver.com/ and hopefully https://myserver.com/login A debug output from getUrl shows the link obtained is https://myserver.com/myapp/login (I think from request.getRequestURI()) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Configure-http-and-https-with-apache-and-jboss-tp3633546p3635405.html Sent from the Users forum 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: Configure http and https with apache and jboss
I have already tested html files containing http links and https links. I can navigate around these files including browser indicators saying the ssl cert is fine. For this I had to add DocumentRoot /var/www. The http part of the wicket website is working fine. I would like to try Jboss without Wicket but cannot think of a simple way of doing this. I have also tried changing an http page to https which loads fine (although the pages I have tried show some insecure elements to the page) So far the problem seems to lie around the HttpsRequestCycleProcessor class although the fix may lie elsewhere. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Configure-http-and-https-with-apache-and-jboss-tp3633546p3634045.html Sent from the Users forum 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: Cannot get current page from AjaxPagingNavigator
I got it working with the following code- thanks Pedro and JC final Label currentPage = new Label(currentPage, new Model()); currentPage.setOutputMarkupId(true); add(currentPage); final AjaxPagingNavigator pagination = new AjaxPagingNavigator(navigator, dataList) { @Override protected void onAjaxEvent(AjaxRequestTarget target) { target.addComponent(currentPage); super.onAjaxEvent(target); } }; add(pagination); LoadableDetachableModel model = new LoadableDetachableModel() { public Object load(){ return pagination.getPageable().getCurrentPage() + 1; } }; currentPage.setDefaultModel(model); It had to be written like this because the model needs pagination which would not have been initialised if written as an inner class when creating the label. Please let me know if anyone finds a better way of writing it. Many thanks again Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3035648.html Sent from the Users forum 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: Cannot get current page from AjaxPagingNavigator
Thank you both for your responses- I totally forgot about it being dynamic. However, I have tried both code snippets above but still no luck. I printed the current page within the load() method which prints 0 only on first load. No message is printed when the page numbers from AjaxPagingNavigator are clicked on. Any thoughts? Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Cannot-get-current-page-from-AjaxPagingNavigator-tp3034524p3034840.html Sent from the Users forum 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: Prepopulate time fields in DateTimeField component
Is there any way to reapply the relationship checkinDate had with the CompoundPropertyModel? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Prepopulate-time-fields-in-DateTimeField-component-tp2533175p2534425.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
Prepopulate time fields in DateTimeField component
Hi all, I have a Form with the default model being a CompoundPropertyModel. I have added the DateTimeField component to the form. I wish to prepopulate the time fields but not the date. I have tried a few different things but all have their various issues. Anyone have any ideas? Many thanks in advance. Vishal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Prepopulate-time-fields-in-DateTimeField-component-tp2533175p2533175.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: Prepopulate time fields in DateTimeField component
I tried that previously but then the field becomes NULL within the POJO I think this is what you mean: If i have: setDefaultModel(new CompoundPropertyModel(Item)); where Item object contains checkinDate field I create the component: DateTimeField checkinDateField = new DateTimeField(checkinDate, new Model(new Date())); This populates the Date and Time fields. However, I do not want the Date field to be populate, and when submitting the Item object checkinDate is NULL. I think this is because it has lost the association with the CompoundPropertyModel. Many thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Prepopulate-time-fields-in-DateTimeField-component-tp2533175p2533314.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: Wicket Dynamic Navigation
I forgot to mention that I require the HTML markup to be like the following: ul liCategory 1/li liCategory 2/li li ul li # Category 2 - Sub category 1 /li li # Category 2 - Sub category 2 /li /ul /li /ul -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Dynamic-Navigation-tp2228587p2228687.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: Wicket Dynamic Navigation
Unfortunately my knowledge of German is non-existent. Thanks for your reply though. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Dynamic-Navigation-tp2228587p2228741.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