Re: Default Focus Behavior?

2008-03-11 Thread James Carman
On 3/11/08, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > the behavior would have to be temporary. Yes, the behaviors stay with the component. I guess that would screw this up! :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Default Focus Behavior?

2008-03-11 Thread James Carman
On 3/11/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > that still wouldn't help adding 3 of them at once > Well, adding three of them like this would just be stupid. :) It wouldn't really break anything. The last one that gets rendered would probably get the focus, since it would be the last o

Re: Default Focus Behavior?

2008-03-11 Thread James Carman
On 3/11/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > yes so it is not the last one you ask to have focus on > Very confusing for an average user > > thats why there should be a single point just like > AjaxRequestTarget.focusComponent() works. Ok, you've sold me. So, is this something that

Re: Default Focus Behavior?

2008-03-11 Thread James Carman
On 3/11/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > hmm the request cycle would be quite awful its not really there for that > kind of state > The problem is that the AjaxRequestTarget is in normal rendering something > like PageRequestTarget. > > The problem is you cant really through it

Re: Lazy load exception wicket and hibernate

2008-03-11 Thread James Carman
On 3/11/08, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Hi! > > I'm using wicket with hibernate and spring. In my web.xml I have > OpenEntityManagerInViewFilter. But when trying to add a dataview to my > wicket page I get the org.hibernate.LazyInitializationException: could not > initia

Re: Global Exception Handling...

2008-03-11 Thread James Carman
On 3/11/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On Tue, Mar 11, 2008 at 3:51 AM, James Carman > <[EMAIL PROTECTED]> wrote: > > By the way, I can create a patch for this stuff if you like. I guess > > the decision needs to be made about w

Re: Lazy load exception wicket and hibernate

2008-03-11 Thread James Carman
Show us some code, please. How are you setting things up? On 3/11/08, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Not exactly sure what you mean here since this is my first time trying wicket > and hibernate, spring. > > I have spring annoted daos that I use myDao().getList(); returns a

Re: Revisited: How to mount a form?

2008-03-12 Thread James Carman
My simple form's action looks like: action="?x=ddw0qAw21grCPRao*Ubfef2Sc3qqyFsw0T9XGN5CArkF*CTRiwidzg" when I use that along with the CachingSunJceCryptFactory. On 3/12/08, James Carman <[EMAIL PROTECTED]> wrote:

Re: Revisited: How to mount a form?

2008-03-12 Thread James Carman
Have you looked at: org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy On 3/12/08, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to mount forms in my wicket application more appropiate > URLs. For example I want to replace this: > > action="../?wicket:

Re: Different content for user

2008-03-13 Thread James Carman
Tapestry has an actual If component. Would that work in Wicket? On 3/13/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > if (condition) add component is static - if you put it into > constructor it is only evaluated once, so if login status changes in > the middle of the lifecyle of the panel it

JNLP File Link (within same webapp)

2008-03-13 Thread James Carman
This is probably a dumb question, but what kind of link should I use to link to a JNLP file which resides within the same webapp? We have the JnlpDownloadServlet running which accepts any *.jnlp file requests and we're using WicketFilter (so it shouldn't interfere). I don't think it's an External

Re: A link-o-label needed

2008-03-14 Thread James Carman
simple > adding a label as a child to a link seams to be a really good idea :) > > >Vitaly > > > On Fri, Mar 14, 2008 at 3:17 PM, James Carman > <[EMAIL PROTECTED]> wrote: > > Have you tried adding a label to your link? I do this with images. I

Re: A link-o-label needed

2008-03-14 Thread James Carman
Have you tried adding a label to your link? I do this with images. I don't see why you wouldn't be able to do it with labels. On 3/14/08, Vitaly Tsaplin <[EMAIL PROTECTED]> wrote: >Hi experts, > >Does anyone know how to create a label link in wicket? In other > words I need a clickable

Re: A link-o-label needed

2008-03-14 Thread James Carman
On 3/14/08, Thomas Kappler <[EMAIL PROTECTED]> wrote: > On Fri, Mar 14, 2008 at 3:26 PM, James Carman > <[EMAIL PROTECTED]> wrote: > > Yeah, the output would be something like: > > > > > > > > off the top of my head. You might want to tell

Re: JNLP File Link (within same webapp)

2008-03-14 Thread James Carman
On 3/13/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > see ContextImage and how it builds a context-relative path... > So, still use an ExternalLink? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: A link-o-label needed

2008-03-14 Thread James Carman
On 3/14/08, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > > you could do it that way. another way to do it would be to create a link > panel. you could then subclass and decorate the panel in various ways. > > i do it this way so i can leverage my application with panel factories. > this can

Page Serialization/Deserialization

2008-03-14 Thread James Carman
All, I am trying to understand page serialization/deserialization a bit better, so I create a Quickstart project and started tinkering. I modified the HomePage class as follows: public class HomePage extends WebPage implements Externalizable { private static final Logger log = LoggerFactory.

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > Your page implementing Externalizable breaks wicket. Wicket relies of > Page#writeReplace, writeObject, readObject being called. Are you sure > you're no seing any stacktrace? > Ok, I think I'm getting somewhere with this. I changed my explor

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > You are not testing back button versioning a all. > What you do with the backbutton and a refresh is create a new page. > Because yiu are doing a bookmarkable (homepage) refresh. > I'm not hitting refresh, though. It appears that IE is do

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > The reason why page is not fetched on backbutton is because firefox > caches it. You need to send the Cache-control: no-store header to > force firefox to reload the page on back button. > Ok, I've change it as follows and it still appears to

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
Sorry, I think I may have it working now. The trick was the Cache-Control header (adding in "no-store"), but requiring us to set Cache-Control headers doesn't sound to me like "Transparent Back Button Support." The modelChanged() call did nothing for me (not that I know for sure that's what I was

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > What URL you seen in browser after you click back button? Isn't it a > bookmarkable URL? Because that creates new page instance every time. > When I click the back button, the URL is: http://localhost:8080/ However, nothing goes on in the ser

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, James Carman <[EMAIL PROTECTED]> wrote: > On 3/15/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > > > What URL you seen in browser after you click back button? Isn't it a > > bookmarkable URL? Because that creates new page instance every time. >

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > Not wit url like http://localhost:8080/. That's a homepage URL. It > doesn't contain any information about page instance, etc. so wicket > has to create new page instance. > > Transparent back button support is about something else. Wicket tra

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > you shouldn't really call modelChanging() or modelChanged() > because your model is not changed at all > what is changed is your internal counter (and you should use > addStateChange()) > > But because of the way we now work, we dont do a

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > yes but thats what component.setModelObject() does for you > So, it would have been better to write link.setModel("some new string")? - To unsubscribe, e-mail: [EMAIL PROTE

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > in what context? > > you with your counter shouldn't touch the model things anyway > just do wat Matej told you and use addStateChange() > thats is what you should do Well, I'm just trying to come up with a real-world example. I guess in

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > the problem is most of the time with model objects > is that when you have set it. Then that is also a database operation > So going back into history with the browser and revering the model object > doesn't make much sense then > because

Component.getPreferredTag()?

2008-03-16 Thread James Carman
Is there any way to ask a component what its preferred tag type is? For instance, TextField would return "input" and DropDownChoice would return "select". This would be useful if one were to want to dynamically generate a form (using Velocity) based on a list of Components (property editors). If

Re: Planning Wicket Next Generation

2008-03-16 Thread James Carman
On 3/16/08, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > +1 for moving to java 5 > +1 for moving to Java 5 *quickly* :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Autolinking Relative Paths

2008-03-16 Thread James Carman
Suppose I have a package structure like this... com.mycompany.myproject --- module1 --- page - Page1.html --- module2 --- page - Page2.html If I want to autolink from Page1.html to Page2.html, it would look like: Click Here! Correct? This doesn't appear to be workin

Re: Autolinking Relative Paths

2008-03-16 Thread James Carman
On 3/16/08, Phil Grimm <[EMAIL PROTECTED]> wrote: > That's funny, I was about to post regarding the numerous issues with > ... > > And one suggestion I was going to give was to add support for > "../packge/Page.html". > I don't think it currently supports this, at least I couldn't see it from a

Re: Autolinking Relative Paths

2008-03-16 Thread James Carman
On 3/16/08, Phil Grimm <[EMAIL PROTECTED]> wrote: > I think a JIRA request is appropriate. > Perhaps we'll hear a confirmation from the Wicket developers. > > I'd add the following to the request... > > 1. Add support for "../" relative path resolution +1 - This is essential and shouldn't be ve

Re: Autolinking Relative Paths

2008-03-16 Thread James Carman
On 3/16/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you guys do both realize that wicket:link is nothing more then > convinience. it isnt really meant to support all these complex > usecases. it is nice when you need to quickly include an image or link > to a near by page, but nothing more th

Re: Autolinking Relative Paths

2008-03-16 Thread James Carman
On 3/16/08, James Carman <[EMAIL PROTECTED]> wrote: > On 3/16/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > you guys do both realize that wicket:link is nothing more then > > convinience. it isnt really meant to support all these complex > > usecases. it

Re: Autolinking Relative Paths

2008-03-16 Thread James Carman
On 3/16/08, James Carman <[EMAIL PROTECTED]> wrote: > In fact, I believe I already have a patch that fixes it. I'll create > a JIRA and attach the patch. You folks can discuss whether it is > worthy or not to make it into core. > For future reference, I've created

Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread James Carman
+1 On 3/17/08, Jay Hogan <[EMAIL PROTECTED]> wrote: > +1 > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Pretty DataView urls

2008-03-17 Thread James Carman
Can you use the Ajax version? On 3/17/08, Dan Kaplan <[EMAIL PROTECTED]> wrote: > Hello, > > > > Is it possible to have pretty dataview urls when someone clicks on different > pages of the navigator? Right now it says stuff like ::interface.7.1 or > something. I'd prefer it to say something l

Re: wicket-suckerfish

2008-03-17 Thread James Carman
It doesn't look like it's had a release yet. It's at 1.0-SNAPSHOT still. On 3/17/08, Hoover, William <[EMAIL PROTECTED]> wrote: > Shouldn't it be available through a public repository? > > > -Original Message- > From: Kai Mütz [mailto:[EMAIL PROTECTED] > > Sent: Monday, March 17, 2008 1

Re: Wicketstuff source pages - can we make them stateless?

2008-03-17 Thread James Carman
+1, very frustrating indeed. If we could make them stateless, that'd be great! On 3/17/08, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Hi, > > I enjoy clicking around the source at http://www.wicketstuff.org/wicket13/. > It's interesting stuff :) > > Page expiry is very frustrating, especially

Re: Wicketstuff source pages - can we make them stateless?

2008-03-17 Thread James Carman
On 3/17/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > need to file an rfe in jira, patches are also welcome :) > Perhaps we could have some test cases that assert that the pages are indeed stateless? Does that work? assertTrue(page.isStateless()); Do you need to have WicketTester "start" the p

Re: Autolinking Relative Paths

2008-03-18 Thread James Carman
On 3/18/08, Gwyn Evans <[EMAIL PROTECTED]> wrote: > On 16/03/2008, James Carman <[EMAIL PROTECTED]> wrote: > > > > 3. Document the valid path syntax (and limitations) in the Wiki, WIA, > etc. > > > > > > > +1 - but it should at leas

Re: Insert dynamic/external HTML string in a page

2008-03-19 Thread James Carman
On 3/19/08, Martin Makundi <[EMAIL PROTECTED]> wrote: > I have a somewhat similar situation without a solution (yet). > > I have some static resources (images and css files) on the server. > Whenever I deploy the application, the URL of those resources depend > on the environment as the applicat

Re: Set a dynamic color to a label

2008-03-19 Thread James Carman
Use css. If you're using a ListView, the ListItem has a getIndex() method that you can use to see if it's odd or even. On 3/19/08, vincent Renaville <[EMAIL PROTECTED]> wrote: > Hello, > > I try to display a application a table with odd line in red and even line in > blue. > For each cell of

Re: Set a dynamic color to a label

2008-03-19 Thread James Carman
I would probably use a helper method, along with AttributeAppender instead of creating an entirely new class for this: On 3/19/08, Martin Makundi <[EMAIL PROTECTED]> wrote: > You should specify separate css classes for the odd and the even labels: > > public class CSSClass extends AttributeModifi

Re: How do I elegantly put feedback per form field?

2008-03-20 Thread James Carman
On 3/20/08, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Thanks Craig, > > Perfect. > > Super perfect :) > Yeah, that's really cool! I think I might borrow your ideas on our project at work. Thanks! - To unsubscribe, e-mail: [

Re: optional components in markup

2008-03-20 Thread James Carman
On 3/20/08, Andrew Broderick <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way to mark a component in markup as optional, so it renders it > if it's there, but leaves it out if not? Or, if I don't want a certain > component to appear (decided by logic at runtime), do I just have to insert a >

Re: mavn build errors

2008-03-20 Thread James Carman
On 3/20/08, Ritz123 <[EMAIL PROTECTED]> wrote: > > Hi, > > Trying to build Wicket from svn trunk - tried mvn eclipse:eclipse and mvn > install - keep getting mojo descriptors not found error. > > [INFO] Building Wicket Quickstart Archetype > [INFO]task-segment: [install] > [INFO] > -

Re: mavn build errors

2008-03-20 Thread James Carman
On 3/20/08, Ritz123 <[EMAIL PROTECTED]> wrote: > > Thanks for the quick response. > > Just to complete the thread - for ppl like me who are not too familiar with > maven - the way to force plugin version - in our case plugin-plugin is the > plugin!! Add that to Wicket top level pom.xml file und

Re: Getting client's date and time

2008-03-21 Thread James Carman
On 3/21/08, Cristi Manole <[EMAIL PROTECTED]> wrote: > Hello, > > I'm looking for a quick solution to get the client's date and time in a > wicket modal, without a post > > I can have a wicket component, like a label and I can use js functions to > set it in a span for example. > > The questio

Re: Getting client's date and time

2008-03-21 Thread James Carman
On 3/21/08, Cristi Manole <[EMAIL PROTECTED]> wrote: > yes, i can, but how can i read it without post? > > it doesn't even need to be hidden as i want it shown... i just want to query > it from time to time., again - without a post. > > is it possible to read it through ajax or from the dom... o

Re: Getting client's date and time

2008-03-21 Thread James Carman
On 3/21/08, James Carman <[EMAIL PROTECTED]> wrote: > On 3/21/08, Cristi Manole <[EMAIL PROTECTED]> wrote: > > > yes, i can, but how can i read it without post? > > > > it doesn't even need to be hidden as i want it shown... i just want to > query &g

Showing Wicket AJAX Debug Window for certain users...

2008-03-21 Thread James Carman
Suppose we have a user send us a bug report for our production system and we would like to see what's going on with the AJAX requests. Is there any way to turn on the ajax debug window for a certain session? It seems like it's either turned on for everyone or not.

Re: Showing Wicket AJAX Debug Window for certain users...

2008-03-21 Thread James Carman
On 3/21/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > Unfortunately there is not a straightforward way to do this. You can > add a feature request. In the meantime you can override > application#getDebugSettings and proxy the IDebugSettings interface so > that isAjaxDebugModeEnabled() method retu

Re: "Redirect after post" Issue

2008-03-21 Thread James Carman
On 3/21/08, Jeremy Levy <[EMAIL PROTECTED]> wrote: > Sebastiaan, > > Thanks very much, that helps a lot. It now works. Now that it's working I > want to switch it to use ajp instead of http. > > I understand from your explanation how ProxyPreserveHost was breaking it. > However, when I switch

Re: Showing Wicket AJAX Debug Window for certain users...

2008-03-21 Thread James Carman
That's true. Firebug is very nice. On 3/21/08, lars vonk <[EMAIL PROTECTED]> wrote: > Another option is to install the FireBug plugin in Firefox and use that. > This also allows you to see what the request and responses are. > > Lars > > On Fri, Mar 21, 2008 at

Re: Label and textfiled component

2008-03-23 Thread James Carman
On Sun, Mar 23, 2008 at 1:05 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > see formcomponentlabel And, if you wanted to bake your own FormComponentWithLabel component, that's a great idea. However, some folks might display a component's label and the component itself completely differently (some

Re: file uploads

2008-03-24 Thread James Carman
On Mon, Mar 24, 2008 at 7:31 AM, tbt <[EMAIL PROTECTED]> wrote: > > Hi > > I am using the file upload component in wicket and I like to set the folder > path to save uploaded files. > > Folder folder = new Folder("Uploads"); > folder.mkdirs(); > File newFile = new File(folder,fileUpload.getCl

Re: AJAX Dropdown Choices cleared on submit

2008-03-24 Thread James Carman
What does the Ajax version of the code look like? On Mon, Mar 24, 2008 at 9:37 AM, tdelesio <[EMAIL PROTECTED]> wrote: > > Hi, > > I have two dropdowns. Once you select a value from the first dropdown the > second dropdown is populated using ajax. I got this to work based on the > example on

Re: clustering failover error

2008-03-24 Thread James Carman
Are these nodes on the same machine or are you running different machines? On Mon, Mar 24, 2008 at 6:15 PM, Scott Swank <[EMAIL PROTECTED]> wrote: > We are trying to get clustering working with Wicket 1.3.2 (on JBoss > 4.3.0) and we get the following exception when one node fails over to > anoth

Re: Textarea autosize/auto resize height

2008-03-25 Thread James Carman
It looks like you've got what you need. Maybe this could be a behavior that you add to the regular TextArea component? On Tue, Mar 25, 2008 at 6:36 AM, Martin Makundi <[EMAIL PROTECTED]> wrote: > Hi! > > Here is a javascript snipplet that can be used to automatically resize > a textarea's heig

Re: Double submit problem

2008-03-25 Thread James Carman
Would something like this work? public class SynchTokenField extends HiddenField { private String token; public SynchTokenField(String id) { super(id, new PropertyModel(new ValueMap(), "token")); setRequired(true); add(new AbstractValidator() {

Re: Double submit problem

2008-03-25 Thread James Carman
se the value that is > submitted doesnt change and the token in the field doesn't change. > > But it is a nice simple idea to have > > On Tue, Mar 25, 2008 at 5:40 PM, James Carman <[EMAIL PROTECTED]> > wrote: > > > > > Would something like this wor

Re: Double submit problem

2008-03-25 Thread James Carman
t;value", token); } } Would that work? On Tue, Mar 25, 2008 at 1:11 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you should regen the token in onbeforerender()... > > -igor > > > On Tue, Mar 25, 2008 at 10:09 AM, James Carman > > > <[EMAIL PROTECTED]> wr

Re: Double submit problem

2008-03-25 Thread James Carman
t; > johan > > On Tue, Mar 25, 2008 at 6:19 PM, James Carman <[EMAIL PROTECTED]> > > > wrote: > > > Okay, how about this? > > > > public class SynchTokenField extends HiddenField > > { > >private String token; > > > >

Re: Double submit problem

2008-03-25 Thread James Carman
I was thinking a behavior to be added to a form, but I don't know how that would work (getting the value submitted in the behavior and causing a validation error). Thoughts? > johan > > > On Tue, Mar 25, 2008 at 6:30 PM, James Carman <[EMAIL PROTECTED]> > > > wrot

Re: Double submit problem

2008-03-25 Thread James Carman
On Tue, Mar 25, 2008 at 1:50 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > I dont think this can be easily done by Behaviors or Validators > > Only when we make it that a validator can also be a behavior (or provide a > behavior) then that would be possible. > for now Validatiors cant contrib

Trees and DnD?

2008-03-25 Thread James Carman
Is there a way to enable drag-n-drop in a Wicket tree? Our users have a usecase where they want to be able to build a hierarchical list of "stuff" and they want to be able to move stuff around easily and reorder nodes. Is there an example out there? Has someone done this before? ---

Re: Favicon as Resource

2008-03-25 Thread James Carman
Can you surround your link with and use a relative link? On Tue, Mar 25, 2008 at 8:59 PM, Enrique Rodriguez <[EMAIL PROTECTED]> wrote: > How can I set a favicon for all my pages where the image referenced by > the href comes from a ResourceReference? Today I use a > StringHeaderContributor to

Re: Page templates per virtual host

2008-03-26 Thread James Carman
Have you looked into Wicket's "skin" support? Basically, you can assign a "style" to each session. On Wed, Mar 26, 2008 at 6:08 AM, kman <[EMAIL PROTECTED]> wrote: > > i am currently working on a simple CMS based on wicket. > I want the resulting application to support multiple sites based on h

Re: Panel problem

2008-03-26 Thread James Carman
On Wed, Mar 26, 2008 at 4:45 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > hmm we should make Panel abstract i guess. > It has to be overridden > That sounds like a good way to do it. It won't any existing code, since it wouldn't work in the first place. At least it won't break it anymore th

Re: Trees and DnD?

2008-03-26 Thread James Carman
On Wed, Mar 26, 2008 at 9:04 AM, Thomas Kappler <[EMAIL PROTECTED]> wrote: > We're currently working on it. We use wicketstuff-scriptaculous, and > so far it seems to work, but some things are still missing. > > The basic idea is straightforward: each node is a DraggableTarget (for > accepting

Re: Page templates per virtual host

2008-03-26 Thread James Carman
On Wed, Mar 26, 2008 at 3:36 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > If he meant that the cms should be available via multiple > vhosts(apache2), but share the same application base then what? > > Lets say: > mycompA.com --> myapplication on tomcat server via apache

Re: Page templates per virtual host

2008-03-27 Thread James Carman
On Thu, Mar 27, 2008 at 3:49 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > > > The only problem with that is that you have to set up your proxy > > Connector in Tomcat's server.xml with a hard-coded server name: > > > > > proxyName="www.mycompany.com"

Re: create email with wicket/javamail

2008-03-27 Thread James Carman
I would maybe take a look at WicketTester. It does what you're looking for (renders to a String) I believe. On Thu, Mar 27, 2008 at 4:43 AM, greeklinux <[EMAIL PROTECTED]> wrote: > > I found the method Component.render(MarkupStream markupStream). > > I am thinking about to create this page and

Re: Page templates per virtual host

2008-03-27 Thread James Carman
On Thu, Mar 27, 2008 at 8:49 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > I'll send my config once I get near my server later today:) It is > actually working without the connector setup in tomcat. > > And I think you can even get it to work with connection pooling using

Re: how to resolve jsessionid for the first time in the url

2008-03-27 Thread James Carman
That's a feature of the application server you're using. It has to put that on there initially because it doesn't know if the browser supports cookies or not. When a subsequent request comes in with the jsessionid cookie, it no longer needs to append it to the URLs. Check the docs for HttpServle

Re: Feature request: using @SpringBean outside Wicket request

2008-03-28 Thread James Carman
Spring has that feature built in. Look at their @Configurable annotation support. On Fri, Mar 28, 2008 at 7:33 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Hello, > > I love @SpringBean so much that I would like to use it outside Wicket > requests as well. I am using Restlets and the native

Re: Feature request: using @SpringBean outside Wicket request

2008-03-28 Thread James Carman
ce another load time weaver > (@Configuration depends on AspectJ). This project has already Terracotta > and OSGi on its list, so I find it a bit risky to add another one. > > Regards, > Erik. > > > > James Carman wrote: > > Spring has that feature built in.

Re: setResponsePage(Class c) versus setResponsePage(Page p)

2008-03-28 Thread James Carman
If you need to initialize the page instance in some way (by passing constructor params, for instance), you use the Page version. The other version just uses Class.newInstance() to instantiate the page object. On Fri, Mar 28, 2008 at 6:44 PM, Timm Helbig <[EMAIL PROTECTED]> wrote: > Hi, > > I hav

Re: setResponsePage(Class c) versus setResponsePage(Page p)

2008-03-28 Thread James Carman
Oh, and redirect doesn't work with the Page version (at least in my tests it didn't). On Fri, Mar 28, 2008 at 7:13 PM, James Carman <[EMAIL PROTECTED]> wrote: > If you need to initialize the page instance in some way (by passing > constructor params, for instance), you use

Re: setResponsePage(Class c) versus setResponsePage(Page p)

2008-03-28 Thread James Carman
ouble post problem if you go back in history > or refresh the page. > > johan > > On Sat, Mar 29, 2008 at 12:15 AM, James Carman <[EMAIL PROTECTED]> > > > wrote: > > > Oh, and redirect doesn't work with the Page version (at least in my > > tests it

Re: setResponsePage(Class c) versus setResponsePage(Page p)

2008-03-28 Thread James Carman
browser's URL is: http://localhost:8080/myproject/home/AnotherPage/ So, it looked like a redirect wasn't happening in the first case. Is it? On Fri, Mar 28, 2008 at 8:16 PM, James Carman <[EMAIL PROTECTED]> wrote: > Well, I tried it with doing setResponsePage(new MyOtherPa

Re: OpenEntityManagerInView and wicket dataview question

2008-03-28 Thread James Carman
What kind of model are you using? Do you have some code you could share? On Fri, Mar 28, 2008 at 10:53 PM, cjlyth <[EMAIL PROTECTED]> wrote: > > I posted a reply to another post this afternoon expanding on a question the > OP had about openEntityManagerInView. I want to ask in a different threa

Re: OpenEntityManagerInView and wicket dataview question

2008-03-28 Thread James Carman
load-exception-wicket-and-hibernate-p16361116.html > > > > I am using a LoadableDetachableModel > > > > > > > > On Fri, Mar 28, 2008 at 10:57 PM, James Carman <[EMAIL PROTECTED]> > > wrote: > > > > > What kind of model are yo

Re: setResponsePage(Class c) versus setResponsePage(Page p)

2008-03-29 Thread James Carman
On Sat, Mar 29, 2008 at 4:18 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > yes it does > do you see the "ILinkListener" part is your browser url? > no because the cleanest url: wicket:interface=:15 is the > IRedirectListener but we dont print that in the url because that one is > assumed

Re: create email with wicket/javamail

2008-03-29 Thread James Carman
You can do WicketTester.getServletResponse().getDocument() to get the rendered HTML. On Sat, Mar 29, 2008 at 9:27 AM, greeklinux <[EMAIL PROTECTED]> wrote: > > Hello, > > I looked into the source code, but I do not find some line > that helped me. I was using the online SVN view. But I think >

Re: Lazy load exception wicket and hibernate

2008-03-29 Thread James Carman
On Sat, Mar 29, 2008 at 7:15 AM, lars vonk <[EMAIL PROTECTED]> wrote: > What is the order of the filters you defined in your filter-mapping element > in the web.xml. IIRC you should put the OpenEntityManagerInViewFilter > definition in the filter-mapping after the WicketFilter otherwise the > Wi

Re: Lazy load exception wicket and hibernate

2008-03-29 Thread James Carman
On Sat, Mar 29, 2008 at 10:14 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > it will execute _after_ the wicket filter. which is no good because > you need lazy loading to work inside wicket filter, so you need oemiv > to execute before. and possibly, if wicket filter never calls > chain.dofilte

Re: Lazy load exception wicket and hibernate

2008-03-30 Thread James Carman
On Sun, Mar 30, 2008 at 6:01 AM, lars vonk <[EMAIL PROTECTED]> wrote: > IIRC you should put the OpenEntityManagerInViewFilter definition in the > > filter-mapping after the WicketFilter otherwise the WicketFilter will come > > first. > > > I of course meant *before the WicketFilter*, because lik

Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions

2008-06-26 Thread James Carman
Are you positive that hibernate will write this data to the session? The default flush mode of Spring's OpenSessionInViewFilter is "NEVER": http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/orm/hibernate3/support/OpenSessionInViewFilter.html#setFlushMode(org.hibernate.Flu

Re: OpenSessionInView (OSIV), LoadableDetachableModel and Transactions

2008-06-26 Thread James Carman
ugh since validation should have stopped unwanted values from comming > in.. > > > He could try to use the wicket Iolite archetype for this, should be simple > to see, and Im very sure that he will see that only validated values are in > his objects... > > James Carman wrote: &g

Re: FeedbackPanel and page refresh (f5) after submit

2008-06-26 Thread James Carman
Well, IE actually does refresh the page in certain situations, I've seen. Firefox doesn't have this problem at least in my experience. On Thu, Jun 26, 2008 at 12:00 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > this has nothing to do with versioning. when you press the back button > in the brows

Re: FeedbackPanel and page refresh (f5) after submit

2008-06-26 Thread James Carman
08 at 10:15 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > On Thu, 26 Jun 2008, James Carman wrote: >> Well, IE actually does refresh the page in certain situations, I've >> seen. Firefox doesn't have this problem at least in my experience. > > It depends on the cach

Re: generics

2008-06-29 Thread James Carman
What sort of time frame are we looking at for a release with this new generics paradigm? On Sun, Jun 29, 2008 at 3:54 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On Sun, Jun 29, 2008 at 12:48 PM, Sven Meier <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I've just converted two projects to the new gene

Re: redirect page in the constructor

2008-06-30 Thread James Carman
Sounds a bit too confusing to me. Seems overkill. On Mon, Jun 30, 2008 at 2:59 PM, Bruno Borges <[EMAIL PROTECTED]> wrote: > I have an idea that sounds crazy, but imho, is better then throwing an > exception (stack trace is a little bit expensive to the VM). > > Here it goes: > > public class

Re: redirect page in the constructor

2008-06-30 Thread James Carman
On Mon, Jun 30, 2008 at 4:36 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > exceptions are for exceptional circumstances. i think redirecting to a > different page from a constructor of another page is pretty > exceptional...otherwise you wouldnt be in the constructor of the wrong > page :) +1. A

Re: patterns for web ui apps. mvc models

2008-07-01 Thread James Carman
On Tue, Jul 1, 2008 at 1:56 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> I've been thinking about the way in which wicket is an MVC framework and >> whether people use it according to the MVC pattern. > > The MVC pattern is bastardized - especially when it comes to web > application frameworks

Re: patterns for web ui apps. mvc models

2008-07-01 Thread James Carman
On Tue, Jul 1, 2008 at 2:35 PM, Sven Meier <[EMAIL PROTECTED]> wrote: > Well, in Wicket the markup doesn't do much (which is a good thing) besides > layout. If you're correctly using CSS, the markup isn't even responsible for > the look (and feel). > > I don't know if this qualifies it as a 'V' in

Re: patterns for web ui apps. mvc models

2008-07-02 Thread James Carman
On Wed, Jul 2, 2008 at 6:00 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> I'm also worried about injecting repositories and such to UI >> components, because it easily leads to domain logic to leak >> to UI layer. > > Sometimes the dividing line is thin though. Take for instance sorting > and g

<    1   2   3   4   5   6   7   8   9   10   >