Question about markup inheritance and page layouts

2010-06-15 Thread Brown, Berlin [GCG-PFS]
I was a little confused about page layouts and markup inheritance. I was thinking that a I could take a piece of HTML markup and reuse that component when I need to, and use it multiple times within page without ever having to create the content. I was not able to do this. What I have now,

RE: Question about markup inheritance and page layouts

2010-06-15 Thread Brown, Berlin [GCG-PFS]
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 15, 2010 11:26 AM To: users@wicket.apache.org Cc: Berlin Brown Subject: Re: Question about markup inheritance and page layouts On Tue, Jun 15, 2010 at 10:07 AM, Brown, Berlin [GCG-PFS

RE: Question about markup inheritance and page layouts

2010-06-15 Thread Brown, Berlin [GCG-PFS]
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 15, 2010 11:34 AM To: users@wicket.apache.org Cc: Berlin Brown Subject: Re: Question about markup inheritance and page layouts Where did you place the wicket:panel tags in your markup?

Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Brown, Berlin [GCG-PFS]
I am sorry, am just getting used to Wicket but I notice a lot of use of calling a lot of code in the constructor. Does it really matter? I mention it because this kind of style makes it difficult to test code because code in the constructor may fail and the object won't be created. Should I

RE: Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Brown, Berlin [GCG-PFS]
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 15, 2010 3:25 PM To: users@wicket.apache.org Subject: Re: Newbie question anti-patterns and wicket, constructor component building On Tue, Jun 15, 2010 at 2:11 PM, Brown, Berlin [GCG-PFS

Specific user/session properties and resources

2010-06-17 Thread Brown, Berlin [GCG-PFS]
I still want to use wicket message resource tags in my markup. But, I need a system to load and reload resources property data for each page and request. Or maybe load properties per user session. Is this possible using Wicket resource loader classes. Ideally, it looks like I should use a

Dynamic Resources, Properties

2010-06-17 Thread Brown, Berlin [GCG-PFS]
I want to be able to use the StringResourceModel, but I want to use a property string that is loaded when the page is loaded. Basically, I want to set a dynamic property object? With this code below, how can I do this. public class SomePanel extends BaseContentPanel { private

RE: Dynamic Resources, Properties

2010-06-21 Thread Brown, Berlin [GCG-PFS]
No, I was not using a properties file from the filesystem but it is an in memory string (the properties data). The properties data is loaded dynamically when the page is hit. -Original Message- From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no] Sent: Friday, June 18, 2010 2:29 AM

Hierarchy mismatch with forms and hideable sections.

2010-06-24 Thread Brown, Berlin [GCG-PFS]
I am getting a hierarchy error message and the error makes sense, but how do you construct a form that also has hideable sections: This is what I had originally, a form and sub components. This works fine: Java: form = new Form(); panel.add(form); form.add(new TextField(t1)) form.add(new

Wicket: On RadioChoice component, invoke form submit, what am I missing

2010-06-25 Thread Brown, Berlin [GCG-PFS]
There are some components in wicket that seem to be associated with a form, but I can't get them to actually submit the form. Or at least, I can't get them to submit the form, if I have a hierarchy of FORM - PANEL - COMPONENT/RADIOCHOICE For example, I can create a submitlink or button and

How to access above hierarchy in the markup

2010-06-29 Thread Brown, Berlin [GCG-PFS]
Pseudo Code: CompoundPropertyModelString labelModel = new CompoundPropertyModelString(labelProps); panel.setDefaultModel(labelModel); /* Load labels at the PANEL level */ panel.add(new Label(label[1])); form = new Form(new CompoundPropertyModel(myObj)) /* Load data at the form level */

wantOnSelectionChangedNotifications and form components. and keeping state

2010-07-01 Thread Brown, Berlin [GCG-PFS]
I have an object in session and want to keep the state of those values when I refresh a page or my form submits back to the page. Do I have to add on every component? It seems that I do. Also, how do I add want on selection change but NOT have it perform a form submit. public boolean

Issues with form submit, not retaining values from session without ajax

2010-07-09 Thread Brown, Berlin [GCG-PFS]
I have a page that has a html components like a select list and radio buttons. And those components will invoke the onchange event to submit the form or move to the next page. It doesn't look like I am moving to the next page. My model values dont' seem to be retained, at least they aren't

wicket hell

2010-07-20 Thread Brown, Berlin [GCG-PFS]
There is a css hell, html hell, java web app hell. Is there a wicket hell or issues that are specific to wicket? Because I do believe web application development is wicket is pretty unique. I am still new to wicket but there are two gripes that get me every time. And maybe over time, I will

RE: Welcome Martin Grigorov as a core team member

2010-07-20 Thread Brown, Berlin [GCG-PFS]
Cool, he has been helping me on IRC/Freenode -Original Message- From: Maarten Bosteels [mailto:mbosteels@gmail.com] Sent: Tuesday, July 20, 2010 10:16 AM To: users@wicket.apache.org Subject: Re: Welcome Martin Grigorov as a core team member Congratulations Martin ! On Tue, Jul 20,

Additional attributes to ajax events

2010-07-21 Thread Brown, Berlin [GCG-PFS]
With the onblur ajax calls, is it possible to add my own javascript . final AjaxFormComponentUpdatingBehavior blurText = new AjaxFormComponentUpdatingBehavior(onblur) { @Override protected void onUpdate(AjaxRequestTarget target) { checkPageNextLink(target); }

RE: Additional attributes to ajax events

2010-07-21 Thread Brown, Berlin [GCG-PFS]
that append your custom javascript On Wed, Jul 21, 2010 at 10:26 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: With the onblur ajax calls, is it possible to add my own javascript . final AjaxFormComponentUpdatingBehavior blurText = new AjaxFormComponentUpdatingBehavior(onblur

General question - business logic with Wicket, where to put it?

2010-08-13 Thread Brown, Berlin [GCG-PFS]
What is the best practice for where to put business logic in Wicket. At first, I had put logic in the page constructor, but now I have learned a little bit about the Lifecycle of a page, the serialization of the page. So putting any kind of logic there didn't seem like a good idea. I placed

Dynamically invoke a page object (Reflection?)

2010-08-31 Thread Brown, Berlin [GCG-PFS]
What is the best approach to invoke a page object through the name of the Page class. E.g. String pageStr = com.test.Page; Page page = new Wicket.createPageSomeHow(pageStr); setResponsePage(page) Is there a way to do something like this? Berlin Brown

RE: Dynamically invoke a page object (Reflection?)

2010-09-01 Thread Brown, Berlin [GCG-PFS]
So, just use reflection. OK. I thought there might have been some Wicket oriented utility. But I am OK with reflection. -Original Message- From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no] Sent: Wednesday, September 01, 2010 4:03 AM To: users@wicket.apache.org Cc: Berlin Brown

Possible serialization issue on a server

2010-09-01 Thread Brown, Berlin [GCG-PFS]
We have this code working on jetty but not working on Tomcat. I was thinking there might have been a serialization issue where code is serialized on the server and the class data doesn't get updated. Is it possible that class files are serialized on the Server. How would I check where Wicket

RE: Scripting language

2010-09-01 Thread Brown, Berlin [GCG-PFS]
I would like to point out that Scala is far from what one might consider a dynamic scripting language. I haven't tried it, but you may see if Clojure works with Wicket. That has some of the attributes where you can embed clojure into a java application and change code on the fly. Scala would

Using external link and adding onClick

2010-09-13 Thread Brown, Berlin [GCG-PFS]
Is there anyway to get ajax behavior or basic onclick functionality with the External Link class. I need an external link that has a stack href but I also want to invoke some functionality. Berlin Brown (POL)

Understanding wicket lifecycle and model past to wicket components

2010-09-30 Thread Brown, Berlin [GCG-PFS]
I have two scenarios, a and b. In one case I use the loadable detachable model and the other I don't. Is it possible when the wicket component in scenario b is deserialized, is it possible that the object won't be available? (a) Page Constructor code with Loadable detachable model:

RE: Understanding the model, initial/default value

2010-10-04 Thread Brown, Berlin [GCG-PFS]
a PropertyModel. On Mon, Oct 4, 2010 at 9:06 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Panel.java: ...  final IModelBoolean modelForAgree = new ModelBoolean(yes.equalsIgnoreCase(obj.getAgree(; form.add(modelForAgree); ... In this code, how can I ensure that modelForAgree

Understanding the model, initial/default value

2010-10-04 Thread Brown, Berlin [GCG-PFS]
Panel.java: ... final IModelBoolean modelForAgree = new ModelBoolean(yes.equalsIgnoreCase(obj.getAgree(; form.add(modelForAgree); ... In this code, how can I ensure that modelForAgree has the right default value when the panel loads. Is it possible that the Panel gets deserialized with

Initialization/Business Logic code before page loads

2010-10-06 Thread Brown, Berlin [GCG-PFS]
I might have asked a similar question in a previous post but I wanted to clarify a bit. Where is the best place to put code to initialize the model before a page renders. I know of five options, but where do you normally put this type of initialization. Before a page renders, I want to set

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

RE: Log last error on error page

2010-11-23 Thread Brown, Berlin [GCG-PFS]
org.apache.wicket.RequestCycle.onRuntimeException(Page, RuntimeException) and return your own page which will show the error On Tue, Nov 23, 2010 at 2:43 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Is there a way to log the last error when you reach an error page. I am using my own

RE: Log last error on error page

2010-11-23 Thread Brown, Berlin [GCG-PFS]
...@apache.org] Sent: Tuesday, November 23, 2010 9:28 AM To: users@wicket.apache.org Subject: Re: Log last error on error page On Tue, Nov 23, 2010 at 3:18 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Another question, how do I throw the default error page? what does it mean to throw

RE: Best practice for content without encompassing tag

2010-12-13 Thread Brown, Berlin [GCG-PFS]
without encompassing tag Both are OK On Mon, Dec 13, 2010 at 5:39 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Should I use wicket:container for a section of html that I want to include on my page without having a particular tag rendered to the user. For example, if I just

Print all HTML content to file

2011-01-07 Thread Brown, Berlin [GCG-PFS]
I have used the WicketTester to print out the rendered HTML content from wicket. I did that through the unit tests. How would I run a similar operation to return the rendered output document outside of WicketTester.I want to print the document from within my J2EE server. Here is the

Anyone seen this, ajaxsubmit link

2011-01-17 Thread Brown, Berlin [GCG-PFS]
ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: ReferenceError: custom_inputHints is not defined ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: ReferenceError: custom_inputHints is not defined ERROR: Wicket.Ajax.Call.processEvaluation:

Dynamically rotating form and static (or not so static) page links.

2011-01-19 Thread Brown, Berlin [GCG-PFS]
1. If my submit links (see B) down below are built when the page is built. But I have a panel that is constantly changing. How can I change the links to become associated with a new form. Just do addOrReplace(on the links)? 2. Is there a way to force a submit on a form. E.g. as opposed to

RE: Submit form from other form onClick

2011-01-20 Thread Brown, Berlin [GCG-PFS]
myForm.onSubmit() method at the server side at server side you may call directly your methods e.g. new Form() {onSubmit() { myService.do(); }} new AjaxLink() {onClick() { myService.do(); }} no need to call Wicket methods On Thu, Jan 20, 2011 at 2:49 PM, Brown, Berlin [GCG-PFS] berlin.br

Call onAfterRender and change default model without error

2011-01-25 Thread Brown, Berlin [GCG-PFS]
I tried to do the following below but I got an error could not update component hierarchy. WicketMessage: Cannot modify component hierarchy after render phase has started (page version cant change then anymore) Is there an event method (like onAfterRender) that I could use without error?

RE: Call onAfterRender and change default model without error

2011-01-25 Thread Brown, Berlin [GCG-PFS]
...@gmail.com] Sent: Tuesday, January 25, 2011 12:40 PM To: users@wicket.apache.org Subject: Re: Call onAfterRender and change default model without error whats the usecase? -igor On Tue, Jan 25, 2011 at 9:37 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: I tried to do

RE: Call onAfterRender and change default model without error

2011-01-25 Thread Brown, Berlin [GCG-PFS]
without error you didnt answer my question -igor On Tue, Jan 25, 2011 at 9:58 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: If we can update the model object and changes its value without problem. Shouldn't we also be able to assign a new model?  onBeforeRender

RE: Call onAfterRender and change default model without error

2011-01-25 Thread Brown, Berlin [GCG-PFS]
Some Other Panel : addAjaxLink() { onClick() { setDefaultModel(new ModelString(EnabledLight)); target.addComponent(trafficLight); } } -Original Message- From: Brown, Berlin [GCG-PFS] Sent: Tuesday, January 25, 2011 2:19 PM To: 'users@wicket.apache.org' Subject

RE: Call onAfterRender and change default model without error

2011-01-25 Thread Brown, Berlin [GCG-PFS]
onAfterRender and change default model without error this still doesnt explain the need to switch it to disabled in onafterrender... -igor On Tue, Jan 25, 2011 at 11:19 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Here is a use-case for my request below: Let's say I am

Compound Property Model, sharing for children

2011-01-27 Thread Brown, Berlin [GCG-PFS]
How does the compound property model work in these instances: If I do (pseudo code): Form form = new Form ( new CompoundPropertyModel(someObject)) form.add (new MyTextField(someFieldFromObject); ... public class MyTextField { public MyTextField() { super(id); getModel()

RE: Compound Property Model, sharing for children

2011-01-27 Thread Brown, Berlin [GCG-PFS]
MyTextField.getModel will work as expected. If MyTextField invokes getModel inside the onInitialize it will work fine, since at this point since an path exists from this component to the page. On Thu, Jan 27, 2011 at 10:59 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: How does the compound

Submit form from ajaxlink not a part of the form

2011-01-27 Thread Brown, Berlin [GCG-PFS]
So, I was able to submit a form WITHOUT ajax. Now, how can I submit a form with ajax but from a link not associated with that form. I tried the following.But, I couldn't get the proper URLs / Button? Are those needed for the wicketSubmFormById call? Also, do i have an issue using

RE: Submit form from ajaxlink not a part of the form

2011-01-28 Thread Brown, Berlin [GCG-PFS]
@wicket.apache.org Cc: berlin.br...@gmail.com Subject: Re: Submit form from ajaxlink not a part of the form add(new ajaxsubmitlink(submit, form)); -igor On Thu, Jan 27, 2011 at 7:46 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: So, I was able to submit a form WITHOUT ajax.  Now, how

RE: Submit form from ajaxlink not a part of the form

2011-01-28 Thread Brown, Berlin [GCG-PFS]
ajaxlink not a part of the form add(new ajaxsubmitlink(submit, form)); -igor On Thu, Jan 27, 2011 at 7:46 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: So, I was able to submit a form WITHOUT ajax.  Now, how can I submit a form with ajax but from a link not associated

Cheap chaining of compound property model to propertymodel

2011-01-31 Thread Brown, Berlin [GCG-PFS]
In this code, do you think I am using the method CompoundPropertyModel.bind properly? See my example in Code2, below. In my snippet Code1, the values for the propertymodel were lost when I did an ajax onClick. But in Code2, the values are retained... Code1: Panel { Panel() {

Static member wicket version... post 1.4.13

2011-01-31 Thread Brown, Berlin [GCG-PFS]
Is there a way to print the wicket version number from wicket class files or property files? E.g. Version.buildNum or something similar? Berlin Brown

Issue with error validation and onChange event of a dropdown

2011-02-08 Thread Brown, Berlin [GCG-PFS]
In the example below. StepOne: user enters INVALID DATA StepTwo: user hits the SAVE LINK (see below) StepThree: error is displayed in feedback panel StepFour: user enters to select drop down, onchange StepFiveERROR :: the code below should update the model, see Line12 But when the panel is

Wicket Philosophy/Best Practice

2011-02-09 Thread Brown, Berlin [GCG-PFS]
I tell people that I think you should let your Model and Model backing object control the look and feel/display/content of your components. Even visibility should be delegated to the model or model object and not set by the component. Am I wrong here? I use this approach (only work with the

Ajax onChange but also submit all data on a form

2011-02-09 Thread Brown, Berlin [GCG-PFS]
Can you submit all of the data on a form based on an onchange event? Is adding javascript the only way to submit the data? Pseudo Code: Panel { Form form = new Form(new CompoundPropertyModel()); add(form); form.add(new TextField(val); form.add(childList = new DropDownChoice());

onInitialize / onBeforeRender

2011-02-10 Thread Brown, Berlin [GCG-PFS]
Version: wicket1.4.13 Is there any reason onInitialize would not be called? And is it always called before onBeforeRender? When I look at my logs, it looks like there are cases where onInitialize wasn't called. But onBeforeRender was always called. Berlin Brown

Strange behavior with onUpdate after errors

2011-02-15 Thread Brown, Berlin [GCG-PFS]
Debugging Problem. I am trying to debug an issue where I set modelobject values for a form but the values do not appear in the text fields onUpdate (AFTER ERROR) encountered. Environment: A. Wicket 1.4.13 B. Ajax Tabbed Panel C. Modal Window D. Child Modal Window has a form (compound property

RE: Strange behavior with onUpdate after errors

2011-02-16 Thread Brown, Berlin [GCG-PFS]
()); myBeanLoc.setLastName(selectedChild.getLastName()); myBeanLoc.setMiddleName(selectedChild.getMiddleName()); CALL form.modelChanged(); target.addComponent(ccc);} } ); ... -Original Message- From: Brown, Berlin [GCG-PFS] Debugging Problem. I am trying

Ajax like event for onLoad

2011-02-16 Thread Brown, Berlin [GCG-PFS]
I am using the Ajax Tabbed Panel class and I could possibly hijack the onUpdate/onClick routines to suit my needs. But I was curious, is there an event/behavior that I can call when a panel loads or render. Something along the lines of: SomeAjaxPanel { onBeforeRender() {

Wicket log4j configuration, log wicket errors to file

2011-02-18 Thread Brown, Berlin [GCG-PFS]
I think I was able to log wicket log4j messages (pre wicket verson 1.4.10) by specificying a log4j appender for the wicket package. E.g. org.apache.wicket.* But, I wonder with the recent version of wicket, do I have to use org.slf4j.impl ... Basically, is there anything special to redirect

Typically when is the constructor of a component of a panel, page, etc called?

2011-02-24 Thread Brown, Berlin [GCG-PFS]
I was trying to get a feel for the wicket lifecycle, I can where onBeforeRender, onAfterRender are called during the component rendering lifecycle. But, I still don't see when the constructor (object instantiation) of a component. If I debug and/or trace the constructor calls, it looks like

Wicket philosophy, modelObject isVisible, isEnabled, CSS

2011-02-28 Thread Brown, Berlin [GCG-PFS]
Most of the backing modelObject and models are normally associated with the data that is to be displayed or edited. Isn't the CSS and visibility one aspect that is part of the display? What are your thoughts on controlling the visibility, enabled state and CSS through the model objects as

Good way to remove validation globally from a page or panel

2011-03-04 Thread Brown, Berlin [GCG-PFS]
If I am using AbstractFormValidator and in some places, I am using setRequired, default validation on components. What is the best way to remove the validation temporarily Let's say I am in a view only mode and fields are disabled, I want to remove validation. And then later on, may add back

RE: Good way to remove validation globally from a page or panel

2011-03-05 Thread Brown, Berlin [GCG-PFS]
, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: If I am using AbstractFormValidator and in some places, I am using setRequired, default validation on components. What is the best way to remove the validation temporarily Let's say I am in a view only mode and fields are disabled, I want

RE: Run a standalone wicket app

2011-03-07 Thread Brown, Berlin [GCG-PFS]
That is a more a jetty question. Research the server jetty classes. ... import org.mortbay.jetty.Connector; import org.mortbay.jetty.Server; import org.mortbay.jetty.bio.SocketConnector; import org.mortbay.jetty.webapp.WebAppContext; Server server = new Server(); server.start();

RE: CompoundPropertyModel deprecated in 1.5 - what is the replacement?

2011-03-09 Thread Brown, Berlin [GCG-PFS]
What is wrong with compoundpropertymodel (pre 1.5)? -Original Message- From: Maarten Billemont [mailto:lhun...@gmail.com] Sent: Wednesday, March 09, 2011 4:30 PM To: users@wicket.apache.org Subject: Re: CompoundPropertyModel deprecated in 1.5 - what is the replacement? On 09 Mar 2011,

Deserialize/cache components in Ajax rendering and other scenarios

2011-03-11 Thread Brown, Berlin [GCG-PFS]
It looks like caching and the deserializing of pages only happens when the user revisits a page or goes back to a page? Is there any serialization/deserialization that is done to panels if they are just rerendered through ajax? If your whole site is ajax based (where most of the content is not

Ajax modal window does not allow submit form under open browsers

2011-03-19 Thread Brown, Berlin [GCG-PFS]
When I use the ajax modal window and under Firefox/Chrome/Safari, the ajax form submit does not happen. When I open the ajax debug window, it looks like a request is made. Has anyone had issues with modal windows, form submission and firefox? Internet Explorer 7 works fine. Version of

RE: Ajax modal window does not allow submit form under open browsers

2011-03-19 Thread Brown, Berlin [GCG-PFS]
Subject: Re: Ajax modal window does not allow submit form under open browsers To submit a form inside a modal window you must enclose it by a form in the main panel and use an AJAX submit component. Please open a ticket + quickstart if the issue remains. On Sat, Mar 19, 2011 at 7:45 PM, Brown, Berlin

RE: Ajax modal window does not allow submit form under open browsers

2011-03-20 Thread Brown, Berlin [GCG-PFS]
OK, so the patch just scraps the form in the modal window. -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Sunday, March 20, 2011 8:36 AM To: users@wicket.apache.org Subject: RE: Ajax modal window does not allow submit form under open browsers .. and

RE: Apache Wicket Cookbook Published!

2011-03-25 Thread Brown, Berlin [GCG-PFS]
Congrats. I trust Igor -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, March 25, 2011 1:44 PM To: users@wicket.apache.org; d...@wicket.apache.org; annou...@wicket.apache.org Subject: Apache Wicket Cookbook Published! For the past nine months I

Ajax Submit Link and detect if that button clicked

2011-03-25 Thread Brown, Berlin [GCG-PFS]
I was having trouble detecting if a particular ajax submit link was the last behavior associated with a form submission. I tried to use the findSubmittingButton (or whatever the name is) and that was always returning null. I used this approach and it works, but doesn't seem intuitintive and I

HTML comment tag

2011-03-28 Thread Brown, Berlin [GCG-PFS]
This is simple code and works, do you think this is a way to add dynamic HTML comments that use some Wicket model? Or have you done something else? I am not as familiar with onComponentTagBody. public class HtmlComment extends Label { /** * @see

RE: HTML comment tag

2011-03-28 Thread Brown, Berlin [GCG-PFS]
at 11:02 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: This is simple code and works, do you think this is a way to add dynamic HTML comments that use some Wicket model? Or have you done something else? I am not as familiar with onComponentTagBody. public class HtmlComment

RE: HTML comment tag

2011-03-28 Thread Brown, Berlin [GCG-PFS]
)); } } On Mon, Mar 28, 2011 at 1:00 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: They may contain information like a build number, version number of application for debugging purposes that I can see on the rendered HTML output. I was thinking of sub-classing label because

Ajax Response and a Redirect, anyone seen this

2011-04-14 Thread Brown, Berlin [GCG-PFS]
https://gist.github.com/918794 Has anyone seen this, where is the code to process an ajax-response. POST /life/launch/?wicket: interface=:23:navigationPanel:nextLink::IActivePageBehaviorListener:1:-1 wicket:ignoreIfNotActive=truerandom=0.006311339758800216 HTTP/1.1 Accept: text/xml

RE: Ajax Response and a Redirect, anyone seen this

2011-04-14 Thread Brown, Berlin [GCG-PFS]
-ajax.js you Ajax callback lead to an error and thus the redirect to your internal error page On Thu, Apr 14, 2011 at 3:46 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: https://gist.github.com/918794 Has anyone seen this, where is the code to process an ajax-response. POST

Deserialization of pages with Wicket, back button

2011-04-20 Thread Brown, Berlin [GCG-PFS]
When does wicket use the deserialization of pages from the filesystem disk store/cache? With the default, out of the box Wicket code, when does Wicket deserialize a page? Pseudo-code: getHomePage() { return Page.class } ... Let's say I am using ajax or ajax tabbed panels and I am not

RE: Deserialization of pages with Wicket, back button

2011-04-20 Thread Brown, Berlin [GCG-PFS]
of the page for Ajax requests. Clicking back button will lead you to the previous page, not to the previous state of the page. Refreshing the page reloads the current version of the page which is in the http session and thus doesn't hit the file system. On Wed, Apr 20, 2011 at 5:33 PM, Brown, Berlin

Strange error, cannot modify hierarchy

2011-05-15 Thread Brown, Berlin [GCG-PFS]
I am shooting in the dark but I thought I would post the error I am getting. I get this error. Cannot modify component hierarchy after render phase has started. The full stack trace is at the bottom of this post. During the form submission process (user clicks on link) then I get the error

Google Chrome and Apache Wicket, an awesome combination

2011-05-23 Thread Brown, Berlin [GCG-PFS]
FYI... I usually ask questions but I thought I post a comment about google chrome. The chrome browser has default web debugging that is similar to firebug. With Firebug, it is more difficult to detect the wicket ajax rendered content but comes up automatically in chrome. Also speed wise,

Differences development vs deployment mode, hierarchy errors

2011-05-24 Thread Brown, Berlin [GCG-PFS]
I noticed with the web.xml configuration, development mode that I see more hierarchy exceptions thrown by wicket. Basically, it seems that wicket ignores some hierarchy or markup issues in development mode and not in deployment mode. What are the main differences between those modes and how do I

Slow ajax request and possible timeout variable?

2011-05-25 Thread Brown, Berlin [GCG-PFS]
Sometimes on slower connections I see issues with the application with ajax requests. If the request takes longer than 20 or 30 seconds my page/panels become unresponsive? Example pseudo code might include; new TextField(text).add(new AjaxBehavior(onchange)); With this request, the ajax

RE: Slow ajax request and possible timeout variable?

2011-05-25 Thread Brown, Berlin [GCG-PFS]
This bug seems to be related to the issue I am experiencing. https://issues.apache.org/jira/browse/WICKET-2246 From: Brown, Berlin [GCG-PFS] Sent: Wednesday, May 25, 2011 11:57 PM To: 'users@wicket.apache.org' Subject: Slow ajax request and possible timeout

RE: WicketStuff.org is down, do you guys need some change for your server?

2011-05-26 Thread Brown, Berlin [GCG-PFS]
for your server? Seems to be up now. On Thu, May 26, 2011 at 4:32 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Is wicketstuff.org supposed to be up?  I don't know if it is deprecated or not.  There were some good examples out there. -- Martin Grigorov jWeekend Training

Request logger invasive

2011-05-26 Thread Brown, Berlin [GCG-PFS]
Is the request logger invasive? Is it something that can be used in a production environment? http://www.volkomenjuist.nl/blog/2009/04/08/wicket-requestlogger/

Wicket, invalidurlexception with ajax panel, possibly ajax calls

2011-06-09 Thread Brown, Berlin [GCG-PFS]
I am getting this error intermittently with a web application that uses ajax calls. My theory is that on slower Internet connections, parts of a page aren't returned at the correct time. With the ajax call, maybe a user clicks on a link but the link hasn't been entirely processed by the server

Debugging page expired exception errors

2011-06-20 Thread Brown, Berlin [GCG-PFS]
I get two pageexpiredexception errors and I can't recreate the problem. With an error like this, what would cause this type of page expired exception error? Do you think that the page actually expired? Or is there something wrong with writing or reading from the page map file on disk.

FW: Debugging page expired exception errors

2011-06-21 Thread Brown, Berlin [GCG-PFS]
I posted this the other day, I think I have some more information. Is there a way to change the session secondlevel cache store and possibly the default disk store such that there aren't collissions between file writes/reads. I think in a high volume environment (lots of hits), I am getting

RE: FW: Debugging page expired exception errors

2011-06-21 Thread Brown, Berlin [GCG-PFS]
a unit test that starts 20 threads which read and write randomly and there is no problem. DiskDataStoreTest (Wicket 1.5) On Tue, Jun 21, 2011 at 3:37 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: I posted this the other day, I think I have some more information. Is there a way

RE: FW: Debugging page expired exception errors

2011-06-21 Thread Brown, Berlin [GCG-PFS]
, Jun 21, 2011 at 5:37 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: I posted this the other day, I think I have some more information. Is there a way to change the session secondlevel cache store and possibly the default disk store such that there aren't collissions between

Override modal.js functionality because of issue with form inside form

2011-06-26 Thread Brown, Berlin [GCG-PFS]
I am using a dated version of wicket. I don't know if this is fixed but I wanted to override the functionality in the modal.js from wicket-extensions. Basically, I need to remove the inner form that is created by the javascript. Some of the browsers we are using, the user cannot submit the

RE: Override modal.js functionality because of issue with form inside form

2011-06-26 Thread Brown, Berlin [GCG-PFS]
Related bug: https://issues.apache.org/jira/browse/WICKET-3146 From: Brown, Berlin [GCG-PFS] Sent: Sunday, June 26, 2011 8:23 PM To: 'users@wicket.apache.org' Subject: Override modal.js functionality because of issue with form inside form I am using a dated

RE: Override modal.js functionality because of issue with form inside form

2011-06-27 Thread Brown, Berlin [GCG-PFS]
in old versions. It is important because it prevents invalid markup like form tag inside form tag. About improvements in modal window, it is already planned to Wicket 1.6. On Sun, Jun 26, 2011 at 9:24 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Related bug: https

PageExpiredException with multiple browser windows, ajaxformupdating behavior

2011-06-28 Thread Brown, Berlin [GCG-PFS]
I am getting a PageExpiredException. I believe it is related to a user opening multiple browser windows. They are using the same session and accessing the same page at the same time. I was thinking that the page will expire in one window but not the other for some reason. User actions; 1.

target.addComponent and impact

2011-07-14 Thread Brown, Berlin [GCG-PFS]
If you have an ajax event and then you call target.addComponent on another component or collection of other components. Are there issues with calling target.addComponent on components that aren't visible or maybe detached from the page? Or calling target.addComponent more than once on a

RE: target.addComponent and impact

2011-07-14 Thread Brown, Berlin [GCG-PFS]
Let's say that I have a component in the hashmap that needs to get updated and let's that I call target.addComponent on some parent component, in that case will the child get updated twice. E.g. Target.addComponent(someChildComponent); Target.addComponent(someParentOfTheChild); In this case,

RE: target.addComponent and impact

2011-07-14 Thread Brown, Berlin [GCG-PFS]
One more question. Is it is a hint to update this particular component? Or will wicket fully rerender the component the user whether it needs to get updated or not? -Original Message- From: Brown, Berlin [GCG-PFS] Sent: Thursday, July 14, 2011 12:06 PM To: 'users@wicket.apache.org

getInput and getDefaultModelObject and validation

2011-07-28 Thread Brown, Berlin [GCG-PFS]
If I am using some form validator, I notice that getDefaultModelObject does not have the value from the getInput. I am assume this intentional. Is there a way to force wicket to update the modelObject? How and when does the modelobject get updated. myForm.add(new AbstractFormValidator() {

RE: getInput and getDefaultModelObject and validation

2011-07-29 Thread Brown, Berlin [GCG-PFS]
I guess there are cases where you want to use an AbstractFormValidator and run validation on a form before it is submitted and want to address those fields before they are submitted. It would be nice if the modelobject were updated. Let's say you have 100 textfields attached to a form, you want

RE: getInput and getDefaultModelObject and validation

2011-07-29 Thread Brown, Berlin [GCG-PFS]
then your model will have invalid data, and if that is acceptable, what role does the validator fill then? You might as well do your checks in onSubmit() at that point... I guess it depends, I normally haven't had a need to validate every individual component. But I like having all of my model

RE: Cheap, ajax event on page load

2011-08-04 Thread Brown, Berlin [GCG-PFS]
Well, I guess I figured out how you can easily get a page expired exception or invalidurlexception. If you hide the component where the timer behavior was created from before the timer behavior comes back, then you get an error. From: Brown, Berlin [GCG-PFS

On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-01 Thread Brown, Berlin [GCG-PFS]
Is there a way to prefix a component with using setMarkupid but also have the dynamic id. I want my end output to have: With Code: x = new WebMarkupContainer(myId) x.setMarkupId(myId); div id=myId_id2323 /

RE: On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-01 Thread Brown, Berlin [GCG-PFS]
: On Label/Div or some other component, how to use setMarkupId and dynamic id i guess the question would be: why? -igor On Thu, Sep 1, 2011 at 10:57 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Is there a way to prefix a component with using setMarkupid but also have

RE: On Label/Div or some other component, how to use setMarkupId and dynamic id

2011-09-01 Thread Brown, Berlin [GCG-PFS]
for you? On Thu, Sep 1, 2011 at 4:54 PM, Brown, Berlin [GCG-PFS] [via Apache Wicket] ml-node+3784600-559914674-65...@n4.nabble.com wrote: Strange but I may scrape the page and search for those particular elements. I want the prefix but I also want to keep uniqueness. -Original

  1   2   >