Re: Wicket in portalt environment

2009-08-12 Thread Serkan Camurcuoglu
You should add in the META-INF/context.xml file in your war file if it doesn't exist. Because AFAIK pluto/jetspeed tries to perform a cross-context dispatch (i.e. a request that's received by the /pluto context includes a url in your /application context). Also do not forget to add these lin

Re: PropertyModel doesnt update bean

2009-07-17 Thread Serkan Camurcuoglu
you should use a form and an ajaxsubmitlink instead of a normal ajaxlink.. Wadi Jalil Maluf wrote: Hi all, I have a UserBean and I created a propertyModel for that bean so when a TextField text is modified the property name of the UserBean updates. I use this in a model window

Re: How to throw new PageExpiredException?

2009-07-16 Thread Serkan Camurcuoglu
If all you want is to display a page expired page, maybe you could just use throw new RestartResponseException(PageExpiredErrorPage.class); in your page constructor. Ann Baert wrote: Can anyone help me with this problem please? Thanks in advance, Ann. Ann Baert wrote: I have overridde

Re: returning resource on ajax request

2009-06-22 Thread Serkan Camurcuoglu
I would try to do something crazy like RequestCycle.get().setRequestTarget(new ResourceStreamRequestTarget(...)); during the onclick method of the ajaxlink, but I don't know if it would work. Anyway on the client side wicket ajax library may try to interpret the response as a regular ajax resp

Re: Login page crashes if old bookmark

2009-06-16 Thread Serkan Camurcuoglu
IIRC, for this purpose I had written a separate expired page but I had thrown a new restartresponseexception(LoginPage.class) which was working fine with wicket 1.3.4. Martin Makundi wrote: the users should get a page expired error if they come in from a stateful bookmark and the session is e

Re: Anybody know what is this situation?

2009-05-18 Thread Serkan Camurcuoglu
In my experience such unexpected classcastexceptions may occur if the same class is loaded twice by different classloaders.. Check whether the LoginPage class exists in both WEB-INF/classes and some other jar in your classpath.. Martin Makundi wrote: Anybody know what is this situation? Wick

possible bug

2009-05-12 Thread Serkan Camurcuoglu
Hi all, We need to have the oracle xml parser in our tomcat /lib/ directory since we have to use the client api of Oracle BPEL in our application. But when using xml property files, I get the following exception if I use a comment inside the property file: java.lang.ClassCastException: oracle.x

Re: Add a ui lock page over the page while waiting for response

2009-05-06 Thread Serkan Camurcuoglu
you could use the jquery blockui plugin.. http://malsup.com/jquery/block/#demos James Carman wrote: There is a "veil" component in wicketstuff-minis, I believe. That might help. On Wed, May 6, 2009 at 10:30 AM, Linda van der Pal wrote: Back when I was programming in jsp I solved this b

Re: CheckBoxMultipleChoice in two columns

2009-05-05 Thread Serkan Camurcuoglu
sorry, I should have tried it before asking.. thanks a lot.. Igor Vaynberg wrote: you are wrong. -igor On Tue, May 5, 2009 at 9:52 AM, Serkan Camurcuoglu wrote: but I think checkgroup is for single selection only, am I wrong? Igor Vaynberg wrote: use checkgroup and check

Re: CheckBoxMultipleChoice in two columns

2009-05-05 Thread Serkan Camurcuoglu
but I think checkgroup is for single selection only, am I wrong? Igor Vaynberg wrote: use checkgroup and check components. -igor On Tue, May 5, 2009 at 3:00 AM, Serkan Camurcuoglu wrote: Hi all, I want to display the choices in a CheckBoxMultipleChoice component in two columns, like in

CheckBoxMultipleChoice in two columns

2009-05-05 Thread Serkan Camurcuoglu
Hi all, I want to display the choices in a CheckBoxMultipleChoice component in two columns, like in a GridView. Currently the CheckBoxMultipleChoice generates an element (checkbox), a element for the checkbox and a element (I'm using wicket 1.3.4). I want it to generate the choices in a tab

Re: DnDSortableHandler + modal window problems?

2009-05-04 Thread Serkan Camurcuoglu
though I've never used DnDSortableHandler, I guess you need to append some javascript to the ajaxrequesttarget to convert the items you've added into draggable items.. In my experience most jquery plugins work by initializing the selected elements during document's onload() or domready(), and y

Re: Ajax + DropDownChoice + ModalWindow

2009-04-29 Thread Serkan Camurcuoglu
|maybe using new AjaxFormComponentUpdatingBehavior("onchange") instead of onSelectionChanged would make a difference.. like the example at http://www.wicket-library.com/wicket-examples/ajax/choice.0| nino martinez wael wrote: You need to tell the modal not to care about changes and make the

Re: Page content setting on a panel.

2009-04-16 Thread Serkan Camurcuoglu
I would use an iframe instead of doing this, or I would use panels instead of pages. But you may want to look at the code of ModalWindow in wicket extensions since it is capable of doing what you want, i.e. displaying the content of a page within a . Zenberg Ding wrote: Hi, How can let a pa

Re: filtering a datatable

2009-04-15 Thread Serkan Camurcuoglu
lement the filtering logic by checking the current state of the filter in your iterator method - no need to change html I'm not sure if that's the best way to do it, but it may help you get started.. Serkan Camurcuoglu wrote: you can try FilterToolbar Julien Graglia wrote: Hi, I t

Re: filtering a datatable

2009-04-15 Thread Serkan Camurcuoglu
you can try FilterToolbar Julien Graglia wrote: Hi, I try to filter rows of a datatable : I already have sort the rows very easily (using a SortableDataProvider) but now I need to filter some columns.. which seems to me a rather "classic" task. I have found classes in org.apache.wicket.exten

Re: WebApp Freezes

2009-04-15 Thread Serkan Camurcuoglu
if all your threads are waiting for connections with no thread using a db connection, I suspect that you either leak connections (i.e. forget to free some connections) or each thread uses (requires) multiple connections during a transaction and at some point all threads need at least one more d

Re: Adding a confirmation popup

2009-04-10 Thread Serkan Camurcuoglu
I think it should be , or you should add form submit javascript code into the onclick handler.. Linda van der Pal wrote: I've put it on a button, might that be why it doesn't work? Generated line of source code: onclick="return confirm('Are you sure?');">src="resources/nl.lunaris.bookdb.webu

Re: DropDownChoice custom key problem

2009-04-08 Thread Serkan Camurcuoglu
why does it say java.lang.String instead of DaysSelectOption? On http://cwiki.apache.org/WICKET/dropdownchoice-examples.html it says: "You give a DDC a model and a list of possible values. The type of object returned by the model and the type of objects in the list *must* be the same. If your

Re: panel wicket:extend confusion

2009-04-03 Thread Serkan Camurcuoglu
AFAIK you should override isTransparentResolver and return true.. Ryan McKinley wrote: aaah. I take it a Page is automatically marked as a transparent resolver -- how do I mark a Panel as a transparent resolver? I'll add the solution to: http://cwiki.apache.org/WICKET/markup-inheritance.ht

Re: Extend layout of a page

2009-03-30 Thread Serkan Camurcuoglu
search for the words "wicket markup inheritance" on google.. Pi Trash wrote: Hi, I am searching for a way to extend the design of a page without changing the page itself. That means, something like the Decorator Pattern. I have a page with for example just a table in it. In another project

Re: Class org/apache/wicket/Component violates loader constraints

2009-03-27 Thread Serkan Camurcuoglu
it also probably indicates that wicket-xxx.jar exists in multiple locations within the application server.. Martijn Dashorst wrote: wicket version, OS version, Java version would be nice to have in such a scenario. Did you try to generate a new quickstart and see if that works? Martijn On Fr

Re: anyone see error "Internal error parsing wicket:interface = iepngfix.htc"?

2009-03-26 Thread Serkan Camurcuoglu
we had used iepngfix.htc method, but our css file was relative to our web application, so iepngfix.htc file was not served through wicket.. but I believe it should not be problematic.. does it cause any obvious error in the application other than the error log? novotny wrote: Hi, In order

Re: Creating a brandable or white label type of application

2009-03-09 Thread Serkan Camurcuoglu
Hi Igor, Is there another CMS (other than brix) that works well with wicket? Igor Vaynberg wrote: if you are just starting to think about building this you might want to consider using brix, or another cms that works well with wicket. in case of brix: each client would get their own jcr works

Re: Feedback Next To Component

2009-02-12 Thread Serkan Camurcuoglu
there is something called org.apache.wicket.markup.html.form.validation.FormComponentFeedbackBorder, are you trying to build something like it? walnutmon wrote: That makes sense, I did pull out the surrounding markup so that it could be edited by calls to the behavior, but that's not really m

[OT] Sitepoint 5-for-1 Book Offer

2009-02-10 Thread Serkan Camurcuoglu
I learnt that Sitepoint is giving away five web design/development related pdf books for the price of one book ($29.95) to support the people affected by the bushfires in Australia. I thought the people on this list may be interested. You can access the offer at http://5for1.aws.sitepoint.com/

Re: [OT] Wicket Like framework for desktop applications?

2009-01-28 Thread Serkan Camurcuoglu
Though I've never used it, I think Netbeans platform is worth giving a try if you are willing to use the Netbeans IDE.. you can check out http://platform.netbeans.org/ Nino Martinez wrote: hmm I see that one of the guys behind are Josh Marinacci, which now are on the javaFX team.. Maarten

Re: Retrieve RemoteUser from HttpServletRequest

2009-01-23 Thread Serkan Camurcuoglu
is your wicket url also protected by security and login constraints in your web.xml? Luca Provenzani wrote: nothing to do! i read again only two null strings... it's really strange! in the jsp is simple: i need only this: *request.getRemoteUser(),request.getRemoteAddr() * and seem to be simple

Re: best way to obtain component reference?

2009-01-22 Thread Serkan Camurcuoglu
using AdminPage.this.get("message").replaceWith(lbl); instead of just this.get("message").replaceWith(lbl); might work, since message is added to the page, not to the delete button.. Phillip Rhodes wrote: I am trying to update the label text on a page from a inner class (onSubmit) of my

Re: Portlet related issues

2009-01-22 Thread Serkan Camurcuoglu
1. To overcome this problem in my application I put my css and image files into the jetspeed layout template directory, for example /jetspeed/decorations/layout/tigris/css/styles.css and modified the template velocity file to include my css file. 2. I think that's normal, and I think it would

Re: WicketNotSerializableException

2009-01-19 Thread Serkan Camurcuoglu
you can also miss logs if your logging setup is incorrect.. it may happen because of conflicting commons-logging or log4j jars, or if you have multiple log4j.properties files in your classloader hierarchy.. I don't know how these logging frameworks work exactly, but I had a similar problem and it

Re: POST too large

2009-01-14 Thread Serkan Camurcuoglu
So what exactly happens in this case, your code is not called at all and the current page is redisplayed as is? Anyway if this exception is caught and ignored within wicket code it should be a jira issue, but it may be tomcat who is ignoring the exception as well.. the stack trace gives you eno

Re: Multiple Copies of One Wicket App

2009-01-09 Thread Serkan Camurcuoglu
I know this would be very difficult to create by hand, but if you automatically create a web.xml which includes 200 such filter definitions (replacing Application1 and dbfile1 with other values) I think that would do what you want. Note that here you obtain the db configuration file name as a f

RE: AjaxCheckBox not working

2009-01-08 Thread Serkan Camurcuoglu
did you call setOutputMarkupId(true) and setOutputMarkupPlaceHolderTag(true) on your panel? setOutputMarkupId(true) is required for the panel to have an id, and setOutputMarkupPlaceHolderTag(true) is required if it will be initially invisible.. -Original Message- From: wicketworker [ma

Re: Back button + dataview problem

2009-01-08 Thread Serkan Camurcuoglu
for spring-annot and I can't see why this should be happening. I'm running glassfish and the log has this to say about the error: 'Cannot serialize session attribute categoryDao for session' Where categoryDao is the injected variable. Any idea what I'm doing wrong? Ch

Re: FormComponent cookie persistent issue

2009-01-08 Thread Serkan Camurcuoglu
y i run it on my server and i guess that this should also work for wicket. Can you confirm that you have the same problem when removing the context path. /Murat 2009/1/7 Serkan Camurcuoglu is your application deployed to the root context (e.g. / ) ? Because your working c

Re: Back button + dataview problem

2009-01-08 Thread Serkan Camurcuoglu
did you check your logs, if you are getting NotSerializableExceptions in the background you may get page expired errors with back button.. quizzical wrote: Hi everyone, I'm in the process of writing an example ecommerce app to get to know wicket and am really enjoying the experience.. At the

Re: [OT] PHP based Open Source Content Management Systems

2009-01-07 Thread Serkan Camurcuoglu
I stumbled upon this page yesterday: http://www.packtpub.com/article/2008-open-source-cms-award-winner-announced James Perry wrote: Does anyone have a recommendation for a PHP Open Source Content Management System? I ask as I volunteered to setup my local running club's web site and I'm const

Re: FormComponent cookie persistent issue

2009-01-07 Thread Serkan Camurcuoglu
the login button? I have attached some screenshots of the cookie and the webpage I see with and without mount. /Murat 2009/1/7 Serkan Camurcuoglu <mailto:serkan.camurcuo...@telenity.com>> In my case (when using mounted home page), when setting cookies, the expire time is a

Re: FormComponent cookie persistent issue

2009-01-07 Thread Serkan Camurcuoglu
t and do the same, admin and password will stay in the input fields. /Murat 2009/1/6 Serkan Camurcuoglu Hi Murat, It seems to work both ways in my setup. I'm using Firefox 3.0. It successfully saves the username and password when I check the remember me checkbox, and clears them when I

Re: FormComponent cookie persistent issue

2009-01-06 Thread Serkan Camurcuoglu
Hi Murat, It seems to work both ways in my setup. I'm using Firefox 3.0. It successfully saves the username and password when I check the remember me checkbox, and clears them when I uncheck it. Did you check the host, path and the values of the cookies in your browser? Murat Yücel wrote:

[OT] Merb-Rails Merge

2008-12-23 Thread Serkan Camurcuoglu
This page http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3 http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3 made me dream about a world where all Java web frameworks merge into Wicket :) -- View this message in context: http://www.nabble.com/-OT--Mer

Re: Container managed authentication

2008-12-19 Thread Serkan Camurcuoglu
itially requested page if the servlet request have a principal and our session don't. The initial requested page and its params are stored in the session when a onUnauthorizedComponentInstantiation() method call is triggered. Serkan Camurcuoglu-3 wrote: If the problem is caused by the fac

Re: Container managed authentication

2008-12-19 Thread Serkan Camurcuoglu
If the problem is caused by the fact that your protected resource and login page are the same, why not mount your login page at another url in addition to /login, for example /slogin or something.. J.AL wrote: Hi, we have standardized our web applications on the wicket framework (from a myri

Re: Clearing Cache after Logout

2008-12-04 Thread Serkan Camurcuoglu
you can set your application's home page as your expired page or throw a restartresponseexception (to home page) from the constructor of your page expired page.. at least I do it that way.. vishy_sb wrote: Thanks for the reply there Nino. I have set up a custom expired page and have set the f

Re: Looking for the previous thread about pagingnavigator with infinite pages

2008-12-04 Thread Serkan Camurcuoglu
yes that was it, thanks very much.. Wayne Pope wrote: not sure if this is the one you mean - it was titled : "Is there any other way? DataProviders must hit the Db twice" On Wed, Dec 3, 2008 at 3:41 PM, Serkan Camurcuoglu <[EMAIL PROTECTED]> wrote: Hi all, Sorry for

Looking for the previous thread about pagingnavigator with infinite pages

2008-12-03 Thread Serkan Camurcuoglu
Hi all, Sorry for disturbing but I remember I've read a discussion about implementing a paging navigator for an unknown (possibly infinite) number of pages in the list recently, but I haven't been able to find it on Nabble. Can somebody send me the link of this thread if you can find or rememb

Re: onLoad javascript event with Markup inheritance

2008-11-25 Thread Serkan Camurcuoglu
you should implement the IHeaderContributor interface in your page and use IHeaderResponse.renderOnLoadJavascript() method in the implementation of the renderHead method.. Ernesto Reinaldo Barreiro wrote: Something like: HTML alert('Hi'); . Java code: Label script = new Lab

Re: Wicket & portlet

2008-11-10 Thread Serkan Camurcuoglu
I think you can write an implementation of this interface for eXo portal if you know a bit about its internals.. If eXo portal supports the portlet 2.0 spec, then it should be really simple since the portal will already have some way of generating resource urls, and you will delegate the call t

Re: Wicket & portlet

2008-11-10 Thread Serkan Camurcuoglu
though I've only used it in Jetspeed portal, I strongly recommend Wicket instead of Struts2 for portlet development.. Danny van Bruggen wrote: Hi Pierre, As far as I know (and I'm not an authority,) the status is as follows: - portlet 1.0 support is OK - portlet 2.0 support should be implem

Re: Help with simple CheckBox example

2008-10-31 Thread Serkan Camurcuoglu
yes, the code works except some serialization errors.. Alan Romaniusc wrote: I can see no problem in your code. Maybe something else? On Fri, Oct 31, 2008 at 12:29 PM, ds26680 <[EMAIL PROTECTED]> wrote: I am new to creating web applications with Wicket and I am struggling with getting a C

Re: Problem with using wicket as a filter

2008-10-27 Thread Serkan Camurcuoglu
g an > empty servlet to the address of the wicket page and see if the situation > would improve, but I wouldn't really like to bring that horrible kludge to > any production system. > > If you think it would help I can provide you both the test wars I've used. > > Th

Re: Problem with using wicket as a filter

2008-10-27 Thread Serkan Camurcuoglu
can you put a breakpoint in ProxyDirContext and check what name is being looked up? Roberto Fasciolo wrote: > > Hi again, > > in addition to what I've already said I want to point out what I've found > out by profiling two really simply applications serving just a page > without any dynamic

Re: ListView broken?

2008-10-23 Thread Serkan Camurcuoglu
I suspect there may be a strange interaction with compound property models, since the name of your listview is questions and you also have a getQuestions() method in your upper level model object.. I'm just guessing but can you try to change the name of your listview to "questionList" instead of "

Re: ListView broken?

2008-10-23 Thread Serkan Camurcuoglu
it seems like template.getQuestions() returns a model which has a QuestionAndAnswer instance instead of a list as its model object.. The code on the line where the exception is thrown is: return ((List)listView.getModelObject()).get(index); which indicates that your problem is trying to cast a Q

Re: Associating a request to a Session

2008-10-22 Thread Serkan Camurcuoglu
I'm glad it worked :) David Leangen-8 wrote: > > > Thanks for taking the time to look at this. I got so used to debugging > this way that I didn't even think about that. > > -- View this message in context: http://www.nabble.com/Associating-a-request-to-a-Session-tp19641227p20125368.htm

Re: Associating a request to a Session

2008-10-22 Thread Serkan Camurcuoglu
I think your session id changes because you access the server as localhost:8080 for the first time, but yahoo forwards you back to www.bioscene.co.jp (which I think is the same host), so you access the same server with a different host name, and your browser does not send the same cookie.. I hope

Re: DateTextField, format not valid, message key

2008-10-20 Thread Serkan Camurcuoglu
Wicket in Action book says that IConverter.Date should work.. Serkan Camurcuoglu wrote: > > grepping the wicket source I found in file > src/jdk-1.4/wicket/src/main/java/org/apache/wicket/Application.properties: > > IConverter='${input}' is not a valid ${type}. >

Re: DateTextField, format not valid, message key

2008-10-20 Thread Serkan Camurcuoglu
grepping the wicket source I found in file src/jdk-1.4/wicket/src/main/java/org/apache/wicket/Application.properties: IConverter='${input}' is not a valid ${type}. but I don't know if you can specify a separate message for type Date.. Goran Novak wrote: > > Hi, > > I'm using the org.apach

Re: Permgen OOM - *not* reloading context

2008-10-19 Thread Serkan Camurcuoglu
AFAIK permanent generation keeps class reflection data.. one option is it may simply be that you have too many classes and the permanent generation space is not enough, after a few hours of running all parts of your application are touched by your users, all classes are loaded and your permanent

Re: DHTML DnD best practice?

2008-10-16 Thread Serkan Camurcuoglu
sorry for the misunderstanding, I meant to say "you're trying to build a DnD version of the palette" (which doesn't exist yet :).. Neil McT wrote: > > Hmm... I can only find the non-DnD version of the palette. Any idea where > the DnD version lives? >

Re: DHTML DnD best practice?

2008-10-16 Thread Serkan Camurcuoglu
it seems like you're talking about the DnD version of the Palette component in wicket extensions.. See its source code, maybe it will give you some idea.. Neil McT wrote: > > Hi, > > I'm wondering what would be the best way to enable dhtml drag n drop in > Wicket. > > Its a fairly typical

Re: Stream/download files through portlet

2008-10-14 Thread Serkan Camurcuoglu
etResponse(); presp.addProperty("header", "value"); this is kind of a hack but it might work.. Rob Sonke wrote: > > No, too bad. The headers aren't picked up. > > > Serkan Camurcuoglu wrote: >> For the DynamicWebResource case, doesn't overriding setHead

Re: Stream/download files through portlet

2008-10-14 Thread Serkan Camurcuoglu
For the DynamicWebResource case, doesn't overriding setHeaders() in DynamicWebResource and adding your http header in this method work? By the way, which portlet container are you working with? Rob Sonke wrote: > > Hi, > > We're using wicket for our portlets now for almost 3/4 year and it's

Re: Trouble printing image

2008-10-14 Thread Serkan Camurcuoglu
while serving the image resource, setting the Content-Disposition http header to inline; filename=x.png might help, but this is just a guess.. Dane Laverty wrote: > > I'm adding an image to my page with the following code. It works > correctly, and the image displays fine. However, we are

Developer.com product of the year nominations

2008-10-12 Thread Serkan Camurcuoglu
I don't know if it's too late but I've seen it today that developer.com is accepting nominations for its product of the year competition. Today is the last day of nomination. I've nominated Wicket for framework of the year. Maybe people would like to do so at http://solutions.internet.com/index

Re: Fw: DownloadLink, can anyone help me?

2008-10-10 Thread Serkan Camurcuoglu
? Pablo Scagno wrote: First of all thanks for you help, Regarding my problem, yes, I debug It and the code executed without any problem, it calls the super method. -- From: "Serkan Camurcuoglu" <[EMAIL PROTECTED]> Sent: Fr

Re: Fw: DownloadLink, can anyone help me?

2008-10-10 Thread Serkan Camurcuoglu
do you know whether the request reaches your downloadlink? for example, you could check it by using: add(new DownloadLink("download", fileModel) { @Override public void onClick() { System.out.println("onClick of download link called!"); try { super.onClick(); Syst

RE: html code in component class

2008-10-09 Thread Serkan Camurcuoglu
Peter means that you can put html as the string content of a label like this: Label l = new Label("myLabel", "Some html here"); l.setEscapeModelStrings(false); l.setRenderBodyOnly(true); this way the label will display only the html that you've given.. -Original Message- From: miro [ma

RE: Navigation set active Page

2008-10-09 Thread Serkan Camurcuoglu
I don't think it's a best practice but I set the active link name in the session when a navigation link is clicked and then in the base page constructor I get the active link name from the session and modify the css class of the related link item using an attribute appender.. -Original Mes

RE: nested components

2008-10-08 Thread Serkan Camurcuoglu
moreover, if the markup that you sent is a real copy/paste, then in this line the colon in the middle of wicket:id seems to be missing.. -Original Message- From: Serkan Camurcuoglu [mailto:[EMAIL PROTECTED] Sent: Thu 10/9/2008 12:43 AM To: users@wicket.apache.org Subject: RE: nested

RE: nested components

2008-10-08 Thread Serkan Camurcuoglu
according to your previous mail, in the markup you sent, there's a hierarchy csrHome -> inbox -> inboxMenu but in the exception you get, it says that it cannot find inboxMenu below path 0:csrHome.RicolaGroupbox which suggests that you actually have a component with id RicolaGroupbox in the midd

Re: GMap2 or Wicket Ajax issue?

2008-10-07 Thread Serkan Camurcuoglu
I apply my patch, to change this code on line 824 if (Wicket.Browser.isGecko()) { to if (Wicket.Browser.isGecko() && url.match("^http://";) == null) { works for me, which ensures that the url is not an absolute url.. Doug Leeper wrote: It could be related. One way to find out... I will

Re: GMap2 or Wicket Ajax issue?

2008-10-07 Thread Serkan Camurcuoglu
well that's beyond me.. what I was talking about was an error similar to http://issues.apache.org/jira/browse/WICKET-1426 which causes http 404 errors in gecko browsers and I have to patch wicket-ajax.js to workaround it.. but your error seems to be more subtle, maybe you should send this [obje

Re: GMap2 or Wicket Ajax issue?

2008-10-07 Thread Serkan Camurcuoglu
Do you get this error in firefox? Can you try with IE? This looks like a problem I usually have with wicket ajax functionality in gecko based browsers.. Doug Leeper wrote: I am trying to get the latest GMap2 in wicketstuff to work with Wicket 1.3.4 (can't upgrade to 1.4 just yet) As the mvn

Re: How to answer Request with 500 error

2008-10-07 Thread Serkan Camurcuoglu
The WIA book says: Setting an HTTP status code: If you want to set an HTTP status code for your page, such as 404 (not found), you can do so by overriding the page’s setHeaders method: @Override protected void setHeaders(WebResponse response) { response.getHttpServletResponse().setStatus( Http

RE: force page reload

2008-10-06 Thread Serkan Camurcuoglu
If I understood you correctly, I've done something like this to show a different page depending on a url parameter. You should override the newRequestCycleProcessor() method of your application class, and return a different request target from the resolve method. Here I return a bookmarkablepag

Re: How to expose regular exception message in FeedbackPanel?

2008-10-06 Thread Serkan Camurcuoglu
you can use the info, warn, error or fatal methods of component to generate feedback messages.. usually you can just write: catch (Exception e) { error(e.getMessage()); } Seven Corners wrote: I have a form whose submission can possibly generate exceptions. I would like to expose the except

Re: Newbie Question, Very Basic Model Use

2008-10-06 Thread Serkan Camurcuoglu
Model assigns a new object as the model object, and I think java.lang.Boolean is immutable so it can't change after it's constructed anyway. So instead of checking the value of toggleableObject I think you can check myCheckbox.getModelObject() == Boolean.TRUE etc.. Ryan Gravener wrote: If y

Re: customizing PagingNavigator

2008-09-24 Thread Serkan Camurcuoglu
Here's an example of how I extend paging navigator: /** * Overridden to make links invisible. */ @Override protected Link newPagingNavigationLink(String id, IPageable pageable, int pageNumber) { Link l = super.newPagingNavigationLink(id, pageable, pageNumber); //

Re: Adding jquery effects to paging navigator

2008-09-22 Thread Serkan Camurcuoglu
just noticed I forgot to add the behavior to the link, but still the javascript does not show up.. Serkan Camurcuoglu wrote: How can I modify the onclick attribute of the links in the AjaxPagingNavigator? I override newPagingNavigationLink in my ajax paging navigator as shown below, but my

Re: Adding jquery effects to paging navigator

2008-09-22 Thread Serkan Camurcuoglu
+ current; } }; return l; } Serkan Camurcuoglu wrote: Hi all, I want to add some decoration to AjaxPagingNavigator. I want the current page to fade out and the new page to fade in when the user clicks next. I'm thinking of using JQuery for effe

Adding jquery effects to paging navigator

2008-09-22 Thread Serkan Camurcuoglu
Hi all, I want to add some decoration to AjaxPagingNavigator. I want the current page to fade out and the new page to fade in when the user clicks next. I'm thinking of using JQuery for effects. Can anybody show me some pointers to achieve this? --

About Wicket portlets, DatePicker, onLoad and onDomReady

2008-09-17 Thread Serkan Camurcuoglu
Hi all, While I was experimenting with date pickers in portlets, I've noticed something. When a portlet makes a header contribution, it cannot directly contribute to document's head, instead it generates something like:

Re: Form values lost on converter error when inside table

2008-09-12 Thread Serkan Camurcuoglu
I think you can make a quick test by implementing a simple reuse strategy which directly returns the existingItems iterator.. Lorenzo Bolzani wrote: 2008/9/12 Serkan Camurcuoglu <[EMAIL PROTECTED]>: if you were using a listview, you should have called setReuseItems(true) on it..

Re: Form values lost on converter error when inside table

2008-09-12 Thread Serkan Camurcuoglu
if you were using a listview, you should have called setReuseItems(true) on it.. Maybe there exists something similar for DataView.. ListView javadoc says: "If you nest a ListView in a Form, ALLWAYS set this property to true, as otherwise validation will not work properly. " Lorenzo Bolzan

Re: Components render problem

2008-09-11 Thread Serkan Camurcuoglu
t; yinka > > On Thu, Sep 11, 2008 at 6:57 AM, Serkan Camurcuoglu > <[EMAIL PROTECTED]>wrote: > >> when I try, it works as expected, onError is called whenever data is not >> entered, and onSubmit is called when I enter both values.. >> >> >> >>

Re: Components render problem

2008-09-11 Thread Serkan Camurcuoglu
1, 2008 at 6:33 AM, Serkan Camurcuoglu <[EMAIL PROTECTED]>wrote: turning your code into a quickstart project works for me, onSubmit is successfully called.. Did you debug and see the return value of continueToOriginalDestination() ? Ajayi Yinka wrote: Thanks for your concern.

Re: Components render problem

2008-09-11 Thread Serkan Camurcuoglu
used the default form submit button. I tried the wicket button before, but the same problem persist. On Thu, Sep 11, 2008 at 5:33 AM, Serkan Camurcuoglu <[EMAIL PROTECTED]>wrote: how do you submit the form? it seems like you do not add a submit button or submit link into the form.. Ajayi

Re: WebResource and authentication

2008-09-11 Thread Serkan Camurcuoglu
Session javadoc says: *Access via Thread Local *- In the odd case where neither a RequestCycle nor a Component is available, the currently active Session for the calling thread can be retrieved by calling the static method Session.get(). This last form should only be used if the first two form

Re: Components render problem

2008-09-11 Thread Serkan Camurcuoglu
;, new Model("")); userId.setRequired(true); userPassword = new PasswordTextField("userPassword", new Model("")); userPassword.setRequired(true); form.add(userId); form.add(userPassword); add(form); add(new FeedbackPanel

Re: Components render problem

2008-09-10 Thread Serkan Camurcuoglu
if onSubmit is not called and the form is redisplayed with the values that you've last entered, it seems like the form is not validated successfully.. Ajayi Yinka wrote: Hi guys, I am a newbie in wicket. I am presently developpng an application using wicket framework. I am having problem in s

Re: Tomcat crashes out of memory

2008-08-28 Thread Serkan Camurcuoglu
in my experience it's not possible to determine the cause of an outofmemory error by looking at the stack trace.. you should use a profiler and find out where the memory leak is.. Igor Vaynberg wrote: this is not caused by wicket as is clear from the stacktrace... -igor On Thu, Aug 28, 2008

Re: Wicket Cart: open-source e-commerce wicket app

2008-08-28 Thread Serkan Camurcuoglu
I have another idea for brix.. I believe that a portlet which displays these brix tiles as portlets would be incredibly useful for portal developers, because WYSIWYG content editing in portals is a very handy feature, and it's missing in Jetspeed AFAIK.. For example, one could add an instance o

Severe log: no Header Container was found but components..

2008-08-19 Thread Serkan Camurcuoglu
Hi all, I need to change the direction of the html file to rtl if the logged in user's locale is arabic. I followed the method in this previous message http://www.nabble.com/How-can-I-switch-page-direction-(LTR-RTL)--td13747743.html#a14025235 . It works fine, but I'm constantly getting the foll

Re: Asynchronous Components

2008-07-23 Thread Serkan Camurcuoglu
you may also consider using a portal framework and portlets, for example apache jetspeed portal (and possibly others) has parallel portlet rendering option.. Igor Vaynberg wrote: if you want the page to render all at once you have to spin off as many threads as there are components and block

Simple i18n question

2008-07-16 Thread Serkan Camurcuoglu
Hi, In my resource file, I need a property expression to display the toString() value of my model object. I've discovered that using ${} works, but it seems like a bad hack to me. What's the correct way of doing this? Regards,

Re: request.getSession.getAttribute()

2008-07-15 Thread Serkan Camurcuoglu
I think this may give you the HttpSession object.. ((WebRequestCycle)getRequestCycle()).getWebRequest().getHttpServletRequest().getSession(); Karen Schaper wrote: Hi, I am calling a servlet that is not part of my wicket application. This servlet is expecting some things in the Session objec

Re: DateTextField question

2008-07-15 Thread Serkan Camurcuoglu
problem is patched in 1.3.4. On 7/15/08, Serkan Camurcuoglu <[EMAIL PROTECTED]> wrote: I'm not sure about the reason, but in my portlet application, only one of the date pickers is initialized if I add two portlets on the same page containing date pickers, so only one of them work

Re: DateTextField question

2008-07-15 Thread Serkan Camurcuoglu
I'm not sure about the reason, but in my portlet application, only one of the date pickers is initialized if I add two portlets on the same page containing date pickers, so only one of them works.. also it seems like the date picker doesn't work if there is any other wicket ajax component loade

  1   2   >