Re: Analytics for Wicket applications
We are also about to do Analytics but Analytics is an end to end. Data Source to UI aspect. Thinking aloud if you were to use Wicket you would have to hand-build any BI operations like Drill Down etc. For this reason we are considering using BIRT. And beside Analytics should be UI agnostic as thats more a Business Intelligence operation and creating Home grown UI's isn't what I'd put my money on "beyond a point". I built some WebSerivice to work with Google charts but I realized the futility of it and its inability to scale (the effort required to make it scale) for more advanced things like DRILL-DOWN (interactive maps) etc. Irrespective if Wicket folks provide it or not, perhaps choose a pure BI tool and integrate that instead. My 2 cents (or whatever currency applies) - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Analytics-for-Wicket-applications-tp4678055p4678056.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: Use a Factory to create a Panel (Yay or Nay)?
Thanks martin for the validation. Just to add to the group discussion, when developing a CMS (esp for E-Commerce) you do want other developers to at some point override any default Panels in your base UI with their own Plugin-ins. .. that was my intent. Even if someone feels factories are not a good idea, I request an alternate. Though, I feel it looks good as a solution and nice to have some validation. thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Use-a-Factory-to-create-a-Panel-Yay-or-Nay-tp4673622p4673642.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: DataTable Selected Row And Paging
Hi, I would advise you to control these via CSS rather than implementing server level logic. Though its possiblle writing server level logic to achieve client UX objectives is just bad practice in my opinion. .. BTW thats the reason why you are struggling :) Here is how I'd prefer to solve any UI/US issue. Use an *AbstractBehavior* like *SimpleAttributeModifier*, to add a class to represent some state. Then via simple CSS, simple control the UI state as you please. This ensures the server is communicating necessary information about STATE to the page, and the CSS translates the STATE to any UI logic or Action you see fit. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DataTable-Selected-Row-And-Paging-tp4673621p4673623.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
Use a Factory to create a Panel (Yay or Nay)?
Hi, I have a bunch of Admin panels but i want to be able to override them. The issue is the pages obviously use "add(new SomeAdminPanel())"; To overcome this I was thinking or writing a Factory, that via can create the desired instance of the Panel and pass it to the Page. The factory internally can use Spring to make this highly configurable. however, I came across https://ci.apache.org/projects/wicket/guide/6.x/guide/bestpractices.html#bestpractices_12 (Do not use factories for components) ... can anyone validate if I should let that stop me from doing what I intend? Maybe Panels are an exception to this rule?! thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Use-a-Factory-to-create-a-Panel-Yay-or-Nay-tp4673622.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: Ace Editor Wicket integration?
Anyone defined a Mode for HTML+WICKET using https://ace.c9.io/#nav=higlighter ? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ace-Editor-Wicket-integration-tp4670009p4673307.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: HTTPS to HTTP invalidates Session
Thanks for the reply Martin. Notes: 1. Encoding JSESSIONID in the URL, did not fix the issue for me. Though, I'll explore this more, maybe something in my environment preventing the JSESSIONID from URL determining the session. 2. Question >> Got the code for HTTPS and redirect to pages that need to be secured over HTTPS (though opposite usecase for this thread). Though , I've wondered why the extra effort when in web.xml one can mark URL patterns as Secured and even setup Apache rewrite rules to do the same with more ease. Any particular reason the Wicket developers thought it necessary to provide this? thanks a ton. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTTPS-to-HTTP-results-in-PageExpiredException-tp4673262p4673280.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
HTTPS to HTTP invalidates Session
Hi, I have an admin Panel that is on HTTPS. It allows a user to preview a link on the site on HTTP. The problem is when doing that, when I return to the Admin Pane land perform any Ajax request, then what I get is: org.apache.wicket.protocol.http.PageExpiredException: Request cannot be processed. The target page does not exist anymore. Observations: a. The session is being invalidated. b. The JSESSION ID in the admin to start and the target page were the same (surprised, since I thought from HTTPS to HTTP a new JSESSIONID should be grated in target Window?) If someone can explain (a) & (b) and as a bonus any work around without compromising security. FOr me this is a Nice to Have not a Must have, but I need to understand whats going on here. thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTTPS-to-HTTP-invalidates-Session-tp4673262.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
ReLoad HTML only
Hi, for production mode its not sensible to use setResourcePollFrequency(Duration.ONE_SECOND); Is there a way that one can only allow the HTML's to be reloaded that too on an Event rather than a polling mechanism? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ReLoad-HTML-only-tp4670330.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: CheckGroup in a DataTable
Thanks ... I edited my post. I'll simplify my questions further: 1. I find it tacky to have to wrap the entire DataTable in a span or a Div for check group. Is there any way I can apply it on the column level. Its hard to imagine. 2. AjaxFormChoiceComponentUpdatingBehavior get called for each CheckBox it checks automatically, if you check the CheckGroupSelector. ... I'd like only 1 Event fired if any One CheckBox is selected in the entire group. ... anyway to filter the event lsitener? thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-in-a-DataTable-tp4669111p4669113.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
CheckGroup in a DataTable
I have a DataTable where the first column is a set of Checkboxes for every row. I felt a CheckGroup would be a nice thing to use here for Deleting multiple rows. However I want also Ajax events on the Check of a box to only show the DELETE Button should any box be selected. The problem is that in order for CheckGroup to work, I think I have to wrap it in a span and make my HTML nasty like: Adding AjaxFormChoiceComponentUpdatingBehavior is not receiving any events. I assume thats because im being stubborn .. but hoping for a more elegant solution. .. I have to use DataTable and I need to Ajaxify the checkboxes here. Java code is something like Any thoughts appreciated. thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-in-a-DataTable-tp4669111.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
User Agent (mobile) specific Pages
Hi, there is a 1 to 1 mapping between the Wicket Page/Panel and the HTML. However one may want to present a different HTML version for a given Page/Template. Where I am going with this ls say you have a entire Site on a Template; but want to provide alternate THEMES (assuming its non-responsive) design. You cannot re-write the entire Component hierarchy right?! Is there way to route / map One component to 2 HTML scripts based on User Agent? thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/User-Agent-mobile-specific-Pages-tp4665472.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: User Agent (mobile) specific Pages
Note: One Cheap workable solution I can think of is to use FRAGMENTS .. however Im looking for something more sophisticated; which can be configured by me later in a CMS and allow a pure HTML developer to maintain 2 different pages altogether. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/User-Agent-mobile-specific-Pages-tp4665472p4665473.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: User Agent (mobile) specific Pages
ya matching component hierarchies can be a bitch as its not necessary even of the same components are used the HTML structure/DOM hierarchy may not match. ... I think some onus will have to be put on the HTML developer to ensure they match. I'll refer to the Wicket 7 updates also mentioned by Martin to see whats new to help in all this. thank you - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/User-Agent-mobile-specific-Pages-tp4665472p4665482.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: Restful Services
You maybe interested to explore : Apache CXF with Spring + Spring Security - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Restful-Services-tp4665285p4665289.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: E-Commerce and Open Source projects
thanks for the prompt response. I've taken the Thread to Stack Exchange : http://stackoverflow.com/questions/22705039/e-commerce-project-licensing - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/E-Commerce-and-Open-Source-projects-tp4665137p4665167.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
E-Commerce and Open Source projects
Hi, I've been nurturing and evolving a project for 4 years (approx), that grew to a CMS and then an E-Commence among other capabilities. The core motivation and intent of this platform I have explained here: http://javabitch.blogspot.in/2014/03/java-e-commerce-platform.html http://javabitch.blogspot.in/2014/03/java-e-commerce-platform.html I have a major licensing decision to make, and though this is NOT a WICKET question I feel close to this community to discuss it here. Licensing Questions: To release it I have to decide the licensing and thats why I am here. Various modules have various commercial / community appeal. Q1) For a large project with multiple sub-modules can we mix licensing types. I'm assuming anything thats Apache 2 is compatible into an LGPL or GPL or Proprietary project. Q2) A lot of discussion pitch LGPL for licensing the library; however using it as a Library forces constraints over the calling API/module to make those parts Open Source as well. Is this true? Q3) Is it possible to apply GPL license for anyone using it for free, but for commercial purposes they have to pay and have an independent license agreement? ..this implies that GPL code is dual licensed can be used in a Proprietary product. Is that possible? .. in a way it alters the FREE DNA, So I doubt. Q4) Does that even help and would anyone even pay for whats already free (as in freedom) under a GPL? Q5) Most open projects I see are not GPL but rather Apache 2. Is there is a commercial reluctance to adopt GPL? ..if so, maybe its not wise to release under GPL even is the spirit is community driven. Eg. http://arstechnica.com/uncategorized/2007/11/why-google-chose-the-apache-software-license-over-gplv2/ http://arstechnica.com/uncategorized/2007/11/why-google-chose-the-apache-software-license-over-gplv2/ Q6) I do not want to have a CE/EE version. I feel most CE version are CON JOB's and extract more from the community than give back. Infact, technically Im of the opinion the same architecture can serve Enterprise as well as standard needs. This whole Enterprise label this is an eye wash. ...hence I'd rather make the more DOMAIN specific modules proprietary and the common ones absolutely free. GPL poses issues if I myself want to monetize higher order modules or cloud based services over the core modules. .. so whats really my best alternative? Q7) Is there any credibility in the community to take an existing apache, GPL, BSD lisence and tweak certain terms. Just as LGPL definition is a tweak over the GPL definition. Is it worth my time to customize an Apache or LGPL further .. or will that scare off people? Q8) How does multiple licensing work? Example: http://ckeditor.com/about/license http://ckeditor.com/about/license So the user is free to choose which license they want to apply? Q9) I'm ok with people using the source code, linking, extending for just about any purpose. However its NOT OK for people to exploit the code commercially to take it , modify/tweak it and then call it their own. That means if a core library is modified for commercial purpose then it should be contributed back or paid for. However in terms of usage, debugging, learning I don't want to impose any restriction. Q10) I'm ok with sponsored help as long as the intention of sponsorship is to enhance the code for everyone including themselves. thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/E-Commerce-and-Open-Source-projects-tp4665137.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: WildCard URL strategy for E-Commerce Products
Ok, for lack of any conclusive existing solution; the following is what I developed and works for the use case described: Step 1: Create a BookmarkablePageRequestTargetUrlCodingStrategy that can accept RegularExpressions: Step 2: The default WebRequestCodingStrategy uses a MountMap that unfortunately uses path.startsWith(...) . So we have to write a WebRequestCodingStrategy that will make use of Regular Expressions. Step 3: The Strategies have to be called via the WebApplication. Hence in ones implementation/extension of WebApplication; do: Now run the App. Sample Run/Demo: If you define RegexQueryStringUrlCodingStrategy(productDetails, ^(.)*productDetails, ProductDetails.class); Then all the following will work: host/productDetails host/AnyCat/productDetails host/AnySubCat/productDetails etc. Q.E.D -Arjun - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WildCard-URL-strategy-for-E-Commerce-Products-tp4664984p4664988.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
WildCard URL strategy for E-Commerce Products
Hi, for the sake of SEO. It is recommended that URL path params for a product look like: Example -- /../Category1/SubCategory2/SubSubCategory2/productDetails?name=SHOE123 Now, one stupid way of doing this could be to load every product in the database by generating the link to it. However I feel thats too inefficient. I'd simply like to define a Strategy /*/productDetails?name=SHOE123 ... Where Wicket would not care what came before productDetails and recognizes productDetails as the Page. The PATH PARAMS are merely a SEO formality and not of consequence to the final Page loading. Do I write my own strategy for this stuff or is there something Out of the Box? thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WildCard-URL-strategy-for-E-Commerce-Products-tp4664984.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: WildCard URL strategy for E-Commerce Products
:) The question isn't about Page Params A mount needs a Mouth path thats what the question is... How do you mount a path where a certain part of it can be anything (not significant) ? Explicitly loading mouth paths for EACH product (as a separate product page) would not be wise in my opinion. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WildCard-URL-strategy-for-E-Commerce-Products-tp4664984p4664987.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
Register Wicket Components @ Runtime
Hi, I'm writing an E-Commerce platform in Wicket. I want to allow Wicket-PLUG IN's for Administration. Q1) Is there any known OSGI-Wicket project. I see in Wicket 6 there is some improved OSGI compatibility but not sure what that translates to. Q2) Irrespective of any external framework; is there anyway one can add wicket components without that having to be a compile dependency. (Just wishing , not really expecting) ... I assume OSGI would be the way to go; but open to thoughts. thanks, Arjun - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Register-Wicket-Components-Runtime-tp4664724.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: Register Wicket Components @ Runtime
I should have looked harder. Found something : http://hwellmann.blogspot.in/2011/06/wicket-and-osgi.html Though still open to suggestions. I'll try the article and see how far I get on that. thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Register-Wicket-Components-Runtime-tp4664724p4664725.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: Dynamic Headers for Open Graph tags in E-Com site
Hey thanks ya sorry i re-edited my post. But helps. .. never tried using panels in Headers. It failed for me sometime so I assumed its not the right thing thanks again, will try it - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Headers-for-Open-Graph-tags-in-E-Com-site-tp4664158p4664181.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: Dynamic Headers for Open Graph tags in E-Com site
Thanks ..so using Panels in the header did work out fine. .. using container ! Though; I want to put custom variables in the META tags; I found it more complex it to do via Wicket. Rather used Velocity to accept a MAP of Attributes and generate the META TAGS and pass that into a FRAGMENT seemed scalable and faster. But curious if you dumped the entire META content is a String or you used Some sort of Repeater or Wicket component to render the Dynamic individual Meta tags? Example in Velocity I found to be a breeze over wicket: - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Headers-for-Open-Graph-tags-in-E-Com-site-tp4664158p4664194.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
Dynamic Headers for Open Graph tags in E-Com site
Hi, I have an E-Commerce site. Im using a Template hierarchy. With the top template containing the Open Graph tags for the entire Site. Like The issue is there are PRODUCT PAGES that extend this template. But for Products its desirable to insert PRODUCT SPECIFIC headers. What is the cleanest way to do this? Note I can do this in a Dirty Way: If I use IHeaderContributor in the Product Page then it will APPEND it not replace the template tags. .. and removing thsi from the base template and Providing it for each page does not seem good either. ..Anyway I can demarkate this and override? thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Headers-for-Open-Graph-tags-in-E-Com-site-tp4664158.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: Dynamic Headers for Open Graph tags in E-Com site
I think I'll take a simple approach. Use a Spring Resource to read a file which contains only the OG Tags and use EhCache to cache the content. I'll remove the OG Tags from the Common Template and instead inject it dynamically then For product pages the OG tags have to be created per request so override the header contribution for this part and insert the Product Specific OG Tags. Like we have Panels in the Body section, why cant we have a concept like that for the Header? Anyway - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Headers-for-Open-Graph-tags-in-E-Com-site-tp4664158p4664172.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: Prefixing CDN URL to resources base path
Thanks Chris .. I evaluated that. Didnt work @ first shotand on further review I dont feel that is very effective; specially for JavaScript related code or dynamic CMS injected code. The approach that has been fastest and most effective for me has been to do the Heavy Lifting @ packaging time: Where the token map File look like this: # For JavaScript files to simple set the ROOT SITE_CDN variable. Not trying to alter other JavaScripts references that that may get really complex. # Simply devfine a SITE_CDN var, and prefix to any JavaScript code SITE_CDN( )*\=( )*''=SITE_CDN='//xyz.cloudfront.net/' SITE_CDN( )*\=( )*=SITE_CDN=//xyz.cloudfront.net/ # Replace all SRC location with CDN prefix in MARKUPS src( )*\=( )*'=src='//xyz.cloudfront.net/ src( )*\=( )*=src=//xyz.cloudfront.net/ ...One can modify the RegEx's to suit their convenience / custom cases/ - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Prefixing-CDN-URL-to-resources-base-path-tp4662997p4663019.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
Prefixing CDN URL to resources base path
Hi, I'm trying to make the use of CDN hassle free with my Wicket Apps. .. where *IF* a CDN location is specified then all paths like .. become This applies to JS, CSS, and img tags mainly. Am wondering where the best place to automate this would be ? 1. Build Process; do a REPLACE during production BUILD 2. Wicket code that loads using IResourceStream UrlResourceStream(url) ; Intercept the raw HTML stream and re-generate it? (if this is cached may be efficient??) 3. HttpServletFilter -- Just before its passed back from the Web Server. Do a RegEx scan and replace (Maybe too inefficient , but less intrusive to any Wicket Vodoo) Thoughts? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Prefixing-CDN-URL-to-resources-base-path-tp4662997.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
Enfocing INPUT field names to respect hCard formats
http://microformats.org/wiki/hcard-input-examples#person_billing_shipping_input To ensure browsers can Auto fill Input form fields for E-Commerce forms and common fields. I want to ensure the fieldNames match this convention. I tried a test class something like ..but it does not respect the input field provided; specially if the INput field is Bound via CompoundPropertyModel. Say shippingAddress contains city. Then the field is still named shippingAddress:city. How best to overcome this so I can standardize my field Names via HTML. I dont want to be writing HTML field names in Java code. That would suck. thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Enfocing-INPUT-field-names-to-respect-hCard-formats-tp4662465.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: Enfocing INPUT field names to respect hCard formats
Sir i get that, but what I'd like is that I supply the field name as an attribute in the Comonent itself in the HTML and that is fed to getInputName() to return. This way I can supply the names in HTML itself. If you see ..am trying to derive the tag attribute name from the html and then supplying it to: But in getInputName is coming null Overriding getInputName does work. However im trying to make it clean by supplying the name via HTML. thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Enfocing-INPUT-field-names-to-respect-hCard-formats-tp4662465p4662475.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
Setting up custom 404 page causes Issues
Im facing a strange problem I have a, Ajax based Progress bar. Everything worked great. Then in web.xml using dispatcherERROR/dispatcher on the Wicket Filter I configured it to a mounted page (org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy). 404 got prettier, but the progress bar stopped working. I found out that in trying to render the 404 page it was causing issues. My concern is whats the possible cause of the 404. Im unable to trap it from the browser. WICKET-AJAX-DEBUG shows the prohress bar infinitely polling the server but i dont see any 404 responses there. Maybe im missing it but so far not seen any. Anyway if anyone has any clue or ideas , let me know thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Setting-up-custom-404-page-causes-Issues-tp4659671.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: Setting up custom 404 page causes Issues
ok I managed to get some hints from my browser. So Certain URL's rendered as http://host/null would cause 404 .. but the progressBar / Ajax related issue was caused due to something like this: Not really in my hands .. so am just switching back to a simple HTML 404 rather than a dynamic one. I dont want to get into the whole business of filtering through the kind of 404 or origin of 404 nonsense. ..though if someone has any ideas , please am all ears. thank you. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Setting-up-custom-404-page-causes-Issues-tp4659671p4659674.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
Wicket Ajax and Session expiry
Hi, I have implemented authentication on my Wicket Pages by them extending a Base Class that checks the session. Those pages also add Panels and Ajax components. Its been really long but I have forgotten if how Ajax requests works with sessions. Also, I want to intercept it and re-direct it to a custom page; it seems to be going to the default landing page of the site. I have not put any code for this. Does it use some error-page in web.xml to determine the path? If I have a page that requires no Session and one which requires a session; how will it differentiate. Currently I cant find the code that makes any Ajax bind to the session so where is this magic happening? I have to go back and debug stuff, help appreciated to shorten this. I think there is a some magic ... which is scary when you have to go back a year later! thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-and-Session-expiry-tp4651715.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: Wicket Ajax and Session expiry
Yess! I found the an implementation of IAuthorizationStrategy and in the Site Application I do: getSecuritySettings().setAuthorizationStrategy(authStrategy); I built an Annotation, where all pages using that annotation are mapped to the Authorization Strategy. Its all come back on that front thanks. However, the Auth Strategy is on the WebPage's. How are the Ajax Links and components protected? Furthermore I have : ..The redirection works well for Web-Pages, but for Ajax calls on failure goes to Site landing page which is not consistent with the code above. So on the Ajax Front I'm still not clear. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-and-Session-expiry-tp4651715p4651717.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: Wicket Ajax and Session expiry
BTW this code is on Wicket 1.4 (just FYI) There seems to be a slight complication when protecting components in a hierarchy. I have protected some pages/Web-Components by marking them as protected via Annotation / Marker Interfaces. In the following code of an impl of IAuthorizationStrategy, the code gets the list of Protected components/classes getPageTypesProtected(). ..this works well for the components it is intended to protect. However it interferes with the construction hierarchy of the components. Example: if there is an AjaxLink somewhere in a Page that is Protected by the code above, then there is some issue and it gets redirected to landing page instead of login page. Ideally what I would want is using component.findParent(Page.class); get the Page the Link is on. But in the event Auth failed on the page, this comes null and the code has no way of knowing if the component is on which page. Also unlike protecting pages by annotating them, I cant do this a at a link Level; so I have to know where the link sits. Logically if the LINK is ON a Protected COMPONENT then it itself inherits the PROTECTION --- Clean Magic and Logic. But I cant seem to perfect this :( I tried to code the AjaxLink Auth inpublic boolean isActionAuthorized(Component component, Action action) instead, but in vain. Looks like Wicket component construction hierarchy prevents the page from being constructed in the first place, so I have no way of knowing where my AjaxLink sits if the page itself is un-authorized. However on processing the link, instead of invoking the page protection mechanism it just dies. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-and-Session-expiry-tp4651715p4651724.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: Single sign on (SSO) for two WicketApplication
Sir, I rant philosophy let me stop you @ How could you send/share the username password between den in a secure way ! .. Let me Fast Forward you thought what you will face on your own implementation: ...so heres the deal. Sharing passwords will not achieve anything. Because the idea of SSO is to pass the understanding that the user is VALID (not the process of authentication itself). There is no good in the second system knowing the password, for the idea of SSO would be not to have the user use the password at all to enter the 2nd system :) THE MEAT STUFF BEGINS - Hope we agree on what that means. ... it boils down to basically creating a TOKEN. A Token that is recognized across a set of servers that respect the TOKEN. This TOKEN is in the form a secure Cookie. Now, you may think Ok lets Create a Secure Cookie and we should be good. Ah! But there are more concerns. A Secure TOKEN by definition is what is accessed via HTTPS, but it does not make it IMMUNE to Hacking attacks like SESSION HIJACKING (basically I use JavaScript via XSS attack to steal you cookies and JSESSIONID). A script on a Browser can access Cookies. There are HTTP specifications to address this also, but they are server wide configurations in Tomcat (Not Request level or Page level imo -- for those who disagree. Refer: useHttpOnly @ http://tomcat.apache.org/tomcat-5.5-doc/config/context.html). You also have to then deal with the Validity of the TOKEN! how long is the TOKEN valid for? What algorithm do you use to ensure the validity of the Token? If i login and Copy the token. And come back later, and use the token without login, ... will your custom Algo fail? AH ! PHILOSOPHY - ...I think now you are realizing, that beyond communicating PASSWORDS or TOKENS there is a bottomless pit. ..and that is why you would choose something like CAS. If you are already thinking SSO, then you 'may' also want to think about the following: * Handing RESTful services via the SSO, not just some crude form of authenticated session management across machines. As yoou move to Mobile services, this will become very apparent. There home cook book solutions may not fair well * Integrate with 3rd party IDM (Identity management System) -- Like say LDAP * SAML integration .. ie. you may need your Applications to talk to apps on the cloud. And may want to provide seamless access across not just your servers but a Cloud like Sales Force * Also, today its 2 systems .. well they could easily be 3 or more? SUMMARY ...Bottom line, your cost for thinking only about the immediate need of 2 Wicket Systems may be the same or less than using a standard product like CAS. Which is free I'd also support the notion that you should evaluate CAS. Its configurations are in Spring, and furthermore they have a lot of adapters that are injected via Spring configs. We have overridden the existing plugins for our own custom use. Customizing Plugins on a Standard SSO is way fruitful than writing a SSO custom solution from scratch. ..I did that many years ago and its not worth it sir! - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Single-sign-on-SSO-for-two-WicketApplication-tp4620516p4624131.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: Built with Wicket: showcases for Wicket applications
Hey, great place. I went and added one of the sites we did (WRAP), however I forgot to put my companies name in the caption ..any way I can go edit it? :) thanks! - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Built-with-Wicket-showcases-for-Wicket-applications-tp4551410p4554678.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
Wicket in a containerless environment
Hi, I've been experimenting with Play and Scala. Very agile and theoretically fast with Netty. Read some benchmarks that did not show Wicket too well, however from a development/templating perspective I still cannot rationalize a better framework than wicket. Wickets Session and Request classes do not extend any Servlet Spec; which gives me the impression there is some thinking in allowing wicket to run in a container less environment. ..maybe am over thinking. But if not, one for the Dev team to think and support I guess. I'd be really interested to mash things up with Wicket Play, as few things about Play are uncomfortable to get around conceptually. Too early to comment, but I also feel Play's default templating style sucks. ...And for product development, a component oriented approach does have benefits, while Play seems to under-play! ..Anyone playing with Wicket without a traditional servlet container? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-in-a-containerless-environment-tp4536820p4536820.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
Securing Resource in Web Context
Hi, not sure if this is even a Wicket question; but drawing on the experience of the community for thoughts. Scenario : In the Web context, web root/resources ;is a folder that is accessible. Lets say we manage to secure it at the Apache level not to show a blatant directory listing, however if a resource is requested by path and that resource exists you really cant block it using any Auth mechanism using Tomcat ... can you? One way, i to create a private folder somewhere and stream the resources via the App Server; however that puts additional strain on the server and architecture if you want to access those resources quickly and a lot of them; specially in a hosted environment where you have a shared instance. (No VPS and no access to Tomcat say) Not sure if there is a bridge between Apache Tomcat say to secure a Web folder based on some cookie or jsession ids ?! ..Im thinking of creating a REST API, that encrypts urls and for all secured components in my Auth Strategy, it will generate URL's that point to a API and contains an encrypted value of the actual resource. the API decrypts the token and redirects it to the actual resource. ...Now if someone studies the redirects then they an still get to the resource, but atleast for the average person they will never be able to access the resource from the browser by seeing its location. Now is this worth the effort, .. or is there a way to secure a folder in the WAR context by some sophisticated mechanism driven by code but communicated to Apache. ..since the resources can be directly services by Apache .. am wondering how that would be possible at all. Just curious - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Securing-Resource-in-Web-Context-tp4446547p4446547.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
Channel busy - postponing...
Hi, I'm getting a Channel busy - postponing There are no server errors, nor response delays, .. nor are there any apparent JavaScript errors. The problem is consistent across browsers. Additionally, most of the code (client+server) being used is re-used in another project where there are no issues within the same environment. What could be causing this error? I do use JQuery; however when I removed jquery the problem persisted. So I dont know where to start looking. Whats a good place to debug this?! - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Channel-busy-postponing-tp4448932p4448932.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: Channel busy - postponing...
I just realized all posts on this matter point to some Jquery or JavaScript related mischief. I had established jquery itself was not the culprit, however .. for the Dialog I was using jquery-ui plugin. I upgraded the plugin. Seems the copy of the plugin for this project was messed up in SVN. A fresh copy fixed the issue. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Channel-busy-postponing-tp4448932p4448944.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
Get the Wicket Session from HttpServletSession
Hi, Am writing an Authentication Filter for Ajax Requests (that may or may not originate from Wicket), and I have access to the Raw HttpSession but I need access to my principal object thats part of my WebSession. I dont understand why WebSession is not a derivative of the native session and while from Wicket, one can access the raw session or request, the other way round doesn't seem part of officially charted waters. ..as part of the unofficial hacking guide, I realized wicket:wicket.wicketapp:session holds the Wicket Session Object. Now, is this key defined anywhere? Can I reply on using this string or is there a more elegant way of getting the Wicket Session from a Native Session?! tx - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Get-the-Wicket-Session-from-HttpServletSession-tp4383677p4383677.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: Get the Wicket Session from HttpServletSession
What about the part that would solve my problem -- wicket:wicket.wicketapp:session , do I just use that or there is some higher order function available :) - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Get-the-Wicket-Session-from-HttpServletSession-tp4383677p4383731.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: wicket appl architecture
haha .. ur welcome. yes, I meant ftw = For the Win; ... well wtf is one for internet typo humor. Good luck ;) - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-appl-architecture-tp4305917p4309535.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: wicket appl architecture
JSON Library + CXF wtf! ... This is a pretty good combination thant I've been playing with for over some time. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-appl-architecture-tp4305917p4306850.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
Repainting only newly-created repeater items via ajax
Hi, with reference to the blog/article: http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ I have Code: ...the trouble is that the above allows me to ADD one record, but on the second it naturally complains authorizationDetails is already pard of 'authorizationListView'. If I try to make the authorizationListView dynamic it complains. In the example, the author has used a RepeaterView, .. here its a ListView and I cant get the items next Child Id (.. or Can I)? ...The issue here seems to be what value can I put in th Fragment so that it allows me to ADD more than one row via Ajax! thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Repainting-only-newly-created-repeater-items-via-ajax-tp4186028p4186028.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: Repainting only newly-created repeater items via ajax
Hi Vineet, nice suggestion. I worked on it and solved all server side issues; however on the UI its failing to render. My suspicion is the prepended script may need to be tweaked. here is the modified code for reference: - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Repainting-only-newly-created-repeater-items-via-ajax-tp4186028p4188674.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: Repainting only newly-created repeater items via ajax
ok, its official. using ListView in this situation is a major *Pain_In_The_A* Using RepeatingView it was smooth. However, as far as I got with using ListView (for the sake of documentation); .. is that the script will need to be modified. I think the li adds one more level of abstraction. When I replaced prepend with append the tr showed up but was blank. (No innerHTML). Thanks Vineet, you great help in both your suggestions. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Repainting-only-newly-created-repeater-items-via-ajax-tp4186028p4188835.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: An extensive RIA technology comparison matrix including Wicket
If only I could inject a window.close(); on that post! :) Being un-biased and logically trying to break it down ..., I think people have to differentiate between FRAMEWORKS and FRAMEWORKS + FLUFF. E.g.: Their criteria Three stars means a fully-fledged plug-in with advanced specialized features like WYSIWYG editing. ... I just implemented a Wicket Integration of CKEditor, with AJAX on the CkEditor buttons, connecting directly to my service layer. = FLUFF Wicket provides very neat Ajax support for developers to do stuff with it. Also overall, I've been pretty miffed with the Java Community for masturbating over frameworks* while PHP has heavy weights like Drupal and Joomla that steal the show. .I've found Wicket to be a good ally in creating better sites faster, cheaper and more maintainable than any PHP competitor or any Java framework + CMS solution. * = http://www.mail-archive.com/users@wicket.apache.org/msg55584.html - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/An-extensive-RIA-technology-comparison-matrix-including-Wicket-tp3941573p3942997.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
SFTP Wicket
Do we have a pre existing component for doing SFTP. I have a project in a shared hosting environment where they do not allow local file access; so I'd like to show file/folder view of a folder that can also be accessed via FTP. If the component does not exist, ideas to create one are welcome. I'll put the dev effort, ideas welcome. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SFTP-Wicket-tp3936491p3936491.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: SFTP Wicket
The tree part i have, actually i was looking for the SFTP part Out of the box (Like File Upload exists OOB). But this will show listing (combined with Tree) + Upload. I guess it dos not exist OOB - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/SFTP-Wicket-tp3936491p3936561.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: Drilling Application.getHomePage()
Ah, sorry was trying to use as less words as possible :) Q / Problem) Since Application.getHomePage() returns Class? extends Page and in my case Multiple pages are mounted to point to the same WebPage. How to I specify the Home Page. In other words: CLASS to Mounted Pages is a one to many relation. By returning the class name, there is no way logically for the system to determine which page I'm asking it to goto as Home. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Drilling-Application-getHomePage-tp3924262p3924407.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
Drilling Application.getHomePage()
Hi, All my pages are generated dynamically in a particular project (including Home). Application.getHomePage() returns Class? extends Page The trouble is that all my pages use the same WebPage class, based on the name in the URL it determines which content to fetch. Example: http://mysite.org/abc The strategy picks out abc as the identifier and fetches content for it. But the WebPage class is common. Additionally: In getApplicationSettings().setAccessDeniedPage(error.class); I want all exceptions thrown to goto the error page so I can see a StackTrace there (in = Visutally user sees user friendly message but on view source one can see the stack trace) - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Drilling-Application-getHomePage-tp3924262p3924262.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
HTML within the feedback panel message
I want the String to be unescaped so I can add CSS to certain *parts* of the feedback message. Like Highlight an area in the error message etc. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTML-within-the-feedback-panel-message-tp3908134p3908134.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 : Modifying CallBackUrl in OnEvent()
Hi, I wound a solution/decent work-around to my problem. So to re-explain it based on what Andrea says: Yes, its true its too late and there is no pure API way. But there is a work around. Problem:: Modify the CallBackUrl for an event based on some condition that may occur in the event. Technically speaking, once the callback URL is defined you cannot change it via the code (official Wicket API imo) Solution Concepts:: At the end of it, its all JavaScript running, so if we can find a way of updating the JavaScript on the target we have achieved our goal. The issue is you dont really want to type all that javascript or hard code it, neither do you want to create code in bits and pieces that are patched. Solution Adopted:: (And anyone can fee free to provide a better solution) Create a new Behavior of the same Class that created the original CallBack. (Typically this extends AbstractDefaultAjaxBehavior since you are working with onEvent() you also implement AjaxEventBehavior). Step 1: Now, In the onEvent(); you create the Behavior based on latest/new conditions. This Behavior is also capable of giving you the new updated Javascript without you having to write any JavAscript code. Like my Behavior that extends AbstractDefaultAjaxBehavior .getCallbackUrl(); Step 2: In the onEvent() add a String updatedCallbackScript = User JavaScript or JQuery to modify the event attribute of the element and replace with new function() {+newCallbackScript+}; (The one line is standard J.Script so its a bit hacky but I guess passable standard) Step 3: In the onEvent() ... add: target.appendJavascript(updatedCallbackScript); ...and it works! - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Modifying-CallBackUrl-in-OnEvent-tp3863397p3892859.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
Ajax : Modifying CallBackUrl in OnEvent()
Hi, I have an overridden the AbstractDefaultAjaxBehavior.getCallbackScript(boolean onlyTargetActivePage) method. I have also overridden the AjaxEventBehavior.onEvent(). In the onEvent(AjaxRequestTarget) I want to re-generate the Callback Script (replace original one with new one), how can I do that. Once generated am unable to change it using the target object. thanks. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Modifying-CallBackUrl-in-OnEvent-tp3863397p3863397.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
Feedback panel inherits parent panel feebdack?
Hey, i guess i was sleeping when this one was taught. I have a Feetback panel on the parent panel. Then in a WebMarkupContainer, have added another feedback panel. When I add .info(...) or .error(...) to feedback panel in parent it appears in both. Must be some component hierarchy trickle down effect but Weird right? And if this is intentional why is it needed? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Feedback-panel-inherits-parent-panel-feebdack-tp3846252p3846252.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
wicketAjaxGet Size limt
Hi, From a JavaScript code (CkEditor pluin to be exact), I want to send data to my wicket component/panel. I traced the generated code, and it uses wicketAjaxGet. With wicketAjaxGet I can get in 3000+ characters on a rough. This seems to have size limitation, whats the best way to get around that? Additional Context Would like this to be as scalable as possible so I can send Contents in my CkEditor on my Custom Ajax-Save button. Basically have created a plugin in CkEditor and have my Ajax-Save on the Editor Toolbar (no Wicket button). I have a Proxy link that generates the script, and then on JavaScript I simply rip that off and do an eval (server generated function code + modifications). This submits back the data to the server and it all works well. Just the size limit bothers me a bit. Have avoided using forms sicxe I dont see a conceptual need for forms. wicketAjaxPost or wicketSerializeForm (?) -- Discussion sake (maybe not relevant) I saw some post few months back where guy talks about wicketAjaxPost and serializing Forms using wicketSerializeForm. But no code or context provided so not sure how that works. plus wicketSerializeForm takes only one param ... the form element in javbscript. So how does it send data back to server? Preferred Area of Solution - Note: This script can be modified @ the server in public final CharSequence getCallbackUrl(final boolean onlyTargetActivePage) ; Looking for some server side wizardry so I dont have to put in Hacke (replace commands in javascript). - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3841117.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: wicketAjaxGet Size limt
Actually i did try that also and in the HTTP Live header plugin I can see its getting POST'ed. yet for some reason content larger than a certain size is not going. I hope this is not a problem with CKEditor or Jetty (standard config) thanks for the tip. I'll check other things to see why large size is not working out. If you have any suggestions, I'll followup. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3841930.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: wicketAjaxGet Size limt
Found root cause; confirm. Am getting a HTTP 413 return (Server puking it on Post) ...any suggestions? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3841975.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: wicketAjaxGet Size limt
Since it was a server error, I changed the headerBufferSize config in Jetty and it worked ..but then on changing Jetty Config wicketAjaxPost wicketAjaxGet were both working. headerBufferSize uses the request header imo, so on post why do we need the request header? ..Something does not seem right with my understanding of these functions or perhaps how JETTY handles requests. Its left me a little confused :( Jetty config fix -- connector implementation=org.mortbay.jetty.nio.SelectChannelConnector port9090/port maxIdleTime6/maxIdleTime headerBufferSize24000/headerBufferSize /connector ..what im still worried about is the HeaderBuffer Size - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3842018.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: wicketAjaxGet Size limt
When using Post, are you seeing a content-length header? Yes, but its '0': - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3842027.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: wicketAjaxGet Size limt
Attila Király jcgarciam --- Yup, thats it I guess. You guys are right (i think) I was just blindly hacking the urls using the wicket functions. I see now : function wicketAjaxPost(url, body, successHandler, failureHandler, precondition, channel) ..and what I'm consuming is only the URL param. Example: I should be using the second param for POST to really take advantage. Thank you all. Yup, it all makes sense now. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3842041.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: wicketAjaxGet Size limt
Hi, its working now. For the sake of dcoumentation anyone looking to override how their Component does a callback on a custom behaviorthat extends AbstractDefaultAjaxBehavior : ..Will adapt to GET POST accordingly. tx - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicketAjaxGet-Size-limt-tp3841117p3842094.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
How to update @SpringBean proxy?
Hi, I believe @SpringBean creates a proxy over the original bean. I have a situation where in the Application.init() --callls -- Service layer that has direct access to SpringContext. I modify the original Bean (getting it via Spring Context). However, this update to the object wont reflect in the associated proxy. Anyone know how I can get a ref to the original bean or have the proxy updated; so without the Annotation how can I get access to the Proxy object via API? Currently looking @ for clues... https://cwiki.apache.org/WICKET/spring.html Pointers appreciated! thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-SpringBean-proxy-tp3776522p3776522.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: How to update @SpringBean proxy?
@PointBreak: imo not doing anything stupid like that, but I dont wanna be too sure been up 14 hours. Maybe my eyes are missing something. Take a look. Be the judge, here is a simplified version of the code: Spring XML Summary: [The idea is that the menu model mixes Static dynamic items via Spring so i can generate Menus in a flexible way] Code: - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-SpringBean-proxy-tp3776522p3776665.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: How to update @SpringBean proxy?
Hey heads up, there is some bug in the logic of one of the services. And on this front its clear. Thanks :) - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-update-SpringBean-proxy-tp3776522p3776761.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
Downloader for files outside Web Context
Hi, do we have a pre written Downloader that can allow links on a web page to download files which are saved outside the Web Context? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Downloader-for-files-outside-Web-Context-tp3726061p3726061.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: Downloader for files outside Web Context
Liek a DownloadServlet that is given some params and knows where to pick it from the local FS and streams it down. So the link ends up getting the streamed resource. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Downloader-for-files-outside-Web-Context-tp3726061p3726062.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
Advanced Mounting Markup Location
When Locating the Markup for a Page, I want to know the corresponding class (associated with the page/markup). Currently Im directing Wicket to my Custom Markup location with the following code in Application: ... final IResourceStreamLocator defaultLocator = super.getResourceSettings().getResourceStreamLocator(); return new ResourceStreamLocator(){ @Override public IResourceStream locate(final Class? clazz, final String path) { ... //Figure alternate path by reading path //if valid URL not found use the defaultLocator ... } ... I want to get the associated Component class. I know the String path represents the ClassPath, but its still a String and contains Locale Junk an extension with it. Is there someway I can get Class? directly so I don't have to do String manipulations? Another thing I want is, when the dynamicPage (which --extends-- TemplatePage --extends-- WebPage) appears it knows its associated Template DataStructure details. TemplatePage - Wicket Component Template - Data Structure TemplatePage --- Template When Mounting, on init() in Application: application.mount(new QueryStringUrlCodingStrategy(pagePath, [Templace Class] )); During the mount itself, is there anyway for me to associate/pass models to the pages which will be constructed? Wicket uses no-arg Contstructors for WebPage, but what if I want to pass a WebPage contexutal info specific to the Page while mounting? (Can i do this?) -- I believe this would be efficient - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Advanced-Mounting-Markup-Location-tp3705032p3705032.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: Advanced Mounting Markup Location
ok its embarassing to have to post the answers to your questions, heh but this is one is for less fortunate: In my application I could pass the Class of the MarkupContainer (rather than the class that loads the markup) /** * The {@link DefaultMarkupResourceStreamProvider#getMarkupResourceStream}; derives the path * from the Class? containerClass and passes it to the {@link IResourceStreamLocator#locate} method.br / * It also passes the MarkupContainer class to the {@link IResourceStreamLocator#locate} method. This class is useless in our case, * and there is more value in getting the actual Class? containerClass. Simple swap which class is passed to the locate mothod. */ protected void tweakMarkupCacheStreamProvider() { getMarkupSettings().setMarkupCache(new MarkupCache(this) { private IMarkupResourceStreamProvider markupResourceStreamProvider; /** * Get the markup resource stream provider to be used * * @param container *The MarkupContainer requesting the markup resource stream * @return IMarkupResourceStreamProvider */ protected IMarkupResourceStreamProvider getMarkupResourceStreamProvider( final MarkupContainer container) { if (container instanceof IMarkupResourceStreamProvider) { return (IMarkupResourceStreamProvider)container; } if (markupResourceStreamProvider == null) { /* * Most of the code of the original {@link DefaultMarkupResourceStreamProvider} is untouched, * except the line that calls the locate(...) method! */ markupResourceStreamProvider = new DefaultMarkupResourceStreamProvider() { public IResourceStream getMarkupResourceStream(final MarkupContainer container, Class? containerClass) { ... ... //container.getClass() replaced with containerClass below ::: IResourceStream resourceStream = locator.locate(containerClass, path, style, locale, ext); ... ... } }; } return markupResourceStreamProvider; } }); } Request to the Developers :: One particularly disturbing thing I've seen in certain wicket components (maybe an oversight); is that if you dont have POJO style getter() setter() on your components; then non final variables should be declared protected not private. There is no point providing overriding methods that use private variables, to which the child class has no access. thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Advanced-Mounting-Markup-Location-tp3705032p3705848.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: RFC: Ten things every Wicket programmer must know?
From my experience, stuff where I screwed up or wasted time: 1. Wicket is a UI framework, delegate as much as possible to your own neutral code base service and components. Data Models etc. Both Server and Client Side. Client Side:: Don't wrestle with Grids etc in Wicket; if you can get away with a cheap JavaScript/DHTML implementation instead. 2. Wicket Data Models should ideally wrap you native business objects. Wicket wotks over the native business objects; your business objects POJOs are not designed for wicket. 3. Use Detachable models effectively. (Am still learning the meaning of *effectively*). Example: Everyone talks about using it, but it depends on the underlying business objects in use. If they are poorly designed and load in an in-effiient manner, then load() will mess with re-loading stuff each time. 4. Do not try to instantiate Wicket Components via Spring. there is no sane reason to do this; this was an area of special interest and very tempting. One can rely on Spring for native objects and develop better mechanisms for Components to instantiate over the Spring defined layer. 5. @SpringBean is bloody useful 6. Learn to hack Mount Paths. The default Markup Page classpath relating to the component is Web non-intuitive. Its great if you can live with the default setup but learn to mess around with mounting. 7. Learn to the differences between Markup Inheritance, Use of Panels and Include when it comes to designing reusable templates and reducing boilerplate markup code. 8. Mess around with Fragments; they are useful. Like Anonamous classes ; but just in the markup world. 9. Learn atleast one other Web Framework like Struts, appreciate the beauty of Wicket. 10. Learn to respect velocity templates and the co-existence of Wicket with Velocity. Wicket-Velocity project. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RFC-Ten-things-every-Wicket-programmer-must-know-tp3699989p3700814.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
Technical Limit on Mount Points
Hi, I fave a ton of possible dynamic content where for each content I have to associate a Mount Point. im thinking of a strategy to do that efficiently. To cater to it, following questions: 1). What decides the technical limit to the number of Mount points possible? (Does it load all the mount points into memory, or applies some sort of caching that can use persistence if required)? Example usage per mount point: application.mount(new MixedParamUrlCodingStrategy(myPageX, pageTemplateClass, new String[]{pageId})); 2). Would a considerable number of Mount points degrade performance? thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Technical-Limit-on-Mount-Points-tp3699113p3699113.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: Technical Limit on Mount Points
On my own investigation :- WebRequestCodingStrategy$MountsMap : /** backing map */ private final TreeMaplt;String, IRequestTargetUrlCodingStrategygt; map; ... that decides the data structure for the mounts, imo/ - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Technical-Limit-on-Mount-Points-tp3699113p3700408.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: using saml2 for authentication
I dont think its justified to expect Wicket to directly provide that Auth support. My 2 cents to put you in the right directions AFAIK: Typically, one should have an IDP or SP setup at either ends. For instance, Shibboleth has good support for SAML2. Once you have that setup, you can use any java based app to interact with your SSO. Note: I've tried both CAS and Shibboleth. CAS current version for SAML2 is not reliable. So you should get familiar with Shibbolth I guess. I have tried it for SalesForce Cloud, not directly via wicket but it will be an interesting Blog for Wicket users, if you do figure it out! - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/using-saml2-for-authentication-tp3680988p3691811.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: E-commerce site built on Wicket
Looks pretty nice. Did you guys use any CMS (say wicket based like BRIX) .. or simply coded it straight up? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/E-commerce-site-built-on-Wicket-tp3682832p3682897.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
Pre Publish Wicket Pages
Hi, Is there some way for me to Hack the Wicket parser to pre-publish Wicket based pages before they are even rendered? Context: == I have a system where I'm using velocity to generate pages that do not change over a period of time. Futhermore their content can be cached using EhCache (More interesting as based on events one may update thee cache also, so for semi dynamic content also its great). This is really performant and great for other reasons. ..However since i love wicket and templating using inheritance in Wicket etc., I want to pre-publish my core wicket pages also (which render dynamically on screen on request). I'm perhaps confusing/mixing the purpose of a Templating engine with Wicket. But who cares :) , ... I think it would be cool to pre-publish certain Wicket pages also. How would that be possible? There would be no Request, no Session. So some hacking of the parser would be required. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Pre-Publish-Wicket-Pages-tp3682723p3682723.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: idiosyncratic interfaces such as IModel, IVisitor
An interface is a piece of code one writes when they are too lazy to think of the implementation. An abstract Class is one where you have no idea how the hell you will complete the rest! An idiosyncratic interface is 1 to 1 relation with your class because the programmer did not have the guts to stand by his class and use it as a type directly (Interface as a Type) :) - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/idiosyncratic-interfaces-such-as-IModel-IVisitor-tp3613440p3613551.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
How to Obfuscate content?
Hi, my question has following parts: 1. What is the best JavaScript / HTML API based obfuscator one can recommend to use? 2. How/Where would one integrate that with Wicket? 3. Do these obfuscators have any practical impact on performance (Silly Q, admitted :) ) .. better; can the page results be cached? 4. What if I want to Obfuscate the results of a Panel? Can I apply any strategy to a WebComponent rather than to the entire page? --- This maybe useful as certain sections of the page may need to be obfuscated rather than the whole page. thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-Obfuscate-content-tp3593501p3593501.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: How to Obfuscate content?
AbstractTransformerBehavior looks cool. ...As for caching, will address that separately. Thanks Why do you need this at all ? -- Mainly technical curiosity and I also Obfuscation and Compression of JavaScript/HTML is pretty much in demand, so writing stuff to cater to those demands without being too performance heavy. Example: Wicket in Production mode has the setting to remove White Spaces, this is itself a trivial form of compression/obfuscation to begin with; I guess as an analogy :) - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-Obfuscate-content-tp3593501p3593570.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
Graceful Session Expiry
Hi, I want to be able to show a Warning message appear when the session is about to expire (say 5 minutes before) and if the session has expired then on the UI it should come. This is to ensure a User does not enter any data and lose it when they click Submit. Use Case I wanna prevent: Lazy User goes for Coffee, comes back completes Form, presses Submit ...curses me! thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Graceful-Session-Expiry-tp3584660p3584660.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: Graceful Session Expiry
I just had an idea to solve both the problems. (please see if it makes sense) Well, what if we on every Page request tell the Browser how much time it has left = Session Duration. (Pass it via some param or header script variable) And let the Browser do house keeping for that window session. I'll put a script via WebPage.setHeader(...) in my base class; extended by all pages that use a session. The rest is taken care by the client. ..though am not sure if there is a way for me to inject into all pages that use a particular session object automatically or I should keep it simple and put it in the base WebPage class? (All WebPages may not share a common parent) thanks - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Graceful-Session-Expiry-tp3584660p3584943.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: Graceful Session Expiry
Sorry I meant , make base class implement IHeaderContributor.renderHead(IHeaderResponse response) , inject script via that. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Graceful-Session-Expiry-tp3584660p3584955.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: GridView for A-Symmetric tables - issues
Someone asked me for the HTML code also and I had similar off forum queries earlier on this post. Fwiw adding HTML sample code to compliment the Java code for this use case: table id='grid' tr wicket:id=gridView td class='tdShell' wicket:id=cols div class='tableCell' center div /div div style='border:0px solid transparent' wicket:id=mergedCell /div /center /div /td /tr /table ..hope its useful for anyone else looking for the same. - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/GridView-for-A-Symmetric-tables-issues-tp2953859p3506434.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: Complex Grid with Wicket
Some time back I created a similar complicated grid structure and also submitted a rather rag-tag JIRA suggestion: http://apache-wicket.1842946.n4.nabble.com/GridView-for-A-Symmetric-tables-issues-td2953859.html This post explains how I did it conceptually with pseudo code. Now, many months later here is what I feel: IF YOUR JAVASCRIPT SKILLS ARE GOOD :: If you can get away with producing JSON or any form of object notation and deliver that the the page, and have the Page decide via JQuery, Javascript + DHTML or some other pure client based solution then ...Do that! It gives you more maintainable and flexible code* and clear Server/Client abstraction. I've realized Table rendering is one of those things that are best left to client pages (if you are ok with a JavaScript solution). ...if not, you can scrape from my earlier work on that post. Its your choice , your neck! :) * For most reasons, ~~~ Browser specific JavaScript is a Pain and best avoided ~~~, but I've found table handling etc. one can write pretty much standard and consistent JavaScript that beats writing code server side. Again, it about your JavaScript skills Vs Wicket skills perhaps and a personal choice. I know many people will cringe at this comment but being honest about my frustrations and what works for me ;) - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Complex-Grid-with-Wicket-tp3464266p3465107.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: Caching Streamed Images on browser
Hey, thanks for the response ... though i think there is more to it. When I look at the header of a normal image in web context, he server returns 302 (NO MODIFIED). Despite me changing the HTTP cache controls, a HTTP/1.1 200 OK still makes the browser stream the image from the server. Using HTTP live Headers i ensured the HTTP headers match that of normal image Ditto. This (200 vs 302) is the only noticeable difference. Am unable to force a 302 for some reason (...am looking at that) Any ideas? Will some sort of UrlCodingStrategy to avoid params in my URL trick the browser and tomcat server in thinking its a genuine image resource? like : /my/synthetic/image/image1.jpg instead of Download?image=image1.jpg. Any ideas? - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Caching-Streamed-Images-on-browser-tp3389269p3436023.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: Caching Streamed Images on browser
Got it! As per ETag specs in Firefox Docs,: The Last-Modified response header can be used as a weak validator. It is considered weak because it only has 1-second resolution. If the Last-Modified header is present in a response, then the client can issue an If-Modified-Since request header to validate the cached document. When a validation request is made, the server can either ignore the validation request and response with a normal 200 OK, or it can return 304 Not Modified to instruct the browser to use its cached copy. The 304 response can also include headers that update the expiration time of the cached document. Setting 'Last-Modified' did the trick for me. thanks - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Caching-Streamed-Images-on-browser-tp3389269p3436099.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
Caching Streamed Images on browser
Hi, I have a resource (an Image which exists on the File System outside the Web Context). I stream the image resource. The problem really is that while the speed to download an image within web-context and outside is the same the one within Web-Context is always cached by the browser. Am not sure this is a pure wicket question, but anyone know the rules for browser caching images? As long as the src link is the same and independent of session why would the browser not cache it? I also created a simple DownloadServlet and same result. URL -- /DownloadServlet?file=abc. - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Caching-Streamed-Images-on-browser-tp3389269p3389269.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
Externalizing Page Mounts Via Spring
Hi, I wanted to externalize the Page Mounts using Spring. Earlier in my Application class the code was like: mount(new QueryStringUrlCodingStrategy(login, loginPage.class)); So What I did was: ... //Scan for All IMountLoaders in the context and get the Mount points from them automatically Map mountLoadersMap = springContext.getBeansOfType(IMountLoader.class); List mountPoints = ... Get Mount Points from Spring ... for (IRequestTargetUrlCodingStrategy mountPoint : mountPoints) { mount(mountPoint); } ... : SPRING FILE CORRESPONDING CONFIG : However this leads to an Exception: .springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.me.loginPage]: Constructor threw exception; nested exception is java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle: java.lang.IllegalStateException: you can only locate or create sessions in the context of a request cycle at org.apache.wicket.Session.findOrCreate(Session.java:209) at org.apache.wicket.Session.get(Session.java:253) at org.apache.wicket.Application$1.onInstantiation(Application.java:299) at org.apache.wicket.Application.notifyComponentInstantiationListeners(Application.java:1093) I wanna keep the code fluid and dont wanna wire it to any specific @SpringBean kinda config. Is there an easy way out here? - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Externalizing-Page-Mounts-Via-Spring-tp3343247p3343247.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: Externalizing Page Mounts Via Spring
Both very helpful answers @Mike ManderThe wicket-stuff thing is very cool indeed. However, I'd like to mounting to be controlled by some strategy/configuration in most cases which wont help if i have the Annotation within the WebPage (but yes very very cool to know it exists). @Attila Király : Yah worked, though one doesnt need index values since they are in order; but using the String value instead of the object did the trick! thank you - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Externalizing-Page-Mounts-Via-Spring-tp3343247p3343358.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: DropDown replacing text field
Thanks...but curiosity : why wont that work in the first place? - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDown-replacing-text-field-tp3336347p3336426.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: DropDown replacing text field
(And whats wrong with Nabble ..its got this annoying Ajax interface) :( Ugh!!! - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDown-replacing-text-field-tp3336347p3336427.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
DropDown replacing text field
Hi, i have a markup (Loop) for a couple of fields. Its a dynamic form and all the fields are text except one or two, Sample Markup: Now in the Java code, for the exceptional case I want to replace that 'input' with 'select', so I did: field = new DropDownChoice(value, new Model(myBooleanvar), Arrays.asList(Boolean.FALSE, Boolean.TRUE)) { //Default is text type, change to select @Override public void onComponentTag(ComponentTag tag) { tag.setName(select); tag.remove(type); super.onComponentTag( tag ); } }; ..this results in a Blank Drop Down Box withotu any values. In the markup if I make it select it obviously works. What else do I need to to do to get the options, in the list in such a case? - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDown-replacing-text-field-tp3336347p3336347.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
Dynamic Tag substitution
Hi, Im creating a Decorator/Wrapper Panel that will show EDIT/DELETE options on the content if the user is authorized to do so. The markup simply put, is like this: ?xml version=1.0 encoding=utf-8? html body wicket:panel table trtd DELETE /tdtd EDIT /td/tr trtd colspan=2div wicket:id='container'***TAG_TYPE***wicket:id='component' //div/td/tr /table /wicket:panel /body /html The issue is that the Wrapper by design can consume any Component and decorate it. However, the TAG type depends on the component inserted. I'd liek to control that programatically. Is there any way I can do that? ..the corresponding code is like : public abstract class EditableComponentWrapper extends Panel { private static final long serialVersionUID = 1191322949129480444L; private boolean allowDelete, allowEdit; public EditableComponentWrapper(String id) { super( id ); WebMarkupContainer container = new WebMarkupContainer(container); add(container); container.add(addComponent(component)); } /** * Add custom Component to the container. Use the id passed to construct the component. * * @param componentId as String */ public abstract Component addComponent(String componentId); public void onInitialize() { super.onInitialize(); addOrReplace(new AjaxLink(delete) { @Override public void onClick(AjaxRequestTarget target) { onDelete(target); } } .setOutputMarkupId(true) .setEnabled(allowDelete) .setVisible(allowDelete)); addOrReplace(new AjaxLink(edit) { @Override public void onClick(AjaxRequestTarget target) { onEdit(target); } } .setOutputMarkupId(true) .setEnabled(allowEdit) .setVisible(allowEdit)); } ... ... - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Tag-substitution-tp3311189p3311189.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: Dynamic Tag substitution
One correction I'd make to my own code is instead of allowing to add a Component; I'd enforce WebComponent. That would make the case stronger for using and enforcing HTML tags. ..the issue remains, hwow do I make the markup here dynamic to suit the WebComponent being wrapped! :( - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-Tag-substitution-tp3311189p3311199.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: Best practice on i18n
The only relevant technical point here is Inheritance. If Component A inherits Component B, then the properties would have to be repeated in the property file corresponding to the inherited Component as i don't think properties follow inheritance rules (imo). Regarding Gobal vs Local: This is so open to perception probably not worth debating ,..just imo if one is following a component oriented approach (specially in product development); maintaining a Global property list cannot be a good thing. For service oriented projects one can argue since its about preferences; like ease of maintenance etc. for clients. thanks - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Best-practice-on-i18n-tp3245918p3246828.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
Wicket : Articles Blogs
Hi, I am looking to incorporate a section on client websites for Articles Blogs. I've used Roller independently, but I feel its too bulky and self centered to integrate with a site. Do we have ready made components in Wicket that can help here? What do you guys use with Brix? Can I rip it off and use with my own Wicket based framework? Anything on: Spring, Wicket JPA is ideally welcome. thanks - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Articles-Blogs-tp3245765p3245765.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: Multipart issues in Wicket 1.4.15
Hi am not sure if a user vote is going on here. My 2 cents for my own insecurities: Leave it as is! Its good enough. I'm pretty much screwing around with FileUpload in many ways and overall its great. thanks - Don't take life too seriously, your'e not getting out it alive anyway! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Multipart-issues-in-Wicket-1-4-15-tp3221308p3224563.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: Changing/Accessing name of ListItem in ListView
I was hoping on the lines, where you do get(component id); Wicket returns the Component. So if there was a way to customize the nomenclature of what the names of the fields are in a loop then it would be easy to refer to components via name directly. ... I can't do [IN CONCEPT] get(additionalFeatures).get(My naming convention Sub Item component Id).getDefaultModelObject() or something. -- I was asking if there was any magical way like that. Not a big deal , I worked around . For the sake of discussion my ListItem is defined by the following: ListView additionalFeatures = new ListViewString(additionalFeatures, additionalFeaturesKeyList) { ... @Override protected void populateItem(ListItemString item) { String key = item.getModelObject(); //Assume this to be the Name / Id of something item.add(new Label(name, new Model(key))); String modelKeyName = MarshalUtils.toAlphaNumeric(key); final Feature feature = additionalFeaturesMap.get(key); item.add(new TextArea(value, new Model(feature.getValue().toString())) .setLabel(new Model(modelKeyName)) .setMarkupId(key)); } ... } What I went with at the end was: ListView listView = (ListView)get(additionalFeatures); for (int x=0; xlistView.size(); x++) { ListItem additionalFeatureField = (ListItem)listView.get(x); //Now I work with the ListItem however I want to and derive what I want :) ... } ..Which works also, but not as elegant as I hoped. But I realize its a LIST, so my expectations are perhaps unjustified and iteration of the list is logical and inescapable. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Changing-Accessing-name-of-ListItem-in-ListView-tp3218777p3219010.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
TextField Double type introduces commas
Hi, maybe this is really basic but I cant find it documented. I force a TextFieldDouble. When it renders, it introducrs commas (,) like 45000 = 45,000 I wanna get rid of the commas! P.S Sorry if this really a RTFM question! thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextField-Double-type-introduces-commas-tp3219013p3219013.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: TextField Double type introduces commas
So the getConverter() is deprecated and there is no setter. WHich confused me a bit. Overriding the converter seemed like an overkill than setting a custom one on the Field, so was not sure. Thanks to your post, I'm clear on what to do. https://cwiki.apache.org/WICKET/using-custom-converters.html thank you very much -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextField-Double-type-introduces-commas-tp3219013p3219365.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