A question for Igor

2008-04-24 Thread Matthew Young
I am looking at the wicket.markup.html.tabs.TabbedPanel (wicket-extensions)http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.TabbedPanelPageexample on http://wicketstuff.org/wicket13/compref/, I couldn't figure out how you switch the css. Is

Re: A question for Igor

2008-04-24 Thread Igor Vaynberg
the code is on TabbedPanelPage, the links simply switch the css class that is on the div tag used to attach to tabbed panel. -igor On Wed, Apr 23, 2008 at 11:08 PM, Matthew Young [EMAIL PROTECTED] wrote: I am looking at the wicket.markup.html.tabs.TabbedPanel

Re: Request for hints: Long duration requests; ajax 'status' line

2008-04-24 Thread lars vonk
Hi, The code in the blog contains some visibility issues. So I wouldn't use that code in your application without making it Thread safe. Since the write and read of the uploading and uploadComplete flag happen in different Threads access to those variables must be either protected by a lock or

Re: Integer only NumberValidator?

2008-04-24 Thread Martijn Dashorst
new TextField(number, ..., Integer.class); Integer-ness is checked at conversion level before validation. Martijn On 4/24/08, Michael Mehrle [EMAIL PROTECTED] wrote: Javadoc keeps talking about a factory method to create an Integer based NumberValidator, but I don't see it. How do I create a

Re: autocomplete: no popup when field is empty

2008-04-24 Thread Gerolf Seitz
right, but since it's in extensions, everything has to be homegrown :/ On Wed, Apr 23, 2008 at 11:11 PM, Johan Compagner [EMAIL PROTECTED] wrote: not by us ;) Gerolf is ofcourse using a standard fully tested lib right ;) On Wed, Apr 23, 2008 at 10:58 PM, Igor Vaynberg [EMAIL PROTECTED]

Re: Show feedbackpanel on modalwindow

2008-04-24 Thread Maurice Marrink
Add a feedbackpanel to the modal window. If needed you can also use a IFeedbackMessageFilter on the feedbackpanels to decide which panel shows which message. In the ajaxsubmit you should also add the feedbackpanel on the modalwindow to the ajaxtarget Maurice On Wed, Apr 23, 2008 at 2:20 PM,

Re: modal window, javascript error

2008-04-24 Thread Maurice Marrink
could you create a jira issue please. Maurice On Wed, Apr 23, 2008 at 2:59 PM, Ivan Bodrov [EMAIL PROTECTED] wrote: http://wicketstuff.org/wicket13/ajax/modal-window Internet Explorer 6.0.2900.2180.xpsp2_rtm.040803-2158 (Windows XP SP2) 1. click on 'Show modal dialog with a page' 2.

Re: Problem with how to make variation

2008-04-24 Thread StephenP
Override webrequestcycle.onbeginrequest() Get the hostname: String hostname = ((WebRequest) getRequest()).getHttpServletRequest().getHeader(host); Then based on the host you can set Session.setstyle() and Session.setLocale() Mathias P.W Nilsson wrote: Hi! I have a model that should be

Re: How to include Javascript in Head tag

2008-04-24 Thread Maurice Marrink
Use wicket:head script../script/wicket:head Maurice On Thu, Apr 24, 2008 at 1:02 AM, PJ Pillai [EMAIL PROTECTED] wrote: Hello, I am new to Wicket. I am trying to build a dynamic navigational menus. I am building the menuitems from the database in my java code and want to

VOTE: Generics of IDataProvider

2008-04-24 Thread Jan Kriesten
Hi, I have a usecase where the current proposed generic Interface for IDataProvider with upcoming v1.4 of Wicket would break the implementation concept working with Wicket 1.3. The usecase needs different types for iterator + model. Example and explanation are found below the vote: VOTE:

default spring transaction on request cycle

2008-04-24 Thread Stefan Selariu
Hi! I need to call inside a request cycle an unknown number of transactional spring beans. How can I call those beans within the same transaction? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

StatelessForm + UrlCompressingWebRequestProcessor

2008-04-24 Thread Martin Grigorov
Hi, My application uses UrlCompressingWebRequestProcessor. After changing the Form in my LoginPage to StatelessForm the following exception occurred: ERROR - RequestCycle - For input string: loginForm java.lang.NumberFormatException: For input string: loginForm at

Re: VOTE: Generics of IDataProvider

2008-04-24 Thread Sebastiaan van Erk
[ ] IDataProviderI,T [X] IteratorIModelT , drop model [ ] Leave as is. Regards, Sebastiaan Jan Kriesten wrote: Hi, I have a usecase where the current proposed generic Interface for IDataProvider with upcoming v1.4 of Wicket would break the implementation concept working with Wicket 1.3.

Re: Return to Original Destination gets the ajax response and not the page

2008-04-24 Thread Michael Sparer
What wicket version are you using? I know this bug has been fixed for version 1.3.2 and above regards, Michael Warren Bell wrote: I am getting an ajax response xml instead of the page when I return to original destination page that is ajax enabled after a

Re: default spring transaction on request cycle

2008-04-24 Thread lars vonk
I would advice you to group the transactional beans in one Service, define that service in Spring and make it transactional. By using the proper Transaction Propagation levels the wrapped beans can use existing transactions if there is one. See

Re: VOTE: Generics of IDataProvider

2008-04-24 Thread Johan Compagner
[ ] IDataProviderI,T [X] IteratorIModelT , drop model [X] Leave as is. I dont care much between those 2. But i definitely dont like option 1, because your example gives me exact the feeling why i dont want that It gives the wrong idea to peoples mind. If they would do what you do, Integer list

Re: StatelessForm + UrlCompressingWebRequestProcessor

2008-04-24 Thread Johan Compagner
add a jira issue. (if there isnt already one, there are some but dont know for this specific case) please add a sample. On Thu, Apr 24, 2008 at 10:20 AM, Martin Grigorov [EMAIL PROTECTED] wrote: Hi, My application uses UrlCompressingWebRequestProcessor. After changing the Form in my

Re: VOTE: Generics of IDataProvider

2008-04-24 Thread Thijs
[ ] IDataProviderI,T [ X ] IteratorIModelT , drop model [ ] Leave as is. Thijs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to set the path for a uploadfolder?

2008-04-24 Thread unka_hahrry
Hi! I want to save images to a specified uploadfolder, but I don't want to define the Folder object with an absolute path. Is there a possiblity to define a Folder relative to the context root? -- View this message in context:

Re: How to include Javascript in Head tag

2008-04-24 Thread Nino Saturnino Martinez Vazquez Wael
you can also implement iheadercontributor PJ Pillai wrote: Hello, I am new to Wicket. I am trying to build a dynamic navigational menus. I am building the menuitems from the database in my java code and want to include it at runtime in the page. Please see the my html below. I tried label,

Re: How to set the path for a uploadfolder?

2008-04-24 Thread Guðmundur Bjarni Ólafsson
If memory serves, then you can get access to the servlet request, and pull out the context path from your page via: getWebRequestCycle().getWebRequest().getHttpServletRequest() regards, Guðmundur On Thu, Apr 24, 2008 at 11:20 AM, unka_hahrry [EMAIL PROTECTED] wrote: Hi! I want to save

Re: VOTE: Generics of IDataProvider

2008-04-24 Thread Martijn Dashorst
On 4/24/08, Jan Kriesten [EMAIL PROTECTED] wrote: [ ] IDataProviderI,T [ ] IteratorIModelT , drop model [X] Leave as is. I don't see the additional benefit of removing the model method. It only breaks API for nothing much gained. Martijn

Re: How to set the path for a uploadfolder?

2008-04-24 Thread Maurice Marrink
You can also use one of the many methods in the servletcontext. you can get it from the application. Maurice On Thu, Apr 24, 2008 at 11:20 AM, unka_hahrry [EMAIL PROTECTED] wrote: Hi! I want to save images to a specified uploadfolder, but I don't want to define the Folder object with an

Re: StatelessForm + UrlCompressingWebRequestProcessor

2008-04-24 Thread Martin Grigorov
It have to be something with my application settings ... I just tried with simple quickstart and there is no exception. Though the produced URL is not compressed again: form id=loginForm1 action=../login/?wicket:interface=%3A0% 3AloginForm%3A%3AIFormSubmitListener%3A%3A method=post

Re: Problems with FileUploadField

2008-04-24 Thread Cristi Manole
I really don't think it can be done w/o an iframe. @Fabien - here's the (simple) code: http://www.dooriented.com/blog/2008/04/ Cristi Manole On Wed, Apr 23, 2008 at 5:39 PM, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello Michael, Could you share this fileupload.js? I'd bet it creates some

Re: Problem with how to make variation

2008-04-24 Thread Mathias P.W Nilsson
Thanks! Is this really a good idé? What about testing. editing the host files I guess? Is this what you normally do when building different websites with the same model? -- View this message in context: http://www.nabble.com/Problem-with-how-to-make-variation-tp16834129p16849672.html Sent from

Re: DatePicker - CSS errors

2008-04-24 Thread Stefan Simik
Ok, I think, I can live with it ;) Thx, for the answer . Stefan Simik -- View this message in context: http://www.nabble.com/DatePicker---CSS-errors-tp16834841p16849765.html Sent from the Wicket - User mailing list archive at Nabble.com.

Clicking a tree leaf and confirmation

2008-04-24 Thread Federico Fanton
Hi all! First of all, I'd like to celebrate the achieved complete elimination of JSF from our project here, thanks to Wicket :) Next, I'm facing a little problem.. I have a LinkTree and I'd like to make it ask for confirmation (via a JS alert) whenever the user clicks on a leaf.. If the user

Re: Problem with how to make variation

2008-04-24 Thread StephenP
It seems to be working ok for us although we're not in production yet. One of our aims is to avoid code duplication across many sites and make deployment easy (i.e. not having to deploy and cluster individual sites in their own war files) Yes, we do edit the hosts file for testing, but you

Re: VOTE: Generics of IDataProvider

2008-04-24 Thread James Carman
On Thu, Apr 24, 2008 at 3:42 AM, Jan Kriesten [EMAIL PROTECTED] wrote: Hi, I have a usecase where the current proposed generic Interface for IDataProvider with upcoming v1.4 of Wicket would break the implementation concept working with Wicket 1.3. The usecase needs different types for

Re: Anyway to fix this generic warning?

2008-04-24 Thread ArthIT
Hi, in Eclipse go to Window - Preferences Type Generic in the search box. Now you should see the Java-compiler-Errors/Warnings Node. Open it, and change settings under Generic types to whatever you want (Ignore f.e.) Cheerz MYoung wrote: (Other than using @SupressWarnings)

Re: Wicket tester calling load twice in loadableDetachableModel

2008-04-24 Thread James Carman
On Wed, Apr 23, 2008 at 10:06 PM, Ned Collyer [EMAIL PROTECTED] wrote: Hi I have the following, and its resulting in 2x calls to the load on my model - which confuses me. My panel has the following in its constructor. setModel(new CompoundPropertyModel(new LoadableDetachableModel() {

Re: Wicket tester calling load twice in loadableDetachableModel

2008-04-24 Thread James Carman
On Thu, Apr 24, 2008 at 6:56 AM, James Carman [EMAIL PROTECTED] wrote: On Wed, Apr 23, 2008 at 10:06 PM, Ned Collyer [EMAIL PROTECTED] wrote: Hi I have the following, and its resulting in 2x calls to the load on my model - which confuses me. My panel has the following in its

Re: Problem with how to make variation

2008-04-24 Thread Mathias P.W Nilsson
Thanks you very much. Do you set up virtual hosts in tomcat, JBoss that all points to the same application? This is what I got so far. public class HairlessSession extends WebSession { private static final long serialVersionUID = 1L; public HairlessSession( Request

Gzipping of pages (HTML output, not only resources)

2008-04-24 Thread Stefan Simik
Hi boys, I would like to ask, how it is possible to gzip output of wicket pages (html). I like gzipping of resources in wicket and I would like to add gzipping all pages (i.e. html output) too. Please, where in wicket can I add such a functionality or what/where should I something wrap to

Re: Problem with how to make variation

2008-04-24 Thread Mathias P.W Nilsson
Another question for this.. The site1.com text will be different from Site2.com text even if the resource key is the same the text will not be the same. Can you set a resource based on locale and style? -- View this message in context:

Re: default spring transaction on request cycle

2008-04-24 Thread Stefan Selariu
Thanks for your answer, but sadly this is not possible. I cannot group the beans in one service because the beans are invoked from different wicket components. I need the request cycle to be transactional because on the submit event one component calls the required transactional service and at

Re: Problem with how to make variation

2008-04-24 Thread StephenP
Yes Mathias P.W Nilsson wrote: Another question for this.. The site1.com text will be different from Site2.com text even if the resource key is the same the text will not be the same. Can you set a resource based on locale and style? -- View this message in context:

Re: Gzipping of pages (HTML output, not only resources)

2008-04-24 Thread Nino Saturnino Martinez Vazquez Wael
At our wug CPH yesterday we talked about something similar (ajax), I think theres no direct way currently. However you can setup a filter which does that. http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html Stefan Simik wrote: Hi boys, I would like to ask, how it is possible to

Modal Window not opening the second time

2008-04-24 Thread Marieke Vandamme
Hello, i'm having problems with the modal window. It shows up fine when I click my link the first time, but after closing the window with the 'X', it won't open again. I don't know if I'm using it wrong or if it's a bug. Any help is welcome ! thanks. Marieke. My code : public class

Re: Problem with how to make variation

2008-04-24 Thread Mathias P.W Nilsson
Jepp, pagename_style_language.properties. Thank you for your feedback. I will go with this stratergy -- View this message in context: http://www.nabble.com/Problem-with-how-to-make-variation-tp16834129p16850182.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: default spring transaction on request cycle

2008-04-24 Thread lars vonk
I wouldn't advice you to do it in the requestcycle for the reasons you already describe yourself: - Too cumbersome - All request are then in a Transaction (might no be a problem though). - How to detect that a rollback is needed. You could still use Spring transaction though: This could be a

Re: Clicking a tree leaf and confirmation

2008-04-24 Thread Thomas Kappler
Hi Federico, you gain a lot of flexibility when overriding newNodeComponent() instead. There, you return a custom Panel where you can do what you want, i.e., add the link with all desired functionality. And you can of course give your Panel any constructor you like. An example from our

Re: Wicket tester calling load twice in loadableDetachableModel

2008-04-24 Thread Ned Collyer
Thanks for the feedback - an interesting work around :) Generally I'd put my general service expectations in the setUp() and my verifies in the tearDown(), but I think I'm comfortable moving the verify in this circumstance. Rgds Ned On Thu, Apr 24, 2008 at 8:58 PM, James Carman [EMAIL

Re: default spring transaction on request cycle

2008-04-24 Thread Stefan Selariu
I tried this approach but without the wicket-spring module, and it didn't work (No spring web application and no springbean annotations). Maybe it works this way. I'll give it a try (but I'm not very sure that it helps since spring loses the transactional context, or at least so I think) Is there

Re: default spring transaction on request cycle

2008-04-24 Thread lars vonk
Well it technically shouldn't matter if you use the wicket-spring module I guess. It think it matters that you use the same TransactionManager and the correct Propagation behavior (REQUIRED iirc). Did you use the same transactionmanager in your previous attempt and what was the propagation setting

Re: Gzipping of pages (HTML output, not only resources)

2008-04-24 Thread lars vonk
Isn't this also something you could let an Apache Webserver do (if you put that in front of your Appserver)? Or maybe Appserver can also do this out-of-the-box? On Thu, Apr 24, 2008 at 1:56 PM, Stefan Simik [EMAIL PROTECTED] wrote: I thought about it, and I have 2 ideas: 1. IDEA

Re: Clicking a tree leaf and confirmation

2008-04-24 Thread Federico Fanton
On Thu, 24 Apr 2008 13:44:15 +0200 Thomas Kappler [EMAIL PROTECTED] wrote: Hi Federico, you gain a lot of flexibility when overriding newNodeComponent() instead. There, you return a custom Panel where you can do what you want, i.e., add the link with all desired functionality. And you can

Re: Gzipping of pages (HTML output, not only resources)

2008-04-24 Thread Martin Grigorov
in MyApplication.java: @Override public WebResponse newWebResponse(final HttpServletResponse httpResponse) { return (getRequestCycleSettings().getBufferResponse() ? new BufferedCompressingWebResponse(httpResponse)

Re: default spring transaction on request cycle

2008-04-24 Thread Stefan Selariu
No, the propagation was not set to REQUIRED. Is it not the default propagation setting? In what way to use the same TransactionManager? The same TransactionManager spring bean? Or the same TransactionManager spring bean instance? Thanks. Stefan On Thu, 2008-04-24 at 14:03 +0200, lars vonk

Building javadoc for Wicket 1.4 from svn download

2008-04-24 Thread Stefan Lindner
The current Wicket 1.4 trunk does not create javadocs anymore (as described on this list and on the build webpage). How can I create the javadoc files with maven? I don't know maven mechanisms for this task. When I build the project with maven javadoc:javadoc, the javadocs are generated in the

Re: Building javadoc for Wicket 1.4 from svn download

2008-04-24 Thread Martijn Dashorst
iirc: mvn -Prelease install Martijn On 4/24/08, Stefan Lindner [EMAIL PROTECTED] wrote: The current Wicket 1.4 trunk does not create javadocs anymore (as described on this list and on the build webpage). How can I create the javadoc files with maven? I don't know maven mechanisms for this

Re: default spring transaction on request cycle

2008-04-24 Thread lars vonk
Is it not the default propagation setting? Yes you are correct. In what way to use the same TransactionManager? The same TransactionManager spring bean? Or the same TransactionManager spring bean instance? I meant instance. Again I am not sure if this is enough, Mixing manual and spring

Re: am I doing right? entities no Serializables.

2008-04-24 Thread Martijn Dashorst
for a new entity you can always return a new entity. There is no need to keep the filled in data between requests :-) as the fields have the data already... When you return a new object Wicket's form update mechanism will repopulate the object's fields. Martijn On 4/19/08, Fernando Wermus [EMAIL

Re: Gzipping of pages (HTML output, not only resources)

2008-04-24 Thread Stefan Simik
Stefan Simik wrote: 1. IDEA a) totally disable gzip in wicket -- getResourceSettings().setDisableGZipCompression(true); b) use Gzip filter BEFORE wicket-filter. This Gzip filter will compress all the communication - HTML, resources

Re: How to set the path for a uploadfolder?

2008-04-24 Thread Mathias P.W Nilsson
Not quite sure but you can get the folder that is the root of your application context File file = new File( getServletContext().getRealPath( / ) ); -- View this message in context: http://www.nabble.com/How-to-set-the-path-for-a-uploadfolder--tp16848200p16850438.html Sent from the Wicket -

Re: DropDownChoice getting value into the model

2008-04-24 Thread Russell Webb
I am experiencing something similar. My LoadableDetachableModel is wrapped with a CompoundPropertyModel. Submitting a TexTField acquires the AttachedCompoundPropertyModel whose setObject() acquires the target object and persists changes.

Re: WicketTester: persistant error msg?

2008-04-24 Thread Martijn Dashorst
did you call tester.setupRequestAndResponse() between your submissions? ^^^ method name might be different Martijn On 4/18/08, Michael Perkonigg [EMAIL PROTECTED] wrote: Hello, I tried to test a form with a required field. First I submitted without setting a value and got an error

Re: How to set the path for a uploadfolder?

2008-04-24 Thread Cristi Manole
Hi, Beware of using getRealPath if your app is deployed on a Tomcat server where it's set _not_ to unpack the wars (for instance 99% of the plesk domain hostings). It will always return null. My 2 cents. Cristi Manole On Thu, Apr 24, 2008 at 4:23 PM, Mathias P.W Nilsson [EMAIL PROTECTED]

Re: Can't see progress in progressBar

2008-04-24 Thread adrienleroy
if you look at the wicket extension javadoc you will find the explanation : in your class extending the WebApplication class you have to override the newWebRequest method @Override protected WebRequest newWebRequest(HttpServletRequest servletRequest) { return new

Re: default spring transaction on request cycle

2008-04-24 Thread Igor Vaynberg
you need to surround your code with something like ths: PlatformTransactionManager ptm = (PlatformTransactionManager)ctx .getBean(transactionManager); TransactionStatus txn = ptm.getTransaction(new DefaultTransactionDefinition()); ... ptm.commit/rollback(txn) whether you do this

Re: Building javadoc for Wicket 1.4 from svn download

2008-04-24 Thread Igor Vaynberg
shouldnt mvn javadoc:javadoc or mvn javadoc:jar work? -igor On Thu, Apr 24, 2008 at 5:58 AM, Stefan Lindner [EMAIL PROTECTED] wrote: Thank you! -Ursprüngliche Nachricht- Von: Martijn Dashorst [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 24. April 2008 14:28 An:

Re: Gzipping of pages (HTML output, not only resources)

2008-04-24 Thread Igor Vaynberg
there is also IResponseFilter -igor On Thu, Apr 24, 2008 at 6:08 AM, Stefan Simik [EMAIL PROTECTED] wrote: Stefan Simik wrote: 1. IDEA a) totally disable gzip in wicket -- getResourceSettings().setDisableGZipCompression(true);

Re: default spring transaction on request cycle

2008-04-24 Thread James Carman
On Thu, Apr 24, 2008 at 11:15 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: you need to surround your code with something like ths: PlatformTransactionManager ptm = (PlatformTransactionManager)ctx .getBean(transactionManager); TransactionStatus txn = ptm.getTransaction(new

Re: default spring transaction on request cycle

2008-04-24 Thread Igor Vaynberg
i completely agree. but i guess his usecase doesnt allow that... also having a service for grouping a ui-driven usecase is kinda silly, it has nothing to do with the business tier. we use salve at my day job, and salve lets you @Transactional link's onclick() to unite everything that happens

Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-24 Thread Stefan Lindner
Is there a Wicketstuff/dojo version that works together with Wicket 1.4? Is Wicketstuff/Dojo still alive? The latest news on the webpage state that Wicketstuff/Dojo is still based upon wicket 1.3 beta. Stefan - To unsubscribe,

Re: A question for Igor

2008-04-24 Thread Matthew Young
Ah, I see. Thanks! // add the new tabbed panel, attribute modifier only used to switch // between different css variations add(new TabbedPanel(tabs, tabs).add(new AttributeModifier(class, true, TabbedPanelPage.this.getModel(; On Wed, Apr 23, 2008 at

Re: Can I create a form markup on the fly?

2008-04-24 Thread Maurice Marrink
No, you need to have matching markup and java code. Perhaps you could set the form to invisible and setOutputMarkupPlaceholder(true), that way an invisible tag (not form) is used instead. However before you could submit the form you would have to make it visible again on the server side (via ajax

Re: Anyway to fix this generic warning?

2008-04-24 Thread Matthew Young
ArthIT: How to suppress the warning is not why I asked the question. I want to be sure generify Wicket is correct so user code can be clean and warning free. in Eclipse go to Window - Preferences Type Generic in the search box. Now you should see the Java-compiler-Errors/Warnings Node. Open it,

unit test of AjaxLazyLoadPanel and ModalWindow

2008-04-24 Thread qk
Hi there, I am having problems testing AjaxLazyLoadPanel and ModalWindow using the WicketTester. Here are my questions: 1. after the page was rendered using WicketTester.startPage(), the real content (the one that returned by getLazyLoadComponent()) was not loaded by default. I always got an

Re: Best way to use borders tranparently

2008-04-24 Thread James Carman
Try using markup inheritance. It's way easier than borders. On Thu, Apr 24, 2008 at 2:07 PM, Joel Halbert [EMAIL PROTECTED] wrote: Hi, I'm trying to work out the best way to use borders within my app. After looking at the following docs: http://wicket.apache.org/examplenavomatic.html

Re: Best way to use borders tranparently

2008-04-24 Thread Joel Halbert
Markup inheritance (http://cwiki.apache.org/WICKET/markup-inheritance.html) certainly looks more straight forward, I'll move over to using it. Is there any situation where borders might be preferable though? -- From: James Carman [EMAIL

Re: Best way to use borders tranparently

2008-04-24 Thread James Carman
On Thu, Apr 24, 2008 at 2:18 PM, Joel Halbert [EMAIL PROTECTED] wrote: Markup inheritance (http://cwiki.apache.org/WICKET/markup-inheritance.html) certainly looks more straight forward, I'll move over to using it. Is there any situation where borders might be preferable though? Not in my

Need to turn off Markupparser : Problem with param tag

2008-04-24 Thread hjuturu
Hi All I have some tags in my page whose html representation doesnt have a end tag. When i try to invoke the page using wicket i get a parse exception java.text.ParseException: Tag '' (line 1, column 1822) has a mismatched close tag . Is there anyway i can turn off the parser in wicket or have

Re: default spring transaction on request cycle

2008-04-24 Thread Stefan Selariu
Indeed, my use cases don't allow to group the bean calls in another service. I know it's not perfect this way, but it is better than writing the services with transaction awareness. Surrounding the bean calls with the transaction manager transaction solved my problem. Now I'm even using

Pageless component at AjaxRequestTarget detach

2008-04-24 Thread Thomas Kappler
Hi, we have a BaseTree where we implemented reordering of tree nodes via drag and drop, using wicketstuff-scriptaculous. Everything seems to work, i.e., you can work with the page as intended. In the logs we see an error on each drop event, however: org.apache.wicket.RequestCycle detach

Re: How to set the path for a uploadfolder?

2008-04-24 Thread unka_hahrry
Thanks, works fine. Mathias P.W Nilsson wrote: Not quite sure but you can get the folder that is the root of your application context File file = new File( getServletContext().getRealPath( / ) ); -- View this message in context:

image resource

2008-04-24 Thread i ii
how to get image src from other site? i need to update image based on user input // does not work new Image(wicketId, new Model(http://www.someothersite.com/image.gif;));

Re: Need to turn off Markupparser : Problem with param tag

2008-04-24 Thread Martijn Dashorst
use param / instead On 4/24/08, hjuturu [EMAIL PROTECTED] wrote: Hi All I have some tags in my page whose html representation doesnt have a end tag. When i try to invoke the page using wicket i get a parse exception java.text.ParseException: Tag '' (line 1, column 1822) has a

Using AJAX to change style of component

2008-04-24 Thread Ryan O'Hara
I'm fairly new to Wicket and was wondering if there is a way to use AJAX to change the style of a WebMarkupContainer? Below is a snippet of my code: IModel sourceModel = new Model() { public Object getObject() { return sourceOptions; }

RE: Return to Original Destination gets the ajax response and not the page

2008-04-24 Thread Warren
The problem was with 1.3.1. I moved to 1.3.3 and its fixed. -Original Message- From: Michael Sparer [mailto:[EMAIL PROTECTED] Sent: Thursday, April 24, 2008 1:53 AM To: users@wicket.apache.org Subject: Re: Return to Original Destination gets the ajax response and not the page

links in inmethod grid?

2008-04-24 Thread Ryan McKinley
Hello-Should normal links work within the grid component? As is, they get gobbled up by a _javascript_ "return false"I asked this question a while back, but was able to avoid it with a _javascript_ link (document.location=xxx) I can't do that

Re: image resource

2008-04-24 Thread Matthew Young
new WebMarkupContainer(wicketId) { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(final ComponentTag tag){ super.onComponentTag(tag); tag.put(src, http://www.someothersite.com/image.gif;);

Re: intro and explanation about DataTable and DetachableModel

2008-04-24 Thread Doug Donohoe
This may help. I am moving my DD Poker site to wicket and implemented an IDataProvider around my database service as follows: private class HistoryData implements IDataProvider { private static final long serialVersionUID = 42L; private PokerUser user; private int

PageParameters request-for-enhancement

2008-04-24 Thread Doug Donohoe
Hi Wicket team: I'd like to be able to call getInt(name, default) and not have to worry about catching exceptions. If the number can't be parsed, just return the default. I have a utility method which I use: public static int getInt(PageParameters params, String name, int def) {

Administration in wicket

2008-04-24 Thread Mathias P.W Nilsson
Hi! I want to create administration for a site. Site.se. The administration should reside in Site.se/administration How can I tell wicket to go to a BasePage when user types in Site.se/administration. The HomePage is already set for the Site.se. How can I set a HomePage for

Re: VOTE: Generics of IDataProvider

2008-04-24 Thread Matej Knopp
VOTE: [ ] IDataProviderI,T [ ] IteratorIModelT , drop model [X] Leave as is. -Matej - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: VOTE: Generics of IDataProvider

2008-04-24 Thread Eelco Hillenius
I would have a better idea if I would have had the chance to actually play with it, but here is mine: [ ] IDataProviderI,T [ x ] IteratorIModelT , drop model [ ] Leave as is. Looks most elegant to me, and it is immediately clear what T is for. Also, I think that generics are bloody verbose

RE: Problems with FileUploadField

2008-04-24 Thread Michael Mehrle
It creates a new frame via JS, yes. I want to send this to you, but it has to be packaged properly and commented so you know what is happening. My project is keeping me up late, is it okay if I do this during the weekend? Michael -Original Message- From: Cristi Manole [mailto:[EMAIL

RE: Integer only NumberValidator?

2008-04-24 Thread Michael Mehrle
Man, of course - I was so focused on NumberValidator that I completely forgot about the Integer.class setting which I already have! Q: what is the validator I need to refer to when defining my custom error message in my properties file? Michael -Original Message- From: Martijn Dashorst

Re: Administration in wicket

2008-04-24 Thread Jeremy Thomerson
I did it this way, although you may not want the extra path for other pages In WebApplication.init() : mountBookmarkablePage(admin, AdminHomepage.class); mount(admin/pages, PackageName.forClass(AdminHomepage.class)); Hope this helps, Jeremy Thomerson On Thu, Apr 24, 2008 at 5:25 PM,

Re: Administration in wicket

2008-04-24 Thread Jeremy Thomerson
This made me think of an easy extension to PackageRequestTargetUrlCodingStrategy... what does everyone think? Where we see that there is nothing left after the mount path, here: (line 88 in 1.3.3) // There is nothing after the mount path! return null; Why don't we return

Re: Can't see progress in progressBar

2008-04-24 Thread liny
igor.vaynberg wrote: did you try uploading a reasonably big file ( a few MB ) so the upload takes more then a few seconds? -igor Hi~ I wrote my own file upload web page based on upload - Single file upload. in wicket-examples-1.3.3 and upload 3MB, even 22MB file. But still can't see

Re: Can't see progress in progressBar

2008-04-24 Thread Igor Vaynberg
make sure you use UploadWebRequest in your application subclass, see its javadoc for details. -igor On Thu, Apr 24, 2008 at 6:54 PM, liny [EMAIL PROTECTED] wrote: igor.vaynberg wrote: did you try uploading a reasonably big file ( a few MB ) so the upload takes more then a few

Re: Can't see progress in progressBar

2008-04-24 Thread liny
adrienleroy wrote: if you look at the wicket extension javadoc you will find the explanation : in your class extending the WebApplication class you have to override the newWebRequest method @Override protected WebRequest newWebRequest(HttpServletRequest servletRequest) {

Class casting exception while using PageParameters

2008-04-24 Thread jianfei
Hi, I'm new to the wicket framework, and I have a problem while using the PageParameters. I want to add a class instance as the value of one of the page parameters, so I did this: MyClass instance = new MyClass(); PageParameters param = new PageParameters(); param.put(classInstance, instance);

Re: Class casting exception while using PageParameters

2008-04-24 Thread Igor Vaynberg
pageparameters represent url parameters, so they can only contain strings -igor On Thu, Apr 24, 2008 at 7:54 PM, jianfei [EMAIL PROTECTED] wrote: Hi, I'm new to the wicket framework, and I have a problem while using the PageParameters. I want to add a class instance as the value of one

External Error, Expiry , AccessDenied Pages

2008-04-24 Thread mfs
Guys, I was wondering, if i were to redirect to external error, expiry and access-denied page. Is there a better solution then to make individual page-class for above and do a redirect to the corresponding pages in their constructor? Since setAccessDeniedPage, setInternalErrorPage (in

Load Modal Window before the page loads

2008-04-24 Thread freak182
Hello, Im having problem from a modal window loading before a page, is this possible? because when try this: public class BasePage extends WebPage { public BasePage(){ if(_isLoadable) modalWindow.show(new AjaxRequestTarget(this)); } } ERROR - RequestCycle - This