Re: Question on Links

2010-06-09 Thread Arjun Dhar
FYI I got a lot of help from http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/ nino martinez Blog -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Question-on-Links-tp2247045p2249923.html Sent from the Wicket - User mailing list

Re: gmail like file upload

2010-06-11 Thread arjun dhar
Check out: https://www.ibm.com/developerworks/web/library/wa-aj-dwr/ --- On Fri, 6/11/10, Martin Grigorov mcgreg...@e-card.bg wrote: From: Martin Grigorov mcgreg...@e-card.bg Subject: Re: gmail like file upload To: users@wicket.apache.org Date: Friday, June 11, 2010, 1:08 PM

Apache Roller - Blog integration

2010-06-19 Thread Arjun Dhar
Hi, not sure if I should post this in Apache Roller or Wicket; but is there any way to integrate Apache ROller and Wicket? ..are there any good blog engines with Wicket, or perhaps Some blog components within Wicket? Frankly I like ROllers feature set and I doubt wicket itself would have a full

How to override container markup package loaction?

2010-06-30 Thread Arjun Dhar
How does one override container markup package loaction? If I provide mysite.wicket.pages for my Java Wicket components, then the html markup must be in the same package. I want the HTML to live in html. So how can I override mysite.wicket.pages with html when wicket searches for components?

Re: How to override container markup package loaction?

2010-07-01 Thread Arjun Dhar
Hey Ernesto, so I tried that. Application.getResourceSettings().addResourceFolder(xxx) only works for resources. So if I have a (Page A) extends (Page B). Then only the markup of Page A comes; Wicket does not seem to respect Markup Inheritance etc. when adding as resource. My fear is that the

Re: How to override container markup package loaction?

2010-07-04 Thread Arjun Dhar
Ernest, Igor -- thanks! I had gone to that wiki earlier; I only focussed on the section that talked about Wicket 1.3 (which only allows to change location in Classpath) so I missed the point. I saw 1.2 and modified the code to pick up any file from the ServletContext; and it works with the code

Single inheritence in parts

2010-07-04 Thread Arjun Dhar
Hi, all the examples etc suggest that Single inheritence is possible but I cant break it up. The break up is essential when you want to merge common parts of your MARKUP with multiple specific parts of the Child page. Example: HTML HEADtitleBASE TEMPLATE / PARENT PAGE/title/HEAD BODY

Re: Single inheritence in parts

2010-07-06 Thread Arjun Dhar
cool ..something to look forward to (in response to other posts) FYI I tried panel it requires some code to be written, not very clean. (opposed pure markup based approach) On a last note; ..am confusedmultiple inheritance generally means MANY PARENT, ONE CHILD (child inherits from multiple

Re: wicket in a mobile application.

2010-07-13 Thread Arjun Dhar
Check out: http://www.thebuzzmedia.com/apache-wicket-powers-mobile-walmart-com/ Also, keep in mind Wicket is a server side component framework and like all such frameworks it produces HTML, BUT as you will read from the link that it allows you maintain consistent server-side code for components

Re: UI Layout

2010-07-14 Thread Arjun Dhar
Hi bro, so I need to change page layout markup file( since markup files will have my panels defines) 1. Use Inheritance: What I like about inheritance is you can template and further sub-template without a single line of Java (except for empty class files to represent the page ..I have a

Re: UI Layout

2010-07-14 Thread Arjun Dhar
ok, so you mention wicket:id as if its some constant thing. Conceptually a markup tahhed by wicket-id, is no less powerful than injecting a scriptlet or any dynamic script you inject via JSP, PHP. Its like a reference point/range. Who says that anything between that wicket:id condemns you to the

Re: Models and panel updates

2010-07-16 Thread Arjun Dhar
Help me understand this, An AjaxBased components send update events as they change! That means except for SAVE having to save the data in one ajax request you dont need the other fields being AJAX based. See onAfterRender() this is able to give you the updated value as it happens: public

How to autogenerate WebPage classes for static pages?

2010-07-22 Thread Arjun Dhar
Hi, a section of my website is static pages (template) but no need of injecting any components [I prefer getting as much dine through inheritance cleanly over Panels]. Each markup has to have a corresponding WebPage in wicket. I'm exploring the ASM library with CGLIB to auto generate classes

Re: How to autogenerate WebPage classes for static pages?

2010-07-23 Thread Arjun Dhar
Hi Martin, thanks. the tip was insightful. though am confused about one point. So the examples load resources via WebApplication. While your suggestion seems to point towards WebPage. As in the code below, I've inserted the MARKUP of the child page ..but then that is no inheritance. Is this

Re: Passing raw value to html

2010-07-26 Thread Arjun Dhar
My 2 cents : I think the problem is more of inserting javaScript into markup as key words perhaps ?! :) http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration : Dont forget to check the video out if you have the time

Re: Passing raw value to html

2010-07-26 Thread Arjun Dhar
Lots of dynamic stuff? If you have lots of dynamic stuff you can use a texttemplate to interpolate your variables with it works really smooth, heres an example: ... HashMap variables = new HashMap(); variables.put(alert, helloworld); TextTemplate textTemplate=new TextTemplate();

Re: Integrating Wicket with Dojo/Jquery/Dwr/Ext Js

2010-07-28 Thread Arjun Dhar
This is more a question than an opinion. Wicket is a View first framework, and also has the cleanest separation between Markups and Code that I have seen so far. I think What Scripting technology one uses should anyway never be tightly coupled with whats on the server. I keep seeing questions

Re: Closing of meta tags

2010-07-28 Thread Arjun Dhar
For some reason I'm getting what you want: titlePage 2/title !-- The following injected dynamically -- meta name=keywords content=This is picked from classpath:Page2.properties/ My wicket.version1.4.8/wicket.version -- View this message in

AutoLinkResolver WARNINGS

2010-08-20 Thread Arjun Dhar
Hi,I have my markups in another folder and am mounting static pages via a generic template (so I don't have to use a new class for every static page). The Static pages are in a Common template, that uses a common menu to navigate and uses wicket:link to get the correct link from Wicket. Works

Re: AutoLinkResolver WARNINGS

2010-08-22 Thread Arjun Dhar
Maybe related; but my real issue was different. So I was mounting pages on a different path. It seems wicket:link uses that AutoLinkResolver stuff and does not keep up with mount changes. So it was not able to resolve the links on my Markup due to the changed mount points resource locator

Re: Dynamically invoke a page object (Reflection?)

2010-09-01 Thread Arjun Dhar
Use setResponsePage(newPageClassName(params)); params depends on the Constructor of the WebPage class extension. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamically-invoke-a-page-object-Reflection-tp2402302p2403066.html Sent from the Wicket - User mailing

Intercept Wicket Parsing

2010-09-12 Thread Arjun Dhar
Hi, I want to understand how to intercept the Wicket markup Parser *in a clean way* I'm aware of org.apache.wicket.markup package. There is XMLPullParser, MarkupParser, Filter. I like the look of using Markup but surprisingly the WicketFilter directly uses XMLPullParser (looks more like a hack

Java in CMS arena,..wicket to lead the way?!

2010-09-15 Thread Arjun Dhar
Summary:: This conversation is about Java in the CMS space, comparison to PHP and is there a future to reduce turn around time with Java. Are we as a community too elitist to be stuck on masturbating on frameworks rather than solutions that affect direct outcome? ..and then technically I've

Re: Java in CMS arena,..wicket to lead the way?!

2010-09-16 Thread Arjun Dhar
Earlier I had written it off, but on you suggestion I am taking a fresh look at it. It seems well supported and documented. Am studying it... will get back on my findings. thanks -- View this message in context:

Re: Java in CMS arena,..wicket to lead the way?!

2010-09-17 Thread Arjun Dhar
@Brian - but there's a lot of fragmented development and not a lot of investment going back in. --- yes, this is what I sense. I'm not even aware of the Brix community unlike Wicket which is more active. If you see the Brix architecture page i put some comments but Looks pretty dead which is

Re: Java in CMS arena,..wicket to lead the way?!

2010-09-17 Thread Arjun Dhar
@Richard Apache Roller is a Java based blogging system, if you're looking for something. --- I've used Roller and like it a lot functionally. But am circumspect of its integration capabilities with other CMS, and also integration of its Admin module to be a plugin-component into another CMS

Re: Wicket and Spring Security question

2010-09-22 Thread Arjun Dhar
I have not gone too deep but @ a superficial level, following observations: 1. I dont see a ClassNotFound Exception. The Exception is NOT saying it Cannot find it in your Classpath! spring-security-web classes are not available dot not mean ClassNotFound. Unfortunately I dont know what it

Re: instantiate panels in a spring bean

2010-10-01 Thread Arjun Dhar
Hey dont mean to arge here but Why not? You can get beans in PROTOTYPE scope (does not have to be re-usable; this aspect of Spring is all about IOC) and leverage IOC to inject panels rather than hard wiring them in the code. I like the idea. fachhoch can you please paste the code, I'd

Re: instantiate panels in a spring bean

2010-10-01 Thread Arjun Dhar
...lol I just realized both you guys have over 200 posts. haha ..well i'd still like to have a crack at the problem :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/instantiate-panels-in-a-spring-bean-tp2946859p2952156.html Sent from the Users forum mailing list

Re: instantiate panels in a spring bean

2010-10-02 Thread Arjun Dhar
https://cwiki.apache.org/WICKET/spring.html ..As per my understanding @SpringBean is to inject context services (like DAO's etc ..assumed to be SINGLETON's) and puts them in a ThreadLocal to be available to Wicket Components. Its a convenient way to provide Context to all Wicket components. The

Re: instantiate panels in a spring bean

2010-10-02 Thread Arjun Dhar
On point i'd like to clarify myself; so @SpringBean is explained with Services in mind, but yes there is no reason for it to represent PROTOTYPE beans. But thats the whole point, thing conversation is not about @SpringBean VS PROTITYPE. @SpringBean can be using to fetch a bean from Spring and put

Re: instantiate panels in a spring bean

2010-10-02 Thread Arjun Dhar
The point is that it's silly to use the init() --- I agree! I never mentioned init() :) I think we were on different pages. I thought you were asking him Why would you want to use spring to inject components ..you had a very short reply to the intiial question :) . I missed the point that it

Re: instantiate panels in a spring bean

2010-10-02 Thread Arjun Dhar
I think there has been a huge ball of confusion here created on my part due to certain concepts i was focused on. The reference to ThreadLocal originated from here: https://cwiki.apache.org/WICKET/spring.html Application Object Approach ... Wicket allows you to provide a custom factory for

Re: instantiate panels in a spring bean

2010-10-03 Thread Arjun Dhar
May or may not be consequential, why is myInit not public? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/instantiate-panels-in-a-spring-bean-tp2946859p2953812.html Sent from the Users forum mailing list archive at Nabble.com.

GridView for A-Symmetric tables - issues

2010-10-04 Thread Arjun Dhar
Hi, I'm playing with the following table/grid structure: +--+-+-+ | | | | | +-+-+ | | | | +--+-+-+ || | | | +--+-+-+ ..where the top-left cell spans 2 rows 2 columns. The

Re: GridView for A-Symmetric tables - issues

2010-10-08 Thread Arjun Dhar
Hi, I've solved this problem by writing a new implementation of DataViewBase. GridView did not seem appropriate to simply extend due to a few reasons. (It assumes Symmetry for the most in its code). This Code can merge areas within the GRID and extract data from the data model accordingly and

Dunamic neted List Views

2010-10-10 Thread Arjun Dhar
Hi, I just developed a Menu; that is nested many levels. At the point of rendering in my code I'm slightly confused. ok, Let the code talk: (The following code assumes a domain model with MenuItemState which is hiararchial has children. And each child node is a MenuItemState. The child can

Re: Dunamic neted List Views

2010-10-10 Thread Arjun Dhar
!...@#$ The subject was meant to be Dynamic Nested List Views! Apologies -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dunamic-neted-List-Views-tp2970644p2970646.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Dunamic neted List Views

2010-10-11 Thread Arjun Dhar
ok as usual I bet myself to it, here is the answer : Basically use a ListView over a ListView! @Override public void renderMenu() { IModelMenuItemState modelState = getState(); final MenuItemState rootState = modelState.getObject();

Re: Link onclick setMarkupId doesn't work

2010-10-17 Thread Arjun Dhar
I was about to complain about the same thing. I also use SimpleAttributeModifier to get around the issue. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-onclick-setMarkupId-doesn-t-work-tp2998815p2998836.html Sent from the Users forum mailing list archive at

Re: Link onclick setMarkupId doesn't work

2010-10-17 Thread Arjun Dhar
BTW before I get into a ball of mis understandings; I'm just complaining about setMarkupId here in general :) It works with MarkupContainers like with div tag etc. But not with td, li etc. id is an attribute that can represent any DOM element to my mind, hence the complaint. -- View this message

Re: Using JavaScript to check a field by id, when Wicket will change the id

2010-10-20 Thread Arjun Dhar
In my opinion; wicket doesn't mess with the id attribute till you tell it to. There are multiple means to change the id. but by default the id is not touched. Note: wicket:id is not the same as id of the HTML DOM element. So if you define an id in the markup it should stick. As per your quote::

Re: Using JavaScript to check a field by id, when Wicket will change the id

2010-10-20 Thread Arjun Dhar
@Jeremy : my bad then. I've never seen the id's come on their own unless I do setmarkupId(true) or add it by SimpleAttributeModifier() or tag.put(id, ...) in onComponent(Tag). I guess i need to check it out again. thanks. -- View this message in context:

Re: GridView for A-Symmetric tables - issues

2010-10-22 Thread Arjun Dhar
that requires visibility of the variables this too becomes unfit for consumption. * * @author Arjun Dhar * * @param T */ public abstract class AssymetricGridViewT extends DataViewBaseT { /** * The Grid here is not a regular Symmetrical Grid; hence overriding * certain

Resource caching, Deployment Mode Re-visited

2010-11-04 Thread Arjun Dhar
Hi, I'm trying to understand wickets ability to cache and how to optimize of the deployment mode etc. I wanna keep it in production (DEPLOYMENT MODE). However, when a resource is uploaded (like an image or a CSS) I want the system to allow me to refresh that particular resource. Some of the

Re: Resource caching, Deployment Mode Re-visited

2010-11-07 Thread Arjun Dhar
My resources are images. To be accurate I define them by adding a Custom WebComponent in my WicketCode: http://developme.wordpress.com/2010/05/25/wicket-image-tag-linking-to-an-external-resource/ (The blog suggests the use of it for an external component. My images are a mixed bag ..some local

Re: Need Wicket Book

2010-11-11 Thread Arjun Dhar
I've been playing with Wicket for a while now and i think in certain areas (specially internal architecture) i need to still connect the dots at a larger scale so was researching books. Wicket In Action Enjoying Web Development with Wicket seem to emerge. Wicket In Action -- Seems more

Whats the best way to prevent handle 404?

2010-11-22 Thread Arjun Dhar
Hi, Q1) Using mount paths can we prevent 404 by using RegEx? Is there is a better way? Q2) Instead of preventing 404, if we go reactive , how can we trap it? (I was unsuccessful playing with WebRequestCycle) Q3) Part of my application is User facing, part Admin. For exceptions depending on

Re: Whats the best way to prevent handle 404?

2010-11-22 Thread Arjun Dhar
I think Q1) Q2) could have been answered by: http://apache-wicket.1842946.n4.nabble.com/How-to-catch-all-404s-Page-Not-Found-and-reroute-to-a-Page-or-strategy-td1862982.html However the link provided by the replier is not working :( Somewhere I saw the use of RegEx in mount Paths but I cant

Re: How to catch all 404s (Page Not Found) and reroute to a Page or strategy

2010-11-22 Thread Arjun Dhar
Hi that link seems to be deleted. Can you post it again if it aint too much trouble. thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-catch-all-404s-Page-Not-Found-and-reroute-to-a-Page-or-strategy-tp1862982p3054834.html Sent from the Users forum mailing

setVersioned setStatelessHint

2010-11-24 Thread Arjun Dhar
Hi, if I have BookMarkable pages and they are pretty much stateless, does it buy me much to do: setStatelessHint(false); for every component? imo Adds a bit of verbosity to the code; though must be a reason why it exists. Please advice best practice -- View this message in context:

Ajax Panel Update

2010-11-24 Thread Arjun Dhar
Hi, I have a Tree (representing a product line) and an adjacent Panel representing Product listing within a category/line. On click of the Link the Panel updates. I have the following code, all works except am not sure how to go about refreshing the Panel with updated DataModel: ... In

Re: Ajax Panel Update

2010-11-24 Thread Arjun Dhar
Thanks Jc, I employed that. In addition, the model was inserting a DataTable that was fetching its data from a DataProvider. So it was necessary to refresh not only the model but the DataTable; so I separated the initialization of the DataTable as follows: /* * Separating the

java.lang.NoClassDefFoundError: org/apache/wicket/util/lang/WicketObjects

2010-11-25 Thread Arjun Dhar
Hi, I'm on wicket (core extension) 1.4.12 (Wicket Spring IOC 1.5-M1). On the following scenario I get the error trace : java.lang.NoClassDefFoundError: org/apache/wicket/util/lang/WicketObjects at org.apache.wicket.spring.SpringBeanLocator.getBeanType(SpringBeanLocator.java:222)

Re: java.lang.NoClassDefFoundError: org/apache/wicket/util/lang/WicketObjects

2010-11-25 Thread Arjun Dhar
Oh! ..Coz I'm silly to have assumed that the Spring+IOC versioning was somehow independent of Wicket Core+Extensions and until now it never bit me. Thanks for pointing it out :) -- View this message in context:

onSubmit sequence call with AjaxFormSubmitBehavior

2010-11-26 Thread Arjun Dhar
On reading some material, it explains that when a Button is within a Form, the Buttons onSubmit should be called before the Forms onSubmit. (if not configured otherwise). Which makes perfect sense. However; when I add AjaxButton to the Form, and have it within the Form. I see the order of

mount QueryStringUrlCodingStrategy issue when coming via Apache

2010-12-02 Thread Arjun Dhar
Hi, I'm getting a wierd issue. Have this code: mount(new QueryStringUrlCodingStrategy(admin/login.html, login.class)); So there is an Admin module for our Web App. All Login Admin pages are distinctly relative to admin/. On tomcat this works fine, but when the request comes via Apache I get a

Re: mount QueryStringUrlCodingStrategy issue when coming via Apache

2010-12-04 Thread Arjun Dhar
The issue seemed to be only on my Host Providers Servers. On my local APache - tomcat setup I did not get this issue. However, because its the Hosting that counts and I do not have much access into their environment, i changed the URL structure from site/admin/login to site/admin.login and that

FeedbackPanel messages in a Loop (Dynamic Form)

2011-01-08 Thread Arjun Dhar
Hi, I have a form where the number of fields are not fixed so have a Loop where i add the fields. All these are mandatory. In a loop, your field id is keeps the same AFAIK. So when there is a validation error the standard message mentions the component id ..which isnt good enough in a loop, like

Re: FeedbackPanel messages in a Loop (Dynamic Form)

2011-01-08 Thread Arjun Dhar
Beautiful; it worked. Thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-messages-in-a-Loop-Dynamic-Form-tp3204893p3205636.html Sent from the Users forum mailing list archive at Nabble.com.

Re: FeedbackPanel messages in a Loop (Dynamic Form)

2011-01-08 Thread Arjun Dhar
There seems to be another problem. On error the form values are not retained. The same form also has some normal fields (outside the loop). The notmal form fields that are NOT in a loop retain their values (on re-load) I even removed my own NameableTextField and am using standard simple

Re: FeedbackPanel messages in a Loop (Dynamic Form)

2011-01-08 Thread Arjun Dhar
DOH! (As Mr. Homer Simpson would say) I forgot about ListView and reuse Items!! hence by adding this to my loops it worked out: @Override public boolean getReuseItems() { return true; } --

Re: GridView for A-Symmetric tables - issues

2011-01-12 Thread Arjun Dhar
Sorry for such a long delay on creating a JIRA, was trying to earn a living :) https://issues.apache.org/jira/browse/WICKET-3327 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/GridView-for-A-Symmetric-tables-issues-tp2953859p3215230.html Sent from the Users forum

Re: What already redirecting error?

2011-01-13 Thread Arjun Dhar
Hi, I have a very very Dynamic Form. In the public void onSubmit() {...}, due to some Change in a Drop Down the entire Form changes. To keep it simple I just decided to Re-Load the entire page. but looks like from onSumbit() you cannot call getRequestCycle().redirectTo(...) or you get the

Re: What already redirecting error?

2011-01-13 Thread Arjun Dhar
DOH! the answer to Q1) was RestartResponseException. As mentioned in the above post Am still curious to know the answer to Q2) if someone already knows! thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-already-redirecting-error-tp1890181p3216501.html Sent

Re: multiple feedback panels in same page

2011-01-14 Thread Arjun Dhar
()} * @author Arjun Dhar * * @param T */ public class MarkErrorFieldBehaviorT extends AbstractBehavior { private static final long serialVersionUID = 1L; @SuppressWarnings(unchecked) @Override public void onRendered(Component component) { FormComponentT fc

Changing/Accessing name of ListItem in ListView

2011-01-14 Thread Arjun Dhar
Hi, when using a ListView, the name uses the following format to Render. loop name:index:field id In onSubmit(..); this is fine if you know the order of the list. However say if the primary data Structure is a hashmap then its more convenient/elegant to retrieve by Name. I can change the name

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.

Re: Changing/Accessing name of ListItem in ListView

2011-01-15 Thread Arjun Dhar
Your bet was right, it was onSubmit()! I understand better now. On a funny note; I can imagine Igor exasperated ...This guys on a different tangent... :) Don't worry - it's probably the most common mistake Wicket newbs make! It's definitely the thing I stress understanding the most in my

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

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: 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

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

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:

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

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 :

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

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

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: 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

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:

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

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

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: 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:

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

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: 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

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

  1   2   >