Adding extra request parameters to AJAX calls

2012-02-21 Thread gmparker2000
The project I am working on currently requires that we introduce the concept of request scope using request parameters. To do this we need to add a conversation id to any URLs that are generated by wicket controls. Does wicket support this? So all AJAX buttons, link, drop down choices, etc will

Re: Adding extra request parameters to AJAX calls

2012-02-21 Thread Martin Grigorov
Hi, I think this application shows how to do that in Wicket 1.3/1.4/1.5. In Wicket 6.0 it will be easier: http://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=blob_plain;f=wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/AjaxEditableLabel.java;hb=master

Session for Stateless Pages (logged in user)

2012-02-21 Thread Sergej Sizov
Hi, I have a web application that contains only stateless pages. I need to allow users to register and login. So I need to store user's login in a session. Could you please advise me how to start session after successful login and make session persistent for stateless pages? Any links to

Re: Session for Stateless Pages (logged in user)

2012-02-21 Thread Martin Grigorov
Just call Session.get().bind() after successful login. On Tue, Feb 21, 2012 at 11:04 AM, Sergej Sizov sergej.si...@wincor-nixdorf.cz wrote: Hi, I have a web application that contains only stateless pages. I need to allow users to register and login. So I need to store user's login in a

Wicket 1.5 rewrites template content - imho should not

2012-02-21 Thread Pointbreak
I have recently upgraded from Wicket 1.4.14 to 1.5.4. One issue that I encountered is that script tags in panel templates are rewritten by Wicket, even when the script tags in question have no wicket handlers attached to them. I.e. the following panel template (notice that there are no wicket:id

Re: Updating a component from custom thread or why getRequestCycle returns null

2012-02-21 Thread BayPhilip
Actually this is not my problem. You update component just once after some time while I need non-stop updating. I found a semi-solution. I am using ScheduledThreadPoolExecutor. final ExecutorService service = new ScheduledThreadPoolExecutor(100) { protected void beforeExecute(final Thread

Re: Wicket 1.5 rewrites template content - imho should not

2012-02-21 Thread Martin Grigorov
Hi, Agree. Wicket should not do this in this case. File a ticket with a quickstart. On Tue, Feb 21, 2012 at 1:42 PM, Pointbreak pointbreak+wicketst...@ml1.net wrote: I have recently upgraded from Wicket 1.4.14 to 1.5.4. One issue that I encountered is that script tags in panel templates are

Re: Updating a component from custom thread or why getRequestCycle returns null

2012-02-21 Thread robmcguinness
maybe i misunderstood. if you attach a quickstart to this thread I can take a look. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Updating-a-component-from-custom-thread-or-why-getRequestCycle-returns-null-tp4393783p4406978.html Sent from the Users forum mailing

Re: Updating a component from custom thread or why getRequestCycle returns null

2012-02-21 Thread Pointbreak
You will still need client initiated requests to get your non-stop-updates from the page/component to the browser. Hence, just separate the work (which you can do continuously in your thread) from the page rendering (which will need to be initiated by a browser request whatever you do). Will make

AbstractAjaxBehavior and missing unbind(Component) method

2012-02-21 Thread Dirk Forchel
Similar to this topic (http://apache-wicket.1842946.n4.nabble.com/Possible-AbstractAjaxBehavior-Bug-tp1867734p1867734.html) I'm running into trouble adding a Behavior to a Component dynamically with an Ajax request. I have a test page for jQuery UI Effects similar to this example

Re: AbstractAjaxBehavior and missing unbind(Component) method

2012-02-21 Thread Martin Grigorov
Hi, Why do you want to reuse the behavior instance ? Can't you just create a new instance and assign it to the new component ? You can remove the old behavior from the old component with Component#remove(Behavior) On Tue, Feb 21, 2012 at 2:44 PM, Dirk Forchel dirk.forc...@exedio.com wrote:

Re: Wicket 1.5 rewrites template content - imho should not

2012-02-21 Thread Pointbreak
See https://issues.apache.org/jira/browse/WICKET-4425 On Tue, Feb 21, 2012, at 14:01, Martin Grigorov wrote: Hi, Agree. Wicket should not do this in this case. File a ticket with a quickstart. On Tue, Feb 21, 2012 at 1:42 PM, Pointbreak pointbreak+wicketst...@ml1.net wrote: I have

wiquery css

2012-02-21 Thread N. Metzger
Hi all, I'm having another of my blind mornings. I just tried wiquery for the first time and had an accordion running within a few minutes, so first of all: thanks!!! Now: what's the best way to change the look and feel? I saw a that you can define a jquery theme and upload if somehow. How? Or

Re: AbstractAjaxBehavior and missing unbind(Component) method

2012-02-21 Thread Dirk Forchel
I have a static list of pre-configured instances (my Effects). On the page is a select box (a DropDownChoiceAbstractEffect component) which uses this list of instances to select an effect. Within the onClick() method of an additional AjaxLink, the WebMarkupContainer (effectContainer) is updated

Re: How to write an HTTP header (to detect cookie disablement)?

2012-02-21 Thread Ian Marshall
Hello Jeff, Thanks for the tip. I have tried to detect my header in the HTTP response headers using, in my web application class: @Override protected WebResponse MyWebApplicationnewWebResponse(final WebRequest webRequest, final HttpServletResponse httpServletResponse) {

Re: How to write an HTTP header (to detect cookie disablement)?

2012-02-21 Thread Martin Grigorov
Hi Ian, If you add/set a header in the HttpServletResponse (even thru Wicket's WebResponse) then it will be written to the browser. You can verify that by investigating the request in Firebug's Net panel. If you want to send a cookie you should either use #addCookie() or

Re: How to refresh frame2 with an Ajax submit button in frame1 for a page using frameset?

2012-02-21 Thread michen
Thanks a lot for your information. I have modified my application to use frameless implementation, and the problem went away. -- View this message in context:

How to open BreadCrumbPanel from a context menu item instead of link

2012-02-21 Thread michen
Hi there, In my application, I would like to navigate through several breadcrumb panels through clicking context menu item. For example, in panel1, I have a result table, right click a context menu of a row in the table, I would like to open another panel2 in a breadcrumb fashion. Is there a

Reusing forms in different contexts

2012-02-21 Thread Bertrand Guay-Paquet
Hi, I want to reuse the same form panels in different contexts and would like to know how fellow Wicket users achieve this. The core of the problem is how to let the user of a form panel specify where to navigate when the form is submitted or canceled. There are multiple possibilities for

Re: Reusing forms in different contexts

2012-02-21 Thread Igor Vaynberg
*abstract* class myformpanel extends panel { public myformpanel(string id) { add(new button(save) { onsubmit() { *onsave(model);* });} *protected abstract void onsave(imodel);* } add(new myformpanel(panel) { protected void onsave(imodel) { // do stuff

ContextNotActiveException using net.ftlines.wicket-cdi:wicket-cdi 1.2

2012-02-21 Thread Claudio Miranda
Hi, I am trying to use wicket + cdi, reading Ivan post at [1], there is an exception javax.enterprise.context.ContextNotActiveException: Conversation Context not active when method called on conversation Transient conversation I put the following excerpt in the HomePage.java but the error

Re: ContextNotActiveException using net.ftlines.wicket-cdi:wicket-cdi 1.2

2012-02-21 Thread Igor Vaynberg
you are missing seam-conversation-weld jar, see the Setting Up wicket-cdi section under [1]. -igor On Tue, Feb 21, 2012 at 5:37 PM, Claudio Miranda clau...@claudius.com.br wrote: Hi, I am trying to use wicket + cdi, reading Ivan post at [1], there is an exception

Re: Reusing forms in different contexts

2012-02-21 Thread Bertrand Guay-Paquet
Thanks Igor. This is actually very close to what I used as my first approach. The problem I had then was that depending on the context in which the panel is used, the component must be one of the following: 1-A Link/Button, like in your code 2-A BookmarkablePageLink 3-An AjaxLink (ajax

Re: AbstractAjaxBehavior and missing unbind(Component) method

2012-02-21 Thread Dirk Forchel
Yes, I mean Java's static. Actually it was not meant to re-use this list due to concurrent requests. It's just a test page. But I've got it. I'll chance the page and use new instances instead. -- View this message in context:

Re: Reusing forms in different contexts

2012-02-21 Thread Martin Grigorov
HI Bertrand, I'm not quite sure whether this is your concern but take a look at org.apache.wicket.markup.html.tree.BaseTree#newLink() It uses LinkType to decide what kind of Link to create. You can use the same approach. On Wed, Feb 22, 2012 at 6:12 AM, Bertrand Guay-Paquet