How do you get a LoadableDetachableModel to load again

2008-08-26 Thread Warren Bell
I have a page that displays a list of items backed by a LoadableDetachableModel. The page allows you to delete one item from the list and then shows the list less the item you just deleted. How do I get the LoadableDetachableModel to load the list of items again after the one item has been dele

Re: how to handle null pointer exception while submit button

2014-10-05 Thread Warren Bell
OK, a little confused, AWT, Applet ? Is Wicket up to something I haven’t heard about ? Warren On Oct 5, 2014, at 7:57 PM, Taught by S&M wrote: > This code will help to handle exceptions when there is a single TextField: > > import java.awt.*; > import java.awt.event.*; > import java.applet.*;

Re: Integrating Wicket with an Angular app

2014-10-30 Thread Warren Bell
I have an Angular app with a Wicket back end. I am using Wicket rest annotations located at https://github.com/bitstorm/Wicket-rest-annotations . Seems to be working pretty good. Warren On Oct 30, 2014, at 2:04 PM, BenjaminV mailto:bvellac...@yahoo.com>> wrote: Hi guys Is this thread still a

What is the proper way to start a secondary process in Wicket 6

2014-11-19 Thread Warren Bell
request 2) Log some data (Do not wait for this to complete) 3) Process request 4) Return response Thanks, Warren Bell - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: What is the proper way to start a secondary process in Wicket 6

2014-11-20 Thread Warren Bell
ch article. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Nov 20, 2014 at 7:26 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: Hi Warren, On Thu, Nov 20, 2014 at 12:46 AM, Warren Bell < warrenbe...@gmail.com> wrote: I am using Wicket 6

Re: What is the proper way to start a secondary process in Wicket 6

2014-11-20 Thread Warren Bell
creating secondary processes, maybe an internal thread pool that can be set-up ? Warren Bell On Nov 20, 2014, at 10:03 AM, Warren Bell mailto:warr...@clarksnutrition.com>> wrote: Ernesto, great job putting all that code together so quickly. I cloned your project and cherry picked out the code

Re: What is the proper way to start a secondary process in Wicket 6

2014-11-20 Thread Warren Bell
n you need to use an injected service in it ? Warren Bell On Nov 20, 2014, at 11:33 AM, Warren Bell wrote: > I have seen this from a 2010 post: > > final Application app = Application.get(); > final ExecutorService service = new ScheduledThreadPoolExecutor(1) { >

Is there a hook where I can run code after response and connection is closed

2014-11-20 Thread Warren Bell
in my “REST Annotations” implementation of IResource. Thanks, Warren Bell - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: What is the proper way to start a secondary process in Wicket 6

2014-11-21 Thread Warren Bell
new thread. Injecting the service in a Service holder is the same thing, isn’t it ? I haven’t tried attaching the app to the new thread and injecting the service straight into the new task/thread itself. I think that would be cleaner. I will try that out. Warren Bell On Nov 21, 2014, at 8:19 AM

Re: What is the proper way to start a secondary process in Wicket 6

2014-11-22 Thread Warren Bell
little easier to use. I need to look more into the different types of Thread pools and such. I used: ThreadContext.detach(); instead of: ThreadContext.setApplication(null); Warren Bell On Nov 22, 2014, at 11:18 AM, Ernesto Reinaldo Barreiro wrote: > pushed a new version including inject

Re: Wicketstuff Restannotations AbortWithHttpErrorCodeException always results in 500 Internal Server Error

2015-01-28 Thread Warren Bell
meant to be used in rest-annotations. Hope this helps, Warren Bell > On Jan 28, 2015, at 7:58 AM, Hans Lesmeister > wrote: > > Hi, > > We use the great rest-annotation from wicketstuff. > One thing that bothers is if the AbortWithHttpErrorCodeException with a > specific

Re: Clicking a button should fire a 'CSS event'

2015-02-03 Thread Warren Bell
Chris, Seems like a lot of work just to get a div to blink. Write a behavior with some javascript for the blinking and do that on the client only separate from your form submission or whatever else your button is doing. Warren > On Feb 3, 2015, at 1:30 PM, Chris wrote: > > Hi guys, > > I wo

Re: How can I injecting a Springbean into a custom session.

2009-03-06 Thread Warren Bell
Do you still have to use addComponentInstantiationListener(new SpringComponentInjector(this)) in your WebApplication#init() in order to use @SpringBean in sub classes of Component or is that done automatically now? Warren Igor Vaynberg wrote: all subclasses of Component are injected automa

Passing a PageParameters to a RedirectRequestTarget

2009-03-07 Thread Warren Bell
Is there a way of passing a PageParameters to a RedirectRequestTarget without pulling apart PageParameters and adding them to the url? Thanks, Warren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Wicket-Security security check on component on a panel

2009-03-11 Thread Warren Bell
I am trying to do a security check on a component that is on a panel like this: if(SecureComponentHelper.isAuthenticated(myComponent) && SecureComponentHelper.isActionAuthorized(myComponent, "enable")) { // Do Something } I have also tried this: if(myComponent.isAuthenticated() && !myCompo

Re: Wicket-Security security check on component on a panel

2009-03-12 Thread Warren Bell
Doing the security check in onBeforeRender() in the Panel fixed it. I did not have a Page yet. Warren I am trying to do a security check on a component that is on a panel like this: if(SecureComponentHelper.isAuthenticated(myComponent) && SecureComponentHelper.isActionAuthorized(my

Correct use of RangeValidator

2009-03-16 Thread Warren Bell
I am getting a ClassCastException when using RangeValidator like this: RequiredTextField intField = new RequiredTextField("intField"); intField.add(new RangeValidator(0, 100)); or like this: RequiredTextField intField = new RequiredTextField("intField"); intField.add(new RangeValidator(0, 1

Re: Correct use of RangeValidator

2009-03-17 Thread Warren Bell
tional commands, e-mail: users-h...@wicket.apache.org -- Thanks, Warren Bell 909-645-8864 warrenbe...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Closeing 1st Modal Window from 2nd Modal Window

2009-04-02 Thread Warren Bell
I have a situation that is like the Wicket example that opens two modal windows one from another. Everything is working correctly, but I need to close the 1st window when the 2nd window is closed. How would you do this? Thanks, Warren --

Button markup id is missing on Modal Window

2009-04-06 Thread Warren Bell
I have a Modal Window that acts like a progress indicator. It has an AbstractAjaxTimerBehavior that checks to see if a condition is met. When it is met an image on the Modal Window is removed and a form with an AjaxButton is added. The image starts with isVisible() = true and the form and butto

setOutputMarkupPlaceholderTag(true) not working on modal window

2009-04-08 Thread Warren Bell
I have a button on a modal window. The button starts with isVisible set to false. I get the following ajax error when I set it to true: ERROR: Component with id [[okButton]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the compon

Redirect to a static pdf in popup/new tab

2009-04-28 Thread Warren Bell
I have a situation where a user needs to click on many links on one page and display many static pdfs each in a new tab or popup. The problem is that I need to do some processing on the original page in the Link#onClick before I open up the pdf in a new tab or popup. I do not want the pdfs add

Re: Redirect to a static pdf in popup/new tab

2009-04-28 Thread Warren Bell
? cheers, Steve On 28 Apr 2009, at 17:11, Warren Bell wrote: I have a situation where a user needs to click on many links on one page and display many static pdfs each in a new tab or popup. The problem is that I need to do some processing on the original page in the Link#onClick before I

Re: ModalWindows...

2009-04-29 Thread Warren Bell
I am not sure this is what you are looking for. Check setWindowClosedCallback yourModalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { // do what you need to do

Re: Ajax Buttons and Form

2009-06-08 Thread Warren Bell
o use the Form fields to help discern between updates and inserts - or is there a more appropriate way to manage this within Wicket that I'm missing. My next step is to HIDE the id on the screen - but wanted to make sure that it wa

Re: getting started with swarm/wasp - rendering links to secure pages

2009-06-10 Thread Warren Bell
Try securing the link on your HomePage and do not secure the HomePage itself. The link has to implement ISecureComponent. Add the permission for the link to your "basic" principal. org.apache.wicket.security.hive.authorization.SimplePrincipal "basic" { //Permission for link on HomePage perm

Re: wicketstuff mini veil

2009-06-17 Thread Warren Bell
am wrong. Has anyone ever used the mini veil? Could anyone give me hand? Thanks. Best regards! Jing Ge - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --

Re: How to Hidden/Disabled Wicket tree with implementation wicket security

2009-07-16 Thread Warren Bell
Try this: Warren public class SecureWebMarkupContainer extends WebMarkupContainer implements ISecureComponent { public SecureWebMarkupContainer(String id) { super(id); setSecurityCheck(new ComponentSecurityCheck(this)); } public SecureWebMarkupContainer(String id

Re: How to Hidden/Disabled Wicket tree with implementation wicket security

2009-07-17 Thread Warren Bell
g but i dont know how to solve it. Can anyone help me? thanks --- Pada Kam, 16/7/09, Warren Bell menulis: Dari: Warren Bell Judul: Re: How to Hidden/Disabled Wicket tree with implementation wicket security Kepada: users@wicket.apache.org, bujang_kuan...@yahoo.com Tanggal: Kamis, 16 Juli,

AbstractAjaxTimerBehavior on Modal Window causes PageExpiredException

2009-08-04 Thread Warren Bell
I am getting a PageExpiredException when I close a modal window with an AbstractAjaxTimerBehavior on it. It does not seem to cause a problem, but I would rather it not happen. I use the AbstractAjaxTimerBehavior to auto close a modal window after a certain period of time if it is not closed manuall

Model question ?

2009-08-14 Thread Warren Bell
How should I set up my model for the following situation. I have a form with a ListChoice and a TextField. The TextField needs to access a property of the object selected of the ListChoice. I have it all working using a ValueMap, but that seems like overkill to use a ValueMap for one object. Here i

RE: Model question ?

2009-08-14 Thread Warren Bell
g name) {this.name = name;} public String toString(){return name;} // safer to have accessors & mutators } // safer to have accessors & mutators } Regards - Cemal jWeekend OO & Java Technologies, Wicket Training and Development http://jWeekend.com Warren Bell-3 wro

RE: Model question ?

2009-08-15 Thread Warren Bell
String toString() {return name;} } } I haven't worked out how to properly paste html into nabble, so drop me a line at the jWeekend site if you want the template code to go with this, or a QuickStart. Any comments on the type-parameters used above anybody?! Regards - Cemal jWeekend O

LoadableDetachableModel#load() called twice

2009-08-21 Thread Warren Bell
I have a ListChoice that I add a choice to. I do this in an AjaxButton#onSubmit(...). The problem is that load() has been called before onSubmit() and I have to call LoadableDetachableMode#detach() and have load() called again. This seems like a waste to have load() called twice in order to get the

RE: LoadableDetachableModel#load() called twice

2009-08-21 Thread Warren Bell
nly be called during any rendering, which is probably what you want. Does that do it? Regards - Cemal jWeekend OO & Java Technologies, Wicket Training and Development http://jWeekend.com Warren Bell-3 wrote: > > I have a ListChoice that I add a choice to. I do this in an > AjaxBut

RE: LoadableDetachableModel#load() called twice

2009-08-21 Thread Warren Bell
I need to read you response a little better. The choice id is being submitted with the form the button is on. Now if I have the button on a different form, can I update the ListChoice by simply adding the ListChoice to the target? Warren -Original Message- From: Warren Bell [mailto:warr

AbstractAjaxTimerBehavior on Modal Window causes PageExpiredException

2009-08-26 Thread Warren Bell
I am getting a PageExpiredException when I close a modal window that has an AbstractAjaxTimerBehavior on it. What do I need to do to fix this? Thanks

RE: Choose one

2009-08-27 Thread Warren Bell
I needed to do the same thing. I saw this on another post and it works fine. Override getDefaultChoice: protected CharSequence getDefaultChoice(Object selected) { return "Choose One"; } You can use getLocalizer().getString("yourpage.dropdownchoice.defaultvalue", this) for your different langua

RE: AbstractAjaxTimerBehavior on Modal Window causes PageExpiredException

2009-08-27 Thread Warren Bell
Yes all my objects that need to be serialized are being serialized. I put together a workaround. In the onClick() that closes the Modal Window. I called AbstractAjaxTimerBehavior#stop() then waited for a period longer than the Duration of the AbstractAjaxTimerBehavior and then closed the Modal Win

Model object properties go null after RestartResponseAtInterceptPageException.

2009-12-11 Thread Warren Bell
I have a page with about 10 text fields. The model for the page is a ValueMap. All of the values in the ValueMap get set to null when a user gets redirected back to the original page after a RestartResponseAtInterceptPageException. All of the keys in the ValueMap are still there. What do I ne

RE: Model object properties go null after RestartResponseAtInterceptPageException.

2009-12-14 Thread Warren Bell
Does Any body have any ideas, I am stuck and can't figure this out. I have a page with about 10 text fields. The model for the page is a ValueMap. All of the values in the ValueMap get set to null when a user gets redirected back to the original page after a RestartResponseAtInterceptPageException

Re: Model object properties go null after RestartResponseAtInterceptPageException.

2009-12-15 Thread Warren Bell
ValueMap getObject() { return getScanManApp().getAppProperties(); } }); Johan Compagner wrote: isnt your page not just a brand new shiny new instance? place a breakpoint in your constructor On 14/12/2009, Warren Bell wrote: Does Any

Maven problem with wicketstuff

2010-01-26 Thread Warren Bell
I am trying to retrieve wicketstuff-core from repository and am getting the following "Missing artifact". Missing artifact org.wicketstuff:wicketstuff-core:jar:1.4.2-SNAPSHOT:compile my pom ... wicket-snaps http://wicketstuff.org/maven/repository true

Re: Maven problem with wicketstuff

2010-01-26 Thread Warren Bell
quot;annotation", for example: org.wicketstuff annotation 1.4.2-SNAPSHOT Warren Bell-2 wrote: I am trying to retrieve wicketstuff-core from repository and am getting the following "Missing artifact". Missing artifact org.wicketstuff:wicketstuff-core:jar:

InMethod grid AbstractColumn#getHeaderCssClass() problem.

2010-02-01 Thread Warren Bell
I am having a problem with AbstractColumn#getHeaderCssClass() in an inmethod datagrid. It is writing my css class to the th tag but my css class is not working. I think it is something to do with IE8. Unfortunately the company that uses this app uses IE8 and the app is written for IE8. Digging

Re: InMethod grid AbstractColumn#getHeaderCssClass() problem.

2010-02-01 Thread Warren Bell
esn't work, this should div.imxt-vista table.imxt-head th.centerAlign div.imxt-a { text-align:center !important; } You should use firebug (or something similar) to inspect the elements to see which CSS ruels get applied and how to override them. -Matej On Mon, Feb 1, 2010 at 4:45 PM, War

Behavior does not work when visibility is changed from false to true

2010-02-18 Thread Warren Bell
to do to make this behavior work after visibility is changed from false to true? -- Thanks, Warren Bell - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Adding attributes to child components in a behavior.

2010-04-15 Thread Warren Bell
Is there a way to add attributes to child components in a behavior that is added to a page? I want to create a behavior that is added to a page that adds some js to the header and then adds some js in an onfocus attribute of each child form component on the page. I have the list of child form compo

Re: Adding attributes to child components in a behavior.

2010-04-15 Thread Warren Bell
moglu wrote: Warren, See MarkupContainer#visitChildren Regards - Cemal jWeekend OO & Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 15 April 2010 18:44, Warren Bell wrote: Is there a way to add attributes to child components in a behavior that is ad

RE: Adding attributes to child components in a behavior.

2010-04-15 Thread Warren Bell
more)" Can I even do this in a behavior? Cemal Bayramoglu wrote: > Warren, > > See MarkupContainer#visitChildren > > Regards - Cemal > jWeekend > OO & Java Technologies, Wicket > Consulting, Development, Training > http://jWeekend.com > > On 15 Apri

Re: Adding attributes to child components in a behavior.

2010-04-15 Thread Warren Bell
Regards - Cemal jWeekend OO & Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 15 April 2010 20:17, Warren Bell wrote: > > I have that figured out, I just don't know how to add the attribute to each > > component. I can't add a beha

Which form componnent had focus when form was submitted?

2010-04-21 Thread Warren Bell
Is there a way to figure out in a forms onSubmit which text field or button had focus when the form is submitted. I have done something in js to achieve this, but wanted to see if there was something already built in Wicket. I am limited to using form submit only no Ajax. Windows CE is having probl

Re: Which form componnent had focus when form was submitted?

2010-04-21 Thread Warren Bell
m was submited, or maybe a Form onSubmit(Component componentInFocus). Just a thought, I end up doing a lot of this. Warren Igor Vaynberg wrote: > you have to keep a HiddenField component and populate its value using > javascript. > > -igor > > On Wed, Apr 21, 2010 at 9:41 AM, Warr

Where has InMethod.com gone?

2008-11-25 Thread Warren Bell
I am looking for an advance datagrid component. I see that inMethod is mentioned as having one. When I go to their sight, it talks about WiFi Video for iPhone. Where do I go to find info on their datagrid? And if they are gone, Does anyone else have some sort of advance datagrid? -- Thanks, W

Redirecting to external URL

2009-01-01 Thread Warren Bell
I need to redirect to an external page. I saw this solution, but was not sure how to use it. Where does this exception get thrown? I do not want to instantiate some kind of dummy page. public class RedirectToExternalException extends AbstractRestartResponseException { private static final

Re: Redirecting to external URL

2009-01-01 Thread Warren Bell
)); Warren Bell wrote: I need to redirect to an external page. I saw this solution, but was not sure how to use it. Where does this exception get thrown? I do not want to instantiate some kind of dummy page. public class RedirectToExternalException extends AbstractRestartResponseException { private

Re: Redirecting to external URL

2009-01-01 Thread Warren Bell
ter or DNS resolver... Warren Bell wrote: I need to explain myself a little better. This is the situation, I have several locations that are on different subnets. They are all connected with a VPN. Each subnet has its own server running this wicket app. The app clients are running on mobile scanning P

Re: inmethod grid and add/delete examples

2009-02-12 Thread Warren Bell
ich makes it hard to help me, but I'd appreciate any info or pointers. Will -- Thanks, Warren Bell 909-645-8864 warrenbe...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: What's your take on handling markup in properties, html, wicket

2009-02-13 Thread Warren Bell
Create a panel with just the markup you need and switch them out with the isvisible based on the current language needed? Similar to the post for "Re: Adding/Replacing links in Panels" by Michael Sparer below. I use WebMarkupContainer, but I only have two states. 14 may get a little messy War

Re: How to get a reference to the holding page from a panel

2009-02-13 Thread Warren Bell
I have a simmilar situation where I want to put a panel nested in a panel nested in a page. The panel that is nested in the page stays the same for many different pages, but the panel nested into the panel changes. Would you do an anonymous panel class within an anonymous panel class within the

Maurice Marrink will be greatly missed.

2009-03-03 Thread Warren Bell
greatly missed. Thanks, Warren Bell - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

InMethod grid, Hidden Field in column does not get updated

2011-11-16 Thread Warren Bell
PricePanel(newPriceTextField, oldNewPriceHiddenField); return panel; } }; Also, the "oldNewPrice" property of the oldNewPriceHiddenField does change after SubmitCancelColumn gets clicked. What do I need to do to get the HiddenField to update correctly? Thanks, Warren Bell

RE: InMethod grid, Hidden Field in column does not get updated

2011-11-18 Thread Warren Bell
both fields. I thought that when you add a component to the target that the component and all its children would get updated. I see the HiddenField coming back in the Ajax response, it just has the old value. Thanks, Warren -Original Message- From: Warren Bell Sent: Wednesday

Re: WiQuery vs JQWicket

2011-11-23 Thread Warren Bell
Have you tried the InMethod grid, and if you have is there a reason you are looking for something different? I am just curious. Thanks, Warren On 11/23/11 8:26 AM, Brian Mulholland wrote: > As I am looking at them, I am not noticing either implementing the > jQuery grid, much less the paging scr

Re: Refreshing repeating view

2011-11-29 Thread Warren Bell
#modelChanged() on the component. This forces it to use the new value. I finally figured this out with some help from Cemal Bayramoglu. Hopefully you won't spend as much time as I did. Thanks, Warren Bell On 11/29/11 6:38 AM, mohan mohan wrote: > Hi > > I am using RepeatingView to ad

Localizer in a new Thread

2010-07-29 Thread Warren Bell
I want to take advantage of Wicket's message localization in a new thread I have created. I am trying to pass the localizer to a thread that runs background tasks. I am geting an "org.apache.wicket.WicketRuntimeException: There is no application attached to current thread...". I am sure I am going

RE: Localizer in a new Thread

2010-07-29 Thread Warren Bell
To clarify, I want to use Localizer#getString(...) in a thraed I create. I have seen other posts on this issue, but haven't been able to figure out the solution. Warren -Original Message- From: Warren Bell [mailto:warr...@clarksnutrition.com] Sent: Thursday, July 29, 2010 3:31

RE: Localizer in a new Thread

2010-07-30 Thread Warren Bell
I am not sure how to preload the the values. I am trying this, but am not getting anywhere. myApp.getResourceSettings().getPropertiesFactory().load(ScanManTask.clas s, "com.scanman.cron.task") I have a properties file named ScanManTask.properties and have added it to my app like this: getResourc

dynamically adding validators to TextFields in a ListView

2010-08-18 Thread Warren Bell
I have a ListView that adds one TextField to each ListItem. These TextFields need to have different types of validators added to them depending on a condition. One TextField in the first ListItem may need an email validator while the TextField in the next ListItem may need a number range validator

RE: dynamically adding validators to TextFields in a ListView

2010-08-19 Thread Warren Bell
...@gmail.com] Sent: Wednesday, August 18, 2010 10:40 PM To: users@wicket.apache.org Subject: Re: dynamically adding validators to TextFields in a ListView whatever is creating the textfield should add the appropriate validator -igor On Wed, Aug 18, 2010 at 10:01 PM, Warren Bell wrote: > I hav

How do I access Wicket's string resources in a non component class ?

2013-12-11 Thread Warren Bell
I want to access Wicket's string resources in a non component class. I am aware of getLocalizer().getString(...) for a component, but how do you do this in a non Component based class and how do you make Wicket aware of the message bundle ? All of the Localizer#getString(...) methods require a C

Re: How do I access Wicket's string resources in a non component class ?

2013-12-11 Thread Warren Bell
I think this is exactly what I am looking for. I had an older version of Wicket REST Annotations that did not have this class. I do have a question about its usage. I did the following in my resource class and it does work. DefaultBundleResolver defaultBundleResolver = new DefaultBundleResolv

Re: How do I access Wicket's string resources in a non component class ?

2013-12-11 Thread Warren Bell
3, at 2:26 PM, Warren Bell wrote: > I think this is exactly what I am looking for. I had an older version of > Wicket REST Annotations that did not have this class. > > I do have a question about its usage. I did the following in my resource > class and it does work. &

Wicket serving AngularJS app

2013-12-23 Thread Warren Bell
I am using Wicket 6 to manage an AngularJS app. Currently I am just letting Tomcat serve the AngularJS client i.e. index.html and using Wicket for authentication, authorization and REST. But I would like to use Wicket to serve up the client so that I can manage css and js resources and set an in