Re: Analytics for Wicket applications

2017-06-15 Thread Arjun Dhar
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

Re: Use a Factory to create a Panel (Yay or Nay)?

2016-02-18 Thread Arjun Dhar
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

Re: DataTable Selected Row And Paging

2016-02-17 Thread Arjun Dhar
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

Use a Factory to create a Panel (Yay or Nay)?

2016-02-17 Thread Arjun Dhar
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

Re: Ace Editor Wicket integration?

2016-01-13 Thread Arjun Dhar
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:

Re: HTTPS to HTTP invalidates Session

2016-01-12 Thread Arjun Dhar
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

HTTPS to HTTP invalidates Session

2016-01-11 Thread Arjun Dhar
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.

ReLoad HTML only

2015-04-16 Thread Arjun Dhar
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;

Re: CheckGroup in a DataTable

2015-01-25 Thread Arjun Dhar
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

CheckGroup in a DataTable

2015-01-25 Thread Arjun Dhar
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

User Agent (mobile) specific Pages

2014-04-19 Thread Arjun Dhar
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)

Re: User Agent (mobile) specific Pages

2014-04-19 Thread Arjun Dhar
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

Re: User Agent (mobile) specific Pages

2014-04-19 Thread Arjun Dhar
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

Re: Restful Services

2014-04-08 Thread Arjun Dhar
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:

Re: E-Commerce and Open Source projects

2014-03-27 Thread Arjun Dhar
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

E-Commerce and Open Source projects

2014-03-26 Thread Arjun Dhar
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

Re: WildCard URL strategy for E-Commerce Products

2014-03-16 Thread Arjun Dhar
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

WildCard URL strategy for E-Commerce Products

2014-03-15 Thread Arjun Dhar
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

Re: WildCard URL strategy for E-Commerce Products

2014-03-15 Thread Arjun Dhar
:) 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

Register Wicket Components @ Runtime

2014-03-01 Thread Arjun Dhar
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

Re: Register Wicket Components @ Runtime

2014-03-01 Thread Arjun Dhar
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

Re: Dynamic Headers for Open Graph tags in E-Com site

2014-02-05 Thread Arjun Dhar
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

Re: Dynamic Headers for Open Graph tags in E-Com site

2014-02-05 Thread Arjun Dhar
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

Dynamic Headers for Open Graph tags in E-Com site

2014-02-04 Thread Arjun Dhar
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

Re: Dynamic Headers for Open Graph tags in E-Com site

2014-02-04 Thread Arjun Dhar
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

Re: Prefixing CDN URL to resources base path

2013-12-14 Thread Arjun Dhar
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:

Prefixing CDN URL to resources base path

2013-12-13 Thread Arjun Dhar
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

Enfocing INPUT field names to respect hCard formats

2013-11-17 Thread Arjun Dhar
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

Re: Enfocing INPUT field names to respect hCard formats

2013-11-17 Thread Arjun Dhar
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

Setting up custom 404 page causes Issues

2013-06-21 Thread Arjun Dhar
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

Re: Setting up custom 404 page causes Issues

2013-06-21 Thread Arjun Dhar
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

Wicket Ajax and Session expiry

2012-09-03 Thread Arjun Dhar
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

Re: Wicket Ajax and Session expiry

2012-09-03 Thread Arjun Dhar
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

Re: Wicket Ajax and Session expiry

2012-09-03 Thread Arjun Dhar
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

Re: Single sign on (SSO) for two WicketApplication

2012-05-10 Thread Arjun Dhar
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

Re: Built with Wicket: showcases for Wicket applications

2012-04-13 Thread Arjun Dhar
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

Wicket in a containerless environment

2012-04-06 Thread Arjun Dhar
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

Securing Resource in Web Context

2012-03-05 Thread Arjun Dhar
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

Channel busy - postponing...

2012-03-05 Thread Arjun Dhar
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

Re: Channel busy - postponing...

2012-03-05 Thread Arjun Dhar
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.

Get the Wicket Session from HttpServletSession

2012-02-13 Thread Arjun Dhar
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

RE: Get the Wicket Session from HttpServletSession

2012-02-13 Thread Arjun Dhar
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! --

Re: wicket appl architecture

2012-01-19 Thread Arjun Dhar
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:

Re: wicket appl architecture

2012-01-18 Thread Arjun Dhar
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:

Repainting only newly-created repeater items via ajax

2011-12-12 Thread Arjun Dhar
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

Re: Repainting only newly-created repeater items via ajax

2011-12-12 Thread Arjun Dhar
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,

Re: Repainting only newly-created repeater items via ajax

2011-12-12 Thread Arjun Dhar
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

Re: An extensive RIA technology comparison matrix including Wicket

2011-10-26 Thread Arjun Dhar
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

SFTP Wicket

2011-10-25 Thread Arjun Dhar
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.

Re: SFTP Wicket

2011-10-25 Thread Arjun Dhar
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

Re: Drilling Application.getHomePage()

2011-10-21 Thread Arjun Dhar
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

Drilling Application.getHomePage()

2011-10-20 Thread Arjun Dhar
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:

HTML within the feedback panel message

2011-10-15 Thread Arjun Dhar
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

Re: Ajax : Modifying CallBackUrl in OnEvent()

2011-10-10 Thread Arjun Dhar
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.

Ajax : Modifying CallBackUrl in OnEvent()

2011-10-01 Thread Arjun Dhar
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

Feedback panel inherits parent panel feebdack?

2011-09-26 Thread Arjun Dhar
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

wicketAjaxGet Size limt

2011-09-25 Thread Arjun Dhar
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

Re: wicketAjaxGet Size limt

2011-09-25 Thread Arjun Dhar
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

Re: wicketAjaxGet Size limt

2011-09-25 Thread Arjun Dhar
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:

Re: wicketAjaxGet Size limt

2011-09-25 Thread Arjun Dhar
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

Re: wicketAjaxGet Size limt

2011-09-25 Thread Arjun Dhar
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:

Re: wicketAjaxGet Size limt

2011-09-25 Thread Arjun Dhar
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.

Re: wicketAjaxGet Size limt

2011-09-25 Thread Arjun Dhar
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,

How to update @SpringBean proxy?

2011-08-29 Thread Arjun Dhar
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

Re: How to update @SpringBean proxy?

2011-08-29 Thread Arjun Dhar
@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

Re: How to update @SpringBean proxy?

2011-08-29 Thread Arjun Dhar
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:

Downloader for files outside Web Context

2011-08-07 Thread Arjun Dhar
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

Re: Downloader for files outside Web Context

2011-08-07 Thread Arjun Dhar
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

Advanced Mounting Markup Location

2011-07-29 Thread Arjun Dhar
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 =

Re: Advanced Mounting Markup Location

2011-07-29 Thread Arjun Dhar
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

Re: RFC: Ten things every Wicket programmer must know?

2011-07-28 Thread Arjun Dhar
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

Technical Limit on Mount Points

2011-07-27 Thread Arjun Dhar
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

Re: Technical Limit on Mount Points

2011-07-27 Thread Arjun Dhar
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

RE: using saml2 for authentication

2011-07-25 Thread Arjun Dhar
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

Re: E-commerce site built on Wicket

2011-07-21 Thread Arjun Dhar
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:

Pre Publish Wicket Pages

2011-07-20 Thread Arjun Dhar
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

Re: idiosyncratic interfaces such as IModel, IVisitor

2011-06-21 Thread Arjun Dhar
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

How to Obfuscate content?

2011-06-13 Thread Arjun Dhar
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

Re: How to Obfuscate content?

2011-06-13 Thread Arjun Dhar
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

Graceful Session Expiry

2011-06-09 Thread Arjun Dhar
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

Re: Graceful Session Expiry

2011-06-09 Thread Arjun Dhar
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.

Re: Graceful Session Expiry

2011-06-09 Thread Arjun Dhar
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:

Re: GridView for A-Symmetric tables - issues

2011-05-07 Thread Arjun Dhar
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

Re: Complex Grid with Wicket

2011-04-20 Thread Arjun Dhar
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

Re: Caching Streamed Images on browser

2011-04-08 Thread Arjun Dhar
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

Re: Caching Streamed Images on browser

2011-04-08 Thread Arjun Dhar
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

Caching Streamed Images on browser

2011-03-19 Thread Arjun Dhar
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

Externalizing Page Mounts Via Spring

2011-03-09 Thread Arjun Dhar
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

Re: Externalizing Page Mounts Via Spring

2011-03-09 Thread Arjun Dhar
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 :

Re: DropDown replacing text field

2011-03-05 Thread Arjun Dhar
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

Re: DropDown replacing text field

2011-03-05 Thread Arjun Dhar
(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

DropDown replacing text field

2011-03-04 Thread Arjun Dhar
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:

Dynamic Tag substitution

2011-02-17 Thread Arjun Dhar
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

Re: Dynamic Tag substitution

2011-02-17 Thread Arjun Dhar
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

Re: Best practice on i18n

2011-01-29 Thread Arjun Dhar
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

Wicket : Articles Blogs

2011-01-28 Thread Arjun Dhar
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

Re: Multipart issues in Wicket 1.4.15

2011-01-18 Thread Arjun Dhar
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

Re: Changing/Accessing name of ListItem in ListView

2011-01-15 Thread Arjun Dhar
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]

TextField Double type introduces commas

2011-01-15 Thread Arjun Dhar
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:

Re: TextField Double type introduces commas

2011-01-15 Thread Arjun Dhar
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.

  1   2   >