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 wrote: > Thanks Igor.

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: http://apache-wicket.1842946.n4.nabble.com/AbstractAjaxBehavior-and-mis

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 replaceme

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 wrote: > Hi, I am trying to use wicket + cdi, reading Ivan post at [1], there is an > exception > > javax.enterprise.context.ContextNotActiveExcep

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 persis

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 stuf

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

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 way

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: http://apache-wicket.1842946.n4.nabble.com/How-to-refresh-frame2-with-an-Ajax-submit-button-in-frame1-for-a-page-using-frameset-tp4326014p

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 set/addHeader("Set-Cookie

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) { ServletWe

Re: AbstractAjaxBehavior and missing unbind(Component) method

2012-02-21 Thread Martin Grigorov
On Tue, Feb 21, 2012 at 3:26 PM, Dirk Forchel wrote: > I have a static list of "pre-configured" instances (my "Effects"). On the > page is a select box (a DropDownChoice component) which uses > this list of instances to select an effect. Within the onClick() method of > an additional AjaxLink, the

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 DropDownChoice component) which uses this list of instances to select an effect. Within the onClick() method of an additional AjaxLink, the WebMarkupContainer ("effectContainer") is updated and the sel

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 sh

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 > wrote: > > I have recently upgraded from Wic

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 wrote: > Similar to this topic > (ht

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 (http://jqueryui.c

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

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 lis

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 wrote: > I have recently upgraded from Wicket 1.4.14 to 1.5.4. One issue that I > encountered is that tags in panel templates are rewritten by > Wicket, even when the

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 Threa

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 tags in panel templates are rewritten by Wicket, even when the