Re: Empty ListChoice

2007-10-12 Thread Kent Tong
;Wicket way," as it seems like it should be > easier than this. Does ListChoice *intentionally* not allow for an > empty list? I expected to find something like > "allowEmpty(boolean)"...but no dice. > Have you tried my code? The list has no selectable entry. ---

Re: Empty ListChoice

2007-10-12 Thread Kent Tong
ted CharSequence getDefaultChoice(Object selected) { return ""; } }; - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/Empty-ListChoice-tf4604759.html#a13172939 Sen

Re: Validating a NonZero Values and Validators Project in General

2007-10-12 Thread Kent Tong
Gwyn suggested. If you insist on using a pre-built validator, try PatternValidator("[+|-]?(\\d)*[1-9](\\d)*") but then the model has to be a String, not a number. - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in contex

Re: Lazy loading pageable listview

2007-10-09 Thread Kent Tong
} return items; } }; DefaultDataTable t = new DefaultDataTable("t", columns, dataProvider, 3); add(t); } } - -- Kent Tong Wicket tutorials freely available at http://www.agileski

Re: Decouple parts of a form

2007-10-09 Thread Kent Tong
RequiredTextField t = new RequiredTextField("captchaInput", new Model()); t.add(new CaptchaValidator()); add(t); add(new Image("captchaImage", ...)); } } - -- Kent Tong Wicket tutorials freely available

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-08 Thread Kent Tong
d and redisplayed to the user. By default it is clear only when the form is submitted and validation is passed successfully. - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/CompoundPropertyModel-

Re: WicketNotSerializableException !

2007-10-07 Thread Kent Tong
chickabee wrote: > > Any idea why I am getting : > > org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: > Unable to serialize class: sun.font.AttributeMap > This is fixed in beta 4 (https://issues.apache.org/jira/browse/WICKET-819). -- Kent Ton

Re: Ajax dropdownchoice doesn't work after submit

2007-10-05 Thread Kent Tong
The ParFiltro class is a utility class wich contains a pair property-value > used in the page to filter data. > That's because I need to invoke the page.render() method. > I'm doing something wrong? There is another way to do it? > Am I missing something here? You should call:

Re: hot redeploy of java classes

2007-10-05 Thread Kent Tong
Artur W. wrote: > > I tried to do the same in tomcat 5.5. I added autoDeploy="true" to the > but it doesn't > work. Anyone has any idea how to force tomcat to do that? > You need reloadable in , not autoDeploy. There is step-by-step in my free tutorial (see

Re: Form.onComponentTagBody()

2007-10-05 Thread Kent Tong
at you use CSS to do the layout. See http://www.quirksmode.org/css/forms.html for a simple example. -- Kent Tong Free tutorials on Wicket at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/Form.onComponentTagBody%28%29-tf4575419.html#a13070025 Sent fr

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-05 Thread Kent Tong
IS WHAT YOU NEED target.addComponent(recommendationPanel); } }); -- Kent Tong Free tutorials on Wicket at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/CompoundPropertyModel-stops-working-when-form-validation-fails

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-05 Thread Kent Tong
Fabio Fioretti wrote: > > The ListChoice uses the same AbstractModel on which the panel inside > the form builds its CompoundPropertyModel (see my previous posts): > when user's selection changes, the AbstractModel correctly replaces > its object with the newly selected instance and the form get

Re: Page.detachModels() not working like it used to

2007-10-05 Thread Kent Tong
Dan Syrstad-2 wrote: > > Your page code is almost exactly the same as mine. However, your HTML does > not look correct - it has no tag with a wicket:id in it. So maybe your > component never rendered. > No, your mail client has stripped the code. Let me show you the code again:

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-05 Thread Kent Tong
ice recommendation = new ListChoice("recommendation", ...) { protected boolean wantOnSelectionChangedNotifications() { return true; } protected void onSelectionChanged(Object newSelection) { recommendationForm.cl

Re: Page.detachModels() not working like it used to

2007-10-05 Thread Kent Tong
testing if the model is now detached. That's it. By checking the output you can be sure that the model was once attached. -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/Page.detachModels%28%29-not-worki

Re: Page.detachModels() not working like it used to

2007-10-02 Thread Kent Tong
Dan Syrstad-2 wrote: > > Nope. I tried detach() too and that doesn't work - the test still fails. I > had to write my own method which was basically was a copy of the old > Page.detachModels() code. > > The thing is that In beta3, Page now just acts like a Component as far as > detachModels()

Re: hide/show components - role based

2007-10-01 Thread Kent Tong
Juan Gabriel Arias wrote: > > Im trying to dinamically show or hide html components, like links, > buttons, > etc. > something like: public class MyPage { public MyPage() { Link myLink = ...; MetaDataRoleAuthorizationStrategy.authorize(myLink, RENDER, "role1,role2"); } } -- Vi

Re: Page.detachModels() not working like it used to

2007-10-01 Thread Kent Tong
Dan Syrstad-2 wrote: > > This has broken a JUnit test that was testing a detachable model using > WicketTester. The same test passes in Wicket 1.2.6. Is there something > different I should be doing in 1.3? > If it was calling detach() instead of detachModels(), then it should continue to pass

Re: How do I force evaluate in a Wizard steps condition to run?

2007-10-01 Thread Kent Tong
lizz wrote: > > I really dont want to add more steps that the ones I already have. for the > case when step c is no longer valid I woild like the next button to be > disabled and the finish button to be enabled. Isn't there a method for > updating the button panel? > As I said, you can enable

Re: How do I force evaluate in a Wizard steps condition to run?

2007-10-01 Thread Kent Tong
lizz wrote: > > I have three wizard steps A, B and C > In step B I have a drop down choice. Whether step c is valid or not > depends on the selection in the drop down choice in step B. > > Everytime the user changes the selection in the drop down choice the > wizard must be updated (the evaluat

Re: Wicket menu with submenu "dialog window"

2007-10-01 Thread Kent Tong
lizz wrote: > > Has anyone made a menu (with menu items and submenus) in wicket? I would > like a menu that looks more or less like the Swing JMenu. > > I saw a reference to > http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-extensions-menubar/ > but didn’t find that pro

Re: How do I force evaluate in a Wizard steps condition to run?

2007-09-30 Thread Kent Tong
lizz wrote: > > A parameter in my wizard step decides whether the next step is valid or > not. > The end user can change this parameter and I therefore need to be able to > reevaluate the next wizard steps when this is changed. I use ICondition > and I guess there is a way for me to force the e

Re: How do I change the label/text for the wizard buttons?

2007-09-30 Thread Kent Tong
lizz wrote: > > How do I change the label on the previous, next and finish buttons in the > wizard? > I would like to change the label of the FinishButton to "save". > In your .properties file, add: org.apache.wicket.extensions.wizard.next=Proceed org.apache.wicket.extensions.wizard.previous

Re: Reach into a component to change XML attribute

2007-09-30 Thread Kent Tong
Sam Hough wrote: > > Your still breaking my requirement that this behaviour is encapsulated > within MyFancyRepeatingView ;) I really do appreciate all your code and I > think I'm learning a lot even if I sound horribly ungrateful. I'm warming > to every child component having a special behaviou

Re: Reach into a component to change XML attribute

2007-09-29 Thread Kent Tong
Sam Hough wrote: > > I'm full of cold so probably being very thick but that doesn't work for > RepeatingView does it as it implies notification of objects being attached > to a parent :( It looks very clever but I'm not having one of those "god > that is so simple why didn't I think of that" mo

Re: RefreshingView example broken

2007-09-28 Thread Kent Tong
Nick Busey wrote: > > Hey, I'm trying to use a RefreshingView, but can't figure it out. On top > of that, the examples are broken: > http://wicketstuff.org/wicket13/repeater/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.RefreshingPage > http://wicketstuff.org/wicket13/repeate

Re: DataTable question

2007-09-28 Thread Kent Tong
cblehman wrote: > > It looks like they insert default classes "headers" "even" and "odd" > into the table header and rows, but I was wondering if there is an easy > way for me to either set a property or create a subclass so that I can > use my own class names rather than these defaults? > Try

Re: Reach into a component to change XML attribute

2007-09-28 Thread Kent Tong
Sam Hough wrote: > > In my ignorance it seems tough to make that work the second time if the > list has changed. It is also less pretty as the only extension points I > have are renderIterator and renderChild. I can think of nasty hacks like > using IdentityHashMap to hold onto Components I've a

Re: substitute same value in several places

2007-09-28 Thread Kent Tong
Peter Dotchev wrote: > > I'd like to use the same value in several places of a page, e.g. two > labels with same content. > Let's say I want to substitute the same property using > CompoundPropertyModel. > Try: public class Home extends WebPage { private String l1 = "abc"; pu

Re: Can't access Javascript/CSS when in servletMode

2007-09-26 Thread Kent Tong
Adam Koch wrote: > > It is mapped to an app and not to the root. The directories I listed > are in the war file, but I tried to access them with > http://localhost/myapp/ ... > Then I'd suggest you: 1) deploy your app in Tomcat to see if it works. 2) file a jira issue and upload a bare minima

Re: Need combo to determine action but validation fails

2007-09-25 Thread Kent Tong
Francisco Diaz Trepat - gmail wrote: > > What it is happening is that because of some fields are invalid (Empty) I > cannot get to the selected option of the DropDownChoice, and by that > change > part of the form. > Try: private void showHideDetailsOnForm(AjaxRequestTarget target) {

Re: Ajax Problem on Page with IFRAME

2007-09-25 Thread Kent Tong
SantiagoA wrote: > > I have a mainpage with some inputfields with ajax in, a submitbutton and a > TabbePanel with three panels. > The panels are for output only. > one of the panels holds an Iframe. > > But if the panel with the Iframe is active, means the Tab for the panel > was clicked, none

Re: Ajax Problem on Page with IFRAME

2007-09-24 Thread Kent Tong
SantiagoA wrote: > > Sorry, doesn´t work for me either. > > The Problem is, that the refreshing in the "main"-page does not work, if > the particular Panel is active. > The inputs and the ajax are nested in the main page, the panel shows a > "readonly" Iframe with no inputs. > Sorry that I do

Re: Label associated with an open/close tag

2007-09-24 Thread Kent Tong
Gwyn wrote: > > Please raise an issue - https://issues.apache.org/jira/browse/WICKET > Feel free to have a go at a patch, as that'll help it's chances of > getting done! > Done (https://issues.apache.org/jira/browse/WICKET-1004). No time to make a patch though... -- View this message in conte

Label associated with an open/close tag

2007-09-23 Thread Kent Tong
Hi, I think this is one of the most common gotcha's in Wicket: a Label associated with an open/close tag like will silently output nothing. As I really can't think of a use case when this behavior is the desired behavior (wanting the Label to output nothing?), I'd suggest that either it change

Re: LinkTree lazy loading possible?

2007-09-22 Thread Kent Tong
pixotec wrote: > > I want to use LinkTree to represent a very very large hierarchy (the > loading of the whole thing is expensive...). > Is there an AJAX way of loading the children of a node just when clicking > on the "plus-icon" for expanding? > You may try my code below which seems to work

Re: Ajax Problem on Page with IFRAME

2007-09-22 Thread Kent Tong
Martijn Dashorst wrote: > > I think you need to resend again, this time escaping the markup. It > seems like nabble have changed something in their interface, as this > is a recurring theme lately. > No problem. Home: public class Home extends WebPage { public Home() {

Re: ExternalLink documentation enhancement

2007-09-22 Thread Kent Tong
Chris Colman wrote: > > I would have thought that an external link without any protocol prefix > should always default to an absolute link to an http:// page and not a > relative link from the current page. Being an external link, by > definition, it could never be a relative link from the curre

Re: Howto handle exceptions?

2007-09-22 Thread Kent Tong
Newgro wrote: > > is there a wicket way for handling exceptions? I call my beans from my > controller which manages the wicket-view (Panel, Page ...). Some > exceptions i > want to handle in the controller. But sometimes there are NPEs or IAEs. I > would like to send them all to an error page

Re: Can't access Javascript/CSS when in servletMode

2007-09-21 Thread Kent Tong
Adam Koch wrote: > > In fact, I couldn't get the JS/CSS in any way when using the servlet. I > tried putting the JS in my app.war in these directories: > / (root) > /classes/com/.../someJS.js > /WEB-INF/classes/com/.../someJS.js (same directory as Class and html) > Are you mapping the Wicket s

Re: Custom AjaxFormSubmitBehavior

2007-09-21 Thread Kent Tong
NateBot2000 wrote: > > I created an extension of AjaxSubmitLink that accepts a static html form > id string as an argument (AjaxFormSubmitBehavior forces setOutputMarkupId > on the Form by default). In so doing, I extended > AjaxFormSubmitBehavior... and then I add this custom behavior to my cu

Re: Versioning Problems With DataTable, Spring Hibernate

2007-09-21 Thread Kent Tong
carloc wrote: > > public CCTIDetachableModel extends Loadable DetachableModel { > > private String id; > private Integer version; > private Dao dao; > > public Object load() { > MyObject myobj = dao.get(id); > if (version == null) { > version = myobj.getVersion(); > } > e

Re: Ajax Problem on Page with IFRAME

2007-09-21 Thread Kent Tong
SantiagoA wrote: > > One of them has an IFrame. > If this TabbedPanel is active, then the onUpdate-Methode of the > InputFields won´t be reached. > Is one of the TabbedPanels without an IFrame active, everything works > fine. > This happens that way for IE and Firefox. > It works fine for me.

Re: CheckGroup form submission bug

2007-09-21 Thread Kent Tong
Nick Busey wrote: > > So I've got what appears to be a very strange bug. I have a CheckGroup > with a ListView of Checks among other things. Everything seems to work > fine if you render the form and submit it without any errors the first > time. However, if you hit any errors (like not selectin

Re: How to add RadioGroup column to DataTable?

2007-09-21 Thread Kent Tong
igor.vaynberg wrote: > > heh, "there is something wrong" doesnt really give me any context to help > you :) > > i would guess you need to put the radiogroup around the entire datatable. > At least make sure there is a form component enclosing the RadioGroup. -- View this message in context

Re: Setting focus to a TextField

2007-09-21 Thread Kent Tong
Doug Leeper wrote: > > I know this is probably one of the most trivial things to do...but I am > stumped. No example that I found on the Wicket example site has shown > this. I know that AjaxRequestTarget#focusComponent plays a part in this > but not sure how. Could someone post a quick code

Re: Testing wicket 1.3

2007-09-18 Thread Kent Tong
Nino.Martinez wrote: > > I was wondering how I should be testing with wicket. I've created the > bbcodecomponent, I have a bbcodeLabel. And I would like to write a test > for that. I can see that I can't use the assertLabel as that just gets > modelObjectToString, in the bbcodeLabel some for

Re: Question about use Palette with DropDownChoice

2007-09-17 Thread Kent Tong
Yes,sir. I have run the code more three times before. Maybe it's because I run the code with wicket 1.2.6 and wicket-extensions-1.2.6 and jdk 1.4.12. Really I don't know what happen! Thank's your help again. Thanks! Then try using 1.3 beta3. -- View this message in context: http://www.nabble.

Re: Question about use Palette with DropDownChoice

2007-09-17 Thread Kent Tong
Helo! Kent Thanks for your help. But I still have the same question. That's if I choice A with select A1 to selectedList and then choice B with selected nothing to selectedList. It's ok when I choice A again and see the A1 at selectedList. But if I choice A with select A1 to selectedList and th

Re: Question about use Palette with DropDownChoice

2007-09-17 Thread Kent Tong
JohnSmith333 wrote: > > I have use a Palette with DropDownChoice. I want to change the > DropDownChoice's selected value and then update the Palette's lists. And > when I click the Palette's value ,I hope to save the change result. > But it's not work normally. Could anyone kind to help me? Tha

Re: compressing resources which are not in the classpath

2007-09-17 Thread Kent Tong
Andrew Klochkov wrote: > > Wow, Kent, thanks a lot for the code!! > > I wonder shouldn't something like this be in the framework core? > I simply adapted the code from the CompressedPackageResource. As reusable components should have their resources bundled with them in the classpath, Compr

Re: Question With Detachable Models

2007-09-16 Thread Kent Tong
Kent Tong wrote: > > Yeah, it is in there because it hasn't been serialized and deserialized. > If your code was like: public class QueryDetachableModel extends LoadableDetachableModel { public QueryDetachableModel(Object instance) {

Re: Number of available parameters in IndexedParamUrlCodingStrategy

2007-09-16 Thread Kent Tong
james yong wrote: > > I am using IndexedParamUrlCodingStrategy. Is there is a good way to check > the number of available parameters? Currently i have to use > getString("0"), getString("1") etc. to check for null before I arrived at > the size of the available parameters. > Have you tried:

Re: Question With Detachable Models

2007-09-16 Thread Kent Tong
carloc wrote: > > Somehow, it seems that transient objects are stored in the session. > WHen I try to look at the session in eclipse's debug mode, > I can actually see my User object in there even though I marked as > transient. > Yeah, it is in there because it hasn't been serialized and des

Re: Question With Detachable Models

2007-09-15 Thread Kent Tong
Jonathan Locke wrote: > > Your QueryDetachableModel will break under clustering. The transient > "instance" Object will become null when the container deserializes it and > your load method will be unable to reload the object. > > If you're using these QueryDetachableModels, yes, the object

Re: wicket doesn't show its debugging?

2007-09-15 Thread Kent Tong
Potje rode kool wrote: > > I used the log config files from the wicket example that comes with wicket > (apache-wicket-1.3.0-beta3) and set it to debug. > > Any idea what I am missing to see the debugging of Wicket for the > org.apache.wicket.util.resource package? > Are you sure you're using

Re: compressing resources which are not in the classpath

2007-09-15 Thread Kent Tong
Andrew Klochkov wrote: > > Hi! > > How to compress resources (css, java scripts) which are lying not in > the classpath but in /css and /js in the webapp context folder? How can > I create a CompressedResourceReference to such a resource? > Try: public class MyApp extends WebApplication

Re: Wicket Web Beans 1.0-rc1 Released

2007-09-12 Thread Kent Tong
Hi Dan, It looks very powerful! BTW, why chose to use a config file (beanprops) instead of Java code? I think doing in Java for everything other than the standard web stuff (HTML/CSS/js) is a basic principle of Wicket. -- View this message in context: http://www.nabble.com/Re%3A-Wicket-Web-Be

Re: How to handle these nested tags

2007-09-10 Thread Kent Tong
Kevin Liu-4 wrote: > > Unable to find component with id 'userName' in [MarkupContainer > [Component id = _relative_path_prefix_14, page = > com.cmip.web.pages.TopFrame, path = > 3:topForm:_relative_path_prefix_13:_relative_path_prefix_14.WebMarkupContainer, > isVisible = true, isVersioned = tr

Re: Wicket Validation Error

2007-09-08 Thread Kent Tong
spencer.c wrote: > > StringValidator.maximum=${label} must be no longer than ${maximum} > characters. > sendForm.senderField.Required=You must provide your email address to > proceed. > Try: sendForm.senderField.StringValidator.maximum=${label} must be no longer than ${maximum} characters. se

Re: Adding an image in imageMap?

2007-09-08 Thread Kent Tong
bhupat parmar wrote: > > hi > i have to add an iamge in my ImageMap.RectangleLink which is not > predefined > THE IMAGE IS LOADED from database? > You can try using an AttributeModifier to modify the "src" attribute of the tag. You can subclass ResourceReference to load the image from your

Re: Using Include and placing pages under WEB-INF

2007-09-08 Thread Kent Tong
Thanks, yes, my solution was close to this, but I opted instead to subclass the Include class. I think the solution that you propose below may cause wicket to create an absolute URL to the HTML files under the WEB-INF dir which will be inaccessible by the browser. /quote> No. The URL is never s

Re: Using Include and placing pages under WEB-INF

2007-09-08 Thread Kent Tong
Jason Mihalick wrote: > > Thank you for the suggestion. This looks like it ought to work fine for > exploded WARs, but it seems like it would be a problem when then app is > deployed in a WAR. Is there any way to do this that will work when the > app is deployed in a WAR archive? Or is there

Re: Two small questions

2007-09-08 Thread Kent Tong
Sebastiaan van Erk wrote: > > Ok, to answer my own question, it seems that ExternalLink does not have > the ability to be disabled like Link. > Looks like a bug to me. I'd suggest that you submit a JIRA issue at http://issues.apache.org/jira/browse/WICKET -- View this message in context: h

Re: How to force a delete (from disk) of the session from the session store?

2007-09-08 Thread Kent Tong
Chris Lintz wrote: > > Hi, > When a user logouts of the site, i want to kill the session and have it be > removed from disk immediately. I have extended WebSession properly, but > no methods on the WebSession class seem to do the trick for me. > > Is there a way to to trigger the removal of t

Re: AjaxRequestTarget null... in onClick of AjaxFallbackLink

2007-09-08 Thread Kent Tong
John Carlson-5 wrote: > > I get the following error output in the console when I click on the link > on the actual page... > > INFO - uestTargetResolverStrategy - component not enabled or visible, > redirecting to calling page, component: null > It probably means the your container which co

Re: Using Include and placing pages under WEB-INF

2007-09-08 Thread Kent Tong
Jason Mihalick wrote: > > However, if I try to move my pages under WEB-INF, wicket has a problem > loading resources that are bound via the > org.apache.wicket.markup.html.include.Include class. In my case, I have > several static pages that I want to load dynamically which are located in > my

Re: Calling all translators - UrlValidator translation

2007-09-08 Thread Kent Tong
Alastair Maw-2 wrote: > > The English in question is: > '${input}' is not a valid URL. > The Traditional Chinese (zh_TW) version is: UrlValidator='${input}'\u4e0d\u662f\u4e00\u500b\u5408\u6cd5\u7684URL\u3002 The Simplified Chinese (zh_CN) version is: UrlValidator='${input}'\u4e0d\u662f\u4e

Re: CompressedResourceReference: cannot serve static ".html"-files but ".htm"-files [SOLVED but needs JAVADOC comments]

2007-09-08 Thread Kent Tong
pixotec wrote: > > YOU GUESS WHAT?!! > I JUST RENAMED THE FILE TO "dialogTable.htm" AND NOW IT IS WORKING!! > it is the fact of not being able to serve "html"-files! > > I think this fact should be documented in the JAVADOC of the > Resource-classes! > Just upgrade to the latest v1.3 beta and

Re: AjaxFallbackLink inside ListView

2007-09-06 Thread Kent Tong
pokkie wrote: > > Worked like a charm, thanks Kent. > > You the same Kent Tong that wrote a online Tapestry book? > Yep. -- View this message in context: http://www.nabble.com/AjaxFallbackLink-inside-ListView-tf4389622.html#a12534270 Sent from the Wicket - User mailing

Re: AjaxFallbackLink inside ListView

2007-09-06 Thread Kent Tong
pokkie wrote: > > My question is, how do I use this information to get the selected entity > which represents a row in my listView? > Try: public class Test extends WebPage { public Test() { List list = Arrays.asList(new String[] { "a", "b", "c" });

Re: FeedbackPanel + Link problem

2007-09-05 Thread Kent Tong
fero wrote: > > I found what was wrong but I can not explain it > > In markup of LabelLink I had > > > > > When I changed "button" tags to "a" it was working, but I want my links to > look like buttons > > > > > > I tried using a button and it works fine. Here is my co

Re: Append anchor to form redirect URL?

2007-09-04 Thread Kent Tong
Jeremy Thomerson-3 wrote: > > Is there a way to append an anchor to the URL generated for the > SubmitLink? > Try: form.add(new AttributeModifier("action", null) { protected String newValue(String currentValue, St

Re: Re[2]: Alternative to Wicket data binding

2007-08-28 Thread Kent Tong
igor.vaynberg wrote: > > yeah, but you are forgetting that you will also need the compound variant, > blah blah. before you know it you have replicated a bunch of the > hierarchy. > like i said, lets have a vote, propose as many variants of this as you > want > and we can see where it goes/what

Re: Re[2]: Alternative to Wicket data binding

2007-08-28 Thread Kent Tong
igor.vaynberg wrote: > > cmon, there are plenty of things you can abuse in wicket, or any other > framework. that is just the nature of the beast. as framework developers > we > put out features and hope that our users know how to use them responsibly. > we cannot continuously cater to newbie u

Re: Re[2]: Alternative to Wicket data binding

2007-08-28 Thread Kent Tong
igor.vaynberg wrote: > > i really dont think this is breaking encapsulation. i will concede that > there is one case where it can break encapsulation and that is when you > start out with what is publically accessible and then later you change > your > mind and make it completely private, but fo

Re: Caching the context path

2007-08-16 Thread Kent Tong
David Leangen leangen.net> writes: > Well... the end goal is to use the URL as the controlling input for the > branding of my application. So I have a BrandingService with something like: > > Branding getBranding( String url ); Have you considered using mod_rewrite (in Apache) to convert the

Re: resource reference vs resource

2007-08-08 Thread Kent Tong
Matej Knopp gmail.com> writes: > Yeah, ResourceReference is like global resource factory. That is for > resources that don't belong to any component/page (they can't touch > any component instance while they are served). However, I don't understand why we should not just use static class members

Re: resource reference vs resource

2007-08-07 Thread Kent Tong
Matej Knopp gmail.com> writes: > basically, there are two kinds of resources in wicket. One is > application-scope resources, that don't need the context of a page > (javascriptps, css...) and the other is component resources, which > kind of belong to a component - so they have access to compone

resource reference vs resource

2007-08-05 Thread Kent Tong
Hi, I'm having some doubts about why the concept of resource reference is needed; it seems resource already suffices. As I understand the purpose of resource reference is to reduce the memory used and the need to replicate changes in a cluster. However, a resource can also generate or load the da

<    1   2