Re: How make continous row index in dataTable

2010-05-11 Thread cleverpig
hi,Erwin! Thank you so fast and accurate response! That's great help to me! 2010/5/11 Erwin Bolwidt > > Hi, > > You can do it like this: > > private private DefaultDataTable dataTable; > > // ... > > new AbstractColumn(new Model("#")) { > public void populateItem(Item> cellItem, > String compone

Re: root context, IE, home page is not found

2010-05-11 Thread Jeremy Thomerson
Great. We definitely want to see it if you can reproduce it. What I find is that 75% of the time, it turns out to be an error of something else conflicting, or else I find the problem in my own code if I try to boil it down to the simplest quickstart possible. -- Jeremy Thomerson http://www.wick

Re: is possible that CryptedUrlWebRequestCodingStrategy not working

2010-05-11 Thread Jeremy Thomerson
You're subscribing to a mythical line of reasoning. You're trying to protect against page-scraping by using URL obfuscation to hide the meaning of query string parameters. I have actually done (legitimate, legal, purposefui) page scraping in the past for a couple of tasks - believe me - you are o

Re: Html root tag and contents repeating in response after 302 redirect?

2010-05-11 Thread orange80
Igor, You were totally right. I went into 1.4.8 src, inside WebResponse and printed out the argument like this: public void write(AppendingStringBuffer asb) { log.info("asb output:\n" + String.valueOf(asb.getValue())); try {

Re: is possible that CryptedUrlWebRequestCodingStrategy not working

2010-05-11 Thread Igor Vaynberg
you will have to tweak the default strategy for your usecase. by default the strategy uses a secret stored in session to encrypt. if a search bot does not support sessions it will not be able to follow links from one page to the next. -igor On Tue, May 11, 2010 at 1:23 PM, Fernando Wermus wrote:

Re: efficient resource downloading

2010-05-11 Thread Igor Vaynberg
On Tue, May 11, 2010 at 11:24 AM, Zilvinas Vilutis wrote: > If you need to have the current session in a servlet, you may use the > WicketSessionFilter which "injects" the wicket session into a > ServletRequest. rather it binds it to the threadlocal so you can say Session.get() -igor > > In any

Re: Customizing CheckBoxMultipleChoice Images?

2010-05-11 Thread Zilvinas Vilutis
IE6/7 does not support those CSS selectors [type=checkbox] as far as I remember Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Tue, May 11, 2010 at 11:23 AM, Corbin, James wrote: > Thanks Igor. > > I know this isn't a wicket issue...but, > > I'm able to style some

Re: Customizing CheckBoxMultipleChoice Images?

2010-05-11 Thread Igor Vaynberg
i wasnt aware of the fact that it was possible, ive only ever seen people implement that kind of stuff using custom image/anchor components. -igor On Tue, May 11, 2010 at 11:23 AM, Corbin, James wrote: > Thanks Igor. > > I know this isn't a wicket issue...but, > > I'm able to style some aspects

Re: is possible that CryptedUrlWebRequestCodingStrategy not working

2010-05-11 Thread Fernando Wermus
Yes, it is. I will review my case. I have the following urls: valiousData/pagenumber/0, valiousData/pagenumber/1, valiousData/pagenumber/2, valiousData/pagenumber/3 I want fixed urls or stable ones because I would like the searcher robots could follow this links. But I don't want a programmer a

Re: efficient resource downloading

2010-05-11 Thread Zilvinas Vilutis
If you need to have the current session in a servlet, you may use the WicketSessionFilter which "injects" the wicket session into a ServletRequest. In any way you want to use it - your chosen implementation of security part will still be heavyweight. Not sure if you can submit authentification de

RE: Customizing CheckBoxMultipleChoice Images?

2010-05-11 Thread Corbin, James
Thanks Igor. I know this isn't a wicket issue...but, I'm able to style some aspects of the checkbox's by specifying css as in, div. input[type=checkbox] { ... } Or div. input[type=checkbox]:checked { ... } But if I specify the background attribute in either of these sections, it doesn't chan

Re: efficient resource downloading

2010-05-11 Thread vladimir.kovalyuk
Since you wrote that you employ Spring MCV I presume you don't use any page state when constructing your dynamic resource, instead you parse URL parameters. Thus your resource seems to be shared resource. I used to extend WebResource (provide your own dynamic implementation of IResourceStream) fo

Re: Ajax and JS

2010-05-11 Thread Ernesto Reinaldo Barreiro
Hi Eyal, Why not use wicket native AJAX? On wiQuery there is a DialogButton class you can use to add buttons to the dialog. This class has a method public void setJsScope(JsScope jsScope) { this.jsScope = jsScope; } which you can easily use to write wicket AJAX callback. e.g. i

Re: Ajax and JS

2010-05-11 Thread Igor Vaynberg
in wicket examples there is an example that shows ajax with the prototype js lib, adapt that to use jquery. -igor On Tue, May 11, 2010 at 10:05 AM, Eyal Golan wrote: > Hello, > I want to perform an Ajax operation using a JS. > > The situation is that I have a Dialog (from JQuery, well actually W

Re: Customizing CheckBoxMultipleChoice Images?

2010-05-11 Thread Igor Vaynberg
put the choice component into a div with a class attribute, then in css you can do div. input[type=checkbox] -igor On Tue, May 11, 2010 at 9:23 AM, Corbin, James wrote: > Hello, > > I would like to customize the images used for the selected and unselected > states of the checkboxes rendered as

Re: warp persist, guice & wicket: use warp persist during wicket application startup to load db objects

2010-05-11 Thread Igor Vaynberg
if this was spring i would tell you that you need to start a transaction, which in turn will bind a hibernate session to a threadlocal context. it probably works in a request because you have a filter that does that for you, so look at that filter and see what it does. -igor On Tue, May 11, 2010

Ajax and JS

2010-05-11 Thread Eyal Golan
Hello, I want to perform an Ajax operation using a JS. The situation is that I have a Dialog (from JQuery, well actually WiQuery) and I want a button there to perform an Ajax operation. How do I bind JS and Ajax? I tried AbstractDefaultAjaxBehavior and getUrl. I tried to make an ajaxLink and then

Re: is possible that CryptedUrlWebRequestCodingStrategy not working

2010-05-11 Thread Igor Vaynberg
no, nothing seems weird indeed. i guess the next step is for you to set a breakpoing in crypted encoding strategy and see why your url is not being encrypted. if you still cant figure it out you are welcome to create a quickstart. -igor On Tue, May 11, 2010 at 7:27 AM, Fernando Wermus wrote: > I

Re: is possible that CryptedUrlWebRequestCodingStrategy not working

2010-05-11 Thread Igor Vaynberg
if thats the case why make the url bookmarkable? -igor On Tue, May 11, 2010 at 7:13 AM, Fernando Wermus wrote: > Jeremy, >     There is a database with huge amount of data that could be collected by > someone else. If the url has a clear meaning, to say: /data/0, /data/1. They > can get all the

Re: Html root tag and contents repeating in response after 302 redirect?

2010-05-11 Thread Igor Vaynberg
when i do view source in the browser i only see a single html page. what you are seeing may just be an artifact of having firebug enabled. -igor On Mon, May 10, 2010 at 10:01 PM, orange80 wrote: > > Hey guys, I noticed this today when I was working on a project and examining > responses in Fireb

Re: : WicketStuff jWicket - Where is it?

2010-05-11 Thread Charles Deal
Sorry, no. I became aware of the project when I began using the wicketstuff-jquery project. Here is the sourceforge page for it: https://sourceforge.net/projects/json-lib/ I'm actually using it in conjunction with your Behaviors now, by supplying its output to the rawOptions field. And I am wri

Customizing CheckBoxMultipleChoice Images?

2010-05-11 Thread Corbin, James
Hello, I would like to customize the images used for the selected and unselected states of the checkboxes rendered as part of the CheckBoxMultipleChoice component, but not sure how to do this... I've read a few sources that indicate this can be done by specifying a class="styled" on the markup

RE: WicketStuff jWicket - Where is it?

2010-05-11 Thread Stefan Jozsa
> Version 1.8.1 of jQuery-ui is now available. If this new > version is required I could integrate it next weekend. Let > me know. please, Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additio

warp persist, guice & wicket: use warp persist during wicket application startup to load db objects

2010-05-11 Thread Christoph Grün
Hi all, I am using Wicket together with Guice and Warp Persist/Servlet. I have registered the PersistenceService in the contextInitialized method. However, I would like to do some data loading from the database when wicket starts, and like to access Hibernate Daos. I am getting the error: org

Re: is possible that CryptedUrlWebRequestCodingStrategy not working

2010-05-11 Thread Istvan Soos
Fernando, It would be better to protect you application in an other way: e.g. create the ids with random, fixed-length postfixes. My practice is to create 4-length postfix with 0-9a-zA-Z random pattern. This is 62^4 possibility for each id in the sequence, e.g. 1aiP7, and 2pN63 is valid, but 1aiP6

Re: is possible that CryptedUrlWebRequestCodingStrategy not working

2010-05-11 Thread Fernando Wermus
I don't see anything weird in BookmarkablePageIncrementLink code, any help I do appreciate package com.misPartidos.web.widgets.seo.navigation; import org.apache.wicket.Page; import org.apache.wicket.PageParameters; import org.apache.wicket.markup.html.link.BookmarkablePageLink; import org.apache.

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-05-11 Thread Fernando Wermus
try org.wicketstuff wicket-shiro 1.4-SNAPSHOT On Tue, May 11, 2010 at 3:15 AM, PDiefent wrote: > > where can I find the wicket-shiro-example stuff? > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-security-what-are-the-best-options-Spring-S

Re: is possible that CryptedUrlWebRequestCodingStrategy not working

2010-05-11 Thread Fernando Wermus
Jeremy, There is a database with huge amount of data that could be collected by someone else. If the url has a clear meaning, to say: /data/0, /data/1. They can get all the data from there. I would like to have fixed and encripted urls. On Mon, May 10, 2010 at 4:17 PM, Jeremy Thomerson wrote

AW: : WicketStuff jWicket - Where is it?

2010-05-11 Thread Stefan Lindner
Hi Charles, I see what you mean. Are you the maintainer of this json-lib project? I prefer to be independent from other projets at this stage because I suffered from some stalled projects in the past. If the 1.0 is in sight for the jwicket project I will rethink using json-lib project if compos

Does anybody use AjaxLazyLoadPanelTester

2010-05-11 Thread Stefan Lindner
Does anybody use AjaxLazyLoadPanelTester with success? We have to start a new request cycle manually before calling executeAjaxLazyLoadPanel. Stefan

Re: : WicketStuff jWicket - Where is it?

2010-05-11 Thread Charles Deal
In JQueryAjaxBehavior, you have five protected inner classes that (by my interpretation) are creating the JSON formatted string to pass to the jQuery methods. DraggableBehavior, for example, has an options property of type JsMap. In the getJsBuilder method of that class, you call toString() on th

Re: How make continous row index in dataTable

2010-05-11 Thread Erwin Bolwidt
Hi, You can do it like this: private private DefaultDataTable dataTable; // ... new AbstractColumn(new Model("#")) { public void populateItem(Item> cellItem, String componentId, IModel rowModel) { Item item = (Item) cellItem.getParent().getParent(); int index = dataTable.getCurrentPage() * data

: WicketStuff jWicket - Where is it?

2010-05-11 Thread Stefan Lindner
Are you sure you are talking about jwicket? Where dou you see any JSON stuff in jwicket? -Ursprüngliche Nachricht- Von: Charles Deal [mailto:chuckdea...@gmail.com] Gesendet: Di 11.05.2010 13:39 An: users@wicket.apache.org Betreff: Re: WicketStuff jWicket - Where is it? Thanks, I was ab

Re: AjaxEditableLabel unicode issue

2010-05-11 Thread Jens Zastrow
Hi, We switched from a http to a ajp based tomcat-connector and didnt configured the URIEncoding="UTF-8" properly. Thanks a lot, everything is working now. Am 11.05.2010 13:34, schrieb Steve Swinsburg: Hi, Is this after the value has been submitted and perhaps stored in a database, then ret

Re: CSS Templating

2010-05-11 Thread Eric Hamel
Agreed. This is what I ended up doing. Thanks for the ideas all. On Mon, May 10, 2010 at 3:28 PM, Jeremy Thomerson wrote: > Instead of doing this, use cascading stylesheets like they were intended to > be used: > > In both applications, have a "global.css" or similar that handles all of > the >

Re: WicketStuff jWicket - Where is it?

2010-05-11 Thread Charles Deal
Thanks, I was able to get things sorted out. Is there a "support" site for this project? Live examples, wiki, jira. Are you using wicketstuff for those facilities? I found a couple of things that I'd like to report. Also, one of the things I did like about the wicketstuff-jquery project was ho

Re: AjaxEditableLabel unicode issue

2010-05-11 Thread Steve Swinsburg
Hi, Is this after the value has been submitted and perhaps stored in a database, then retrieved and displayed again? If so, is your database setup as UTF-8? Also, if using Tomcat, is the connector setup as UTF-8 also? For Wicket, try setting this *: getRequestCycleSettings().setResponseRequest

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-05-11 Thread James Carman
Martin, how many patches have you submitted? ;) On Tue, May 11, 2010 at 3:59 AM, Martin Grigorov wrote: > On Mon, 2010-05-10 at 23:32 -0700, Les Hazlewood wrote: >> Just a quick note to Wicket and Wicket-Stuff Shiro users: >> >> Shiro 1.0 is right around the corner.  We should be code-complete fo

AjaxEditableLabel unicode issue

2010-05-11 Thread Jens Zastrow
Hi, I cannot enter/save unicode chars with a AjaxEditableLabel (e.g. german/arabic). Enter: 'ü' Value: 'ü' All unicode-chars seems to be converted to utf-8 since the single char ü is converter to double-bytes? Thanks Jens --

Re: GMap2 and zoom_changed

2010-05-11 Thread Martin Funk
you are aware of gmap2-examples? http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2 once there look at the 'Listen Examples' mf 2010/5/11 dleeper > > This is what I am currently doing. > > zoomChangedListener = new ZoomChangedListener(); >add(zoomChang

Re: html namespace, formatting...

2010-05-11 Thread Zilvinas Vilutis
Formatting should work fine, just I don't like it as it merges several lines into one and there is no "never merge lines" option as there is in java. Not sure about auto-completion - I've seen a DTD somewhere which supports autocompletion, but it was long ago... and I don't need it anymore, as kno

Re: html namespace, formatting...

2010-05-11 Thread Marzia Forli
Thanks Zilvinas, eclipse now it's quiet and I have a code-completion of html tags, but there is no help for 'wicket:XXX' attributes, is it possible to enable it somehow ? Also formatting, so nice for '.java' doesn't function for '.html' how do you handle those issues ? Thank you... --

Re: GMap2 and zoom_changed

2010-05-11 Thread dleeper
This is what I am currently doing. zoomChangedListener = new ZoomChangedListener(); add(zoomChangedListener); map.add(new HeaderContributor(new IHeaderContributor() { private static final long serialVersionUID = 1L;

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-05-11 Thread Les Hazlewood
If it's any consolation, we only have a few remaining issues in Jira that should be finished today and tomorrow. 4 months ago, there was still over 50+ issues to resolve ;) Security frameworks are hard to get right - better to have a great 1.0 release than a crappy one :) On Tue, May 11, 2010 at

Re: Wicket + security, what are the best options? Spring Security reached almost all the way...

2010-05-11 Thread Martin Grigorov
On Mon, 2010-05-10 at 23:32 -0700, Les Hazlewood wrote: > Just a quick note to Wicket and Wicket-Stuff Shiro users: > > Shiro 1.0 is right around the corner. We should be code-complete for > 1.0 in a day or two and then we being the ASF voting process to > release the software. A concrete (non s

Re: how to query in dataTable?

2010-05-11 Thread cleverpig
Thanks,Jeremy! I do not know how to express my thanks to you! I got the answer with a quiet heart.Because I doubt since too many unknown. 2010/5/8 Jeremy Thomerson : > look at the wicket examples [1] and see the data table examples. you will > need to implement an IDataProvider > > http://wickets

Re: root context, IE, home page is not found

2010-05-11 Thread Jimi
I tried to recreate the issue in a simple quickstart project, but that seems to be easier said then done. The only time this bug shows its ugly face is when a logged in user uses the logout link, and is [supposed to be] redirected to the home page (ie the login page). I tried to debug it to see wh

GMap2 and zoom_changed

2010-05-11 Thread Doug Leeper
I was under the impression that when the GMap2 zoomed in/out, the Wicket GMap2 object would be updated. When I query Wicket GMap2 upon a dblclick after I had zoomed in, the zoom level had not changed. Should this be the case? If not, I would like to be able to add a zoom_changed listener on t

Re: Gmap2 and Wicket 1.4.8

2010-05-11 Thread dleeper
I believe I found the issue. Our wicket application has an iframe that shows the contents of an other wicket application. I changed the wicket version on the local wicket application. However, the iframe'd wicket application was not changed. When I synced up the wicket versions...everything wa

Re: efficient resource downloading

2010-05-11 Thread Zilvinas Vilutis
See no problem of using spring services within a servlet, see my servlet example: http://pastebin.com/6tWstvAL Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Mon, May 10, 2010 at 8:10 PM, Joe Fawzy wrote: > Hi dear > actually , access

Re: html namespace, formatting...

2010-05-11 Thread Zilvinas Vilutis
My "BasePage.html" contains these lines in the beginning: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";> while ALL the others simply: http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";> and eclipse wtp

Re: Gmap2 and Wicket 1.4.8

2010-05-11 Thread Martin Funk
when the blank area is already rendered the app has already come quite far. out of my mind I'd check the Google Key. Also I remember Firefox beeing quite picky on 'wicket' elements. If they were present in or around the div element containing the map, it wouldn't be rendered. mf 2010/5/11 Doug L