Re: Facebook Wicket Integration

2008-05-07 Thread TH Lim
Check why your client variable is null. I think the problem lies there. caoanhkiet wrote: > > Hi, > I have been following > http://cwiki.apache.org/WICKET/facebook-integration.html and version > tomcat 5.5.25. and ran NullPointerException. > > error at: client.friends_get(); > > SEVERE: Can't

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-07 Thread Johan Compagner
if the scanning of the classpath is expensive (i guess all classes are loaded that are scanned..) cant there be an option that the scanning is only done once? When you create the jar so with maven/ant? When creating the jar you are scanning everything and create a manifest entries of all the packag

Re: Private Homepage Redirection

2008-05-07 Thread Johan Compagner
add this to the api... Because this is the second question about this in a very short time.. johna On Wed, May 7, 2008 at 7:47 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Perhaps this one helps? > > public class RedirectToExternalException extends > AbstractRestartResponseException > { >

Re: forcing cookies to expire

2008-05-07 Thread Johan Compagner
how is that page called/created? if you do this: public SignOut() { clearCookie(Register.REMEMBER_ME_COOKIE); getSession().invalidate(); getRequestCycle().setRedirct(false) } what then On Tue, May 6, 2008 at 4:16 PM, Andrew Brod

How to generate 403 Forbidden?

2008-05-07 Thread Java Programmer
Hello, How can I generate 403 Forbidden or other codes (404 etc.) on Exception? I think I should set headers and set redirect to true, but anyone have working example? Best regards, Adr - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: How to generate 403 Forbidden?

2008-05-07 Thread Iman Rahmatizadeh
throw new AbortWithHttpStatusException(403,true); Iman On Wed, May 7, 2008 at 11:00 AM, Java Programmer <[EMAIL PROTECTED]> wrote: > Hello, > How can I generate 403 Forbidden or other codes (404 etc.) on > Exception? I think I should set headers and set redirect to true, but > anyone have workin

Re: How to generate 403 Forbidden?

2008-05-07 Thread Johan Compagner
for example InternalErrorPage already does that: protected void configureResponse() { super.configureResponse(); getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus( HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } and we have 2: AbortWithWebE

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-07 Thread Martijn Dashorst
On 5/7/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > if the scanning of the classpath is expensive (i guess all classes are > loaded that are scanned..) > cant there be an option that the scanning is only done once? > When you create the jar so with maven/ant? > When creating the jar you are

Re: Stateless link usage

2008-05-07 Thread Johan Compagner
with a statelesslink you cant rely on state on the server so final fields and all of that dont work. The link should be able to do it job on a page that is just created... thats the most important thing to remember.. So no state from a model (except if the model is already usable on page creation)

wicket-extensions javadoc

2008-05-07 Thread Matthijs Wensveen
Hi, I'm not sure this is the right place, but anyway. The online javadoc of wicket-extensions at http://wicketframework.org/wicket-extensions/apidocs/index.html is of version 1.2-SNAPSHOT, but the latest release is 1.3.3. The javadoc that maven pulls in is more current. Could the online javado

Re: How to generate 403 Forbidden?

2008-05-07 Thread Eelco Hillenius
> and we have 2: > AbortWithWebErrorCodeException Uses HttpServletResponse#sendError > AbortWithHttpStatusException Uses HttpServletResponse#setStatus > why 2? i dont know i think we need to clean up here (eelco? igor? who > was first ;) ) >From HttpServletResponse#setStatus: *

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-07 Thread Eelco Hillenius
On Wed, May 7, 2008 at 12:20 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > if the scanning of the classpath is expensive (i guess all classes are > loaded that are scanned..) > cant there be an option that the scanning is only done once? > When you create the jar so with maven/ant? > When cr

behavior for onComponentTagBody

2008-05-07 Thread Eyal Golan
Hi all, I have this in several components: @Override protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { String value; if (getModel() != null) { value = getModelValue(); } else { value = ""; } r

Re: How to generate 403 Forbidden?

2008-05-07 Thread Johan Compagner
ahh i looked to quickly :) i though 1 does it more in the old way (AbortWithHttpStatusException) and the AbortWithWebErrorCodeException with a much cleaner way of doing (everything in a RequestTarget) On Wed, May 7, 2008 at 9:45 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > and we have 2:

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-07 Thread Johan Compagner
that would then be the best impl yes. But I dont know if you know what jars you are scanning... So do you know that you dont have to do this because this jar is described in the manifest and another doesnt have it and you have to scan That could be difficult. But i dont know how the current sc

Re: Immediate redirect from session

2008-05-07 Thread Edvin Syse
Johan Compagner wrote: > > Doing this stuff in the session constructor is really the wrong place, > then still the normal request processing will happen. > > Something like this should be done in RequestCycle.onBeginRequest() > and then throw a RestartResponseException() instead of just setting

Re: Regarding Print page function?

2008-05-07 Thread Edi
no. how can i use this html validator for that print? please tell me. thanks regards, edi Martin Makundi wrote: > > Hi... have you validated your page using a HTML validator? > > ** > Martin > > 2008/5/6 Edi <[EMAIL PROTECTED]>: >> >> hello to all, >> >> please give me your suggestion reg

Re: Open new window or tab with setResponsePage

2008-05-07 Thread AlexTM
Thanks! I've tried this but can't figure out how to pass parameters to the popup from a form. Any ideas? /Alex martin-g wrote: > > use Link with PopupSettings > I think there is an example for this in wicket-examples > > > On Tue, 2008-05-06 at 03:11 -0700, AlexTM wrote: >> Is it possilble t

Re: TinyMCE Behavior rather than TinyMCE Panel

2008-05-07 Thread Timm Helbig
Hi, AFAIK the only Release for Wicket 1.3 is available through the Wicketstuff Subversion Repository. The last Release I tried from sourceforge.net was outdated, because it was targeted for Wicket 1.2 The Module needed is wicket-contrib-tinymce and I suggest wicket-contrib-tinymce-examples. An

Re: Why is it illegal to update hierarchy in onAfterRender?

2008-05-07 Thread Johan Compagner
but if you remove it how can it be a target again for an ajax event? or that never happens? What you can use is try to add it as auto add.. So create an auto add component, we will remove those for you johan On Tue, May 6, 2008 at 9:38 PM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Hello Joh

CometServlet and WicketFilter

2008-05-07 Thread freak182
Hello, my problem im having problem integrating the wicket-push example to our project using wicketfilter and since the wicket-push examples using wicketservlet..how can i configure this changes?i already ported to servlet-api 2.5. i change from... ServletContext servletContext = ((WebApplication

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-07 Thread James Carman
I did something like this for Hibernate back in the day. I wrote an APT processor that checked for all classes annotated with @Entity and added those to a hibernate.cfg.xml file. On Wed, May 7, 2008 at 3:20 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > if the scanning of the classpath is expen

Re: CometServlet and WicketFilter

2008-05-07 Thread Johan Compagner
you can upgrade your compile servlet api just fine But are you also running in a container that uses 2.5??? johan On Wed, May 7, 2008 at 11:45 AM, freak182 <[EMAIL PROTECTED]> wrote: > > Hello, > my problem im having problem integrating the wicket-push example to our > project using wicketfilte

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-07 Thread Maarten Bosteels
On Wed, May 7, 2008 at 9:20 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > if the scanning of the classpath is expensive (i guess all classes are > loaded that are scanned..) Hi, I guess you haven't read the docs completely :-) It says: "Note that Spring does not load the class to determine

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-07 Thread Doug Donohoe
Thank you Maarten for pointing out the documentation I wrote on this. In my project, I have 60+ jar files in the classpath and the scan only took 255 milliseconds (on a 1.66 ghz core duo mac). Initializing hibernate takes much longer. I think this is pretty decent, and since it is only incurr

OpenSessionInView and LazyInitializationException

2008-05-07 Thread Tomasz Prus
I had such configuration: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> contextConfigLocation /WEB-INF/carpartswebsite-servlet.x

Re: OpenSessionInView and LazyInitializationException

2008-05-07 Thread Wouter Huijnink
You need to declare the opensessioninviewfilter *before* the wicket filter -- Wouter Huijnink Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: Private Homepage Redirection

2008-05-07 Thread Alex Jacoby
+1 I did something similar but not nearly so elegant. This would have been nice to have. On May 7, 2008, at 3:22 AM, Johan Compagner wrote: add this to the api... Because this is the second question about this in a very short time.. johna On Wed, May 7, 2008 at 7:47 AM, Martijn Dashorst

Re: TestingAuthenticationToken and AbstractAuthenticationToken

2008-05-07 Thread David Nedrow
On May 7, 2008, at 2:55 AM, Maurice Marrink wrote: The 1.3.1-SNAPSHOT is not the latest snapshot, i should probably delete it from the repo. The latest version is 1.3-SNAPSHOT. D'oh! Thanks. -David - To unsubscribe, e-mail:

Re: Making entire row editable in a DataTable

2008-05-07 Thread ChuckDeal
If you have a handle to the Item instance represetning the cell, then you can do something like cell.findParent(Item.class) which will get you the row's Item instance, on which you can call row.getModel() FWIW, the inmethod grid is excellent, but it does require pretty big changes in order to r

CheckGroups

2008-05-07 Thread Fabien D.
Hi everydoby, I have a problem to make a complex form with CheckGroups . My question is : is ti possible to use CheckGroup to check anothers CheckGroups ?? And if it is not possible, how can I use CheckGroups to check checkboxs wich will checkanothers checkboxs?? I don't know if you understan

Re: Private Homepage Redirection

2008-05-07 Thread TH Lim
+1 It's a handy class and should be put in the API. Alex Jacoby-2 wrote: > > +1 > > I did something similar but not nearly so elegant. This would have > been nice to have. > > On May 7, 2008, at 3:22 AM, Johan Compagner wrote: > >> add this to the api... >> Because this is the second que

Re: Making entire row editable in a DataTable

2008-05-07 Thread Roman Zechner
Hm .. maybe you should have a look at the Editable TreeTable to get some ideas http://wicketstuff.org/wicket13/ajax/tree/table/editable ChuckDeal wrote: If you have a handle to the Item instance represetning the cell, then you can do something like cell.findParent(Item.class) which will get

CheckGroup and back Button problem

2008-05-07 Thread Steen Larsen
Hi, I have made a CheckGroup vith a ListView of Check's than works fine, except that when it is submitted and I'm on the next page and want to go back through a Wicket Button (not the browsers back button), all the checks are empty even thouch the model behind still contains the selected obejcts.

Re: Regarding Print page function?

2008-05-07 Thread Martin Grigorov
Edi, On Wed, 2008-05-07 at 01:18 -0700, Edi wrote: > no. how can i use this html validator for that print? please tell me. > > thanks > regards, > edi > > > Martin Makundi wrote: > > > > Hi... have you validated your page using a HTML validator? > > > > ** > > Martin > > > > 2008/5/6 Edi <[

RE: forcing cookies to expire

2008-05-07 Thread Andrew Broderick
Tried that, and it didn't make any difference (getRequestCycle().setRedirect(false)). The page is called via a BookmarkablePageLink. Debugging reveals that the constructor, below, is called every time the link is clicked, so it isn't an issue of the code not being called. I also tried calling i

Re: AjaxLazyLoadPanel question

2008-05-07 Thread taygolf
ok I guess you can say that i fixed this myself since noone else offered any advice. I could not figure out the error that I was getting about not being able to find the div closing tag so I decided to put all of my code that was for the form in an actual panel and then just make the call from laz

Re: Stateless link usage

2008-05-07 Thread Ritz123
Actually I want to "add the product to the cart" and not go to the detail page. They both are similar operation in a way, but there is one major difference. View Product has dedicated functionality of just viewing the product and nothing more, but "View Cart" page will be overloaded with "add to c

Re: OpenSessionInView and LazyInitializationException

2008-05-07 Thread lars vonk
To be more precise: the opensessioninview filter's filter-mapping element needs to be declared before the wicket filter's filter-mapping element. Lars On Wed, May 7, 2008 at 2:35 PM, Wouter Huijnink <[EMAIL PROTECTED]> wrote: > You need to declare the opensessioninviewfilter *before* the wicket

Re: wicket-extensions javadoc

2008-05-07 Thread Doug Donohoe
Matthijs, I had to host javadoc for my own wicketstuff-annotations project, so I decided to put the Wicket docs there (since the main site isn't up-to-date). I added wicket-extensions to the site: http://www.ddpoker.com/javadoc/ -Doug Matthijs Wensveen-2 wrote: > > Hi, > I'm not sure this i

Re: wicket-extensions javadoc

2008-05-07 Thread Martijn Dashorst
wicketframework.org is not the main site. http://wicket.apache.org is As you can see, http://wicketframework.org redirects to http://wicket.apache.org The 1.2 docs are still available for reference, and *must* be hosted on the sf.net hardware (they are not released under supervision of Apache).

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-07 Thread Eelco Hillenius
> > if the scanning of the classpath is expensive (i guess all classes are > > loaded that are scanned..) > > It says: "Note that Spring does not load the class to determine this > information. Instead, it uses a meta-data reader to determine this (which is > faster than going through class lo

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-07 Thread Eelco Hillenius
> In my project, I have 60+ jar files in the classpath and the scan only took > 255 milliseconds (on a 1.66 ghz core duo mac). Yeah, that sounds perfectly acceptable. > Also note that anything JAR-based > would not easily work in development environments where you don't JAR after > each chan

Re: PageParameters request-for-enhancement

2008-05-07 Thread Eelco Hillenius
Hi, You can best file an RFE in JIRA for things like this. The list is primarily for questions and discussions, and adding it to JIRA will at least make sure it stays on the list of things to look at. Cheers, Eelco On Thu, Apr 24, 2008 at 3:00 PM, Doug Donohoe <[EMAIL PROTECTED]> wrote: > > Hi

Wicket and Eclipse WTP

2008-05-07 Thread John Krasnay
I've recently switched from the Sysdeo Tomcat plugin for Eclipse to WTP for running my Tomcat instance. I'm trying to get to a point where when I change a .html or .properties file it just shows up without re-deploying the whole web context. It seems that if I change a file under src/main/webapp it

RE: Wicket and Eclipse WTP

2008-05-07 Thread Zappaterrini, Larry
Double click on the Tomcat server in the Servers view. In the editor, select the Modules tab. Select your web application and click Edit. Uncheck Auto reloading enabled. That always does the trick for me. Now if there were only a way to have it default to unchecked when deploying a new application.

Re: Wicket and Eclipse WTP

2008-05-07 Thread John Krasnay
Cool...works like a charm. Thanks. I found that checking "Serve modules without publishing" under Server Options on the Overview tab seems to work as well. Got the idea from here: http://dev.eclipse.org/newslists/news.eclipse.webtools/msg14190.html Unfortunately, neither of these options are avai

Re: TinyMCE Behavior rather than TinyMCE Panel

2008-05-07 Thread Ayodeji Aladejebi
yeah yeah, thanks now i recall i checke it out from wicket-stuff repo. On 5/7/08, Timm Helbig <[EMAIL PROTECTED]> wrote: > > Hi, > > AFAIK the only Release for Wicket 1.3 is available through the Wicketstuff > Subversion Repository. The last Release I tried from sourceforge.net was > outdated, be

RE: Difficulty getting QuickStart

2008-05-07 Thread Frank Silbermann
Warren provided a link (http://herebebeasties.com/2007-10-07/wicket-quickstart/) to a very helpful site that demonstrates: 1. Using Maven2 to download the Wicket Quickstart project, 2. Downloading the Eclipse plug-in for Maven2, 3. Configuring Eclipse to find Maven2, and 4. Run

Re: Difficulty getting QuickStart

2008-05-07 Thread James Carman
Maven comes with an Eclipse "plugin" that allows you to generate eclipse project files based on the pom.xml file of your project. In the eclipse project files, they refer to an M2_REPO (the Maven2 Repository) directory as a classpath variable. You have to make sure your Eclipse instance is config

Re: PageParameters request-for-enhancement

2008-05-07 Thread Doug Donohoe
I created https://issues.apache.org/jira/browse/WICKET-1596 and submitted a patch with test cases. I'd be happy to commit if given commit access if that is easier. Perhaps my work on wicketstuff-annotation demonstrates my attention to detail in code and documentation. Thanks, -Doug Eelco Hil

DropDownChoice.onSelectionChanged() and model updating

2008-05-07 Thread Andrew Broderick
Hi, I have a form that I want to repopulate when a drop down list is changed. If I change the underlying domain object in the onSelectionChanged(), the form fields are not updated to reflect the changes (yes, they do use a dynamic model). However, if I have a button next to the drop down list a

Label to Uppercase

2008-05-07 Thread ak
Hello, I need your suggestion on, what are the ways I can get Label to print in Uppercase. Couple of ways I know are: 1. I can do it with CSS 2. I can make all fields String.toUpperCase() 3. I can seek your advice :) My code is like: Label label = new Label(id) { @Override

Re: Label to Uppercase

2008-05-07 Thread Eelco Hillenius
> I need your suggestion on, what are the ways I can get Label to print in > Uppercase. Several ways. An easy one: public class UpperCaseLabel extends Label { public UpperCaseLabel(String id) { super(id); } public UpperCaseLabel(String id, String label)

Re: Label to Uppercase

2008-05-07 Thread Jeremy Thomerson
As Eelco mentioned, there are quite a few ways... I typically use delegation for this sort of thing with a model that wraps another model. This way it can be reused for a Label, dropdown, textfield, etc you could do then: add(new Label("myLabelID", new UpperCaseModel(new PropertyModel(myObject

Re: CheckGroups

2008-05-07 Thread Maurice Marrink
Never used CheckGroup myself but i think you can use onSelectionChanged to select some other checkbox or you can use AjaxFormComponentUpdatingBehavior to do the same using ajax. Maurice On Wed, May 7, 2008 at 4:22 PM, Fabien D. <[EMAIL PROTECTED]> wrote: > > Hi everydoby, > > I have a problem t

Re: Difficulty getting QuickStart

2008-05-07 Thread Jeremy Thomerson
If you're just getting started with Maven / Wicket QuickStart, etc, I'd suggest the following... Go to this page and follow the instructions on it: http://wicket.apache.org/quickstart.html Basically, after you have Maven properly installed, you go to the page above, and generate the Maven command

Wicket 1.4 and generics

2008-05-07 Thread Doug Donohoe
I'm just now using 1.4. What type of thing is expected for T in WebPage ? It looks like what your model object is. But if your page doesn't use models (perhaps just it's children do), is the correct thing to do this? class MyPage extends WebPage I have lots of 'unchecked' and 'raw use' warnin

Re: Wicket 1.4 and generics

2008-05-07 Thread Matej Knopp
I usually just use in such case. -Matej On Wed, May 7, 2008 at 11:40 PM, Doug Donohoe <[EMAIL PROTECTED]> wrote: > > I'm just now using 1.4. What type of thing is expected for T in WebPage ? > > It looks like what your model object is. But if your page doesn't use > models (perhaps just it'

Re: Wicket 1.4 and generics

2008-05-07 Thread Jeremy Thomerson
You are correct, WebPage is for the model type of your page. This allows you to do MyObject getObject(), etc. I, too, am trying to deal with all of the generics warnings right now and figure out what my strategy will be for pages without a model. One suggestion that has been made on the list is

Wicket 1.4 faster in development

2008-05-07 Thread Doug Donohoe
I don't know if this is intentional or not, but pages seem to load much faster in development mode in Wicket 1.4-m1. It looks like the CSS and JS files are not reloaded on each request as they were previously. Was this an intentional change? -Doug -- View this message in context: http://www.

Ajax and Loop

2008-05-07 Thread Stefan Lindner
Dear wicket wizzards, I have a Loop on my page (creates Components from a List ot Objects). Now I have an AjaxFallbackLink on my page. This link adds an Object to my List and as a reaction to this action I want my Loop to be repainted (showing the new object). What must I do? A simple "target.addC

Re: Wicket 1.4 and generics

2008-05-07 Thread Doug Donohoe
HTML gobbled my in that last message ... my proposed example was: class MyPage extends WebPage Doug Donohoe wrote: > > I'm just now using 1.4. What type of thing is expected for T in > WebPage ? > > It looks like what your model object is. But if your page doesn't use > mo

Re: Label to Uppercase

Yeah, that a more generic solution. You can even use converters. If you want to get into an argument with Igor that is ;-) Eelco On Wed, May 7, 2008 at 2:25 PM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > As Eelco mentioned, there are quite a few ways... I typically use delegation > for this s

Re: Ajax and Loop

Can you paste some code? Have you tried using a ListView in combination with a model (rather than passing a List to the constructor of ListView)? Jeremy Thomerson http://www.wickettraining.com On Wed, May 7, 2008 at 4:55 PM, Stefan Lindner <[EMAIL PROTECTED]> wrote: > Dear wicket wizzards, > >

Re: Ajax and Loop

The Loop fills the rows of a table. I have no idea how a ListView can generate the .. structure of a table. The examlpe code would be a little bit complex because I use Scriptaculous (self compiled for wicket 1.4 enriched by generics)). After a drag operation into a table (generated gy a Loop)

Re: Ajax and Loop

> I have a Loop on my page (creates Components from a List ot Objects). > Now I have an AjaxFallbackLink on my page. This link adds an Object to > my List and as a reaction to this action I want my Loop to be repainted > (showing the new object). What must I do? A simple > "target.addComponent

Re: Ajax and Loop

Hrmm... I suspect that somewhere one of your components is holding on to a copy of the list, and isn't modified. Have you tried using a model, shared between the component you want to refresh and the link that will modify the list? If the link modifies the list, then the component that has the s

Re: Ajax and Loop

> Have you tried using a ListView in combination with a model (rather than > passing a List to the constructor of ListView)? That won't trigger a re-population of the child components (ListItem and everything you add to it). For that, you need to call setReuseItems(false). Note that this can caus

Re: Wicket 1.4 faster in development

dont think so. Most stuff that is in 1.4 is also in 1.3 except some api changes and api changes. On Wed, May 7, 2008 at 11:54 PM, Doug Donohoe <[EMAIL PROTECTED]> wrote: > > I don't know if this is intentional or not, but pages seem to load much > faster in development mode in Wicket 1.4-m1. > >

Fragment issue

Sorry for duplicate post...selected the wrong button. I have a DataView and for each 'row', I add a different fragment based on the object model type. However, in each fragment I have a link (edit). The page displays fine. But when I select on the link, wicket indicates that that link interface

Re: IDataProvider and grouping

On Tue, May 6, 2008 at 10:51 AM, Scott Swank <[EMAIL PROTECTED]> wrote: > Has anyone implemented grouping of items, i.e. sort/group items by > location and thereby add a location-level grouping. I'm considering > implementing this as a Border around groups of items. Basically any > lessons lea

A question about partial form updates with AJAX

I have a form with several items. About half of the form is wrapped in a named div attached to a WebMarkupContainer. When a drop-down value changes, the div is updated via AJAX, re-rendering that part of the form. However, the components in that part of the form are not updated and so this re-re

Wicket javascripts - reloading every one hour

Hi boys, I think, there is one problem with wicket ajax javascripts - there are reloading by browser every hour, because the Expire header is hardcoded to 3600 seconds in WebResource#setHeaders() method. It is really needed to repeatedly once an hour download these wicket javascripts ? These ar

Re: IDataProvider and grouping

I have a SortedDataProvider that uses a Comparator to sort the items. However that requires retrieving all of the items -- which is perhaps not what an IDataProvider is meant to do. Then I have a GroupingDataProvider that extends SortedDataProvider and wraps SortedDataProvider. This is all prett

Re: Fragment issue

Can you post the exact error you get? assuming exception stacktrace. Doug Leeper wrote: > > Sorry for duplicate post...selected the wrong button. > > I have a DataView and for each 'row', I add a different fragment based on > the object model type. > > However, in each fragment I have a link

Re: IDataProvider and grouping

We have a whole bunch of custom components that are somewhat generic. Unfortunately, they'd need a lot of clean up before they could be made available as open source, and here and there they are tied in to our domain model and specific classes for our project etc. One of the components we have is

Re: Label to Uppercase

When we finally get commons-functor generified, I'm going to create an IModel implementation that takes a UnaryFunction and wraps another IModel. This would probably be a read-only model, though (unless you supply the UnaryFunction's inverse also I guess). This would be reusable so that you can s

Re: CometServlet and WicketFilter

Hello Johan, I think im running on servlet 2.5 container because in the wicket-push example it uses the embeded jetty server 6.1.1 and in our project we are using embeded jetty server 6.1.4..i guess higher version make a difference or i might be wrong,pls advise?...Thanks a lot...Cheers.. Johan

Re: Label to Uppercase

> When we finally get commons-functor generified, I'm going to create an > IModel implementation that takes a UnaryFunction and wraps another > IModel. Sounds cool, looking forward to it. Eelco - To unsubscribe, e-mail: [EMAIL

Re: Fragment issue

Sorry...I forgot to add the first time. Here it is. org.apache.wicket.WicketRuntimeException: component replacements:replacement:1:replacementFragment:editPhone not found on page com.positiontech.local.wicket.main.advertiser.advertiser.newCampaign.NewCampaignReplacements[id = 6], listener interf

Re: Wicket javascripts - reloading every one hour

> It is really needed to repeatedly once an hour download these wicket > javascripts ? > These are static wicket javascripts, they are not subject of changes, so > why could they not be cached for longer time, for example - 1 week, or > longer. Yeah, I think that was chosen arbitrarily. > I

Re: Fragment issue

Here is something interesting... I changed my DataView to ListView and now it works. Any known issue in using a DataView over a ListView in this given circumstance? -- View this message in context: http://www.nabble.com/Fragment-issue-tp17116545p17117671.html Sent from the Wicket - User mailin

Re: Wicket 1.4 faster in development

On Wed, May 7, 2008 at 5:54 PM, Doug Donohoe <[EMAIL PROTECTED]> wrote: > > I don't know if this is intentional or not, but pages seem to load much > faster in development mode in Wicket 1.4-m1. > Did you get a new computer since 1.3.x? ;) ---

Re: DropDownChoice.onSelectionChanged() and model updating

when you submit a form the fields remember their "raw" values. if in onselectionchanged() of the ddc you change something that will change values of these other form components and you want that reflected you need to call clearInput() or modelUpdated() on those form components. -igor On Wed, May

Re: Stateless link usage

so you want it to add something to cart, and then go where? to the same page? to the cart page? -igor On Wed, May 7, 2008 at 9:11 AM, Ritz123 <[EMAIL PROTECTED]> wrote: > > Actually I want to "add the product to the cart" and not go to the detail > page. They both are similar operation in a wa

Re: overriding getAssociatedMarkupStream

you shouldnt be overriding that method, try implementing IMarkupResourceStreamProvider instead. -igor On Tue, May 6, 2008 at 11:20 PM, Eyal Golan <[EMAIL PROTECTED]> wrote: > ok, maybe I wasn't clear enough. > The simple question is, why the add(HeaderContributor.forCss...)); > is not added to

Re: behavior for onComponentTagBody

doesnt Label do this already? -igor On Wed, May 7, 2008 at 12:57 AM, Eyal Golan <[EMAIL PROTECTED]> wrote: > Hi all, > I have this in several components: > @Override > protected void onComponentTagBody(MarkupStream markupStream, > ComponentTag openTag) { > String value; >

Re: Stateless link usage

Add To Cart links are on the product list page. I want the links to take the users to view cart page where they can see the cart content. igor.vaynberg wrote: > > so you want it to add something to cart, and then go where? to the > same page? to the cart page? > > -igor > > > On Wed, May 7,

Re: Fragment issue

There are a few things I noticed... Your fragment markup doesnt seem to have all the wicket:id's that you have add() for in the fragment constructor - in fact it only has the first id column's wicket id. Also do you really need the page thats holding the fragment to be passed to the next page?

Re: Stateless link usage

there are two ways to do it: a) use a bookmarkablepagelink to go to the cart page and pass in the itemid+quantity to be added. this means that the cart page is responsible for adding the item to the cart. b) use a stateless link to add the item to cart, then setResponsePage(CartPage.class) <== to

Re: Wicket javascripts - reloading every one hour

But is it then really downloaded? Because the brower makes first a head request to it and that will say not changed On 5/8/08, Stefan Simik <[EMAIL PROTECTED]> wrote: > > Hi boys, > > I think, there is one problem with wicket ajax javascripts - there are > reloading by browser every > hour, becaus