Replacing Links with AjaxSubmitLinks in AjaxFallbackDefaultDataTable

2010-06-03 Thread Nelson Segura
Hello, I am new to Wicket, and I am writing a listing component based on the phonebook app that uses AjaxFallbackDefaultDataTable and is able to retain checkbox status across pages. I searched the forums, and reading around, I was able to get the status being retained on submits. What I am

Re: Replacing Links with AjaxSubmitLinks in AjaxFallbackDefaultDataTable

2010-06-03 Thread Nelson Segura
how AjaxFallbackDefaultDataTable replaces the navigator links with AjaxFallbackLinks... -igor On Thu, Jun 3, 2010 at 8:18 AM, Nelson Segura nsegu...@gmail.com wrote: Hello, I am new to Wicket, and I am writing a listing component based on the phonebook app that uses

Links in DataTable

2010-06-28 Thread Nelson Segura
I am trying to create a table based on DataTable, in which one of the columns has links on it. I tried to use the strategy described here (LinkPanel): https://cwiki.apache.org/WICKET/adding-links-in-a-defaultdatatable.html But this has a problem: clicking in the links in succession soon causes

Re: Links in DataTable

2010-06-28 Thread Nelson Segura
= new AjaxFallbackDefaultDataTable(link-panel-table, columnList, provider, 3); form.add(table); add(form); } } -Nelson On Mon, Jun 28, 2010 at 5:14 PM, Jeremy Thomerson jer...@wickettraining.com wrote: please show some code On Mon, Jun 28, 2010 at 6:39 PM, Nelson Segura nsegu

Re: Links in DataTable

2010-06-28 Thread Nelson Segura
with AjaxFallbackDefaultDataTable, not with DataTable. -Nelson On Mon, Jun 28, 2010 at 5:47 PM, Nelson Segura nsegu...@gmail.com wrote: Jeremy, the code is below. I did notice something while researching/testing more. The LinkPanel solution DOES work for a DataTable. The problem starts when

Re: Links in DataTable

2010-06-30 Thread Nelson Segura
Can anyone explain to me why this does not work with AjaxFallbackDefaultDataTable, but does with DefaultDataTable. Does anyone know of a solution for this problem? On Mon, Jun 28, 2010 at 6:18 PM, Nelson Segura nsegu...@gmail.com wrote: Since AjaxLink is AJAX and not a proper link, then it does

Re: Links in DataTable

2010-06-30 Thread Nelson Segura
, Nelson Segura wrote: I am attaching a Quickstart project to help reproduce the problem. On the home page, middle click in the email address shown (usually this will take a user to a detail page, but in this case it just prints a message). After that, any click on a link in the page will cause

Re: Refreshing modal window

2010-06-30 Thread Nelson Segura
Are you refreshing the whole window or just the feedback panel? You can try to refresh the whole window, or you can include some java script that scrolls your window to the top on the ajax response. -Nelson On Wed, Jun 30, 2010 at 12:22 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: Hi, My

Re: Refreshing modal window

2010-06-30 Thread Nelson Segura
, 2010 at 4:27 PM, Nelson Segura nsegu...@gmail.com wrote: Are you refreshing the whole window or just the feedback panel? You can try to refresh the whole window, or you can include some java script that scrolls your window to the top on the ajax response. -Nelson On Wed, Jun 30

ApacheCon 2010

2010-10-06 Thread Nelson Segura
According to this link http://na.apachecon.com/c/acna2010/schedule/grid, there will be Wicket training in the ApacheCon NA 2010. But I can't find a way to register for it. Is the training really on or is it just a mistake on scheduling? -Nelson

Re: ApacheCon 2010

2010-10-06 Thread Nelson Segura
large clients that week. Sorry :) Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Oct 6, 2010 11:53 AM, Nelson Segura nsegu...@gmail.com wrote: According to this link http://na.apachecon.com/c/acna2010

Displaying update error in Wizard step, need ideas

2010-11-01 Thread Nelson Segura
Hello, I am using the wicket-extensions wizard. On applyState() of a wizard step, I am calling my back end to update some data. There is a corner condition under which the update might fail, and we would like to stay in the current step and display a message. I thought about overriding the

Re: Displaying update error in Wizard step, need ideas

2010-11-01 Thread Nelson Segura
at 4:24 PM, Nelson Segura nsegu...@gmail.com wrote: Hello, I am using the wicket-extensions wizard. On applyState() of a wizard step, I am calling my back end to update some data. There is a corner condition under which the update might fail, and we would like to stay in the current step

Re: Invalid html rendered with DataTable [ex. empty tfoot element]

2010-12-10 Thread Nelson Segura
The same problem is visible in the Wicket examples for data table http://wicketstuff.org/wicket14/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.DataTablePage The tfoot tags are empty, which is invalid HTML. Any ideas on how to fix this? -Nelson On Thu, Nov 25, 2010 at

AbstractAjaxTimerBehavior and getPreconditionScript

2011-01-07 Thread Nelson Segura
I am writing code that checks whether the user has typed something in the page, and if so, goes an AJAX call to keep the user session alive. For this I am using AbstractAjaxTimerBehavior to ping the server every certain time, and overriding its getPreconditionScript() method to call a JS function

Re: AbstractAjaxTimerBehavior and getPreconditionScript

2011-01-10 Thread Nelson Segura
for an alternative. -nelson On Fri, Jan 7, 2011 at 6:34 PM, Jeremy Thomerson jer...@wickettraining.comwrote: On Fri, Jan 7, 2011 at 4:56 PM, Nelson Segura nsegu...@gmail.com wrote: I am writing code that checks whether the user has typed something in the page, and if so, goes an AJAX call

Re: AbstractAjaxTimerBehavior and getPreconditionScript

2011-01-11 Thread Nelson Segura
Can anyone provide an answer whether returning false in the getPreconditionScript() method is supposed to stop the AJAX timer behaviour, or should I be looking for a bug? -Nelson

Re: AbstractAjaxTimerBehavior and getPreconditionScript

2011-01-11 Thread Nelson Segura
call no timer so to speak. you can write your own version of the timer behavior that works the way you want. -igor On Tue, Jan 11, 2011 at 4:32 PM, Nelson Segura nsegu...@gmail.com wrote: Can anyone provide an answer whether returning false in the getPreconditionScript() method is supposed

Calling wicket modal popup from non-wicket

2011-01-19 Thread Nelson Segura
We are slowly migrating a JSP app to wicket. Parts of our app are written in Wicket, but most of it is still JSP. We need to integrate some of the new wicket functionality into old JSP pages, as fragments or modal popups. There is a lot of functionality in that page using JSP, so rewriting

Re: Calling wicket modal popup from non-wicket

2011-01-20 Thread Nelson Segura
That sounds like a good solution. Thanks! -nelson On Wed, Jan 19, 2011 at 3:53 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: your best bet is to use a non-wicket modal and iframe a wicket page into it. -igor On Wed, Jan 19, 2011 at 3:12 PM, Nelson Segura nsegu...@gmail.com wrote: We

Sending to a new page from Iframe

2011-05-13 Thread Nelson Segura
I have a JSP page which has a small wicket mini page embedded in an IFrame. The small wicket page has wicket button that when preset should take the user to a full Wicket page. My problem is that when Using setResponsePage from the onclick event in the mini page, the Iframe gets refreshed. Instead

Re: Sending to a new page from Iframe

2011-05-16 Thread Nelson Segura
Excellent! thanks for the help. -Nelson On Fri, May 13, 2011 at 5:24 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: use an ajaxbutton/link instead and in response do target.appendjavascript(window.top.location='+urlFor(MyPage.class)+');); -igor On Fri, May 13, 2011 at 4:11 PM, Nelson

Preserving user input on ajax changes

2011-06-02 Thread Nelson Segura
I have a form to which I need to add dynamic fields using ajax, whenever the user clicks on the add new input link. I need to preserve the current user input, without actually updating the backing models (or at least preserve input that is not completely valid, or do not show errors if the user as

Re: Preserving user input on ajax changes

2011-06-02 Thread Nelson Segura
PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you want setDefaultFormProcessing(false) -igor On Thu, Jun 2, 2011 at 3:41 PM, Nelson Segura nsegu...@gmail.com wrote: I have a form to which I need to add dynamic fields using ajax, whenever the user clicks on the add new input link. I

Re: Preserving user input on ajax changes

2011-06-06 Thread Nelson Segura
igor.vaynb...@gmail.com wrote: default processing = false means do not validate, etc. but, inputs are preserved. make sure your ajaxsubmitlink is inside the correct form. you can specify one in its constructor. -igor On Thu, Jun 2, 2011 at 4:22 PM, Nelson Segura nsegu...@gmail.com wrote

component rendering order

2011-06-16 Thread Nelson Segura
Is there a way to force components to be rendered in different order than in which they were added? I have the following dilemma: I have component on the header of my pages whose behavior (visibility/content) depends on the results displayed in a data table. Since the header of my pages is added

Re: component rendering order

2011-06-16 Thread Nelson Segura
I might mention that I am still using a version of wicket where onConfigure is not available,and we are not due to upgrade until after I need to finish this component. -Nelson On Thu, Jun 16, 2011 at 9:21 PM, Nelson Segura nsegu...@gmail.com wrote: Is there a way to force components

Re: component rendering order

2011-06-20 Thread Nelson Segura
void onBeforeRender() {  super.onBeforeRender();  addOrReplace(new MyComponent());  component.onBeforeRender() } It is not pretty, but I dont know other way to force a change in the rendering sequence of the components. -Nelson On Thu, Jun 16, 2011 at 9:22 PM, Nelson Segura nsegu...@gmail.com

Re: Preserving user input on ajax changes

2011-06-20 Thread Nelson Segura
PM, Nelson Segura nsegu...@gmail.com wrote: I think that my problem is that I am not reusing the models/ recreating models on refresh. Is that a possible cause? I have ListView that display the data, and the list itself is dynamic, depending on what the users selects (that is the reason I need

Re: component rendering order

2011-06-21 Thread Nelson Segura
I need to change the rendering order, because the rendering of that header component depends on the presence of that special data in the page (which could be in the table) -Nelson -igor On Mon, Jun 20, 2011 at 9:37 AM, Nelson Segura nsegu...@gmail.com wrote: On Thu, Jun 16, 2011 at 10:23 PM

Re: Bigger sites running on wicket?

2011-07-21 Thread Nelson Segura
I stumbled by accident on Coldwell banker's web site, which is using wicket. I don't know if that is known. It is a pretty big corporation. -Nelson On Thu, Jul 21, 2011 at 8:32 PM, Horacio Natyural horacio.natyu...@gmail.com wrote: we have used wicket extensively in several banking applications

Re: Apache Wicket releases Wicket 1.5

2011-09-08 Thread Nelson Segura
Woohoo! Thanks to all involved in making this happen. Now I can start working in our migration! -Nelson Segura - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Storing component state information in session

2011-09-12 Thread Nelson Segura
they would be transparent to the developer using the components. (Still using wicket 1.4.x) -Nelson Segura - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Basement Coders Meetup at JavaOne 2011

2011-09-16 Thread Nelson Segura
Can you explain how does it work? I am thinking on going to java one just to check this out. -nelson - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

On component added to ajax request target

2011-09-30 Thread Nelson Segura
I wonder if anyone has ideas on how to add a component to an AjaxRequestTarget if another related component is added to it. I am thinking about my Ajax List, there are several ways it can be added to a request target: sorting, filtering, paging, etc. I have another components that displays data

Re: Wicket Dynamic Navigation

2011-10-03 Thread Nelson Segura
To be fair, there is code in the web site he pointed at. Look under Beispielcode link. I don't speak a lick of german, but it is not hard to figure out that is the code, and under the web apps directory there is some code that can be useful

Re: On component added to ajax request target

2011-10-04 Thread Nelson Segura
I did something in the order of what you suggested: Created a new AjaxRequestTarget sub class public class MyAjaxRequestTarget extends AjaxRequestTarget { public void addComponent(Component component) { super.addComponent(component); // see if this component has related

Re: Is it possible to turn off page serialization in 1.5?

2011-10-05 Thread Nelson Segura
We dont use clustering either. Most of our objects are serializable, but I am thinking on turning off the page store. What will the effects of turning off versioning in the IPageManager. I never had conscious use for the page store. What will I miss?

ModalWindow, IFrame and source

2011-10-12 Thread Nelson Segura
the src of the iframe for modal windows be //: still causes random problem for us in other browsers. -Nelson Segura - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: ModalWindow, IFrame and source

2011-10-13 Thread Nelson Segura
Hey, thanks. I am planning to upgrade to 1.5.x in our .next release. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Exception Handling in 1.5

2011-11-14 Thread Nelson Segura
Hello, I am starting to migrate from 1.4 to 1.5. I am having problems trying to figure out exactly what is the best way to do the following. I have some custom exception and some custom pages for when the code throws those exception. In 1.4 this seemed trivial. For example .. public class

Re: Exception Handling in 1.5

2011-11-16 Thread Nelson Segura
:34 PM, Nelson Segura nsegu...@gmail.com wrote: Hello, I am starting to migrate from 1.4 to 1.5. I am having problems trying to figure out exactly what is the best way to do the following. I have some custom exception and some custom pages for when the code throws those exception. In 1.4

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Nelson Segura
I am just a user of Wicket, but this make me laugh, since we are desperately trying to get out of the JSP nightmare and have found Wicket a quite nice framework. Nice. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Exception Handling in 1.5

2011-11-17 Thread Nelson Segura
Hey, any idea how can I get the page/page class of the page that was being rendered when the exception happened? I was depending on that in 1.4 to determine the type of page I needed to return, for example if I am in the context of a modal window, I was showing a message in the window, and a close

Re: Apache Wicket is a Flawed Framework

2011-11-17 Thread Nelson Segura
You might/might not be right about documentation. This is usually true of most frameworks when you move from the Hello World program to a real life app. The original message said little to nothing about documentations. It is basically comparing Wicket to JSPs, and saying JSP are better. It might

ModalWindow does not close cleanly

2011-12-19 Thread Nelson Segura
I found that if you have a modal window, and then you close it, it is not possible to reopen it anymore unless you have set a WindowClosedCallback. This is because WindowClosedBehavior.render() does not get called. - To

Re: ModalWindow does not close cleanly

2011-12-19 Thread Nelson Segura
Sorry, I meant respond() ... On Mon, Dec 19, 2011 at 11:46 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: WindowClosedBehavior does not have render()...? -igor On Mon, Dec 19, 2011 at 11:40 AM, Nelson Segura nsegu...@gmail.com wrote: I found that if you have a modal window, and then you

Re: ModalWindow does not close cleanly

2011-12-21 Thread Nelson Segura
I have created a ticket, and attached a quick start to it https://issues.apache.org/jira/browse/WICKET-4311 Notice that if you uncomment the dummy callback code, you will be able to reopen the modal. - To unsubscribe, e-mail:

Can't open modal popups in ie8 or under

2011-12-28 Thread Nelson Segura
I think this is a bug in Wicket 1.5.3. You cannot open a modal window when using ie8 (possible ie7) if the context of the page you are opening from has more than one level. Example, if your parent page is http://localhost/modaltest, then wicket will correctly open the modal window in IE,

Re: Can't open modal popups in ie8 or under

2011-12-28 Thread Nelson Segura
Sorry, this could be a dupped of WICKET-4241. -Nelson On Wed, Dec 28, 2011 at 5:02 PM, Nelson Segura nsegu...@gmail.com wrote: I think this is a bug in Wicket 1.5.3. You cannot open a modal window when using ie8 (possible ie7) if the context of the page you are opening from has more than one

Re: ModalWindow does not close cleanly

2012-01-02 Thread Nelson Segura
Any hope this can be fixed for 1.5.4? I will hate having to change all our modals to have a dummy call back to get it to work :( -Nelson On Wed, Dec 21, 2011 at 2:59 PM, Nelson Segura nsegu...@gmail.com wrote: I have created a ticket, and attached a quick start to it https://issues.apache.org

Re: Can't open modal popups in ie8 or under

2012-01-02 Thread Nelson Segura
I applied the patch to my local version of 1.5.3, and it seems to solve this issue. On Fri, Dec 30, 2011 at 12:09 AM, northar josef.anders...@gmail.com wrote: Yes, tested with 1.5-snapshot now (not extensively), and it seems to work. My project manager will be glad -- View this message in

Re: ModalWindow does not close cleanly

2012-01-02 Thread Nelson Segura
:) A patch will be nice, but ... I think this has to do with my modal window using page instead of panel. Could it be? The window clears up the shown flag correctly if I press in the x for the modal window, because the CloseButtonBehavior gets called, but then the Ajax Target being used is in the

Re: ModalWindow does not close cleanly

2012-01-02 Thread Nelson Segura
I noticed also that if I add a dummy window closed call back to my page: 1) In the modal window, calling window.close() sets the shown flag to false 2) My dummy callback causes ModalWindow.WindowClosedBehavior to respond. The current value of this shown flag is still true! Then the behavior sets

Re: Set Wicket User Session to Servlet's HttpSession

2012-02-10 Thread Nelson Segura
So this means that wicket session cannot be accessed from non wicket request? I tried to call Session.get().bind() before doing anything with the session, but it gives me the same error. Notice this is called in Session.get(), so I cant really call bind. This was working with no problems in Wicket

Re: Page Map versions and Ajax Requests

2012-04-11 Thread Nelson Segura
I found the same problem, in my case it is page reload. I have a simple QS that has a button that increments a counter using ajax. When the user refreshes the page, the counter shows the correct number of clicks. More clicks, and a new refresh, the counter shows as expected. However, if I add an

Re: Page Map versions and Ajax Requests

2012-04-11 Thread Nelson Segura
This is easily reproduceable in the wicket sample pages: http://www.wicket-library.com/wicket-examples/ajax/links 1. Click on the increment link for Counter 2 for times. Counter shows 4. 2. CTRL-R/refresh 4 times, the counter still shows 4. 3. Click on link 4 more times. Counter shows 8

Re: Page Map versions and Ajax Requests

2012-04-11 Thread Nelson Segura
Sorry, you dont have to refresh 4 times, just once :p -Nelson On Wed, Apr 11, 2012 at 6:08 PM, Nelson Segura nsegu...@gmail.com wrote: This is easily reproduceable in the wicket sample pages: http://www.wicket-library.com/wicket-examples/ajax/links 1. Click on the increment link for Counter

urlFor in wicket 1.5

2012-04-20 Thread Nelson Segura
Is there any explanation for this? -Nelson Segura - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: urlFor in wicket 1.5

2012-04-20 Thread Nelson Segura
to /fts/foo it will produce /fts/search. -igor On Fri, Apr 20, 2012 at 1:25 PM, Nelson Segura nsegu...@gmail.com wrote: Using Wicket 1.5.4 Have the following mountedPage() mountPage(/fts/search, FTSResultsPage.class); In a panel inside that page I have String pageUrl = urlFor

Re: urlFor in wicket 1.5

2012-04-20 Thread Nelson Segura
I think that mapUrlFor() seems to produce the results as urlFor() used to in Wicket 1.5.5 -nelson On Fri, Apr 20, 2012 at 1:31 PM, Nelson Segura nsegu...@gmail.com wrote: Except that is not fully bookmarkable as per the API, is it? How can I produce a fully bookmarkable URL that can be printed

Re: urlFor in wicket 1.5

2012-04-20 Thread Nelson Segura
Vaynberg igor.vaynb...@gmail.com wrote: bookmarkable just means the url contains no session-state. it doesnt mean that it is absolute. -igor On Fri, Apr 20, 2012 at 1:31 PM, Nelson Segura nsegu...@gmail.com wrote: Except that is not fully bookmarkable as per the API, is it? How can I produce

Re: urlFor in wicket 1.5

2012-04-20 Thread Nelson Segura
 it as a bookmark. the browser will correctly resolve it against the current url and store /fts/search. -igor On Fri, Apr 20, 2012 at 1:48 PM, Nelson Segura nsegu...@gmail.com wrote: :) Maybe in one sense, but not as the API/javadoc for Wicket 1.5 written for urlFor() Returns a bookmarkable URL

PageReference as page parameter?

2012-09-17 Thread Nelson Segura
Hello, I have a very common pattern in which from a list, I can to detail of an element in the list. In the detail page I have a reference back to the page list. The page list can be different, several list might point to the same detail. Until now I have been using page reference to return to the

Re: PageReference as page parameter?

2012-09-17 Thread Nelson Segura
. if you want bookmarkable urls all the way around then you need to do what stateless frameworks do, pass the return url to the detail page as a parameter. -igor On Mon, Sep 17, 2012 at 3:07 PM, Nelson Segura nsegu...@gmail.com wrote: Hello, I have a very common pattern in which from a list, I can