Re: integrating extjs with wicket

2009-08-12 Thread walnutmon
Did anything ever come of this idea? I worked with wicket a lot, but then our company switched into the grails direction, which I understand from a business perspective, and I also love groovy, I was thinking that using groovy, wicket, and extjs combined would be a great combination, but it would

Re: AjaxEventBehavior onclick for WebMarkupContainer Precondition Check

2009-06-17 Thread walnutmon
. > Next shoot would be the overridden onComponentTag() method. > I'd say a call to super.onComponentTag() is needed. > > Maybe that should be described more explicit in the JavaDoc. > > mf > > Am 17.06.2009 um 19:25 schrieb walnutmon: > >> >> Close but no d

Re: AjaxEventBehavior onclick for WebMarkupContainer Precondition Check

2009-06-17 Thread walnutmon
Close but no donut, copper. That occurred to me, but it was too late. The source doesn't seem to give much away, I do see the JavaScript on the Div though. ]]>*/ top: le

Re: AjaxEventBehavior onclick for WebMarkupContainer Precondition Check

2009-06-17 Thread walnutmon
top: left: length: width: color: Martin Funk-3 wrote: > > ok, wrong wording on my side. > > i meant the html source of the page in the browser. > > mf > >

Re: AjaxEventBehavior onclick for WebMarkupContainer Precondition Check

2009-06-17 Thread walnutmon
Martin, I actually don't know how to get that dump, i'm using firefox, the error I posted was from the AjaxDebugBox, any tips on getting the client side dump? I have firebug, but don't seem to see any JavaScript errors, although admittedly I don't know anything about using it for JavaScript deb

Re: Creating Detachable Lists

2009-03-03 Thread walnutmon
> public List load() { > return yourApp.howeverYouCreateYourList(); > } > } > > On Tue, Mar 3, 2009 at 9:30 AM, walnutmon > wrote: > >> >> All, >> >> I have a list that I pass to various components, a pageable view, and >> dropdowns

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-03 Thread walnutmon
It seems that the drop down should at least be able to take a ListModel, but that doesn't work either... I actually was just writing code to get around this right now. DropDownChoice dd = new DropDownChoice("foo", new IModel>()

Creating Detachable Lists

2009-03-03 Thread walnutmon
All, I have a list that I pass to various components, a pageable view, and dropdowns for example... After moving models to be detachable, there is a problem where the pageable view is only creating a detachable model on "populateItem()", therefore, the models are detachable only for the page (p

Re: 1.4 RC Stylesheet Reference Issue

2009-02-23 Thread walnutmon
Thanks. Is there any way to work around it? Something on my page that is triggering it to place a _en_US at the end of the stylesheet that I am referencing? igor.vaynberg wrote: > > see WICKET-1868, should be fixed in >rc2 > > -igor > > On Fri, Feb 20, 2009 at 11:18 A

Re: Uploading A File

2009-02-23 Thread walnutmon
oadField fuf = new FileUploadField("file", new Model()); > > this used to work without the model, but it doesn't now. Please provide > more information if this doesn't fix it. > > > -- > Jeremy Thomerson > http://www.wickettraining.com > > On

1.4 RC Stylesheet Reference Issue

2009-02-20 Thread walnutmon
One of my pages, for a reason unknown by me, has a different stylesheet reference, which causes the page to have a screwed up display (no css)... I haven't been able to find any workaround to this issue, nor can I even really figure out what is causing it, but the closest I've been able to find i

StyleSheet References Incorrectly Have Language Appended

2009-02-20 Thread walnutmon
-- View this message in context: http://www.nabble.com/StyleSheet-References-Incorrectly-Have-Language-Appended-tp22126039p22126039.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Uploading A File

2009-02-19 Thread walnutmon
I'm not sure exactly where this belongs, but I need to upload a file, after checking the example I noticed that it throws an internal error whenever I try to use it... That's not the behavior I hope to emulate... Does anyone have an easy way to get a file upload through wicket? Thanks! Justin

Re: Validation From A Custom Component

2009-02-17 Thread walnutmon
My solution was a combination of the ideas here, let me know what you think :) While I don't particularly love the idea of using domain exceptions to render feedback on the front end, I don't have any control over certain decisions; still, being able to use a strict domain and have it interact wi

Re: Validation From A Custom Component

2009-02-17 Thread walnutmon
27;updateModel' on it's children? Perhaps the component can only take PropertyModels? Jeremy Thomerson-5 wrote: > > in the custom component's constructor, why don't you do: > > add(new IValidator() { > ... > }); > > Or create a custom validator class a

Validation From A Custom Component

2009-02-17 Thread walnutmon
All, I have custom components which know if they have a validation error when they call "updateModel()", the domain is where validation happens, I'm using this to post error messages which are rendered like a validation error: @Override public void updateModel() { try

FeedbackMessage of Level "Error", isInfo() returns True

2009-02-17 Thread walnutmon
I created a filter that does this: boolean accept(message) { return message.isInfo(); } This returns true for messages created using "error("asdf")" To make sure I wasn't mistaken I added this: if(message.isError() && message.isInfo()){throw new RuntimeException("something");} That was trigge

Re: Feedback Next To Component

2009-02-16 Thread walnutmon
glu-3 wrote: > > 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 >>

Re: Feedback Next To Component

2009-02-12 Thread walnutmon
p > like that, so it's a bit weird... what if you want to go extend or change > the markup for the feedback error? it's now embedded in a bunch of code. > > > walnutmon wrote: >> >> In order to add feedback next to the component I used a behavior. I had

Re: How to handle this exception properly

2009-02-11 Thread walnutmon
getApplicationSettings().setInternalErrorPage(UniversalErrorPage.class); getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE); Anton Veretennikov wrote: > > I don't have custom error page. > Link to image: > http://img3.imageshack.us/img3/224

Feedback Next To Component

2009-02-11 Thread walnutmon
In order to add feedback next to the component I used a behavior. I had some code from Igor which got me on the right track, although I was unable to actually get it to work the same way, I simplified it down to the following code: AbstractBehavior printMessagesNextToComponent = new AbstractBeha

Intercepting Calls To Domain Setters For Dynamic Feedback

2009-02-11 Thread walnutmon
All, I am using a custom domain which handles errors by doing checks when setters are called. If there is a problem with the input it throws an exception. I would like to use this in our wicket page to display errors, I've been able to intercept errors as they come down from Form.process(), ho

Re: Form Components With Built In Feedback

2009-02-09 Thread walnutmon
displayed for a component at a time, or at least only one set of them... Not a list of errors since the last page load. Thanks! Justin walnutmon wrote: > > Igor, > > I know this is old, but in a post this morning you reminded me-it got lost > in the shuffle at work lately. Whe

Re: Form Components With Built In Feedback

2009-02-09 Thread walnutmon
this.target = target; > } > > public boolean accept(FeedbackMessage message) > { > if (message.isError() && message.getReporter() != null) > { > if (target == message.getReporter()) >

Custom Domain Exception Handling

2009-02-05 Thread walnutmon
All, I am working with a domain where the POJOs have a method that checks there values, and throws an exception with the error message if there is a problem with one of there property values. I am using panels to model these objects, is there something I can do to utilize this behavior when a f

Re: Form Components With Built In Feedback

2009-01-13 Thread walnutmon
a component and just make your own effect. > Have a look at the source code within the abovementioned... > > ** > Martin > > 2009/1/13 walnutmon : >> >> All, >> >> I have a page with many form components, nearly all of them have some >> kind >>

Form Components With Built In Feedback

2009-01-13 Thread walnutmon
All, I have a page with many form components, nearly all of them have some kind of validation associated with them. I have a feedback panel at the top, I'd like to move feedback next to each component. I have thought of some ways to do this without changing a ton of code, however none really wo

Re: Wicket Not Using Custom Model Comparitor: Very Puzzling Behavior

2009-01-08 Thread walnutmon
Well, I'd imagine your way is the right way, since my way doesn't work Though it works when I use the wicket tester. This is most likely a bug, but I am not keen on how to submit bugs and so on to the wicket developers. Martin Makundi wrote: > > I did not know of this.. I have always used

Wicket Not Using Custom Model Comparitor: Very Puzzling Behavior

2009-01-08 Thread walnutmon
I have dropdowns that are filled with domain objects, and sometimes the objects are not equivalent literally, but should be treated as such. I created a subclass of the DropDownChoice... class RelaxedComparisonDropDown extends DropDownChoice { ...constructor... @Override prote

Re: Wicket: Testing Request URLs

2009-01-06 Thread walnutmon
nberg wrote: > > without doing any work yourself the closest you can come is > wickettester#startpage(class, pageparameters) > > -igor > > On Thu, Dec 18, 2008 at 8:09 AM, walnutmon > wrote: >> >> bump. >> >> >> walnutmon wrote: >>

Testing Parameters Being Sent

2009-01-02 Thread walnutmon
All, I have a page with a form, when the form is submitted it should redirect to another page regardless of whether a save is successfull, however, I want the response page to show some feedback saying that the object was saved. The test for the form looks like this @Test public void t

Re: Twenty Six Wicket Tricks

2009-01-01 Thread walnutmon
A component that takes some domain object, and for every property dynamically loads an appropriate form element. @Test { private class DomainObject{ List prop1s; Boolean prop2; } panel = new DynamicPropertyPanel(new DomainObject()); assertComponent("panel:form:form

Applying Styles Through Java

2008-12-23 Thread walnutmon
I have found very little in my wicket books, and on this forum in terms of adding styles to components through java. Is this because it's outside of the scope of wicket? As an example. If I have a panel, and I want all of those panels to have a style class "someComponentClass", is it better to

Re: WicketTester and BrowserInfoPage

2008-12-20 Thread walnutmon
wicketTester.processRequestCycle(), if I understand your question correctly Sujit Arungundram wrote: > > I have setGatherExtendedBrowserInfo(true) and inside my main entry page, > the Login Page, I read the clientInfo object. > > When I try to test the rendering of the login page using Wicket

Re: Wicket: Testing Request URLs

2008-12-18 Thread walnutmon
bump. walnutmon wrote: > > One thing I am trying to implement in my most recent wicket application is > a hook in from another site written in JSP. I'm starting simple, with a > hand-off URL that gives a few peices of information that allows the user > to be logged into

Wicket: Testing Request URLs

2008-12-16 Thread walnutmon
One thing I am trying to implement in my most recent wicket application is a hook in from another site written in JSP. I'm starting simple, with a hand-off URL that gives a few peices of information that allows the user to be logged into the wicket app based on crednetials that had them logged i

Re: Forcing property models to update

2008-10-28 Thread walnutmon
l pm = new PropertyModel(m, "description"); > assertEquals("Foo", pm.getObject()); > > and now for the coup de grace: > > s = new State("Bar"); > m.setObject(s); > assertEquals("Bar", pm.getObject()); > > Martijn > > On Fri, Oct 24

Re: Forcing property models to update

2008-10-25 Thread walnutmon
m from your ViewPanel. Otherwise, you passed in a reference to > an > object, and then replaced your local reference with a reference to a new > object - but that wouldn't replace references anywhere else. > > -- > Jeremy Thomerson > http://www.wickettraining.com >

Forcing property models to update

2008-10-24 Thread walnutmon
I have two panels, a view panel where you can look for news and an edit panel. The edit panel has a reference to a "news" object and all of it's form elements have property models that use that object. When I pass a news object into the panel on creation all of the form elements fill as expecte

Newbie Question, Very Basic Model Use

2008-10-06 Thread walnutmon
After using property models, it's nice to have automatic binding to variables in objects... However, I can't seem to get the same thing to work with local variables... as an example... new CheckBox("toggleSomething", new PropertyModel(someObject, "toggleableProperty")); works beautifully... Howe

Re: DropDownChoice Model issue

2008-10-04 Thread walnutmon
I can manually assign the variable at run time using the getModelObject() function... I know you can bind through property models, is trying to do so with a regular Model() object wrong? walnutmon wrote: > > All, > > I have a form, the page has an object "company",

DropDownChoice Model issue

2008-10-04 Thread walnutmon
All, I have a form, the page has an object "company", a dropdown list has a bunch of companies... return new DropDownChoice("companies", new Model(company), getCompanies, new ChoiceRenderer("name")); I add a button, that has a simple on submit... However, on processing the next

Re: Ajax calls loads my server

2008-09-24 Thread walnutmon
While this javascript behavior doesn't qualify as Ajax, how else could you get that behavior without making an ajax component so that you can get form element objects to submit without a page refresh? Do you need to write javascript in the Wicket code? I suppose you could write javascript in the

Re: Hiding Wicket ID

2008-09-23 Thread walnutmon
The wicket:id tags are stripped, but the javascript has many "wicket" occurences. Is there a way to get rid of these too? igor.vaynberg wrote: > > in deployment mode those tags are stripped > > -igor > > On Tue, Sep 23, 2008 at 10:35 AM, walnutmon <[EMAIL P

Re: Hiding Wicket ID

2008-09-23 Thread walnutmon
Sorry, I'll refrain from asking readily available questions... I found it too :/ However, when I build in deployment, the javascript is covered in wicket references. jwcarman wrote: > > http://cwiki.apache.org/WICKET/faqs.html#FAQs-Deployment > > On Tue, Sep 23, 2008 at 2

Re: Hiding Wicket ID

2008-09-23 Thread walnutmon
How do I deploy in "deployment" mode? jwcarman wrote: > > The wicket:id won't who up during "deployment" mode. > > On Tue, Sep 23, 2008 at 1:35 PM, walnutmon <[EMAIL PROTECTED]> > wrote: >> >> Is it possible to hide wicket:id tags? Do

Hiding Wicket ID

2008-09-23 Thread walnutmon
Is it possible to hide wicket:id tags? Doing so in order to hide that you are using wicket as a server side technology. -- View this message in context: http://www.nabble.com/Hiding-Wicket-ID-tp19632955p19632955.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Having trouble with ajax link

2008-09-16 Thread walnutmon
odelObjectValue, however, this also changes the value that I'm testing directly, instead of waiting for an event to drive this. igor.vaynberg wrote: > > wicket allows it > > -igor > > On Tue, Sep 16, 2008 at 5:21 PM, walnutmon <[EMAIL PROTECTED]> > wrote: >>

Re: Having trouble with ajax link

2008-09-16 Thread walnutmon
. > > -igor > > On Tue, Sep 16, 2008 at 1:57 PM, walnutmon <[EMAIL PROTECTED]> > wrote: >> >> All, >> >> This seems like a simple issue, but I have been stumped for hours... >> >> Basically I have a form that includes a text area where y

Re: Having trouble with ajax link

2008-09-16 Thread walnutmon
The button will have the same problem because it submits the form. I need info from the text box without triggering the text areas form submission. Matej Knopp-2 wrote: > > Try using AjaxButton. > > -Matej > > On Tue, Sep 16, 2008 at 10:57 PM, walnutmon > <

Having trouble with ajax link

2008-09-16 Thread walnutmon
All, This seems like a simple issue, but I have been stumped for hours... Basically I have a form that includes a text area where you can enter HTML, to the right of this text area is a "preview" area... I have an AjaxFallbackLink labeled "preview" which should take the info in the text area an

Re: A few more newbie questions

2008-09-13 Thread walnutmon
ush" or you can have > your application "poll" via Ajax. > > On Fri, Sep 12, 2008 at 8:52 PM, walnutmon <[EMAIL PROTECTED]> > wrote: >> >> Because a wicket application runs on a server, could you have an internet >> application has a listener tha

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread walnutmon
Haha, first off, thanks for all the responses, I'm glad the community is active :) I took a look at the Wicket Rad, it looks pretty cool, I think he referenced it so that I can actually see how some of that stuff works, and get a handle on what Wicket is capable of, it was a bit over my head. I

Newbie Question: Dynamically Building Form Elements

2008-09-11 Thread walnutmon
Very new to Wicket, I've been reading about it for a few days, I'm really excited now that I'm using it. The stuff I do requires that you be able to create dynamic form elements... as an example, how would I be able to create a form that has a radio button input, where the amount of radio butto