Re: image from outside web application directory

2012-07-05 Thread Scott Swank
This is what I've done. https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html Scott On Thu, Jul 5, 2012 at 6:18 AM, lang delan...@telfort.nl wrote: Martin could you give me an example of this? I my website i want to upload jpgt pictures from clients. I already store them on

off-topic: developer for hire

2012-07-02 Thread Scott Swank
Sorry for the quick note that is unrelated to Wicket development. I am looking for work involving either Java or Oracle development. Wicket would of course be preferable as a web ui. :) Contact me directly if you are interested instead of posting to the list please. Cheers, Scott

Re: Components do not re-render when page is refreshed...

2012-06-29 Thread Scott Swank
How do you construct your panels? This sounds like a model issue... Scott On Fri, Jun 29, 2012 at 9:02 AM, kshitiz k.agarw...@gmail.com wrote: Hi, In my wicket application, each page carries many panels. *Now every panel is rendered when the page is loaded but when it is refreshed, nothing

Re: Components do not re-render when page is refreshed...

2012-06-29 Thread Scott Swank
It is rendered, but the existing page is reused so you do not see the constructor called again. That's what Dan meant when he said, That's how Wicket manages stateful pages: it constructs it once, and subsequent actions (including re-rendering all or part) are handled by the same instance. You

Re: What does this syntax say?

2011-07-29 Thread Scott Swank
This is called a generic method, and you're just giving the type signature of the method. Here's an example from our code. public static T extends Number ComparableT NumberFieldT withMinimum(String id, T min) { NumberFieldT f = new NumberFieldT(id);

Re: Scala DSL for Wicket

2011-07-27 Thread Scott Swank
I think you do want Unit, which as I understand it is closest equivalent to void in Scala. http://www.scala-lang.org/api/current/scala/Unit.html Scott On Wed, Jul 27, 2011 at 10:14 AM, Bruno Borges bruno.bor...@gmail.com wrote: No, the function must return void, not another function (unit).

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

2011-07-27 Thread Scott Swank
Jeremy, I just threw together the following, which indicates that at least to me Models are worth 3 of your 10 items. 1. Most components have a backing object of some sort. This object is referenced via a Model. Significantly, the type of the component and the model match (e.g. LabelInteger has

Re: Handling futures

2011-07-23 Thread Scott Swank
What does your workflow look like? 1. submit form (or ajax event) 2. create Future 3. return response page (or ajax response) Now who checks the Future and what sort of UI result occurs? Scott On Fri, Jul 22, 2011 at 8:55 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hello, I can't

Re: Handling futures

2011-07-23 Thread Scott Swank
a daemon that periodically nulls stale Futures from the map so they can be garbage collected. This kind of operation (submit + polling asynchronous result) seems rather common so I'm sure there's some (easy) way to handle it... On 23/07/2011 9:14 AM, Scott Swank wrote: What does your workflow look

Re: ListView inside a ListView

2011-05-25 Thread Scott Swank
For clarity, I would rename the ListItems: protected void populateItem(final ListItemAsset assetItem) { assetItem.add(new Label(...)); assetItem.add(new ListViewAllocation(...) { protected void populateItem(ListItemAllocation allocationItem) { allocationItem.add(new

Re: model help

2011-03-29 Thread Scott Swank
This is a good reference. https://cwiki.apache.org/WICKET/working-with-wicket-models.html Scott On Tue, Mar 29, 2011 at 11:50 AM, mlabs mlabs@gmail.com wrote: 1. first I'd like to ask if there is any good reading material out there regarding models. In particular I want to figure out all

Re: [VOTE] WICKET-3218 - Component#onInitialize is broken for Pages

2011-03-10 Thread Scott Swank
+1 for keeping calls to add() in the Component constructor. This makes upgrading as painless as possible. +1 also for having onInitialize() mimic: private boolean initialized = false; /// etc protected void onBeforeRender() { if (!initialized) { onInitialize(); initialized = true; }

ajax refresh of ListItems

2011-02-28 Thread Scott Swank
I have an html table with a ListView generating the rows. Certain rows in the middle of the table are initially hidden via setVisible(false), but then displayed later when an AjaxLink is clicked. In order to effect this I have had tenclose the table in a div with wicket:id=tableContainer, and

Re: multiple markup files for on panel

2011-02-18 Thread Scott Swank
Check out variations and styles. https://cwiki.apache.org/WICKET/multiple-markups-per-page.html Scott On Fri, Feb 18, 2011 at 11:46 AM, splitshade martin.dil...@googlemail.com wrote: Hi, why dont you just extend your Panel and just add another Markup? The extended Panel doesnt do anything,

Re: multiple markup files for on panel

2011-02-18 Thread Scott Swank
...and this too https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html Scott On Fri, Feb 18, 2011 at 11:52 AM, Scott Swank scott.sw...@gmail.com wrote: Check out variations and styles. https://cwiki.apache.org/WICKET/multiple-markups-per-page.html Scott On Fri

Re: Unfriendly Model.ofList etc. methods; can anything be done?

2011-02-13 Thread Scott Swank
A simpler API would be: public static C IModelListC ofList(final List? extends C list) or even: public static C IModelListC ofList(final ListC list) since you are calling this method with a specific List, and hence the type of the List is known. Scott On Sun, Feb 13, 2011 at 11:32 AM,

Re: Oracle Wicket Starter Application Project

2010-12-22 Thread Scott Swank
Not only that, but fine-grained data access allows a user to simply select * from some_table and get the data to which they are allowed access. E.g. each sales person can see the data for their region while an administrator or manager can see all of the regions. You can also build 6 apps that

Re: Oracle Wicket Starter Application Project

2010-12-21 Thread Scott Swank
You shouldn't need a connection per user with Oracle's Universal Connection Pool jar. e.g. in his AbstractOracleDAO UCPMgr.getLabelledConnection( pUsername , pPassword ); Scott On Tue, Dec 21, 2010 at 4:12 PM, Eelco Hillenius eelco.hillen...@gmail.com wrote: - using individual database

Re: repaint a fragment

2010-10-11 Thread Scott Swank
No html is rendered to represent a fragment. You will have to wrap it with a div and then refresh the div. Scott On Mon, Oct 11, 2010 at 5:06 PM, fachhoch fachh...@gmail.com wrote: I have a fragment I want to  repaint when user click on ajax link here is my fragment        private class  

Re: repaint a fragment

2010-10-11 Thread Scott Swank
Exactly. On Mon, Oct 11, 2010 at 7:24 PM, fachhoch fachh...@gmail.com wrote: you mean If I put this fragment inside a webmarkupcontainer and add this webmarkupcontainer to target this will repaint my fragmnet ? -- View this message in context:

Re: Estimated number of developers in the Wicket community

2010-09-28 Thread Scott Swank
A couple that come to mind, but aren't on that list are: www.springer.com - publisher mobile.walmart.com - retailer Scott On Tue, Sep 28, 2010 at 12:53 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Tue, Sep 28, 2010 at 2:41 PM, Chris Colman chr...@stepaheadsoftware.comwrote: The

Re: Question about embedded labels

2010-07-29 Thread Scott Swank
You can just use: new AttributeModifier(class, true, Model.of(the-class-name)); On Thu, Jul 29, 2010 at 4:57 PM, jverstry jvers...@gmail.com wrote: I just tried to add your code in my code: WebMarkupContainer mydiv = new WebMarkupContainer(MyDiv); mydiv.add(new AttributeModifier(class,

Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-04 Thread Scott Swank
Do you have apache or a load balancer or anything else in the network? Is there maybe a simple difference in your httpd.conf pertaining to sessions? On Fri, Jun 4, 2010 at 1:32 PM, Bryan Montgomery mo...@english.net wrote: Thanks for the ideas. Still no joy. The behavior is consistent between

Re: Best practises question

2010-05-17 Thread Scott Swank
Page someBigPage = new YourBigPage(...); PageReference bigPageRef = someBigPage.getPageReference(); Now you just keep a hold of bigPageRef. When you want to go back to that page you just ask it for the page: Page reconstitutedBigPage = bigPageRef.getPage(); On Mon, May 17, 2010 at 10:35 AM,

mexico.com

2010-04-30 Thread Scott Swank
Wicketeers, We at Vegas.com have been able to re-purpose our Wicket-based air/hotel search application and purchase/checkout application. This is the new Mexico.com. www.mexico.com Thank you again. The re-use of components and abstract pages was tremendous. Best, Scott

Re: mexico.com

2010-04-30 Thread Scott Swank
Thanks, though I was only involved early on with this project. Only the initial page is stateless, after that search results are in your session. On Fri, Apr 30, 2010 at 9:06 AM, robert.mcguinness robert.mcguinness@gmail.com wrote: site looks great.  i'm curious, how did you approach the

Re: Hibernate - OSIV

2010-04-01 Thread Scott Swank
Perhaps you want to use the survey object that you retrieve via Hibernate as a prototype, and never fill in its transient members. http://en.wikipedia.org/wiki/Prototype_pattern Scott On Thu, Apr 1, 2010 at 2:11 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Because the objects have

Re: Generic solution for tabindex?

2010-03-10 Thread Scott Swank
We have created a bad solution. The core problem is ajax. Say you have five fields: A, B, C, D E. Now you want to insert X Y between A B. No static numbering system will allow an unknown number of fields to be inserted in between the existing fields. On top of that you need to have the

Re: Large number components and redering time

2010-02-17 Thread Scott Swank
How long does it take to pull up the static html in your browser? Just the browser render can be non-trivial for a large enough file. Are you using arrays instead of collections and (where possible) primatives instead of objects? An int[100,250] is much smaller than a comparably scaled

Re: Wicket best practice

2010-02-07 Thread Scott Swank
If you just want to navigate from PageA to PageB then a wicket:link is fine, though I rarely use them. If you want to have more involved processing then a Link object is preferable: thePage.add(new Link(someId) { public void onClick() { doThis(); validateThat(); // either

Re: moving to spring 3

2010-01-20 Thread Scott Swank
Check out jWeekend's maven archetype generator: Leg Up. Spring 3.0.0 is in there with jdbc jpa, respectively. http://www.jweekend.com/dev/LegUp Scott On Wed, Jan 20, 2010 at 2:25 PM, tubin gen fachh...@gmail.com wrote: I am using wicket 1.4.1  , can I move to spring 3  ?

Re: OnChangeAjaxBehavior with palette

2010-01-07 Thread Scott Swank
You could add an AjaxFormComponentUpdatingBehavior to your palette so that your selections are pushed back to the underlying model. On Thu, Jan 7, 2010 at 9:40 AM, wic...@geofflancaster.com wic...@geofflancaster.com wrote: any help? i cant be the only person to have tried this. Original

Re: OnChangeAjaxBehavior with palette

2010-01-07 Thread Scott Swank
into the list as a whole which puts them into the available menu. can you give me a code snippet and better explanation of what you mean? Original Message: - From: Scott Swank scott.sw...@gmail.com Date: Thu, 7 Jan 2010 09:49:41 -0800 To: users@wicket.apache.org Subject: Re

Re: Help with Wicket Adoption Numbers

2010-01-07 Thread Scott Swank
The wiki has a list of some web sites that use Wicket. http://cwiki.apache.org/WICKET/websites-based-on-wicket.html A quick search of IBM shows approx 1,080 articles on Wicket: http://www.google.com/search?q=site:ibm.com+wicket Scott On Thu, Jan 7, 2010 at 4:43 PM, Lester Chua

Re: creating item after form is submitted via ajax

2009-12-30 Thread Scott Swank
Alternately, you can put an EmptyPanel in as a placeholder until you have Panel2. ---Java Psuedo-Code--- Panel panel1 = new RandomPanel(panel1); panel1.add(new EmptyPanel(panel2)); add(panel1); add(new AjaxButton(button, form){ onSubmit(AjaxRequestTarget target, Form form){ Panel

Re: How to have multiple HTML files per panel?

2009-12-17 Thread Scott Swank
You would either do so at the session level via session.setStyle(small) or at the component level by implementing LoginPanel.getVariation() and having it return small as appropriate. http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html Scott On Thu, Dec 17, 2009 at

brix hippo

2009-12-16 Thread Scott Swank
Has anyone used Brix and Hippo enough to give a reasonable comparison of their respective strengths or perhaps differences in approach? Thank you, Scott - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

redirect parameter encoding issue

2009-11-18 Thread Scott Swank
I believe that I see a but in Wicket 1.3.5. Perhaps it has been fixed in a subsequent version. Under certain circumstances an http parameter that contains a slash / ascii 47 results in the following exception: *** URL fragment has unmatched key/value pairs, responding with 404. *** The

Re: OT: Relational database + Hibenate vs Content Repository (Jackrabbit)

2009-11-12 Thread Scott Swank
Before you consider a non-rdbms solution you should really think about who might be interested in your data. If anyone in the organization is going to want to report on, or do analysis of the data then it should be in a relational db. How many X per hour, and how does that compare with the same

Re: Calling IN TO Wicket from JSP

2009-11-12 Thread Scott Swank
There's always Apache HttpClient. Hopefully someone else has a better option for you. On Thu, Nov 12, 2009 at 8:34 AM, Corbin, James jcor...@iqnavigator.com wrote: That is exactly the issue that is causing the problem and what I need clarification on how to do J.D. -Original

Re: How do you achieve persistency

2009-10-06 Thread Scott Swank
All you really need is a good database browser. http://mh-nexus.de/en/hxd/ On Tue, Oct 6, 2009 at 2:17 PM, Sam Stainsby s...@sustainablesoftware.com.au wrote: On Tue, 06 Oct 2009 14:02:56 -0700, Igor Vaynberg wrote: i think all the suggestions you have gotten until now are overcomplicated

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
Have you considered using variant or style? http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html Scott On Mon, Oct 5, 2009 at 2:35 PM, Alex Rass a...@itbsllc.com wrote: Yeah, that's what I had before. (Many fake classes that do nothing but extend default one). But I

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
have made it clear earlier). -Original Message- From: Scott Swank [mailto:scott.sw...@gmail.com] Sent: Monday, October 05, 2009 5:38 PM To: users@wicket.apache.org Subject: Re: how to map 2 html files to 1 class? Have you considered using variant or style? http://cwiki.apache.org

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
Alternately, I'm unsure why variation wouldn't work for you, something like: public EmptyPage(String pageVariation) { this.pageVariation = pageVariation; } @Override public String getVariation() { return pageVariation; } Then you could have html classes such as: BasePage_home.html

Re: how to map 2 html files to 1 class?

2009-10-05 Thread Scott Swank
I don't see a Component#setVariation() method, but then we're still on 1.3.5. On Mon, Oct 5, 2009 at 4:06 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Yes - this sounds like a good idea.  I believe you could also call setVariation(parameters.get(0 or type, etc)) in your constructor and

Re: Default implementation of IChainingModel

2009-09-30 Thread Scott Swank
I searched the JIRA for IChainingModel and didn't get any hits. Did anyone create a JIRA issue? Here's an implementation of mine. public class BaseChainingModel implements IChainingModel { private static final long serialVersionUID = 1L; private Object target; public

Re: Default implementation of IChainingModel

2009-09-30 Thread Scott Swank
.  If you create one, can you post yours and post a link to it back on this thread? Thanks! -- Jeremy Thomerson http://www.wickettraining.com On Wed, Sep 30, 2009 at 4:45 PM, Scott Swank scott.sw...@gmail.com wrote: I searched the JIRA for IChainingModel and didn't get any hits.  Did

Re: Complicated workflows

2009-09-29 Thread Scott Swank
Phil, Would an event-centric approach simplify things? I'm thinking that you could then have multiple listeners for a given event and the various listeners would not have to be aware of one another. This might reduce the task/sub-task interactions. Adding errors, or refreshing components could

Re: Google App Engine and Wicket

2009-08-29 Thread Scott Swank
Here's a minor point that tripped me up. I have my WicketFilter mapped to a given path: filter-mapping filter-nameWicketFilter/filter-name url-pattern/evansforlv/*/url-pattern /filter-mapping And then when I start up my local app and browse to

Re: How to detect model leakage into session

2009-08-26 Thread Scott Swank
If you are certain that detach is always called then you must have references to the underlying model objects. I would look through every call to IModel#getObject(). One thought is that if you create a final variable and refer to that variable in an anonymous inner class then you have bound the

Re: Wicket and XHR abstraction

2009-08-06 Thread Scott Swank
I like jquery ajax http://docs.jquery.com/Ajax Scott On Thu, Aug 6, 2009 at 5:37 PM, arunguptaarun.gu...@gmail.com wrote: Thanks! Any specific recommendation by the Wicket community ? -Arun igor.vaynberg wrote: use any third party library you would like. xhr support that comes with

Re: Looking for Web Application Architecture Book

2009-08-04 Thread Scott Swank
I like Martin Fowler's Patterns of Enterprise Architecture. I also like Eric Evans' Domain Driven Design. As for your specific questions: dao -- Outside of a reasonably simple crud application I wouldn't have Wicket even aware of daos. I like to have wicket (or other clients) talk to the

Re: DropDownChoice with ID and Value

2009-07-27 Thread Scott Swank
Look at ChoiceRenderer. It's pretty easy to write one that takes a map in it's constructor if your needs are that simple. Scott 2009/7/27 carlson weber filho - Master CIM Informática cwe...@mastercim.com.br: Newbie question: I have a list of 3 options, let's supose it's 1=abc, 2=def, 3=ghi

Re: Dirty read/edit problem.

2009-06-23 Thread Scott Swank
On-line docs http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lock.htm DA Morgan's docs http://www.psoug.org/reference/dbms_lock.html On Tue, Jun 23, 2009 at 12:58 AM, Maarten Bosteelsmbosteels@gmail.com wrote: Hi, We have implemented something similar. In our case

Re: Dirty read/edit problem.

2009-06-22 Thread Scott Swank
Why not just lock the relevant row of the relevant table? Versioning is for optimistic locking, but it sounds to me like you want plain old pessimistic locking. In Hibernate, check out LockMode.UPGRADE. Scott On Mon, Jun 22, 2009 at 3:58 PM, Steve Tarltonstarl...@gmail.com wrote: I thought I

Re: JDeveloper - Can I get a show of hands?

2009-06-20 Thread Scott Swank
And if you're an Oracle DBA your main tool is called SQL Plus. On Fri, Jun 19, 2009 at 8:58 PM, James Carmanjcar...@carmanconsulting.com wrote: +1 to sqldeveloper (java or native).  For developers (not DBAs), it's a very nice tool and does what you need for the majority of the cases. On Fri,

Re: JDeveloper - Can I get a show of hands?

2009-06-20 Thread Scott Swank
the commands, so I need the nice GUI stuff to guide me along. :) On Sat, Jun 20, 2009 at 1:04 PM, Scott Swank scott.sw...@gmail.com wrote: And if you're an Oracle DBA your main tool is called SQL Plus. On Fri, Jun 19, 2009 at 8:58 PM, James Carmanjcar...@carmanconsulting.com wrote: +1

Re: JDeveloper - Can I get a show of hands?

2009-06-19 Thread Scott Swank
Dane, I have used JDev and it is not my preference for a Java IDE. That said, if you're having trouble with it your best resource is posting at forums.oracle.com. As for a PL/SQL IDE, why are you moving away from TOAD, the price ($600 if I remember right...)? The product PL/SQL Developer from

OT: ESB

2009-06-03 Thread Scott Swank
Warning: Off Topic Has anyone worked with an open source ESB, and if so do you particularly like or dislike your choice? Please respond to me off the list, though of course if anyone wants a brief synopsis of what I pull together I'll gladly post it back to the list or send it outside of the

Re: Grizzly + Wicket integration

2009-06-01 Thread Scott Swank
Not that I'm aware of. What specifically do you want to do with nio? Scott On Mon, Jun 1, 2009 at 7:01 AM, Eman Nollase eman.noll...@gmail.com wrote: Hello, Is there a Wicket + Grizzly integration? Thanks a lot. Cheers.

Re: Any forum (bb) components / applications written using Wicket?

2009-05-24 Thread Scott Swank
Over here http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki there is bbcode tinymce integration. I haven't used either, but at least that's a starting point. Good luck. Scott On Sun, May 24, 2009 at 1:04 AM, Cristi Manole cristiman...@gmail.com wrote: Hello, I'm in the need of a

Re: [OT] Book/pointers on caching

2009-03-30 Thread Scott Swank
This author compared several caching libraries and recommends ehcache. http://javalandscape.blogspot.com/2009/03/intro-to-cachingcaching-algorithms-and.html - Scott On Mon, Mar 30, 2009 at 4:33 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I wrote something about it here:

Re: HTML can't reference a component (Label) multiple times?

2009-03-26 Thread Scott Swank
Surprisingly getDebugSettings().setComponentUseCheck(false) allows this behavior, at least on 1.3. add(new Label(authorName)); span wicket:id=authorName/span span wicket:id=authorName/span ... not that I'm advocating this side effect. Scott On Fri, Feb 13, 2009 at 10:26 AM, Igor

Re: HTML can't reference a component (Label) multiple times?

2009-03-26 Thread Scott Swank
Should I open a JIRA for this, or is this an accepted side-effect? Scott On Thu, Mar 26, 2009 at 2:39 PM, Scott Swank scott.sw...@gmail.com wrote: Surprisingly getDebugSettings().setComponentUseCheck(false) allows this behavior, at least on 1.3.   add(new Label(authorName));   span

The ServerSide Java Symposium

2009-03-20 Thread Scott Swank
Is anyone in Vegas? Want to nab a beer? Cheers, Scott - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: The ServerSide Java Symposium

2009-03-20 Thread Scott Swank
http://javasymposium.techtarget.com/html/frameworks.html#ALombardiWicket On Fri, Mar 20, 2009 at 9:44 AM, Scott Swank scott.sw...@gmail.com wrote: Is anyone in Vegas?  Want to nab a beer? Cheers, Scott - To unsubscribe, e

Re: How (not) to: IModel and Collections (and generics)

2009-03-04 Thread Scott Swank
Does AbstractReadOnlyModel accomplish what you're talking about? Scott On Wed, Mar 4, 2009 at 4:50 AM, Johannes Schneider maili...@cedarsoft.com wrote: Hi, the concept of IModel seems to be very obvious. It is simply some kind of reference and offers a getter and a setter. When used with

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-04 Thread Scott Swank
I agree. It is very sensible to be able to provide a ModelListInteger as the choices for a dropdown that has ModelNumber. Restricting the choices to ModelListT only eliminates (sensible) options for the client code. Scott On Wed, Mar 4, 2009 at 8:08 AM, Johannes Schneider

Re: Wicket Focus Policy

2009-02-24 Thread Scott Swank
The chief problem in constructing pages with a consistent tabindex is that you must: 1. Know from which parent component you are basing your numbering. 2. Handle ajax insertions of of components within your current tabindex strategy. Our current code has edge conditions where it fails, and is on

Re: What's your take on handling markup in properties, html, wicket

2009-02-13 Thread Scott Swank
We use a combination of the following for that sort of l10n/i18n. 1. wicket:message 2. A Label with a StringResourceModel, and setEscapeModelStrings(true) 3. Fragments Scott On Fri, Feb 13, 2009 at 8:16 AM, Warren Bell warrenbe...@gmail.com wrote: Create a panel with just the markup you need

Re: Anyone have idea on ofbiz framework

2009-02-13 Thread Scott Swank
http://lmgtfy.com/?q=ofbizl=1 On Fri, Feb 13, 2009 at 3:20 PM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi Anyone have any idea on ofbiz framework Thanks Swapna On Fri, Feb 13, 2009 at 10:04 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: in your form.onsubmit() you can

Re: style/variation

2009-01-22 Thread Scott Swank
Liz, We have completely customized the location of resources in Wicket. Here's what I learned on the subject: http://mail-archives.apache.org/mod_mbox/wicket-users/200804.mbox/8ee6dd5c0804221651h70660293pb505d19c2c21e...@mail.gmail.com - Scott On Thu, Jan 22, 2009 at 12:22 AM, Liz Huber

Re: style/variation

2009-01-22 Thread Scott Swank
AM, Pierre Goupil goupilpie...@gmail.com wrote: Scott, I'm sorry, but the link you've sent is invalid. And I was unable to find a valid link with. Regards, Pierre On Thu, Jan 22, 2009 at 7:03 PM, Scott Swank scott.sw...@gmail.com wrote: Liz, We have completely customized the location

Re: Plain IMG src urls

2009-01-19 Thread Scott Swank
This is what we use. It's mostly code that Igor posted in a response to me 1 year ago or so... public class StaticImage extends WebComponent { public StaticImage(String id, IModel model) { super(id, model); } public StaticImage(String id, String

Re: Plain IMG src urls

2009-01-19 Thread Scott Swank
Yes, just like that. On Mon, Jan 19, 2009 at 9:21 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: class simpleimage extends webmarkupcontainer { protected void oncomponenttag(tag) { tag.put(src, getmodelobjectasstring()); } } -igor On Mon, Jan 19, 2009 at 9:15 AM, Prag

Re: Re: Why you should not override isVisible

2009-01-16 Thread Scott Swank
, 2009 at 12:53 AM, s...@meiers.net wrote: What's taking so long in your isVisible() method? The model object should be cached, and is isPositive() so expensive? Sven - Ursprüngliche Nachricht - Von: Scott Swank Gesendet: 16.01.09 02:06 Uhr An: users@wicket.apache.org

Re: Why you should not override isVisible

2009-01-16 Thread Scott Swank
into Wicket core. Sven Scott Swank schrieb: That comes from a CompoundPropertyModelCart and is bound to total. So getModelObject() corresponds to cart.getTotal(). From there, isPositive() is quite cheap. And we can, of course, keep implementing ad hoc caching of visibility. It's in no way

Re: Why you should not override isVisible

2009-01-15 Thread Scott Swank
We have done exact that -- a lot. Driving isVisible() from the state of the model is very clean, but the performance is potentially awful. I have wondered whether this should be the default implementation for Component.isVisible(). Is IVisitor.beforeRender() an appropriate place in the rendering

Re: Why you should not override isVisible

2009-01-15 Thread Scott Swank
Is there a reason why the default behavior is not to cache the result of isVisible()? Are there cases where the result of isVisible() is expected to change over the course of rendering? Would a JIRA w/ code be welcome, or is the current behavior required? Scott On Thu, Jan 15, 2009 at 10:23

Re: Why you should not override isVisible

2009-01-15 Thread Scott Swank
My idea what an inversion of that one: Add a method to Component, such as isVisibleInternal() [no I don't love the name] that would cache the results of isVisible(). Then all code that currently calls isVisible() would be changed to call isVisibleInternal() instead. Someone who really wanted

Re: Why you should not override isVisible

2009-01-15 Thread Scott Swank
) { visible = // whatever boolean computation } return visible; } and then it disappears from the profiler and who cares about the rest. Scott Swank wrote: My idea what an inversion of that one: Add a method to Component, such as isVisibleInternal() [no I don't love

Re: Advice on payment options with wicket

2009-01-14 Thread Scott Swank
Have you considered HttpClient? http://hc.apache.org/httpclient-3.x/ Scott On Wed, Jan 14, 2009 at 8:44 AM, Mathias P.W Nilsson math...@snyltarna.se wrote: The main problem is the external form. I need to send the form to an external server. Since I need wicket to check the form first I

Re: Extending to all components

2009-01-06 Thread Scott Swank
We added the following to our Session: public static final MySession get() { return (MySession) Session.get(); } And then we just call MySession.get() instead of calling getSession(). Scott On Tue, Jan 6, 2009 at 9:59 AM, Dane Laverty danelave...@chemeketa.edu

Re: Extending to all components

2009-01-06 Thread Scott Swank
Since get() is a static method there is no relationship (i.e. overriding) between MySession.get() and Session.get(). Hence you do not even need Java 5. On Tue, Jan 6, 2009 at 10:25 AM, James Carman jcar...@carmanconsulting.com wrote: You don't need a helper if you do what Mr. Swank

Re: Twenty Six Wicket Tricks

2008-12-30 Thread Scott Swank
Jonathan, I think that Wicket is missing a solid overview of the below form components, how they differ, how they overlap, and when to use each. Check, Checkbox, CheckGroup, CheckGroupSelector DropDownChoice (there are 3 wiki pages, but I'd like to draw out the overlap with RadioChoice and the

Re: Twenty Six Wicket Tricks

2008-12-30 Thread Scott Swank
= simple component There are also some ajax versions of above... It might just be me that have become blind to these things :) Of all the frameworks I work with, be it web, orm, log etc Wicket brings me the least trouble :) Happy new year :) Scott Swank wrote: Jonathan, I think

Re: Default Focus Behavior?

2008-12-29 Thread Scott Swank
Jonathan, Have you considered O'Reilly's Cookbook series? I've done some tech review for them over the years, though not recently. E-mail me directly if you'd like a potentially dated contact. :) Scott On Sun, Dec 28, 2008 at 9:26 AM, Jonathan Locke jonathan.lo...@gmail.com wrote: I have

Re: Participating in Wicket

2008-12-17 Thread Scott Swank
I found this helpful. http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html Scott On Wed, Dec 17, 2008 at 2:38 AM, HHB hubaghd...@yahoo.ca wrote: Thanks Martijn How do you suggest to start studying Wicket core code (I don't mean getting the source code :) )? It is

Re: Another Ajax back button question

2008-12-04 Thread Scott Swank
If the ajax changes are reflected in the relevant model(s) then you will see them when you go back to the page. Scott On Thu, Dec 4, 2008 at 2:29 PM, Matt Welch [EMAIL PROTECTED] wrote: I'm sure this has been asked and answered but after searching the list, I'm still not sure if there is

Re: Render a Wicket page to a string for HTML email

2008-11-06 Thread Scott Swank
Here is a largely equivalent class that I created. It simply extends BaseWicketTester. public class PageRenderer extends BaseWicketTester { private final Locale locale; public PageRenderer(Locale locale) { this.locale = locale; } public

Re: Render a Wicket page to a string for HTML email

2008-11-06 Thread Scott Swank
this problem. However, I like the simpler approach in this thread. http://cwiki.apache.org/confluence/display/WICKET/Use+wicket+as+template+engine Scott Swank wrote: Here is a largely equivalent class that I created. It simply extends BaseWicketTester. ... -- View this message in context: http

Re: Moving from Tapestry to Wicket?

2008-10-31 Thread Scott Swank
Regarding session state, you really have basic options. State is kept in implementations of IModel. 1. Model is just a holder for an object. If you use it then your object is in your session. 2. LoadableDetachableModel stores an id (or whatever) and retrieves the relevant object from your

Re: Using wicket to create html (in replace of velocity templates)

2008-10-29 Thread Scott Swank
Have you seen: http://cwiki.apache.org/confluence/display/WICKET/FAQs#FAQs-HowcanIrendermytemplatestoaString%3F Scott On Wed, Oct 29, 2008 at 3:58 PM, fatefree [EMAIL PROTECTED] wrote: I was working on a velocity template and came into some internationalization problems, when I realized it

Re: Wicket and URLs

2008-10-28 Thread Scott Swank
One option is to define urls in your application: mountBookmarkablePage(/Tour, TourBrowsePage.class); On Tue, Oct 28, 2008 at 4:03 PM, S D [EMAIL PROTECTED] wrote: Hi, I was browsing through examples, it looks very impressive but there's a thing that bothers me somewhat. The Basic Label

Re: Wicket and URLs

2008-10-28 Thread Scott Swank
?hl=enq=wicketstart=10sa=N Thanks --- On Tue, 10/28/08, Scott Swank [EMAIL PROTECTED] wrote: One option is to define urls in your application: mountBookmarkablePage(/Tour, TourBrowsePage.class); On Tue, Oct 28, 2008 at 4:03 PM, S D [EMAIL PROTECTED] wrote: Hi, I was browsing

Re: setObject( ), getObject( )

2008-10-21 Thread Scott Swank
However setObject() doesn't work as well on AbstractReadOnlyModel as it does on Model, which is particularly important for immutable backing objects such as Strings. On Tue, Oct 21, 2008 at 2:35 AM, Johan Compagner [EMAIL PROTECTED] wrote: we have also AbstractReadOnlyModel for that so igor are

Re: Serializing model. DetachedModel or not

2008-10-08 Thread Scott Swank
And don't forget final scopes: final Thing thing = component.getModelObject(); add(new Label(this, that) { @Override public boolean isVisible() { return thing.isGreen(); } }); For the object thing to be accessible in the anonymous inner class it had to be declared final. Because the

Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)

2008-09-28 Thread Scott Swank
And Nokia http://www.s60.com/life/thisiss60/s60indetail/technologiesandfeatures/webruntime http://www.s60.com/life/thisiss60/s60indetail/technologiesandfeatures/webruntime/webruntimedetail On Sun, Sep 28, 2008 at 7:01 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote: There is something new to

Re: ModalWindow tabindex bug

2008-09-17 Thread Scott Swank
Confirmed: the 1.3.5 modal.js fixes my problem. Thanks again. On Tue, Sep 16, 2008 at 7:20 PM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Tue, 16 Sep 2008, Scott Swank wrote: Wicket 1.3.4 I have noticed that in ie 6 7 the tab order no longer corresponds to the tabindex order for form

ModalWindow tabindex bug

2008-09-16 Thread Scott Swank
Wicket 1.3.4 I have noticed that in ie 6 7 the tab order no longer corresponds to the tabindex order for form fields after a ModalWindow is opened and then closed. It is not the case that the tabindex attributes have been modified via dhtml, but rather the tabindex is simply no longer obeyed.

  1   2   3   >