Really slow code

2012-07-24 Thread Brown, Berlin [GCG-PFS]
With code like this, I have a model and within the 'load' method, I am making a slower call that I don't want to call to get the data again. I may need the result 'bean' for another part of the UI on that particular page and I don't want to make that call again. How can I do this? 1.

RE: Really slow code

2012-07-24 Thread Brown, Berlin [GCG-PFS]
On Tue, Jul 24, 2012 at 8:18 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: With code like this, I have a model and within the 'load' method, I am making a slower call that I don't want to call to get the data again. I may need the result 'bean' for another part of the UI

RE: Really slow code

2012-07-24 Thread Brown, Berlin [GCG-PFS]
metadata RequestCycle.get().setMetaData(MYDATA, data); -igor On Tue, Jul 24, 2012 at 9:26 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: You have any more specifics or an example? Is there a metadata class? -Original Message- From: Igor Vaynberg [mailto:igor.vaynb

Refresh component 'ajax'

2012-05-16 Thread Brown, Berlin [GCG-PFS]
I normally use 'target.addComponent(someOtherComponent)' to refresh/rerender that HTML content. Are there other ways to render/reload that component? Also, we are using wicket version 1.4.13

Override auto complete functionality for wicket 1.4.x release

2012-04-27 Thread Brown, Berlin [GCG-PFS]
With the 1.4.x release, I want to override the auto complete text field functionality. On 'selection', I want to be able to redirect to some page. It looks like there is a place to override this functionality but it allows 'javascript' functions and not 'wicket' logic? Can I add

RE: wicketstuff.org - down

2012-04-03 Thread Brown, Berlin [GCG-PFS]
Could someone add a redirect to the wicketstuff github site. And I assuming that github doesn’t host java web applications, so the java web apps are somewhere else? -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Tuesday, April 03, 2012 5:16 PM To:

Calculate request speed/connection speed? in a production environment with heavy ajax

2012-02-07 Thread Brown, Berlin [GCG-PFS]
What is the best way to calculate the connection speed or request speed for a wicket application from the server side? I can use the request process onBeginRequest and onEndRequest, that will give me the time it takes to process a request on the server, but I am still missing: I need: 1.

Serialize form for wicket ajax call

2012-01-12 Thread Brown, Berlin [GCG-PFS]
I was trying to understand the wicket serialize method call. Does it serialize the entire form? Does it serialize fields that are NOT blank? I noticed that sometimes post body content only contains the field that I clicked on and then other times it looks like all of the elements on the form

Convert wicket ajax posts do wicket ajax get requests

2011-12-06 Thread Brown, Berlin [GCG-PFS]
I am having issues with IE and ajax post requests. The issue is reported here: http://support.microsoft.com/kb/895954 As a way to address the issue, I was thinking of addressing the application. There are several places with ajax post requests. I was trying to see if I can convert those

IE browsers hang on ajax requests

2011-11-30 Thread Brown, Berlin [GCG-PFS]
I posted a bug for this, but it may not be a wicket bug. And the hang is not experienced on the server side on the container. It is client related. Has anyone experienced this? I am experiencing an issue where the browser is not submitting POST data from an ajax request and so the server

Wicket error we are seeing, timeout issues?

2011-11-28 Thread Brown, Berlin [GCG-PFS]
I had one question about an issue we are having with our wicket applications and was wondering if anyone else has seen something similar with other wicket apps. -- 1. Here is the exception/error we are seeing: -- [11/22/11 8:17:37:683 EST] 0119 SRTServletReq E SRVE0133E:

RE: Apache Wicket is a Flawed Framework

2011-11-18 Thread Brown, Berlin [GCG-PFS]
Wicket is a different approach from the JSP(Spring MVC/Struts) model but is certainly an improvement over the basic Servlets and JSPs oriented MVC. One of the benefits is that you compile your wicket components to mostly pure Java and you have a good idea how your page will behave. Yes, Wicket

Why would this cause an error, session sharing and session classcast issues

2011-11-03 Thread Brown, Berlin [GCG-PFS]
Using wicket 1.4.13 (yea, I know I need to upgrade) I am getting a classcastexception error on wicket session classes with session sharing between webapps. This feature is supported by our web application server, IBM WebSphere Most of the time this works fine but for some reason, we get the

RE: Detect Connection speed with Wicket or something similar

2011-10-13 Thread Brown, Berlin [GCG-PFS]
. The rest is pure maths to calculate the speed. On Wed, Oct 12, 2011 at 11:19 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: For our wicket applications, we want to detect the browser connection speed, do you know of a library or approach for detecting the browser speed

Detect Connection speed with Wicket or something similar

2011-10-12 Thread Brown, Berlin [GCG-PFS]
For our wicket applications, we want to detect the browser connection speed, do you know of a library or approach for detecting the browser speed. There is a thing in wicket called AjaxTimerBehavior that I could use but it is a little flaky and not built for the purpose of detetching browser

Dynamic Markup Content in Wicket (1.4+)

2011-09-28 Thread Brown, Berlin [GCG-PFS]
Does anyone have an article on how to add dynamic content such that the content isn't defined in the markup at compile time. It is generated at runtime. For example. Old Way - Listing1 div wicket:id=containers div wicket:id=container1 /div div wicket:id=container2 /div /div

Event or way to check when a component has visibility change

2011-09-02 Thread Brown, Berlin [GCG-PFS]
With the 1.4 release of wicket, is there a way to determine when a component has changed visibility. Mainly from false to true visibility. I can use onBeforeRender or onConfigure to determine when the component is being rendered. onAfterRender will get called after it is rendered but the

RE: Event or way to check when a component has visibility change

2011-09-02 Thread Brown, Berlin [GCG-PFS]
[mailto:mgrigo...@apache.org] Sent: Friday, September 02, 2011 8:45 AM To: users@wicket.apache.org Subject: Re: Event or way to check when a component has visibility change onBeforeRender() is not called for invisible components On Fri, Sep 2, 2011 at 2:41 PM, Brown, Berlin [GCG-PFS] berlin.br

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

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

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

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

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

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.

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

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

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

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.

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

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/

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

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

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,

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

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

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

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

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

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

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

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

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,

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: 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

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

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

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 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

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

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

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

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());

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

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

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

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

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

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

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

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:

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

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

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

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

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

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

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:

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)

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

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

  1   2   >