Re: Cannot get current page from AjaxPagingNavigator

2010-11-10 Thread vp143
I got it working with the following code- thanks Pedro and JC final Label currentPage = new Label(currentPage, new Model()); currentPage.setOutputMarkupId(true); add(currentPage); final AjaxPagingNavigator pagination = new AjaxPagingNavigator(navigator, dataList)

Re: Free wicket from component hierarchy hell

2010-11-10 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 11:49:32 -0500 James Carman ja...@carmanconsulting.com wrote: Are you moving a field from one form to another? But that does change the semantics, doesn't it? If it doesn't, why are there two forms? Both forms edit one particular object (say a Person). They just

Re: Free wicket from component hierarchy hell

2010-11-10 Thread James Carman
On Wed, Nov 10, 2010 at 3:49 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote: So either there is a difference between the forms (different submit method maybe?), then this move would make a semantic/behavioral difference and needs to be done in code. As I said, the two forms edit different

Re: Wicket JQuery drag and drop behaviors

2010-11-10 Thread Ernesto Reinaldo Barreiro
Armando, Yes maybe you are right... but if type wicket jquery on google on the first page I get references both jWicket and wiQuery and you can always resort to ask questions on this list;-) Ernesto On Wed, Nov 10, 2010 at 8:44 AM, armandoxxx armando@dropchop.com wrote: Just a thought

Re: Free wicket from component hierarchy hell

2010-11-10 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 12:17:38 -0800 Igor Vaynberg igor.vaynb...@gmail.com wrote: i wonder if queuing can actually replace icomponentresolver and auto-adding. i wonder if after onbeforerender we can do what unqueing does now, parse the markup, find any missing components, and insert them.

Re: Free wicket from component hierarchy hell

2010-11-10 Thread Carl-Eric Menzel
On Tue, 9 Nov 2010 12:16:00 -0800 Igor Vaynberg igor.vaynb...@gmail.com wrote: the difficult part is that doing this to complex pages is...difficult. in the example above it is easy to see the two components that need to be renested. but, in complex pages there can be 20 components that need

Tree - component nodeLink not found on page

2010-11-10 Thread Wayne W
Hi, we recently introduced a extensions.markup.html.tree.Tree component in our product. However we're seeing some errors in production where the nodeLink in the component cannot be found in the page. In our onNodeLinkClicked we just perform a setResponsePage with a bookmarkable page. I've done

input type number

2010-11-10 Thread Benjamin Lorenz
Hello, how can I create input fields with input type number (html 5). With TextField, I get must be applied to a tag with 'type' attribute matching 'text', not 'number'. But there's no NumberField in the Wicket API?! Please help! Best, Benjamin

Re: input type number

2010-11-10 Thread Martin Grigorov
Override org.apache.wicket.markup.html.form.TextField.getInputType() There is a project in trunk/wicketstuff-code/jdk1.6/ for these. It is in early state. On Wed, Nov 10, 2010 at 12:12 PM, Benjamin Lorenz benjamin.lor...@kapowtech.com wrote: Hello, how can I create input fields with input

panel can not be refreshed

2010-11-10 Thread Mehmet.Kaplankiran
Hello, I have implemented iframe and can view documents. Unfortunately, only in the class MyPdfResource hard-coded filename (example: private string filename = test.pdf;) can be displayed. The files can not be refreshed. I hope someone can help me. greetings, Mehmet HTML: div wicket:id=mypdf

Re: Free wicket from component hierarchy hell

2010-11-10 Thread Carl-Eric Menzel
On Wed, 10 Nov 2010 07:31:28 -0500 James Carman ja...@carmanconsulting.com wrote: On Wed, Nov 10, 2010 at 3:49 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote: So either there is a difference between the forms (different submit method maybe?), then this move would make a

Re: input type number

2010-11-10 Thread Martijn Dashorst
I'd rather drop this check, or make it configurable (*and* add support for the new types). Martijn On Wed, Nov 10, 2010 at 12:15 PM, Martin Grigorov mgrigo...@apache.org wrote: Override org.apache.wicket.markup.html.form.TextField.getInputType() There is a project in

Re: Wicket JQuery drag and drop behaviors

2010-11-10 Thread armandoxxx
And I don't .. and that was my main problem :( .. but I got links now ;) I tried to find wicket jquery project on wicket stuff and no luck with that either .. so that's how it all happened :D why don't you guys that work on wicket + jquery projects get together and make one project ? That

For objects out of session, work with directly or use loadable detachable model

2010-11-10 Thread Brown, Berlin [GCG-PFS]
For objects that I get from session, I was trying to avoid accessing them in the constructor but I wanted to setup my default model so that they are pulled on the load method from a loadabledetachable model. Which approach do you use? Here are the three approaches, (The code below is pseudo

SV: onSubmit method and validators

2010-11-10 Thread Wilhelmsen Tor Iver
The issue I am having is that once this happens, the onSubmit() method is no longer called and wicket starts calling the onError() method. Which is as expected: You usually do not want to process a form that fails validation. Since my business logic is inside the onSubmit() method, it never

RE: onSubmit method and validators

2010-11-10 Thread Henrique
The business logic is a simple access to a DAO to save what the user has entered into the form, like so: public void onSubmit() { Item item = (Item)getModelObject(); User user = UserLoggedInSession.get().getUser();

SV: onSubmit method and validators

2010-11-10 Thread Wilhelmsen Tor Iver
Isn't this the logical place to put this code? Yes, once all validation has passed, you will want to persist the correct data. Once the user leaves out a certain input, onError() is called and onSubmit() never gets called again. Strange, it should be called on the next submit if the user

RE: Free wicket from component hierarchy hell

2010-11-10 Thread Frank Silbermann
What were the reasons for requiring the hierarchies to match in the original design of Wicket? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Free wicket from component hierarchy hell

2010-11-10 Thread James Carman
On Wed, Nov 10, 2010 at 8:08 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote: That's exactly my point :-) This is not a good example to allow queuing, because there's no gain. Either there is an important difference between the two forms, then it doesn't make sense to queue *above* the

Re: Cannot get current page from AjaxPagingNavigator

2010-11-10 Thread jcgarciam
I would change: final Label currentPage = new Label(currentPage, new Model()); to this: Label currentPage = new Label(currentPage, new LoadableDetachableModel(){ public Object load(){ return pagination.getPageable().getCurrentPage() + 1; } }); and then just remove the

Re: onSubmit method and validators

2010-11-10 Thread Henrique
Could it have something to do with the fact that I am using a CompoundPropoertyModel? I can't think of a simpler example, here is the code: public class PublishItem extends WebPage { private AddItemForm form; public PublishItem() { form = new

Re: Cannot get current page from AjaxPagingNavigator

2010-11-10 Thread jcgarciam
Ohh sorry, now that i read your code carefully i see you have a case of the Chicken and the Egg!! :) On Wed, Nov 10, 2010 at 11:30 AM, Juan Carlos Garcia jcgarc...@gmail.comwrote: I would change: final Label currentPage = new Label(currentPage, new Model()); to this: Label currentPage =

Re: mobile Apllication via Wicket

2010-11-10 Thread jcgarciam
In server side, just check the User-Agent header from your HttpRequest. On Wed, Nov 10, 2010 at 11:41 AM, Madlip89 [via Apache Wicket] ml-node+3036192-1884488973-65...@n4.nabble.comml-node%2b3036192-1884488973-65...@n4.nabble.com wrote: Hey everyone, i must started a apllication with

Re: mobile Apllication via Wicket

2010-11-10 Thread Wayne W
We use the excellent wurfl open source project to help us out with devices. On Wed, Nov 10, 2010 at 3:49 PM, jcgarciam jcgarc...@gmail.com wrote: In server side, just check the User-Agent header from your HttpRequest. On Wed, Nov 10, 2010 at 11:41 AM, Madlip89 [via Apache Wicket]

Re: Free wicket from component hierarchy hell

2010-11-10 Thread Igor Vaynberg
i can only hazard a guess, but if i did it would be that it was the simplest and cleanest solution that made sense. that is always a good starting point. -igor On Wed, Nov 10, 2010 at 6:19 AM, Frank Silbermann frank.silberm...@fedex.com wrote: What were the reasons for requiring the hierarchies

Re: Free wicket from component hierarchy hell

2010-11-10 Thread Igor Vaynberg
On Wed, Nov 10, 2010 at 1:05 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote: On Tue, 9 Nov 2010 12:16:00 -0800 Igor Vaynberg igor.vaynb...@gmail.com wrote: the difficult part is that doing this to complex pages is...difficult. in the example above it is easy to see the two components that

Re: Free wicket from component hierarchy hell

2010-11-10 Thread Igor Vaynberg
you guys are both making an argument against queuing, and against each-other. paradox. -igor On Wed, Nov 10, 2010 at 5:08 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote: On Wed, 10 Nov 2010 07:31:28 -0500 James Carman ja...@carmanconsulting.com wrote: On Wed, Nov 10, 2010 at 3:49 AM,

Re: For objects out of session, work with directly or use loadable detachable model

2010-11-10 Thread Igor Vaynberg
even though they are in session it is still better to use a detachable model. if you dont you may end up with the instance in session and in your page diverging on back button because wicket clones the page with the page being the root not the session so it wont handle the reference properly. the

Re: mobile Apllication via Wicket

2010-11-10 Thread Madlip89
woaaahhh that's great man! Thank you very very much!!! u god man! For other people her is the exemplar: final ServletWebRequest req = (ServletWebRequest) RequestCycle.get().getRequest(); final String remoteAddr = req.getHttpServletRequest().getRemoteAddr(); final String

mobile Apllication via Wicket

2010-11-10 Thread Madlip89
Hey everyone, i must started a apllication with wicket. This is a Web-Application. A must find out, Who send the Request? (SmartPhones or Desctop PC) I started this with a Javascript that's call by browserdetect. Now I'm searching a way to realise that's in wicket. Can u help me, from what

Re: Are there any cases when I can rearrange component tree?

2010-11-10 Thread samket
If you have markup like this: div wicket:id=c/div You can put any panel (named c) in using the add-method and later switch it to any panel (named c) using the replace-method. You could create lots of tiny reusable panels and compose them into various structures. In my mind, Wicket is just as

Re: onSubmit method and validators

2010-11-10 Thread Henrique
This seems like a pretty basic thing to do, and since Wicket gives us lots of validators to use, I would hate to have to manually validate each input in the onSubmit method. Am I the only one having this problem? Thanks! On Wed, Nov 10, 2010 at 11:33 AM, Henrique quiqu...@gmail.com wrote:

Re: onSubmit method and validators

2010-11-10 Thread Pedro Santos
On Wed, Nov 10, 2010 at 12:03 PM, Henrique quiqu...@gmail.com wrote: The business logic is a simple access to a DAO to save what the user has entered into the form, like so: public void onSubmit() { Item item = (Item)getModelObject();

Re: CheckBoxes cleared by Modal popup

2010-11-10 Thread brettTi
Seems to be a nested form issue. The modal has a form. If i change the modal's AjaxSubmitLink to an AjaxLink, the problem on the outer form goes away. I need the submmit on the modal, so this doesn't really solve my problem so I moved the modal window so that its not nested. I'm good for now,

Re: onSubmit method and validators

2010-11-10 Thread Henrique
Yes, even in what would be the second submit, with all the right input entered. It's as if the form just stopped responding, onsSubmit is never called ever again, just onError time after time. - To unsubscribe, e-mail:

Re: onSubmit method and validators

2010-11-10 Thread Pedro Santos
If you don't solve your problem, do you mind to fill an ticket on JIRA with an quickstart demonstrating the problem? On Wed, Nov 10, 2010 at 5:17 PM, Henrique quiqu...@gmail.com wrote: Yes, even in what would be the second submit, with all the right input entered. It's as if the form just

Re: onSubmit method and validators

2010-11-10 Thread Henrique
No problem...I'll keep for a little while and if it persists I can fill a ticket. What's the URL for wicket's jira? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

WicketTester clickLink: Ajax-Response not rendered into the page?

2010-11-10 Thread Hans Lesmeister
Hi, I have a page processed by the wicket-tester. On the page, there is an AjaxLink. Now I do a clickLink on that AjaxLink. If I do a pagedump after the clickLink, I can see the Ajax-Response which looks good. The Response contains markup to replace an exisiting Container. Unfortunately, the

Re: onSubmit method and validators

2010-11-10 Thread Pedro Santos
There are good information at http://wicket.apache.org/contribute/patch.html On Wed, Nov 10, 2010 at 5:49 PM, Henrique quiqu...@gmail.com wrote: No problem...I'll keep for a little while and if it persists I can fill a ticket. What's the URL for wicket's jira?

tooltip inside webMarkupContainer refreshing

2010-11-10 Thread taygolf
Hey guys. I have a ListView that contains a list of employee names. This list is wrapped in a webMarkupContainer which allows the user to add and delete names from the listview. All of this works properly. I have setup a tooltip that allows the user to hover over the employee name and it will

Re: tooltip inside webMarkupContainer refreshing

2010-11-10 Thread Sven Meier
Hi, apply the golden rule and never pull out of a model to push into another one: AttributeModifier am1 = new AttributeModifier(title, true, new AbstractReadOnlyModel()String { public String getObject() { KeyMemberData kmd = (KeyMemberData)item.getModelObject(); Employee emp =

Re: tooltip inside webMarkupContainer refreshing

2010-11-10 Thread taygolf
wow you are my hero!!! I have been stuck on this all week and could not figure out what I was doing wrong. Of course it was something simple like that that I completely over looked. Thanks for the help for sure! T -- View this message in context:

Re: onSubmit method and validators

2010-11-10 Thread Pedro Santos
I mean: http://wicket.apache.org/help/ On Wed, Nov 10, 2010 at 2:55 PM, Pedro Santos pedros...@gmail.com wrote: There are good information at http://wicket.apache.org/contribute/patch.html On Wed, Nov 10, 2010 at 5:49 PM, Henrique quiqu...@gmail.com wrote: No problem...I'll keep for a

Memory Leak in 1.4.13?

2010-11-10 Thread Brad Grier
I recently upgraded our app from 1.4.12 to 1.4.13. Our app has an admin screen that shows the current session size using Session’s getSizeInBytes method. This screen is just a panel that gets replaced/refreshed via Ajax when a link is clicked. Today I noticed that every time I clicked the link

Re: Memory Leak in 1.4.13?

2010-11-10 Thread Jeremy Thomerson
On Wed, Nov 10, 2010 at 5:57 PM, Brad Grier brad.gr...@salusnovus.comwrote: I recently upgraded our app from 1.4.12 to 1.4.13. Our app has an admin screen that shows the current session size using Session’s getSizeInBytes method. This screen is just a panel that gets replaced/refreshed via

[OT] WicketForge 0.7.2 available for IDEA 9

2010-11-10 Thread Minas Manthos
WicketForge 0.7.2 is available for download. change notes: http://plugins.intellij.net/plugin/?id=1545 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/OT-WicketForge-0-7-2-available-for-IDEA-9-tp3037143p3037143.html Sent from the Users forum mailing list archive at

Re: [OT] WicketForge 0.7.2 available for IDEA 9

2010-11-10 Thread 7zark7
Great, thanks! On 11/10/10 5:25 PM, Minas Manthos wrote: WicketForge 0.7.2 is available for download. change notes: http://plugins.intellij.net/plugin/?id=1545 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Wicket ajax-enabled enclosures

2010-11-10 Thread Jeremy Thomerson
On Tue, Nov 9, 2010 at 4:27 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Does wicket:enclosure have capability to setOutputMarkupPlaceholderTag ? What I mean is that when I have: wicket:enclosure child=optional-field tr tdoptional content/td tdinput type=text

Re: onSubmit method and validators

2010-11-10 Thread Jeremy Thomerson
and here (although it is out of date and I hope to update it soon): http://www.jeremythomerson.com/blog/2008/11/wicket-quickstart-tutorial/ On Wed, Nov 10, 2010 at 5:27 PM, Pedro Santos pedros...@gmail.com wrote: I mean: http://wicket.apache.org/help/ On Wed, Nov 10, 2010 at 2:55 PM, Pedro

Re: Memory Leak in 1.4.13?

2010-11-10 Thread Brad Grier
Hopefully I can recreate in a quickstart. The pages in our app are dynamically created. If this leak is somehow related to how the layout engine works it might be difficult. I'll see what I can do. -Original Message- From: Jeremy Thomerson Sent: Wednesday, November 10, 2010 5:23 PM

Hints for creating a form-embedded Grid

2010-11-10 Thread MattyDE
As i mentioned in a another thread i build my own GridView Component from Scratch (just extending Panel). But now our customer want a special, editable Grid. Its no problem on my side to add TextboxColumns, DropDownColumns and so on, but i cant figure out how to connect them to a special form.

Re: Hints for creating a form-embedded Grid

2010-11-10 Thread Thierry Peng
MattyDE schrieb: As i mentioned in a another thread i build my own GridView Component from Scratch (just extending Panel). But now our customer want a special, editable Grid. Its no problem on my side to add TextboxColumns, DropDownColumns and so on, but i cant figure out how to connect them to