Re: Wicket pages are invalid XHTML

2010-09-16 Thread Ernesto Reinaldo Barreiro
And even on development you could disable it via overriding the Application.init() and calling getMarkupSettings().setStripWicketTags(true); Ernesto On Thu, Sep 16, 2010 at 3:50 AM, Ichiro Furusato ichiro.furus...@gmail.com wrote: Hi Jeremy, Thanks for the quick reply. Is the reason I'm

Re: repaint content of modalwindow

2010-09-16 Thread Ernesto Reinaldo Barreiro
Isn't it enough to: 1-put a the contents of your modal A in a WebMapkupContainer X (with X.setOutputMarkupId(true)) 2-update the contents of X (X.addOrReplace(new content)) 3- and do ajaxRequestTarget.addComponent(X) ? Regards, Ernesto On Thu, Sep 16, 2010 at 4:26 AM, Chris Colman

Re: how Translate SingIn panel...

2010-09-16 Thread Martin Grigorov
1. Override SignInPanel = MySignInPanel.java. No modifications in the methods here, just simple extend is needed. 2. Copy original SignInPanel.html to MySignInPanel.html and place it next to MySignInPanel.java 3. Modify MySignInPanel.html however you want. You can also create a ticket in Jira for

RE: repaint content of modalwindow

2010-09-16 Thread Chris Colman
Do I need to create a wicket tag in the markup corresponding to the WebMarkupContainer? If so should I put it in a span or div? (or other?) Should this WebMarkupContainer work if I place it inside a form? -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]

How to add footer section using DataTable

2010-09-16 Thread gouthamrv
I am using DataTable to display a table. I want to add some buttons to footer section. How do I do that? Currently it just shows empty tfoot elements in my html. Here is the sample code of the DataTable: DataTable table = new DataTable(datatable, columns, new CalculationInfoProvider(), 1);

Re: repaint content of modalwindow

2010-09-16 Thread Ernesto Reinaldo Barreiro
I would use a div. div wicket:id=context div wicket:id=contents/div /div --- context = new WebMarkupContainer(context); context.setOutputMarkupId(true); add(context); context.add(new YourContentsPanel(contents)); You can have a div inside a form. So, why would it not work? Regards,

Re: A bug in CryptedUrlWebRequestCodingStrategy

2010-09-16 Thread Erik van Oosten
Bjorn, Please open a Jira issue so that the Wicket core team can track this issue. Regards, Erik. Op 15-09-10 11:24, Bjorn S schreef: Wicket version: 1.4.9 (rolled back due to AJAX problems in later release) I've detected some odd behaviour with CryptedUrlWebRequestCodingStrategy,

Possible bug in HttpsRequestCycleProcessor?

2010-09-16 Thread Thomas Götz
In HttpsRequestCycleProcessor, line 214 (Wicket 1.4.10): Session.get().bind(); With the comment that the session needs to be persisted before redirecting to https. But this is called before checking if a redirect is necessary or not (line 217, request could already be https). Result: no

Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Peter Karich
Hi, two questions: 1. If I do the following all url parameters will be replaced with ?wicket:interface=:6:1::: e.g. in the main wicket application class I do: mount(new MixedParamUrlCodingStrategy(search, HomePage.class, new String[]{q})); in HomePage.java i do without ajax: add(new

Re: Possible bug in HttpsRequestCycleProcessor?

2010-09-16 Thread Thomas Götz
Ah, I found https://issues.apache.org/jira/browse/WICKET-2629 -Tom On 16.09.2010 10:52, Thomas Götz wrote: In HttpsRequestCycleProcessor, line 214 (Wicket 1.4.10): Session.get().bind(); With the comment that the session needs to be persisted before redirecting to https. But this is called

Asynchronous File Uploads

2010-09-16 Thread Nivedan Nadaraj
Hi All Has anyone had a requirement to upload huge files in an asynchronous mode? I want to be able to upload some files which are on avg 4G plus. I read some posts that wicket does fine with 50 plus megs. Since these are huge files, we dont want the user to be blocked. Instead was thinking

Re: Java in CMS arena,..wicket to lead the way?!

2010-09-16 Thread james yong
How about Hippo CMS? -james Arjun Dhar wrote: Summary:: This conversation is about Java in the CMS space, comparison to PHP and is there a future to reduce turn around time with Java. Are we as a community too elitist to be stuck on masturbating on frameworks rather than solutions that

Styling pagination

2010-09-16 Thread Josh Kamau
Hi team, How can i style the org.apache.wicket.markup.html.navigation.paging.PagingNavigator component? I would also like to replace the and with words like previous and next. I tried to use PagingNavigation instead but i dont understand how its markup is supposed to be. Thanks always for

Re: Styling pagination

2010-09-16 Thread Benedikt Schlegel
The easiest and also the most obvious way to do this is to extend the PagingNavigator and provide your own markup. But if you dont want to remove all components added by PagingNavigator, you should use the same wicket:ids and component hierarchie, just change what you need to change (replace ''

Re: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Martin Grigorov
On Thu, Sep 16, 2010 at 11:30 AM, Peter Karich peat...@yahoo.de wrote: Hi, two questions: 1. If I do the following all url parameters will be replaced with ?wicket:interface=:6:1::: e.g. in the main wicket application class I do: mount(new MixedParamUrlCodingStrategy(search,

Mapping DropDownChoice values?

2010-09-16 Thread Benedikt Schlegel
I have a DataTable to show a list of domain objects (named DocumentLink). These objects consist of a few attributes and some nested objects (e.g. Application). So im displaying data mixed up from different levels. For example, some expressions configured in FilteredPropertyColumns are: name,

retrieving HTML-templates via HTTP

2010-09-16 Thread hermanhorsten
HTML templates are by default stored side-by-side with the Java code. But is it possible to retrieve the HTML-templates from another server via HTTP? In the project I'm currently working on HTML-templates are published to a dedicated template-server and the wicket-stuff is running on another

Re: retrieving HTML-templates via HTTP

2010-09-16 Thread Ernesto Reinaldo Barreiro
Maybe [1] will be of some help? Ernesto 1-https://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html On Thu, Sep 16, 2010 at 2:34 PM, hermanhorsten s...@hermanhorsten.be wrote: HTML templates are by default stored side-by-side with the Java code. But is it possible to

Re: retrieving HTML-templates via HTTP

2010-09-16 Thread Martin Grigorov
Also see the examples at: http://wicketstuff.org/wicket14/customresourceloading/ On Thu, Sep 16, 2010 at 2:42 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Maybe [1] will be of some help? Ernesto 1- https://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html

Re: Wicket pages are invalid XHTML

2010-09-16 Thread Emond Papegaaij
Hi Ichiro, If you want to enforce valid XHTML, take a look at the WicketStuff HTML Validator: http://github.com/dashorst/wicket-stuff-markup-validator It automatically validates all pages served by the application and shows an error report for invalid markup. Best regards, Emond Papegaaij On

Re: Java in CMS arena,..wicket to lead the way?!

2010-09-16 Thread Brian Topping
Have you thought about getting more involved with Brix? One of the great things about it is it isn't too centered on any one area. It would be easy for you to help with a suite of plugins for doing the kind of stuff that you're talking about. There are people on the Brix list that are

Re: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Peter Karich
Hi Martin! The answer here is to use HybridUCS. It preserves the 'nice' url. Or use Wicket 1.5 (M2.1). There the URL handling is much easier. did you mean this one: http://svn.apache.org/repos/asf/wicket/branches/wicket-1.5-M2/ are there any major problems with that version?

Wicket-auth annotations to hide a link problem

2010-09-16 Thread Mike Dee
I am trying to hide a link based on a user's role. Using the example in Wicket in Action (book), it suggests annotations can be used to do this. Here is what I'm doing: public class HomePage extends WebPage { public HomePage() { add( new ExampleLink(

ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread nmetzger
Hi all, this is rather urgent. The following error is flooding my application. Below is just the essential part of it, it's repeating itself and seems to go deep into recursion. I don't see it calling any of my pages. Any ideas? Natalie (wicket 1.4.10) 2010-09-16 10:36:32,829 ERROR

Re: Java in CMS arena,..wicket to lead the way?!

2010-09-16 Thread Richard Frovarp
On 09/15/2010 11:52 PM, Arjun Dhar wrote: Summary:: This conversation is about Java in the CMS space, comparison to PHP and is there a future to reduce turn around time with Java. Are we as a community too elitist to be stuck on masturbating on frameworks rather than solutions that affect

Re: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Martin Grigorov
On Thu, Sep 16, 2010 at 4:05 PM, Peter Karich peat...@yahoo.de wrote: Hi Martin! The answer here is to use HybridUCS. It preserves the 'nice' url. Or use Wicket 1.5 (M2.1). There the URL handling is much easier. did you mean this one:

Re: ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread Martin Grigorov
I have seen something like this when there are direct references between two or more pages. Very probably ModalWindow backed by Page is involved. On Thu, Sep 16, 2010 at 5:01 PM, nmetzger nmetz...@odu.edu wrote: Hi all, this is rather urgent. The following error is flooding my application.

Ajax and updating DropDownChoice model object

2010-09-16 Thread Eric Reagan
Hello, I'm having some problems getting ajax to work with a updating the data contained in the DropDownChoice default model object. My drop down choices are dependent upon what is entered in a text box. I can get/update the text box just fine but when I go and shove the list of choices into

Re: ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread N. Metzger
For a quick fix (hopefully), I can remove the modal window from my application. Generally speaking, though: how do I define my modal window then if I should not reference the underlying page directly? Natalie -- View this message in context:

Re: Asynchronous File Uploads

2010-09-16 Thread Igor Vaynberg
use a servlet -igor On Thu, Sep 16, 2010 at 2:42 AM, Nivedan Nadaraj shravann...@gmail.com wrote: Hi All Has anyone had a requirement to upload huge files in an asynchronous mode? I want to be able to upload some files which are on avg 4G plus. I read some posts that wicket does fine with

Re: ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread Martin Grigorov
On Thu, Sep 16, 2010 at 5:32 PM, N. Metzger nmetz...@odu.edu wrote: For a quick fix (hopefully), I can remove the modal window from my application. Generally speaking, though: how do I define my modal window then if I should not reference the underlying page directly? Try to re-work it to

Re: ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread N. Metzger
I'll try, thanks!!! Natalie -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ERROR-Session-java-1406-Exception-when-detaching-serializing-page-tp2542370p2542493.html Sent from the Users forum mailing list archive at Nabble.com.

Logging sessionId for every log event

2010-09-16 Thread Jeffrey Schneller
I am trying to log the session id with every log event so that I can trace a visitors steps in the log file. I am using log4j and was hoping I could use either the NDC or MDC. I am not able to figure out where to push the session id into the context and pop it out of the context when using NDC.

Re: Logging sessionId for every log event

2010-09-16 Thread Igor Vaynberg
wrap a filter around wicket filter -igor On Thu, Sep 16, 2010 at 9:07 AM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I am trying to log the session id with every log event so that I can trace a visitors steps in the log file.  I am using log4j and was hoping I could use either the

What happened to the Constructor with propertyType in PropertyModel?

2010-09-16 Thread Baschir Jaghoori
Hi, I want to output the width and height fields of a java.awt.Dimension object (which are integers) and tried to use the PropertyModel, but because PropertyModel calls getWidth() / getHeight() (which return doubles), the result is displayed as 100.0 instead of 100 It seems, that there was a

Re: Wicket-auth annotations to hide a link problem

2010-09-16 Thread James Carman
try overriding isEnabled() or isVisible() and look for the role. On Thu, Sep 16, 2010 at 10:57 AM, Mike Dee mdichiapp...@cardeatech.com wrote: I am trying to hide a link based on a user's role.  Using the example in Wicket in Action (book), it suggests annotations can be used to do this. Here

Re: What happened to the Constructor with propertyType in PropertyModel?

2010-09-16 Thread Igor Vaynberg
conversion is done by components not by models. you can override the converter on your component. -igor On Thu, Sep 16, 2010 at 9:38 AM, Baschir Jaghoori baschir.jagho...@mgm-tp.com wrote: Hi, I want to output the width and height fields of a java.awt.Dimension object (which are integers)

Re: Ajax and updating DropDownChoice model object

2010-09-16 Thread jcgarciam
I believe the problem goes that [setOutputMarkupId(true)] is called on very late step. Try setting the [setOutputMarkupId(true)] just right after when the component is constructed, so the initial HTML have the id already set. After that the wicket js should be able to locate the DOM id later on

Re: Ajax and updating DropDownChoice model object

2010-09-16 Thread jcgarciam
I dont think you may want to do that with witcket, each html has a 1:1 relation with a corresponding Java file, having said so the Java file is very tight to the DOM hierarchy that are wicket component (wicket:id). It seems like you are trying to build an application with a CMS like approach.

Re: How to add footer section using DataTable

2010-09-16 Thread gouthamrv
Yes you are right, we can do that. Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-add-footer-section-using-DataTable-tp2541058p2542678.html Sent from the Users forum mailing list archive at Nabble.com.

Can I implment this with Wicket table components?

2010-09-16 Thread gouthamrv
I have below requirements, I would like to know how feasible it is to implement this with Wicket table components. 1. A web page should contain a table initially with one row. 2. On the bottom of the table there should be some links to add row in AJAX way(No page refresh) 3. I should be able

Re: Export Excel file containing string and rendered component

2010-09-16 Thread Altuğ Bilgin Altıntaş
Hi; After using WebResponse to export excel then clicking a Link gives *Page expired* error. Any suggestion ? 2009/6/4 Igor Vaynberg igor.vaynb...@gmail.com you have the webresponse, can you not simply write into it? -igor On Thu, Jun 4, 2009 at 9:49 AM, Frank Silbermann

Re: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Peter Karich
Thanks Martin for your time and help! The problem with M2.1 is that some functionality is missing/hidden: E.g. I need getWebRequestCycle().getWebRequest() to guess the user language and set some caching stuff to workaround an ajax+backbutton problem in 1.4.9. Is this the correct way to use

Re: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Martin Grigorov
On Thu, Sep 16, 2010 at 9:11 PM, Peter Karich peat...@yahoo.de wrote: Thanks Martin for your time and help! The problem with M2.1 is that some functionality is missing/hidden: E.g. I need getWebRequestCycle().getWebRequest() to guess the user language and set some caching stuff to

Re: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Peter Karich
Hi Martin! Thanks Martin for your time and help! The problem with M2.1 is that some functionality is missing/hidden: E.g. I need getWebRequestCycle().getWebRequest() to guess the user language and set some caching stuff to workaround an ajax+backbutton problem in 1.4.9. In

Re: how Translate SingIn panel...

2010-09-16 Thread Victor_Trapiello
Thank you very much i will try to do that and i will reply to you with my feedback cheer -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-Translate-SingIn-panel-tp2541131p2542979.html Sent from the Users forum mailing list archive at Nabble.com.

Form values are not submitted if form-component is initially not visible

2010-09-16 Thread Joachim Rohde
I have a listview which is displaying in each row some data within a form, among other things a date (as a label which is initially shown) and a Panel containing a (wiquery-)datepicker (which is initially hiding). Each row also has an edit-link (AjaxLink) and a save-link (SubmitLink). After

Mouse click position

2010-09-16 Thread nazeem
Hi, I would like to show small popup relative to the position of mouse click. Especially when user click a link, I need to show list of options and allow user to click on one of them. For this I need to know the position of the link and mouse click so that I can position the popup accordingly.

Ajax Target

2010-09-16 Thread Chris Colman
I'm just wondering what the 'target' is in the term Ajax target. From my desktop days I was lead to think that 'target' meant a specific component but I'm not sure if that's what is intended in the Wicket context. In the wicket context what is the actual target? A JSON packet, the browser?

Re: Mouse click position

2010-09-16 Thread James Carman
Have you looked at using overlib? On Thu, Sep 16, 2010 at 7:40 PM, nazeem md.naz...@gmail.com wrote: Hi, I would like to show small popup relative to the position of mouse click. Especially when user click a link, I need to show list of options and allow user to click on one of them. For

Re: Ajax Target

2010-09-16 Thread James Carman
It might help to look at the hierarchy for AjaxRequestTarget. Notice that it implements IRequestTarget. So, it's a request target, or the target of a particular servlet/http request. On Thu, Sep 16, 2010 at 9:02 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I'm just wondering what the

Re: Mouse click position

2010-09-16 Thread Jeremy Thomerson
On Thu, Sep 16, 2010 at 6:40 PM, nazeem md.naz...@gmail.com wrote: Hi, I would like to show small popup relative to the position of mouse click. Especially when user click a link, I need to show list of options and allow user to click on one of them. For this I need to know the position of

Re: Mouse click position

2010-09-16 Thread nazeem
Yes, I agree it is more of javascript. But in my code I am trying to use only java scripts bundled in wicket. Did not want to add more java script libraries to keep it simple. I use attribute modifier for all dynamic behaviour's, similarly I am trying to open a window popup but instead of

Re: Mouse click position

2010-09-16 Thread Jeremy Thomerson
On Thu, Sep 16, 2010 at 9:23 PM, nazeem md.naz...@gmail.com wrote: Yes, I agree it is more of javascript. But in my code I am trying to use only java scripts bundled in wicket. Did not want to add more java script libraries to keep it simple. I use attribute modifier for all dynamic

[announce] wicketstuff-core 1.4.12 released

2010-09-16 Thread Michael O'Cleirigh
Hello, I've cut a matching release for wicket 1.4.12 that has just shown up in the maven central repositories. The stable branch for 1.4.12.1-SNAPSHOT is located here: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicketstuff-core-1.4.12 I will plan on releasing

Re: Wicket pages are invalid XHTML

2010-09-16 Thread Ichiro Furusato
Thanks Emond, that looks very helpful. I'm a bit overwhelmed at this point, having started learning Wicket on Wednesday and by now almost having a bare bones application. Nice little surprises along the way... On 9/17/10, Emond Papegaaij emond.papega...@topicus.nl wrote: Hi Ichiro, If you want

Looking for inspiration/suggestions

2010-09-16 Thread Emmanouil Batsis (Manos)
Consider the task of building a wicket-based UI that allows users to map properties between entities (e.g. a mapping between InventoryAsset to SupportTicket properties), how would you do it? Some considerations are datatype mappings but that may or may not be relevant to the wicket layer.

Re: Asynchronous File Uploads

2010-09-16 Thread nivs
Thanks mate, I will investigate more on this, but can you elaborate it a little bit? I can think of the following 1. When the application starts up, the servlet will be loaded up. 2. In its init(), I would have to create a process that is more like a daemon and waits for it to be requested or

Re: Asynchronous File Uploads

2010-09-16 Thread Jeremy Thomerson
On Thu, Sep 16, 2010 at 11:20 PM, nivs shravann...@gmail.com wrote: Thanks mate, I will investigate more on this, but can you elaborate it a little bit? I can think of the following 1. When the application starts up, the servlet will be loaded up. 2. In its init(), I would have to create

Re: Looking for inspiration/suggestions

2010-09-16 Thread Jeremy Thomerson
On Thu, Sep 16, 2010 at 11:19 PM, Emmanouil Batsis (Manos) ma...@abiss.grwrote: Consider the task of building a wicket-based UI that allows users to map properties between entities (e.g. a mapping between InventoryAsset to SupportTicket properties), how would you do it? Some considerations

Re: Form values are not submitted if form-component is initially not visible

2010-09-16 Thread Jeremy Thomerson
On Thu, Sep 16, 2010 at 5:17 PM, Joachim Rohde mailingl...@joachimrohde.com wrote: I have a listview which is displaying in each row some data within a form, among other things a date (as a label which is initially shown) and a Panel containing a (wiquery-)datepicker (which is initially

Complicated master-detail form

2010-09-16 Thread devnullable
Hi! I am evaluating different Java frameworks for complete rewriting of old jsp-based web extranet system and now checking Wicket. I have studied Wicket before but now one major obstacle is slowing me down. I need to implement many master-detail forms like order-order lines. Screen would have

Re: Asynchronous File Uploads

2010-09-16 Thread nivs
Thanks for the time. Will give that a shot. Many thanks (will keep it simple) Niv -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Asynchronous-File-Uploads-tp2541855p2543362.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Java in CMS arena,..wicket to lead the way?!

2010-09-16 Thread Arjun Dhar
Earlier I had written it off, but on you suggestion I am taking a fresh look at it. It seems well supported and documented. Am studying it... will get back on my findings. thanks -- View this message in context: