Re: Wicket design incompatible with Web 2.0 ?

2010-11-12 Thread John Armstrong
Filed

https://issues.apache.org/jira/browse/WICKET-3165

Thanks Igor
John-

On Fri, Nov 12, 2010 at 11:47 AM, Igor Vaynberg  wrote:
> not a bad idea. we already have a concept of "channels", but right now
> they can only queue or drop requests. with some work it should be
> possible to add an "aggregate" mode and process multiple callbacks
> within the same request. please file a jira issue.
>
> -igor
>
> On Fri, Nov 12, 2010 at 11:44 AM, John Armstrong  
> wrote:
>> EXT-JS does a nice queueing model where you can set a queue timer (say
>> 100ms) and any AJAX requests get bundled up into a single package that
>> goes across the wire at once, returning and then being sent back to
>> their callers.
>>
>> This lets a page update many components at once in what appears to be
>> real-time without blocking.
>>
>> Might be an interesting model for wicket at some point in the future.
>>
>> Yes, I know, EST-JS is a client-side framework. I am only using it as
>> an example of how some stacks are resolving these sorts of issues.
>>
>> John-
>>
>> On Fri, Nov 12, 2010 at 9:36 AM, Josh Kamau  wrote:
>>> AjaxSelfUpdatingTimerBehavior works perfectly for notifications. I guess it
>>> wouldnt work very well for a chat-like scenario. I have set mine to 30
>>> seconds and it works perfectly. Long polling would hold  a request with
>>> nothing to report back in most of the times.
>>>
>>> regards.
>>>
>>> On Fri, Nov 12, 2010 at 12:17 PM, Igor Vaynberg 
>>> wrote:
>>>
>>>> why would you need a request every few milliseconds. what is so urgent
>>>> about a notification that you cant poll every ten seconds?
>>>>
>>>> what your long polling thread can do is access the page, render a part
>>>> of it, and send it back to the client - but, only when it has
>>>> something to say. which instead of many very quick requests to the
>>>> page is many very quick accesses to the page.
>>>>
>>>> -igor
>>>>
>>>> On Fri, Nov 12, 2010 at 9:13 AM, José Monzón  wrote:
>>>> > AjaxSelfUpdatingTimerBehavior is cool for simple repetitive requests.
>>>> > But if you try to do long polling with that (comet, retain the request
>>>> > in the server as long as you can while there's nothing to send back)
>>>> > you will see how your other ajax requests are queued and your page
>>>> > freezes.
>>>> >
>>>> > I've seen many people using AjaxSelfUpdatingTimerBehavior to replace
>>>> > long poling. Performing very quick requests to the server (every few
>>>> > millisecons). I believe that abusing  AjaxSelfUpdatingTimerBehavior
>>>> > leads you to scalability issues. Not to mention that the browser gets
>>>> > choppy in slow computers.
>>>> >
>>>> >
>>>> > On Fri, Nov 12, 2010 at 4:42 PM, Josh Kamau 
>>>> wrote:
>>>> >> I have implemented an application that alerts the user on various
>>>> events. I
>>>> >> created a notification's bar at the top of my page. This bar has a panel
>>>> on
>>>> >> which i added AjaxSelfUpdatingTimerBehavior.  The Panel is available in
>>>> all
>>>> >> pages. whatever the page the use is, as long as the panel is rendered,
>>>> it
>>>> >> polls the server on regular intervals and displays notifications for
>>>> various
>>>> >> events - the facebook style.  This is one of the features that has made
>>>> me
>>>> >> stick with wicket.
>>>> >>
>>>> >> regards.
>>>> >> Josh
>>>> >>
>>>> >>
>>>> >> 1.
>>>> >>
>>>> http://wicket.apache.org/apidocs/1.4/org/apache/wicket/ajax/AjaxSelfUpdatingTimerBehavior.html
>>>> >>
>>>> >> On Fri, Nov 12, 2010 at 10:37 AM, Frank van Lankvelt <
>>>> >> f.vanlankv...@onehippo.com> wrote:
>>>> >>
>>>> >>> On Fri, Nov 12, 2010 at 3:55 PM, José Monzón 
>>>> wrote:
>>>> >>> > I recently run into a problem that has make me consider whether
>>>> >>> > continuing using Wicket or not for a project. I hope guys you can
>>>> >>> > throw some light into it.
>>>> >>> >
>>>> >&g

Re: Wicket design incompatible with Web 2.0 ?

2010-11-12 Thread John Armstrong
EXT-JS does a nice queueing model where you can set a queue timer (say
100ms) and any AJAX requests get bundled up into a single package that
goes across the wire at once, returning and then being sent back to
their callers.

This lets a page update many components at once in what appears to be
real-time without blocking.

Might be an interesting model for wicket at some point in the future.

Yes, I know, EST-JS is a client-side framework. I am only using it as
an example of how some stacks are resolving these sorts of issues.

John-

On Fri, Nov 12, 2010 at 9:36 AM, Josh Kamau  wrote:
> AjaxSelfUpdatingTimerBehavior works perfectly for notifications. I guess it
> wouldnt work very well for a chat-like scenario. I have set mine to 30
> seconds and it works perfectly. Long polling would hold  a request with
> nothing to report back in most of the times.
>
> regards.
>
> On Fri, Nov 12, 2010 at 12:17 PM, Igor Vaynberg 
> wrote:
>
>> why would you need a request every few milliseconds. what is so urgent
>> about a notification that you cant poll every ten seconds?
>>
>> what your long polling thread can do is access the page, render a part
>> of it, and send it back to the client - but, only when it has
>> something to say. which instead of many very quick requests to the
>> page is many very quick accesses to the page.
>>
>> -igor
>>
>> On Fri, Nov 12, 2010 at 9:13 AM, José Monzón  wrote:
>> > AjaxSelfUpdatingTimerBehavior is cool for simple repetitive requests.
>> > But if you try to do long polling with that (comet, retain the request
>> > in the server as long as you can while there's nothing to send back)
>> > you will see how your other ajax requests are queued and your page
>> > freezes.
>> >
>> > I've seen many people using AjaxSelfUpdatingTimerBehavior to replace
>> > long poling. Performing very quick requests to the server (every few
>> > millisecons). I believe that abusing  AjaxSelfUpdatingTimerBehavior
>> > leads you to scalability issues. Not to mention that the browser gets
>> > choppy in slow computers.
>> >
>> >
>> > On Fri, Nov 12, 2010 at 4:42 PM, Josh Kamau 
>> wrote:
>> >> I have implemented an application that alerts the user on various
>> events. I
>> >> created a notification's bar at the top of my page. This bar has a panel
>> on
>> >> which i added AjaxSelfUpdatingTimerBehavior.  The Panel is available in
>> all
>> >> pages. whatever the page the use is, as long as the panel is rendered,
>> it
>> >> polls the server on regular intervals and displays notifications for
>> various
>> >> events - the facebook style.  This is one of the features that has made
>> me
>> >> stick with wicket.
>> >>
>> >> regards.
>> >> Josh
>> >>
>> >>
>> >> 1.
>> >>
>> http://wicket.apache.org/apidocs/1.4/org/apache/wicket/ajax/AjaxSelfUpdatingTimerBehavior.html
>> >>
>> >> On Fri, Nov 12, 2010 at 10:37 AM, Frank van Lankvelt <
>> >> f.vanlankv...@onehippo.com> wrote:
>> >>
>> >>> On Fri, Nov 12, 2010 at 3:55 PM, José Monzón 
>> wrote:
>> >>> > I recently run into a problem that has make me consider whether
>> >>> > continuing using Wicket or not for a project. I hope guys you can
>> >>> > throw some light into it.
>> >>> >
>> >>> > I need to create a web application that uses ajax to keep itself
>> >>> > udpated while still allows the user interact with it also using Ajax.
>> >>> > Imagine something as GMail, Documents, Facebook, Twitter, etc.
>> >>> >
>> >>> > On this pages, is very common to have some ajax COMMET, long polling
>> >>> > or also known as inverse AJAX to keep the page updated. But that
>> >>> > doesn't prevent the user to click here and there and update the page
>> >>> > also using AJAX. They are independent XMLHttpRequest with a browser
>> >>> > can handle perfectly.
>> >>> >
>> >>> > I was thinking about doing this on Wicket, but apparently it's
>> >>> > impossible by design:
>> >>> > https://issues.apache.org/jira/browse/WICKET-2437
>> >>> >
>> >>> > Page objects aren't thread-safe and wicket will block any other
>> thread
>> >>> > (AJAX call) that tries to access the page while another request (for
>> >>> > instance our long poll) is there.
>> >>> >
>> >>> > Have you ever find yourself into this kind of problem? What's the
>> >>> > workaround if any?
>> >>> >
>> >>> the comet-like functionality is useful for things like chatting, but
>> >>> you wouldn't
>> >>> need access to the page for that as you're unlikely to change the
>> >>> component tree.
>> >>>
>> >>> The alternative to long polling is, of course, regular polling.  Queue
>> >>> the events
>> >>> and process them when a request is processed.  Then you can access the
>> >>> page,
>> >>> update the component tree and rerender the relevant parts.
>> >>> Maintaining the queue
>> >>> is a bit tricky, as one has to make sure that it doesn't grow too
>> >>> large and it must be
>> >>> disposed of properly.
>> >>>
>> >>> We've used this method to implement a single-page-application that
>> updates
>> >>> exclusively with ajax.  It's n

Re: My New Book: Now in Dead Tree Format

2010-10-18 Thread John Armstrong
I just ordered my dead tree version.

Thanks for everything Jonathan, I hope my purchase does just a bit to
pay you back for the years of work you've put into Wicket, a project
and perspective that has made a real impact on my professional life.

J

On Mon, Oct 18, 2010 at 8:39 AM, Jonathan Locke
 wrote:
>
>
> It's not on amazon.uk just yet, but if you buy it here I believe they will
> ship it anywhere in the world:
>
> https://www.createspace.com/3487090
>
> Createspace is the demand publisher for the book and is also owned by
> Amazon.com.
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/My-New-Book-Now-in-Dead-Tree-Format-tp2998832p3000477.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wiQuery grid row expander

2010-08-04 Thread John Armstrong
Sounds good. I am building small plugins right now so I'll go through
the plugins project.

Just joined the group.
Tx!
John-

On Wed, Aug 4, 2010 at 12:23 AM, Ernesto Reinaldo Barreiro
 wrote:
> Hi John,
>
> Thanks for your interest in contributing!
>
> Regrading your question. It all depends on if it is a "small" plugin
> or a "big" one. For "smaller" plugins I'm just placing them on [1]. If
> the plugin is "big" them maybe it would be better to create a new
> sub-project under wiquery-plugins. What is this plugin about?
>
> In any case I would go and create a patch and attach it to a new issue
> on [2]. It would be nice if the code comes with at least an example so
> that we can deploy it to the demo application. Then I'll will look on
> how to integrate this into the project. Latter on we can discuss
> granting you commit access if you want...
>
> By the way, I have created a google group (see [3])... Shall we  move
> further discussions into that context? So that we don't pollute this
> list with things that might not be of interest to other wicket users.
>
> Cheers,
>
> Ernesto
>
> References.
>
> 1-http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/other-plugins
> 2-http://code.google.com/p/wiquery-plugins/issues/list
> 3-http://groups.google.com/group/wiquery-plugins
>
>
> On Wed, Aug 4, 2010 at 6:36 AM, John Armstrong  wrote:
>> Hi Ernesto,
>>  I am very interested in contributing and completed my first plugin
>> this evening. Let me know how I can push this back into the distro or
>> if I should host in a separate space etc.
>>
>> Tx!
>> John-
>>
>> On Wed, Jun 30, 2010 at 2:12 PM, Ernesto Reinaldo Barreiro
>>  wrote:
>>> John,
>>>
>>> I just uploaded an small demo of [1] to [2]. Please ping me offline if
>>> you want to contribute to the project.
>>>
>>> Best,
>>>
>>> Ernesto
>>>
>>> 1-http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/j
>>> 2-http://wiquery-plugins-demo.appspot.com/demo/
>>>
>>> On Wed, Jun 30, 2010 at 4:56 PM, John Armstrong  
>>> wrote:
>>>> Ahh missed that.
>>>>
>>>> Tx Ernesto, I will take a look at jq and see if I can help!
>>>>
>>>> J
>>>>
>>>> On Tue, Jun 29, 2010 at 10:57 PM, Ernesto Reinaldo Barreiro
>>>>  wrote:
>>>>> John,
>>>>>
>>>>> See [1] and in particular the answer from Cemal (the one on Jun 16...)
>>>>> That might answer part of your question.
>>>>>
>>>>> Some time ago I have started [2], the implementation there is not that
>>>>> complete yet but at least it could give you a starting point. And, of
>>>>> course, patches and contributions are always welcome!
>>>>>
>>>>> Best,
>>>>>
>>>>> Ernesto
>>>>>
>>>>> 1-http://apache-wicket.1842946.n4.nabble.com/wiQuery-components-with-server-side-state-live-demo-tc1842975.html#none
>>>>> 2-http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/jqgrid
>>>>>
>>>>> On Wed, Jun 30, 2010 at 6:34 AM, John Armstrong  
>>>>> wrote:
>>>>>> Back in march there was a thread titled "wiQuery components with
>>>>>> server side state - live demo"
>>>>>>
>>>>>> On that thread Richard Poway and I corresponded about a Grid Row 
>>>>>> Expander.
>>>>>>
>>>>>> I never saw the reply but in a recent google for this I can across a
>>>>>> link he posted in that thread
>>>>>>
>>>>>> http://labs.jweekend.com/public/grid/GridRowExpanderPage
>>>>>>
>>>>>> This link is now password protected.
>>>>>>
>>>>>> Richard/anyone from jweekend : Does this link still exit?
>>>>>>
>>>>>> Tx!
>>>>>> John-
>>>>>>
>>>>>> -
>>>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>> -
>>&g

Re: wiQuery grid row expander

2010-08-03 Thread John Armstrong
Hi Ernesto,
  I am very interested in contributing and completed my first plugin
this evening. Let me know how I can push this back into the distro or
if I should host in a separate space etc.

Tx!
John-

On Wed, Jun 30, 2010 at 2:12 PM, Ernesto Reinaldo Barreiro
 wrote:
> John,
>
> I just uploaded an small demo of [1] to [2]. Please ping me offline if
> you want to contribute to the project.
>
> Best,
>
> Ernesto
>
> 1-http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/j
> 2-http://wiquery-plugins-demo.appspot.com/demo/
>
> On Wed, Jun 30, 2010 at 4:56 PM, John Armstrong  wrote:
>> Ahh missed that.
>>
>> Tx Ernesto, I will take a look at jq and see if I can help!
>>
>> J
>>
>> On Tue, Jun 29, 2010 at 10:57 PM, Ernesto Reinaldo Barreiro
>>  wrote:
>>> John,
>>>
>>> See [1] and in particular the answer from Cemal (the one on Jun 16...)
>>> That might answer part of your question.
>>>
>>> Some time ago I have started [2], the implementation there is not that
>>> complete yet but at least it could give you a starting point. And, of
>>> course, patches and contributions are always welcome!
>>>
>>> Best,
>>>
>>> Ernesto
>>>
>>> 1-http://apache-wicket.1842946.n4.nabble.com/wiQuery-components-with-server-side-state-live-demo-tc1842975.html#none
>>> 2-http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/jqgrid
>>>
>>> On Wed, Jun 30, 2010 at 6:34 AM, John Armstrong  
>>> wrote:
>>>> Back in march there was a thread titled "wiQuery components with
>>>> server side state - live demo"
>>>>
>>>> On that thread Richard Poway and I corresponded about a Grid Row Expander.
>>>>
>>>> I never saw the reply but in a recent google for this I can across a
>>>> link he posted in that thread
>>>>
>>>> http://labs.jweekend.com/public/grid/GridRowExpanderPage
>>>>
>>>> This link is now password protected.
>>>>
>>>> Richard/anyone from jweekend : Does this link still exit?
>>>>
>>>> Tx!
>>>> John-
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>
>>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Auto insert comments between components

2010-07-19 Thread John Armstrong
Like magic.

Thanks Igor.

J

On Mon, Jul 19, 2010 at 9:48 PM, Igor Vaynberg  wrote:
> getDebugSettings().setOutputMarkupContainerClassName(true)
>
> -igor
>
> On Mon, Jul 19, 2010 at 9:39 PM, John Armstrong  wrote:
>> Hi all,
>>  Here is an odd one.
>>
>> I have an app that uses a lot of components (obviously..) but now I
>> need to send it out to a CSS Dev for some tweaking and this dev is not
>> capable of bringing up the full stack and working in situ.
>>
>> So, in  the past I've had systems that insert comments to the effect of
>>
>> !-- start com.pgi.wicket.MyComponentName --
>> !-- end com.pgi.wicket.MyComponentName --
>>
>> Does wicket have a way of autogenerating this sort of comment trail?
>> With it I have a hope in heck of reassembling the changes into the
>> app.
>>
>> Yes, I can do it manually, looking for the easy way out :)
>>
>> Tx
>> John-
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Auto insert comments between components

2010-07-19 Thread John Armstrong
Hi all,
  Here is an odd one.

I have an app that uses a lot of components (obviously..) but now I
need to send it out to a CSS Dev for some tweaking and this dev is not
capable of bringing up the full stack and working in situ.

So, in  the past I've had systems that insert comments to the effect of

!-- start com.pgi.wicket.MyComponentName --
!-- end com.pgi.wicket.MyComponentName --

Does wicket have a way of autogenerating this sort of comment trail?
With it I have a hope in heck of reassembling the changes into the
app.

Yes, I can do it manually, looking for the easy way out :)

Tx
John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxRequestTarget.appendJavascript broken arrays

2010-07-15 Thread John Armstrong
Are you sure its not actually ^M which is a windows CR/LF linefeed?

This may be causing the parser to choke if its passing them through as literals.

Long shot, sorry :)
J

On Thu, Jul 15, 2010 at 9:07 AM, DmitryM  wrote:
>
> Hello, guys
>
> I've noticed one thing recently (could not find anything related in the
> forum).
> My Wicket is 1.4.9 and I needed a JSON data with arrays which is attached to
> the Ajax response.
>
> Currently I see that all arrays' closing brackets ']' are turned into ']^'
> which technically breaks my JSON (and even simple javascript) being
> returned.
>
> Is it a bug or an expected behavior and I can do something about it?
>
> Because when Ajax response is being evaluated javascript gets parsing error
> and I'm not sure I have any control over it.
>
> Thanks,
> Dmitry
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/AjaxRequestTarget-appendJavascript-broken-arrays-tp2290353p2290353.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wiQuery grid row expander

2010-06-30 Thread John Armstrong
Ahh missed that.

Tx Ernesto, I will take a look at jq and see if I can help!

J

On Tue, Jun 29, 2010 at 10:57 PM, Ernesto Reinaldo Barreiro
 wrote:
> John,
>
> See [1] and in particular the answer from Cemal (the one on Jun 16...)
> That might answer part of your question.
>
> Some time ago I have started [2], the implementation there is not that
> complete yet but at least it could give you a starting point. And, of
> course, patches and contributions are always welcome!
>
> Best,
>
> Ernesto
>
> 1-http://apache-wicket.1842946.n4.nabble.com/wiQuery-components-with-server-side-state-live-demo-tc1842975.html#none
> 2-http://code.google.com/p/wiquery-plugins/source/browse/#svn/trunk/wiquery-plugins/jqgrid
>
> On Wed, Jun 30, 2010 at 6:34 AM, John Armstrong  wrote:
>> Back in march there was a thread titled "wiQuery components with
>> server side state - live demo"
>>
>> On that thread Richard Poway and I corresponded about a Grid Row Expander.
>>
>> I never saw the reply but in a recent google for this I can across a
>> link he posted in that thread
>>
>> http://labs.jweekend.com/public/grid/GridRowExpanderPage
>>
>> This link is now password protected.
>>
>> Richard/anyone from jweekend : Does this link still exit?
>>
>> Tx!
>> John-
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wiQuery grid row expander

2010-06-29 Thread John Armstrong
Back in march there was a thread titled "wiQuery components with
server side state - live demo"

On that thread Richard Poway and I corresponded about a Grid Row Expander.

I never saw the reply but in a recent google for this I can across a
link he posted in that thread

http://labs.jweekend.com/public/grid/GridRowExpanderPage

This link is now password protected.

Richard/anyone from jweekend : Does this link still exit?

Tx!
John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: mexico.com

2010-04-30 Thread John Armstrong
Thanks for sharing this, its going to be great help for us in
convincing one of our travel related clients to trust Wicket!
John-

On Fri, Apr 30, 2010 at 9:36 AM, Carl Sziebert  wrote:
> Looks nice Scott. Job well done to the team there at Vegas.com.
>
>
>
> On Fri, Apr 30, 2010 at 9:30 AM, Scott Swank  wrote:
>> Thanks, though I was only involved early on with this project.  Only
>> the initial page is stateless, after that search results are in your
>> session.
>>
>> On Fri, Apr 30, 2010 at 9:06 AM, robert.mcguinness
>>  wrote:
>>>
>>> site looks great.  i'm curious, how did you approach the stateless pages
>>> using Wicket?
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: wiQuery components with server side state - live demo

2010-03-03 Thread John Armstrong
Hi Richard,

 See here: http://www.extjs.com/examples/explorer.html#gridplugins

In this case its a
grid rather then a tree that expands and allows arbitrary components to be
inserted beneath the row.

Similar to a tree but very grid specific.

Very excited about your work, so many hoops too jump through with GWT..
J

On Wed, Mar 3, 2010 at 10:17 AM, Richard Wilkinson <
richard.wilkin...@jweekend.com> wrote:

> Hi,
>
> John - im not to sure what you mean by row expanders, is that similar
> to what is provided on the tree grid?
>
> Ernesto - see comments inline:
>
>
> On 3 March 2010 12:59, Ernesto Reinaldo Barreiro 
> wrote:
> > Hi Cemal,
> >
> > Other things that might be useful:
> >
> > -Offer (pluggable) support for grid events at client and server side
> (e.g.
> > been notified when user navigates between pages, sorts a columns, etc).
> By
> > pluggable I mean they can be enable if you need them so that no
> unnecessary
> > server round trips are made.
>
> The gird always has to make a request to the server when the user
> navigates between pages, or changes the sorting, since this requires
> updated data.  However these events are handled internally to the grid
> code and are not accessible to the developer.  If required we could
> make these events accessible to the developer, either through adding a
> behaviour, or overriding a method.  Other things such as selection
> notification events, or editing, can optionally be listened to by the
> developer, but these do not make a round trip to the server unless
> they are explicitly added.
>
> > -Show an example of how the grid interacts with a normal wicket form.
> E.g.
> > have a form the is submitted via Wicket AJAX and get the grid refreshed
> > either via Wicket AJAX (i.e. the whole grid component is reloaded) or
> > triggering a reload event on the grid (I see the master detail example is
> > built using this last approach?) .
>
> yes, this page (http://labs.jweekend.com/public/gridjpa/ProjectEditPage)
> uses a wicket form (not automatically generated though) to edit a row
> in one grid, which then triggers a data refresh in both grids, but
> does not do a wicket ajax component replace.  However ajax component
> replace is supported as there is an AjaxRequestTarget, but I feel that
> forcing the grid to reload is cleaner.
>
> > -All the examples seem to use JSON for data transfer? Is XML supported?
>
> The grid uses JSON, however this is all internal and transparent to
> the developer using the grid, so I dont see how supporting XML would
> be a benefit.  It is not possible to construct JSON or XML and feed
> this into the grid manually, i.e. by telling the grid which url to
> use.
>
> The intended use is the same as with a Wicket DataTable, where an
> IDataProvider provides an iterator of beans which are rendered as rows
> in the grid.  We use Wicket IConverter to convert each field of the
> bean to a String, then use a JSON library to construct the JSON
> response, which is then used in a custom wicket IRequestTarget for
> JSON.
>
> >
> > Best,
> >
> > Ernesto
> >
> > On Wed, Mar 3, 2010 at 11:33 AM, Cemal Bayramoglu <
> > jweekend_for...@cabouge.com> wrote:
> >
>
>
>
> --
> Regards - Richard Wilkinson
> Developer,
> jWeekend: OO & Java Technologies - Development and Training
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: wiQuery components with server side state - live demo

2010-03-02 Thread John Armstrong
Wow, this is fantastic. Wish I'd had it 4 months ago before I had to start
dealing with GXT for its grid support :(

We'll pick it up for our next project if possible, its exactly what we need.

Nice stuff guys.

John-

PS : RowExpanders would be awesome ;)

On Tue, Mar 2, 2010 at 3:10 PM, Vladimir K  wrote:

>
> Looks great!
>
> One thing is missing - the components don't restore their state on refresh.
> I believe cookie, window name or dom storage can be used to keep the
> position and settings of components that are available for
> dragging/re-arrangement.
>
>
> Roman Ilin wrote:
> >
> > Great, ready for use components.
> >
> >
> >
> > On Tue, Mar 2, 2010 at 5:58 PM, Cemal A Bayramoglu 
> > wrote:
> >> We've been building a few wiQuery components [0], for clients' and
> >> internal projects. These wiQuery components typically maintain some of
> >> their state server-side, in the spirit of standard Wicket components.
> >>
> >> Here's a simple demo [1] to show some of them in action.
> >>
> >> Look carefully and you'll find lots of stuff to click on [2]. We could
> >> plan to open up the ones we may [3] if they look useful to you or
> >> you'd like to get involved with design/development/testing.
> >>
> >> Regards - Cemal
> >> jWeekend
> >> OO & Java Technologies, Wicket
> >> Consulting, Development, Training
> >> http://jWeekend.com
> >>
> >> [0] includes components based on sortable "portlet", jqGrid/Tree,
> >> jGrowl, jQuery UI: Accordian, Dialog, Tabs all integrated with Wicket
> >> using wiQuery (http://code.google.com/p/wiquery/)
> >> [1] http://labs.jWeekend.com/public/
> >> [2] We'd naturally prefer if you didn't zap _all_ the records from our
> >> toy database! Yes, we know some of you will take this as an invitation
> >> to have a go!
> >> [3] No promises on dates just now, but it is something we'd like to do
> >> soon.
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/wiQuery-components-with-server-side-state---live-demo-tp27758298p27762474.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket Google Translation Localizer

2010-01-28 Thread John Armstrong
Well, I'd just say 'Buyer beware'. We've had management push to fire
developers for doing this. Our Japanese customers were extremely
sensitive. Germans as well now that I think about it..

John-

On Thu, Jan 28, 2010 at 11:24 AM, Martin Makundi
 wrote:
> I forgot to mention that it would be half as fun as much as it is
> useful ;) Maybe it would be funny for the users too ;)
>
> BTW: Google itself uses its translation engine to provide localized
> UI:s for different languages, and yes, they are funny sometimes.
>
> **
> Martin
>
> 2010/1/28 John Armstrong :
>> A default English locale is probably better then gibberish and
>> automated calls to Google Translate will get you gibberish.
>>
>> 1) Online translation engines are terrible. Just yesterday I used
>> google translate to tell me how to translate the word 'Bond', it told
>> me '007' (true, try it, uppercase B is important). My UI lead is Dutch
>> and she says that, while she appreciates the effort, googles
>> translations are not making a lot of sense.
>>
>> 2) Its near impossible to do variable interpolation in any automated way.
>>
>> We only roll out actually translated languages and getting
>> translations is cheap enough these days. We only automate via Google
>> Translate for initial QA smoke testing and then pass those files to
>> Human Beings who tend to be pretty good at this sort of thing.
>>
>> I recommend GetText if your looking to 'back localize' an app. We just
>> localized a few thousand lines of code using its macro replacement
>> method, ran the bundled perl script and generated 10 localization
>> files in seconds that are ready for translation.
>>
>> There is a lib for that : 
>> http://xnap-commons.sourceforge.net/gettext-commons/
>>
>> J
>>
>> On Thu, Jan 28, 2010 at 10:11 AM, Edward Zarecor
>>  wrote:
>>> I think Martin's idea is that in the absence of a localized properties
>>> file localization via a call to google translate would be attempted.
>>>
>>> I think there are likely to be more problems the benefits with this
>>> design.  To wit, http://tinyurl.com/y8nvx2x.
>>>
>>> Perhaps a shell script to localize your base properties files followed
>>> by manual intervention, correction.
>>>
>>> Ed.
>>>
>>> On Thu, Jan 28, 2010 at 11:28 AM, Victor Dolirio Ferreira Barbosa
>>>  wrote:
>>>> There the default properties file for this purpose. Just make a properties
>>>> file without locale info in this name, like this example:
>>>>
>>>> +
>>>>  |- Application_en_US.properties
>>>>  |- Application_pt_BR.properties
>>>>  |- Application.properties
>>>>
>>>> The last file is used if no other is found for the current locale.
>>>>
>>>> On Thu, Jan 28, 2010 at 2:15 PM, Martin Makundi <
>>>> martin.maku...@koodaripalvelut.com> wrote:
>>>>
>>>>> Hi!
>>>>>
>>>>> I wonder, has anybody implemented a wicket stringresource localizer
>>>>> that if localized property is not found for the selected language, it
>>>>> would attempt to translate it using the default language?
>>>>>
>>>>> **
>>>>> Martin
>>>>>
>>>>> -
>>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> []s,
>>>> Victor Dolirio
>>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Google Translation Localizer

2010-01-28 Thread John Armstrong
A default English locale is probably better then gibberish and
automated calls to Google Translate will get you gibberish.

1) Online translation engines are terrible. Just yesterday I used
google translate to tell me how to translate the word 'Bond', it told
me '007' (true, try it, uppercase B is important). My UI lead is Dutch
and she says that, while she appreciates the effort, googles
translations are not making a lot of sense.

2) Its near impossible to do variable interpolation in any automated way.

We only roll out actually translated languages and getting
translations is cheap enough these days. We only automate via Google
Translate for initial QA smoke testing and then pass those files to
Human Beings who tend to be pretty good at this sort of thing.

I recommend GetText if your looking to 'back localize' an app. We just
localized a few thousand lines of code using its macro replacement
method, ran the bundled perl script and generated 10 localization
files in seconds that are ready for translation.

There is a lib for that : http://xnap-commons.sourceforge.net/gettext-commons/

J

On Thu, Jan 28, 2010 at 10:11 AM, Edward Zarecor
 wrote:
> I think Martin's idea is that in the absence of a localized properties
> file localization via a call to google translate would be attempted.
>
> I think there are likely to be more problems the benefits with this
> design.  To wit, http://tinyurl.com/y8nvx2x.
>
> Perhaps a shell script to localize your base properties files followed
> by manual intervention, correction.
>
> Ed.
>
> On Thu, Jan 28, 2010 at 11:28 AM, Victor Dolirio Ferreira Barbosa
>  wrote:
>> There the default properties file for this purpose. Just make a properties
>> file without locale info in this name, like this example:
>>
>> +
>>  |- Application_en_US.properties
>>  |- Application_pt_BR.properties
>>  |- Application.properties
>>
>> The last file is used if no other is found for the current locale.
>>
>> On Thu, Jan 28, 2010 at 2:15 PM, Martin Makundi <
>> martin.maku...@koodaripalvelut.com> wrote:
>>
>>> Hi!
>>>
>>> I wonder, has anybody implemented a wicket stringresource localizer
>>> that if localized property is not found for the selected language, it
>>> would attempt to translate it using the default language?
>>>
>>> **
>>> Martin
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>> --
>> []s,
>> Victor Dolirio
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [whishlist] JS libraries

2010-01-08 Thread John Armstrong
I wish for the ExtJS integration to be more full-featured. The base is
there and seems to be extensible but there are a lot of details
missing (editable grids, row-editors etc).

We started looking at it for a project but in the end moving the
Wicket extjs project forward at the same time as our commercial
project was just too much and we switched over the GWT/GXT
specifically for the widget support .. :(

John-

On Fri, Jan 8, 2010 at 10:30 AM, nino martinez wael
 wrote:
> Hi
>
> This is a whishlist for js that should be integrated with wicket but
> arent.. So please go ahead and whish, I just might do an integration
> if it's something I need aswell :)
>
> regards Nino
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Slides of Wicket and Struts 2

2010-01-04 Thread John Armstrong
Very good, thanks Lester (the attachment was stripped on my side,
probably my mailserver).

J

On Mon, Jan 4, 2010 at 6:36 PM, Lester Chua  wrote:
> Hi John,
>
> I thought I attached the file but here goes,
>
> Link
> https://docs.google.com/fileview?id=0B8Wi-GkyhJ3XMDVhYzQ3YWUtNDNhMS00NzUxLTg5YzYtZmJkMTIxOTE2MGFm&hl=en
>
> Thanks!
>
> John Armstrong wrote:
>>
>> Link?
>>
>> Tx!
>> John-
>>
>> On Mon, Jan 4, 2010 at 5:52 PM, Lester Chua  wrote:
>>
>>>
>>> Hi all,
>>>
>>> I'm attaching some slides on some thought I have gathered for a
>>> presentation
>>> to management for Wicket justification.
>>> Was wondering if any of you have time to read it and comment on it =).
>>>
>>> Lester
>>>
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Slides of Wicket and Struts 2

2010-01-04 Thread John Armstrong
Link?

Tx!
John-

On Mon, Jan 4, 2010 at 5:52 PM, Lester Chua  wrote:
> Hi all,
>
> I'm attaching some slides on some thought I have gathered for a presentation
> to management for Wicket justification.
> Was wondering if any of you have time to read it and comment on it =).
>
> Lester
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax Wizard and feedback

2009-12-04 Thread John Armstrong
My problem was 4 fold (after multiple iterations of problems)

1) I was overriding onError in both AjaxButton and AjaxButtonBar so my
AjaxButton version was ignored
2) I am using the default ButtonBar html which has a component called
'feedback' in it, this dup'd my nested "feedback" form (merely
confusing for me)
4) I was showing the -wrong- feedback panel (see 2)
5) My signup feedback was within the RadioGroup which made its path
unique across my wizard steps. I had to move it out of a nested
context so it was generalized.

So my final result at the button level.

protected void onError(AjaxRequestTarget target, Form form) {
Component feedback = form.get("view:signupfeedback");
target.addComponent(feedback);
}

The form.get("view:signupfeedback") seems fragile to me but I guess in
this case its general enough that it won't break as long as I put my
feedback panel at the top level.

Tips/suggestions welcome but its working now, thanks for the
direction, it made my day-

J

On Fri, Dec 4, 2009 at 12:16 PM, Igor Vaynberg  wrote:
> does your button also properly implement onerror() ?
>
> -igor
>
> On Fri, Dec 4, 2009 at 11:35 AM, John Armstrong  wrote:
>> The button itself lives in my ButtonBar class and the buttons
>> themselves are extensions of AjaxFallbackButtons
>>
>> public class AjaxWizardButtonBar extends WizardButtonBar
>>
>> public abstract class AjaxWizardButton extends AjaxFallbackButton
>>
>> The buttonbar class has an onSubmit method that knows when things are
>> good or bad (confirmed in a non-AJAX context) but when I run as AJAX
>> enabled (enabling javascript) onSubmit never fires.
>>
>> John-
>>
>>
>> On Fri, Dec 4, 2009 at 9:00 AM, Igor Vaynberg  
>> wrote:
>>> where is the code of the ajax button that submits the step?
>>>
>>> -igor
>>>
>>> On Fri, Dec 4, 2009 at 7:08 AM, John Armstrong  
>>> wrote:
>>>> Still working on this darn sign-up form in my spare time. I currently
>>>> can not get feedback to show up. If I disable javascript it shows up
>>>> but using ajax it does not.
>>>>
>>>> In my WizardStep I have the code to add the feedback panel to the
>>>> target as a placeholder. (confirmed, its in the DOM hidden). Adding
>>>> feedback panel to a RadioGroup:
>>>>
>>>> ===
>>>> private final class SelectPlan extends WizardStep implements
>>>> IDynamicWizardStep {
>>>>
>>>> group.setRequired(true);
>>>> final FeedbackPanel feedback = new FeedbackPanel("feedback");
>>>> feedback.setOutputMarkupId(true);
>>>> feedback.setOutputMarkupPlaceholderTag(true);
>>>> if(target != null){
>>>>    target.addComponent(feedback);
>>>> }
>>>> group.add(feedback);
>>>> ===
>>>>
>>>> But on submit I still get this in my dev log
>>>> WARN  - WebSession                 - Component-targetted feedback
>>>> message was left unrendered. This could be because you are missing a
>>>> FeedbackPanel on the page.  Message: [FeedbackMessage message = "Field
>>>> 'planselection' is required.", reporter = planselection, level =
>>>> ERROR]
>>>>
>>>> What simple thing am I missing?
>>>>
>>>> John-
>>>>
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>
>>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax Wizard and feedback

2009-12-04 Thread John Armstrong
The button itself lives in my ButtonBar class and the buttons
themselves are extensions of AjaxFallbackButtons

public class AjaxWizardButtonBar extends WizardButtonBar

public abstract class AjaxWizardButton extends AjaxFallbackButton

The buttonbar class has an onSubmit method that knows when things are
good or bad (confirmed in a non-AJAX context) but when I run as AJAX
enabled (enabling javascript) onSubmit never fires.

John-


On Fri, Dec 4, 2009 at 9:00 AM, Igor Vaynberg  wrote:
> where is the code of the ajax button that submits the step?
>
> -igor
>
> On Fri, Dec 4, 2009 at 7:08 AM, John Armstrong  wrote:
>> Still working on this darn sign-up form in my spare time. I currently
>> can not get feedback to show up. If I disable javascript it shows up
>> but using ajax it does not.
>>
>> In my WizardStep I have the code to add the feedback panel to the
>> target as a placeholder. (confirmed, its in the DOM hidden). Adding
>> feedback panel to a RadioGroup:
>>
>> ===
>> private final class SelectPlan extends WizardStep implements
>> IDynamicWizardStep {
>>
>> group.setRequired(true);
>> final FeedbackPanel feedback = new FeedbackPanel("feedback");
>> feedback.setOutputMarkupId(true);
>> feedback.setOutputMarkupPlaceholderTag(true);
>> if(target != null){
>>    target.addComponent(feedback);
>> }
>> group.add(feedback);
>> ===
>>
>> But on submit I still get this in my dev log
>> WARN  - WebSession                 - Component-targetted feedback
>> message was left unrendered. This could be because you are missing a
>> FeedbackPanel on the page.  Message: [FeedbackMessage message = "Field
>> 'planselection' is required.", reporter = planselection, level =
>> ERROR]
>>
>> What simple thing am I missing?
>>
>> John-
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Ajax Wizard and feedback

2009-12-04 Thread John Armstrong
When I click next in the wizard and have not selected an item from the
RadioGroup.

J

On Fri, Dec 4, 2009 at 7:26 AM, Martin Makundi
 wrote:
> When does the error occur?
>
> **
> Martin
>
> 2009/12/4 John Armstrong :
>> Still working on this darn sign-up form in my spare time. I currently
>> can not get feedback to show up. If I disable javascript it shows up
>> but using ajax it does not.
>>
>> In my WizardStep I have the code to add the feedback panel to the
>> target as a placeholder. (confirmed, its in the DOM hidden). Adding
>> feedback panel to a RadioGroup:
>>
>> ===
>> private final class SelectPlan extends WizardStep implements
>> IDynamicWizardStep {
>>
>> group.setRequired(true);
>> final FeedbackPanel feedback = new FeedbackPanel("feedback");
>> feedback.setOutputMarkupId(true);
>> feedback.setOutputMarkupPlaceholderTag(true);
>> if(target != null){
>>    target.addComponent(feedback);
>> }
>> group.add(feedback);
>> ===
>>
>> But on submit I still get this in my dev log
>> WARN  - WebSession                 - Component-targetted feedback
>> message was left unrendered. This could be because you are missing a
>> FeedbackPanel on the page.  Message: [FeedbackMessage message = "Field
>> 'planselection' is required.", reporter = planselection, level =
>> ERROR]
>>
>> What simple thing am I missing?
>>
>> John-
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Ajax Wizard and feedback

2009-12-04 Thread John Armstrong
Still working on this darn sign-up form in my spare time. I currently
can not get feedback to show up. If I disable javascript it shows up
but using ajax it does not.

In my WizardStep I have the code to add the feedback panel to the
target as a placeholder. (confirmed, its in the DOM hidden). Adding
feedback panel to a RadioGroup:

===
private final class SelectPlan extends WizardStep implements
IDynamicWizardStep {

group.setRequired(true);
final FeedbackPanel feedback = new FeedbackPanel("feedback");
feedback.setOutputMarkupId(true);
feedback.setOutputMarkupPlaceholderTag(true);
if(target != null){
target.addComponent(feedback);
}
group.add(feedback);
===

But on submit I still get this in my dev log
WARN  - WebSession - Component-targetted feedback
message was left unrendered. This could be because you are missing a
FeedbackPanel on the page.  Message: [FeedbackMessage message = "Field
'planselection' is required.", reporter = planselection, level =
ERROR]

What simple thing am I missing?

John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard and confirmation screens

2009-12-02 Thread John Armstrong
Found my problem. I needed to be using a DynamicWizardModel, not a
WizardModel. This lets me add the steps as required and therefore get
access to the version of the model at that stage of the process.

I'd done this before, just had to paw through my personal svn to find
how I implemented it.

Yes, it was a 'Doh!' moment.

Tx-
John-

On Mon, Nov 30, 2009 at 7:21 AM, John Armstrong  wrote:
> I believe my models are dynamic and self-contained. For example one is
> a Serviceorder that lives in the net.pnc.model.Serviceorder class. I
> have one instance of this in my wizard that is shared between all
> screens. All properties of Serviceorder are private to Serviceorder
> and accessed via getters/setters. So for example:
>
> add(new TextField("email", new PropertyModel(theOrder, "email")));
>
> where 'theOrder' is the wizard scoped instance of a Serviceorder.
>
> That seems correct to me, can you confirm?
>
> I see in the wicket examples project there is a Wizard that uses a
> StaticContentStep for just this case. This leads me to believe that
> the only way to accomplish this task is to do the same and basically
> wrap that entire last step into the properties file and feed it the
> model? Feels wrong to me..
>
> John-
>
> On Mon, Nov 30, 2009 at 3:07 AM, bgooren  wrote:
>>
>> Sounds like you are using static models instead of dynamic models.
>>
>> E.g. if you use Model.of("test"), the model is essentialy self-contained.
>> Whereas if you have a property called "value" in your wizard and you use
>> new PropertyModel( Wizard.this, "value" )
>> , the model will depend on the value of the "value" property.
>>
>> Bas
>>
>>
>> John Armstrong-3 wrote:
>>>
>>> It may just be late and I am missing the obvious but..
>>>
>>> I have a wizard. The last step needs to be a confirmation step however
>>> it is constructed when added to the WizardModel in the Wizard
>>> constructor and at this stage all of the backing models are empty
>>> since, well, the user hasn't done anything.
>>>
>>> This means when I access models on the confirmation step all of the
>>> model data is empty (it was built by wicket earlier in the process).
>>>
>>> What am I missing? This is a common use pattern so I am doing
>>> something wrong since obviously the form has the data as back/forth
>>> show it just fine. The only work-around I can think of is to not add
>>> this step and then insert this step at the end myself (once the
>>> objects are populated). Seems hacky though.
>>>
>>> Tx
>>> John-
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context: 
>> http://old.nabble.com/Wizard-and-confirmation-screens-tp26570806p26572871.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard and confirmation screens

2009-11-30 Thread John Armstrong
I believe my models are dynamic and self-contained. For example one is
a Serviceorder that lives in the net.pnc.model.Serviceorder class. I
have one instance of this in my wizard that is shared between all
screens. All properties of Serviceorder are private to Serviceorder
and accessed via getters/setters. So for example:

add(new TextField("email", new PropertyModel(theOrder, "email")));

where 'theOrder' is the wizard scoped instance of a Serviceorder.

That seems correct to me, can you confirm?

I see in the wicket examples project there is a Wizard that uses a
StaticContentStep for just this case. This leads me to believe that
the only way to accomplish this task is to do the same and basically
wrap that entire last step into the properties file and feed it the
model? Feels wrong to me..

John-

On Mon, Nov 30, 2009 at 3:07 AM, bgooren  wrote:
>
> Sounds like you are using static models instead of dynamic models.
>
> E.g. if you use Model.of("test"), the model is essentialy self-contained.
> Whereas if you have a property called "value" in your wizard and you use
> new PropertyModel( Wizard.this, "value" )
> , the model will depend on the value of the "value" property.
>
> Bas
>
>
> John Armstrong-3 wrote:
>>
>> It may just be late and I am missing the obvious but..
>>
>> I have a wizard. The last step needs to be a confirmation step however
>> it is constructed when added to the WizardModel in the Wizard
>> constructor and at this stage all of the backing models are empty
>> since, well, the user hasn't done anything.
>>
>> This means when I access models on the confirmation step all of the
>> model data is empty (it was built by wicket earlier in the process).
>>
>> What am I missing? This is a common use pattern so I am doing
>> something wrong since obviously the form has the data as back/forth
>> show it just fine. The only work-around I can think of is to not add
>> this step and then insert this step at the end myself (once the
>> objects are populated). Seems hacky though.
>>
>> Tx
>> John-
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Wizard-and-confirmation-screens-tp26570806p26572871.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wizard and confirmation screens

2009-11-30 Thread John Armstrong
It may just be late and I am missing the obvious but..

I have a wizard. The last step needs to be a confirmation step however
it is constructed when added to the WizardModel in the Wizard
constructor and at this stage all of the backing models are empty
since, well, the user hasn't done anything.

This means when I access models on the confirmation step all of the
model data is empty (it was built by wicket earlier in the process).

What am I missing? This is a common use pattern so I am doing
something wrong since obviously the form has the data as back/forth
show it just fine. The only work-around I can think of is to not add
this step and then insert this step at the end myself (once the
objects are populated). Seems hacky though.

Tx
John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread John Armstrong
Totally divergent now but its an interesting topic.

We segment our Designers, HTML implementors and Java developers. Thats
probably the key difference.

Our designers work in photoshop or illustrator to pretty exacting
requirements. This lets us contract out design work to a variety of
firms specific to the task/project and they don't have to concern
themselves with our requirements. Lots cheaper for us and at the end
of the 'Creative Process' we are usually very locked on what is going
to be implemented, how it will look and how it all interacts.

We then have a stable of devs around the world who convert the layered
Photoshop document to CSS very cheaply and very quickly and know how
to work to our exact requirements.

We usually dismiss the entire design/html team after the initial
delivery which is often months before the project is completed. We
just don't need them for that project after that stage.

For us I've just found it cheaper and more efficient to entirely
separate these teams and thats actually a big reason I picked wicket.
It lets me do that very easily. $5k for the design process, $200 to
convert it to HTML and a month  or two of coding by a single developer
and you launch, its very assembly line and predictable for me.

So I think its a workflow diff. If your Designer is actually a really
solid hybrid Designer/CSS Person you can get a good workflow going but
I find them an expensive luxury that I (in my business) can't afford
anymore.

John-

On Tue, Oct 27, 2009 at 9:21 PM, Igor Vaynberg  wrote:
> really? because we have quiet the opposite experience.
>
> we take a wireframe prototype, build it, and have the designer go in
> afterwards and pretty it up. with only a couple of hours of
> wicket-related training the designers know what to touch and what not
> to touch.
>
> -igor
>
> On Tue, Oct 27, 2009 at 9:15 PM, John Armstrong  wrote:
>> Its amazing what designers can screw up :)
>>
>> Design can have a huge impact on code. This peaceful co-existence can
>> really only occur if you let the designers go first. If you start with
>> wicket you will either A) tell your designers to go to h*ll daily or
>> B) spend hours and hours re-factoring to meet their 'whims'.
>>
>> The separation of html/code is wonderful in wicket and a key reason I
>> use it and advocate for it but its no substitute for good planning and
>> a 'design first' mentality.
>>
>> John-
>>
>> On Tue, Oct 27, 2009 at 8:18 PM, Dave B  wrote:
>>
>>> While my Wicket usage is very basic at the stage, one of the
>>> attractive parts is the code and logic is completely separate to the
>>> layout.  So your designers can do all the fine tuning and magic
>>> without screwing up your work.
>>>
>>> Cheers,
>>> Dave
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread John Armstrong
Its amazing what designers can screw up :)

Design can have a huge impact on code. This peaceful co-existence can
really only occur if you let the designers go first. If you start with
wicket you will either A) tell your designers to go to h*ll daily or
B) spend hours and hours re-factoring to meet their 'whims'.

The separation of html/code is wonderful in wicket and a key reason I
use it and advocate for it but its no substitute for good planning and
a 'design first' mentality.

John-

On Tue, Oct 27, 2009 at 8:18 PM, Dave B  wrote:

> While my Wicket usage is very basic at the stage, one of the
> attractive parts is the code and logic is completely separate to the
> layout.  So your designers can do all the fine tuning and magic
> without screwing up your work.
>
> Cheers,
> Dave

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread John Armstrong
Oh and don't use an automated tool. It'll add far too much extraneous
noise to your files that will complicate the CSS skinning you are
after later. Hand code it and then move it around in CSS by hand.

This is my opinion. I know our CSS team hates it when someone sends
them something done in a design app since it breaks their standard
toolsets (browser tweaks etc). Its inefficient but thats the tax to be
paid for get ahead of the design process.

Another alternative that I have used is to design my UI in a tool like
iPlotz (awesome btw), exporting the result and sending that off to
HTML/CSS implementation @ RentACoder. It lets you 'design' a UI and
gets you 'logically designed html' without the expense of the designer
off the bat. Figure a few days to develop the mock-up and a week +
$100 to implement the HTML/CSS and get you developing in Wicket
without the CSS headaches. This may fit your process much better. Drop
me a line off the list if you want a list of great RAC CSS folks that
I use regularly.

J

On Tue, Oct 27, 2009 at 10:27 AM, John Armstrong  wrote:
> It makes sense what you are asking and it can be done. If you
> logically construct your div structure and liberally apply divs/spans
> so that your eventually CSS implementor can uniquely address any
> element on the page.
>
> More spans/divs will be better. For example, if you have an area of
> the page that has
>
> Firstname Lastname
> Address
> city, state, postal code
>
> my advice would be to wrap it all up with unique id's
>
> div
>  div firstname /div div lastname /div
>  div address /div
>  div city /div div state /div div postal /div
> /div
>
> This gives your designer a fighting chance of manipulating the
> required page elements via CSS later. You can always strip unused tags
> later.
>
> John-
>
> On Tue, Oct 27, 2009 at 10:10 AM, Ashley Aitken  wrote:
>>
>> Thanks Martin and John.
>>
>> I realise that most projects start with Web/GUI storyboards and perhaps even
>> fully graphically designed pages and then add the dynamic stuff.  However, I
>> think my situation is somewhat the reverse. I want to design the "logical
>> interface" myself, header, footers, navigation, and page contents, the
>> hierarchy of contents including any text, but then have the graphic designer
>> "make it beautiful."
>>
>> I'm hoping to make it possible for them to do this with a CSS file, and some
>> images (logos, buttons, etc.) I am wishing to know what I can do in the HTML
>> pages I construct to make this most possible, easy, efficient etc. I don't
>> mind the fact that when I am developing the app my pages will not look
>> right, hopefully they will be logically clear, in fact I would prefer that,
>> so I can focus on the logical interface rather than design specifics.
>>
>> As I mentioned, I think of it as creating the pages but leaving the CSS file
>> empty (or at most some basic default).  Does that make sense?  Sorry if I am
>> not explaining myself clearly.
>>
>> Thanks,
>> Ashley.
>>
>> --
>> Ashley Aitken
>> Perth, Western Australia
>> mrhatken at mac dot com
>> Skype Name: MrHatken (GMT + 8 Hours!)
>>
>>
>>
>>
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread John Armstrong
It makes sense what you are asking and it can be done. If you
logically construct your div structure and liberally apply divs/spans
so that your eventually CSS implementor can uniquely address any
element on the page.

More spans/divs will be better. For example, if you have an area of
the page that has

Firstname Lastname
Address
city, state, postal code

my advice would be to wrap it all up with unique id's

div
  div firstname /div div lastname /div
  div address /div
  div city /div div state /div div postal /div
/div

This gives your designer a fighting chance of manipulating the
required page elements via CSS later. You can always strip unused tags
later.

John-

On Tue, Oct 27, 2009 at 10:10 AM, Ashley Aitken  wrote:
>
> Thanks Martin and John.
>
> I realise that most projects start with Web/GUI storyboards and perhaps even
> fully graphically designed pages and then add the dynamic stuff.  However, I
> think my situation is somewhat the reverse. I want to design the "logical
> interface" myself, header, footers, navigation, and page contents, the
> hierarchy of contents including any text, but then have the graphic designer
> "make it beautiful."
>
> I'm hoping to make it possible for them to do this with a CSS file, and some
> images (logos, buttons, etc.) I am wishing to know what I can do in the HTML
> pages I construct to make this most possible, easy, efficient etc. I don't
> mind the fact that when I am developing the app my pages will not look
> right, hopefully they will be logically clear, in fact I would prefer that,
> so I can focus on the logical interface rather than design specifics.
>
> As I mentioned, I think of it as creating the pages but leaving the CSS file
> empty (or at most some basic default).  Does that make sense?  Sorry if I am
> not explaining myself clearly.
>
> Thanks,
> Ashley.
>
> --
> Ashley Aitken
> Perth, Western Australia
> mrhatken at mac dot com
> Skype Name: MrHatken (GMT + 8 Hours!)
>
>
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket HTML before graphics design with CSS ...

2009-10-27 Thread John Armstrong
I wouldn't do it. The churn of implementing a UI before its designed is huge.

In my opinion your better off watching cartoons for the month it takes
the UI to be developed because you'll most likely waste that month
trying to adapt your UI implementation to the reality of what is
developed by the 'designer'. Unless you really have a solid UI concept
it can be more efficient to wait.

You can use the time to build your backend business logic, your
datastore, your workflow maps and (gasp) assist with the UI
development by lending an engineering perspective etc etc. For us
Wicket is the end of the process, not the beginning.

That may be controversial but it works well for us.

John-

On Tue, Oct 27, 2009 at 9:50 AM, Martin Makundi
 wrote:
> I would just give the artist the freedom to do what ever he wants...
> and then just refactor what's necessary afterwards.
>
> **
> Martin
>
> 2009/10/27 Ashley Aitken :
>>
>> Hi All,
>>
>> Just a quick question.
>>
>> Can someone please provide some pointers to Wicket-specific or general CSS
>> information on how best to produce Web pages (dynamic pages generated with
>> Wicket) that a graphics designer can then come in and produce appropriate
>> graphics and CSS style sheets for?
>>
>> I would like to be able to write a Wicket app before the graphic design and
>> detailed layout of the site is done. Of course, some hierarchical
>> organisation of content will be specified but exact locations of items will
>> not. I'm assuming I'd just use lots of s and CSS classes or similar?
>>
>> I'm no expert in CSS but I've seen what pages look like when a CSS style
>> sheet is missing and assume I will be generating something like that with
>> Wicket.  In this case, I guess I could just generate the HTML files by hand,
>> or would people suggest some I use some tool?
>>
>> Thanks for any assistance, pointers, suggestions.
>>
>> Cheers,
>> Ashley.
>>
>>
>> --
>> Ashley Aitken
>> Perth, Western Australia
>> Skype/iChat: MrHatken (GMT + 8hrs!)
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Advice Needed: odd BookmarkablePage problem

2009-10-25 Thread John Armstrong
Background: We have a wicket based site (http://www.pnc.net/) that is
a single page and does all of its work via Ajax.

Use Case: We are distributing Adobe PDF based forms to customers for
signup. Customers will fill out the form, click submit and acrobat
will post the form to our website.

The Problem: The url needs to be bookmarkable so Acrobat can find it.
it also needs to look human so people don't get frightened.

The Non-working solution: Since the entire site is just one page I
have taken the main body panel and special cased it:

if(this.getWebRequestCycle().getWebRequest().getPath().equals("SecureSignup")){
 centerBox = new CollectSignupResponsePanel("centerbox");
} else {
 centerBox = new PublicHomePanel("centerbox");
}

I then created a mounted URL : mountBookmarkablePage("SecureSignup",
PublicBasePage.class);

And voila, it answers on http://www.pnc.net/SecureSignup and displays
my CollectSignupResponsePanel.

The Problem: The site now thinks this is the only url and redirects
users to /SecureSignup even when they hit the root path.

So my question is, how can I mix these strategies and keep this single
page format?

Thanks, really stuck on this minor thing-
J

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: vps hosting for wicket app

2009-10-07 Thread John Armstrong
I never found VPS to be cost effective (for my needs). For $100/month
or so I have a core 2-duo dedicated box with 4GB RAM/120GB disk and
10mb/s throughput that can host 2-3 virtual machines of my own
devising or just be a bare metal server.

Lots more maintenance overhead but the flexibility, speed and
consistent cost I found to be worth the extra funds and time vs a VPS.

John-

On Wed, Oct 7, 2009 at 7:34 AM, Jeremy Thomerson
 wrote:
> The original request was for
>
> deploy a wicket app for alpha and beta testing at a
>> minimum price
>>
>
> which means that it doesn't need to scale to "racks and racks of" servers.
> The subject line also asks about "VPS" which I assume to still mean virtual
> private server.  That's why but Luther and I gave examples of very
> minimal-cost VPS solutions.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Wed, Oct 7, 2009 at 9:27 AM,  wrote:
>
>> Hello Luther, I was very much impressed by David's article. A very nice
>> presentation of numbers and charts. Unfortunately, I know it is Xen
>> hypervisor and cloud computing and all the fancy technogeek but I have to
>> dumb-it-down and ask how useful is 360MB of memory? Is it safe to say 500MB
>> of cloud memory does not equal 500MB of real-world memory? How does this
>> scale to what is normally expected in say an in-house datacenter composed of
>> racks and racks of 1Us and 2Us? --David.
>>
>> Luther Baker  wrote ..
>> > Linode
>> > - my personal favorite,
>> > http://journal.dedasys.com/2008/11/24/slicehost-vs-linode
>> >
>> > Slicehost
>> > - good reputation
>> >
>> > ServInt
>> > - great experience, great service, very fast boxes, a bit pricey
>> >
>> > A2 Hosting
>> > - very inexpensive
>> >
>> > AWS (Amazon E2)
>> > - easy setup and teardown and full image control
>> >
>> > -Luther
>> >
>> >
>> >
>> > On Tue, Oct 6, 2009 at 6:13 PM, Jeremy Thomerson
>> > wrote:
>> >
>> > > I've used redwoodvirtual in the past and it was always decent service.
>>  I'm
>> > > not affiliated with them, but had a LVS there for a couple years for
>> this
>> > > sort of thing.
>> > >
>> > > --
>> > > Jeremy Thomerson
>> > > http://www.wickettraining.com
>> > >
>> > >
>> > >
>> > > On Tue, Oct 6, 2009 at 1:37 PM, Fernando Wermus
>> > > wrote:
>> > >
>> > > > Hi all,     I need to deploy a wicket app for alpha and beta testing
>> at a
>> > > > minimum price. Could you reccommend some vpn hosting?
>> > > >
>> > > > thanks in advance
>> > > >
>> > > > --
>> > > > Fernando Wermus.
>> > > >
>> > > > www.linkedin.com/in/fernandowermus
>> > > >
>> > >
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How do you achieve persistency

2009-10-06 Thread John Armstrong
I use Cayenne (http://cayenne.apache.org/). The GUI tool eliminates
any requirement to deal with XML and maps all relationships for you.
You can also tweak the XML but its not required or recommended.

My workflow is to build my database directly in SQL and then point
Cayenne at it and get my persistence layer generated automatically
which creates my model and all relationships by following the foreign
key constraints(great for legacy projects).

When I modify my table structure I tell Cayenne to migrate it and it
gives me a list of changes with the option of updating the DB (model
wins) or updating the model (DB wins) for each change. Its fantastic
for all of the tweaking that goes on in a dev cycle (eg: "oops, forget
I needed a table that now has to join to this other table.. No
problem." Click click done).

Insanely great user community and Cayenne has, in my eyes, a very
Wicket like dev philosophy that favors convenience and developer
productivity over other considerations.

Caveat: You can do all of this with Hibernate, I always personally
just found Hibernate a bit more complex and 'get in my way' then I
needed.

Try the quick tutorial they provide and you'll quickly know if its for
you or not.
John-

On Tue, Oct 6, 2009 at 2:34 AM, Peter Arnulf Lustig  wrote:
> What's the fast and easy way?
>
> I am asking because of a lot of trouble with hibernate.
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to embed one wicket app into another

2009-09-10 Thread John Armstrong
This was my point, many times people 'assume' they are individual apps
when they are not. I just wanted to highlight that this should be
investigated before the assumption was made.

For example, I just completed an intranet project where it was
'assumed' that there were 3 different systems. WebHelpDesk, FileMaker
Pro and the Wicket based portal. Truly, 3 disparate systems and
technology platforms. Everyone assumed this but it turns out that WHD
can run on top of mysql and FMP can access mysql via ODBC and Wicket,
well, its wicket.

Result of challenging this assumption is that this client has a
single-sign-on across all apps for their users with shared account,
user and support ticket info.

So I was just challenging the assumption. I think its healthy.
John-

On Thu, Sep 10, 2009 at 11:52 AM, Martin Makundi
 wrote:
>> Databases have this cool feature called 'access control' ;) Its fairly
>> trivial to set up the db to take connections from both apps and share
>> the live data.
>
> Yes but if we assume that the applications are separate, i.e., they
> cannot be merged.
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to embed one wicket app into another

2009-09-10 Thread John Armstrong
Databases have this cool feature called 'access control' ;) Its fairly
trivial to set up the db to take connections from both apps and share
the live data.

The only time this hurts is if you need to share non-wicket content
(image galleries or pdfs that users upload or something) since NFS is
not quite as easy to manage as mysql perms etc.

But every app and environment is different and this may not be
possible, I just proposed this as its a method that people miss
oftentimes.

John-

On Thu, Sep 10, 2009 at 11:37 AM, Martin Makundi
 wrote:
> Well.. that doesn't help if the other app is on other server and other
> db and live data should be viewed from the other app.. in that sad
> case you do need iframe.
>
> **
> Martin
>
> 2009/9/10 John Armstrong :
>> My vote would be to create a common jar package that contains the
>> relevant panels along with their associated business logic, DAO/ORM
>> etc.
>>
>> Then you can use that jar package in both of your apps seamlessly
>> assuming there are not more complex interactions going on. We use this
>> paradigm on our apps and it works very nicely.
>>
>> John-
>>
>> On Thu, Sep 10, 2009 at 12
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to embed one wicket app into another

2009-09-10 Thread John Armstrong
My vote would be to create a common jar package that contains the
relevant panels along with their associated business logic, DAO/ORM
etc.

Then you can use that jar package in both of your apps seamlessly
assuming there are not more complex interactions going on. We use this
paradigm on our apps and it works very nicely.

John-

On Thu, Sep 10, 2009 at 12:38 AM, Eyal Golan  wrote:
> I go with Martin, use iFrame.
> This is what we do.
> We have two Wicket apps, running on the same machine, the web.xml triggers
> two different Wicket apps. Why you ask? an old and a VERY BAD decision.
> In order to navigate from one app to the other we actually use URLs. In
> order to show page from app B in the A app (the main), we show it in iframe
> and calling URLs.
> We had to implement a very bad security patch.
>
> One of my main assignments currently, is to merge the two applications back
> to one.
>
> Eyal Golan
> egola...@gmail.com
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>
> P  Save a tree. Please don't print this e-mail unless it's really necessary
>
>
> On Thu, Sep 10, 2009 at 7:33 AM, Martin Makundi <
> martin.maku...@koodaripalvelut.com> wrote:
>
>> Use Iframe
>>
>> **
>> Martin
>>
>> 2009/9/10 Quan Zhou :
>> > sorry, i forget to say  this two apps are installed in different
>> servers.each
>> > is a single standalone app.
>> > so i think i can't embed panelB into PageA.
>> >
>> > On Thu, Sep 10, 2009 at 11:58 AM, Jeremy Thomerson <
>> > jer...@wickettraining.com> wrote:
>> >
>> >> If you have created good self-contained components, you should be able
>> to
>> >> just embed  into 
>> >>
>> >> --
>> >> Jeremy Thomerson
>> >> http://www.wickettraining.com
>> >>
>> >>
>> >>
>> >> On Wed, Sep 9, 2009 at 10:54 PM, Quan Zhou 
>> wrote:
>> >>
>> >> > Hi.I've developed my simple forum with Wicket(we call it A), and I
>> want
>> >> to
>> >> > embed it into another website (B) developed by Wicket.
>> >> > like, the left panel and the navigator panel are both from B, and the
>> >> right
>> >> > panel is from A,
>> >> > I dont want to use Frame because my page will be complicated.
>> >> >
>> >> > Does anyone have this kind of experience?
>> >> >
>> >> > Thanks in advance and I hope you understand my question.
>> >> >
>> >>
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help on wizard solution...

2009-09-08 Thread John Armstrong
I've done this in both DynamicWizards as well as regular wizards and
can pass some code along if you need it.

My rule of thumb is "If you can gather all of the content together for
your wizard use a regular wizard (eg: non-dependent configuration
directives), if future wizard steps can change based on a specific
wizard step then use a DynamicWizard (eg: If you pick A on Step 5 then
Step 6 shows D, otherwise Step 6 shows F"

I have found that controlling backwards and forwards navigation in a
dynamic wizard very difficult since you are responsible for all of the
logic.

John-

On Tue, Sep 8, 2009 at 8:30 AM, Eyal Golan wrote:
> I had some experience with what you need so i hope I could help you if you
> need something.
> I implemented the dynamic wizard and it was actually lots of fun :)
>
>
> Eyal Golan
> egola...@gmail.com
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>
> P  Save a tree. Please don't print this e-mail unless it's really necessary
>
>
> On Tue, Sep 8, 2009 at 5:51 PM, Muro Copenhagen wrote:
>
>> Thanks Pedro and Peter,
>>
>> I'll try the DynamicWizardModel, it seems as the right choice.
>>
>> But a quick google search didn't provide any example, so i must try making
>> it work.
>>
>> Hopefully it will...
>>
>> Best Regards
>> Muro
>>
>> On Tue, Sep 8, 2009 at 4:35 PM, Pedro Santos  wrote:
>>
>> > I think the wizard is the correct approach... You can try use
>> > DynamicWizardModel on your wizard.
>> >
>> > javadoc:
>> >  * Wizard model that is specialized on dynamic wizards. Unlike the
>> default,
>> > static
>> >  * {...@link WizardModel wizard model}, this model isn't very intelligent,
>> but
>> > rather delegates much
>> >  * of the work and knowledge to the {...@link IDynamicWizardStep dynamic
>> > wizard
>> > steps} it uses.
>> >
>> > on IDynamicWizardStep you can implement the ordering and navegation rules
>> > based on database and page params.
>> >
>> > On Tue, Sep 8, 2009 at 11:20 AM, Muro Copenhagen > > >wrote:
>> >
>> > > Hi,
>> > >
>> > > I could use some input on how to solve a problem i have.
>> > >
>> > > In my web-app i have some cases, and each cases have several questions.
>> > >
>> > > And i want the user to flow between the pages in a wizard manner like
>> the
>> > > example in:
>> > > http://www.wicket-library.com/wicket-examples/wizard/
>> > >
>> > > The only problem i have is that all the questions are database driven,
>> > and
>> > > is not a fixed set of pages.
>> > >
>> > > But the wizard example is in the link is fixed.
>> > >
>> > > How would i make a dynamic database driven wizard, where the content of
>> > the
>> > > wizard pages are database driven?
>> > >
>> > > Or is the wizard approach not the right way of doing it...?
>> > >
>> > > What i want to achieve is a user browsing through several question in
>> > case,
>> > > with the option of moving backwards between the question.
>> > >
>> > > Any input from anyone ...?
>> > >
>> > > Best Regards
>> > > Muro
>> > >
>> >
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ajax indicator for all ajax requests blocking page

2009-09-08 Thread John Armstrong
I did this in pure Javascript for a recent project. You can insert
this code into your base page or whatnot. Its basically a hidden div
that you hide/show and you can style it however. You can see it in
action at http://www.pnc.net/. In my case its just a quick
'Loading...' text blurb in the top right of the window. I stole this
from 
:http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html

html:
---
Loading ...

js:
---

 window.onload = setupFunc;

 function setupFunc() {
   document.getElementsByTagName('body')[0].onclick = clickFunc;
   hideBusysign();
 Wicket.Ajax.registerPreCallHandler(showBusysign);
 Wicket.Ajax.registerPostCallHandler(hideBusysign);
 Wicket.Ajax.registerFailureHandler(hideBusysign);
 }

 function hideBusysign() {
   document.getElementById('bysy_indicator').style.display ='none';
 }

 function showBusysign() {
   document.getElementById('bysy_indicator').style.display ='inline';
 }

 function clickFunc(eventData) {
   var clickedElement = (window.event) ? event.srcElement : eventData.target;
   if (clickedElement.tagName.toUpperCase() == 'BUTTON' ||
clickedElement.tagName.toUpperCase() == 'A' ||
clickedElement.parentNode.tagName.toUpperCase() == 'A'
 || (clickedElement.tagName.toUpperCase() == 'INPUT' &&
(clickedElement.type.toUpperCase() == 'BUTTON' ||
clickedElement.type.toUpperCase() == 'SUBMIT'))) {
 showBusysign();
   }
 }




On Tue, Sep 8, 2009 at 8:13 AM, tubin gen wrote:
> I am looking for some indicator for any ajax requests , I dont want to add
> the behaviour for every component with ajax behaviour , I want something
> which detects for ajax request and starts the indicator blocking the page
> for further user actions and vanishess after  response is rendered is there
> any?
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: jetty hot deployment

2009-08-09 Thread John Armstrong
I use eclipse.

Step 1: Put your rebel.xml in your classpath
Step 2: Add this to your JVM args -Drebel.log=true ${javarebel_args}

The logs will say JavaRebel: Starting logging to file:
/Users/jarmstrong/Downloads/javarebel-2.0.1/JavaRebel.log and you know
your in the right place. Whenever it reloads a class a message is
printed to the log (or log and console in eclipse).

John-

On Sun, Aug 9, 2009 at 9:23 AM, Russell
Simpkins wrote:
>
> What do you use for a dev environment? I tried to get that working in a jboss 
> env with no luck. JavaRebel sounded pretty cool. I was bummed it didn't work.
> Russ
>
> 
>> Date: Sun, 9 Aug 2009 09:17:06 -0700
>> Subject: Re: jetty hot deployment
>> From: siber...@siberian.org
>> To: users@wicket.apache.org
>>
>> I use JavaRebel in my dev environment and its solved almost all of my
>> hot-swap issues. I recommend it highly.
>>
>> John-
>>
>> On Sun, Aug 9, 2009 at 2:45 AM, Martijn
>> Dashorst wrote:
>>> You need to start the Start class using the debugger. Then it works
>>> with hot swap.
>>>
>>> Martijn
>>>
>>> On Sat, Aug 8, 2009 at 8:26 PM, Anantha Kumaran wrote:
 hi johannes
 i tried using mvn jetty:run

 but i am getting the following error

 Configuring Jetty for project: jqms
 Webapp source directory = E:\Netbeans\MyProjects\maven\jqms\src\main\webapp
 Reload Mechanic: automatic
 web.xml file =
 E:\Netbeans\MyProjects\maven\jqms\src\main\webapp\WEB-INF\web.xml
 Classes = E:\Netbeans\MyProjects\maven\jqms\target\classes
 2009-08-08 23:51:47.251::INFO:  Logging to STDERR via
 org.mortbay.log.StdErrLog
 Context path = /jqms
 Tmp directory =  determined at runtime
 Web defaults = org/mortbay/jetty/webapp/webdefault.xml
 Web overrides =  none
 Webapp directory = E:\Netbeans\MyProjects\maven\jqms\src\main\webapp
 Starting jetty 6.1.14 ...
 2009-08-08 23:51:47.581::INFO:  jetty-6.1.14
 2009-08-08 23:51:48.145::INFO:  No Transaction manager found - if your
 webapp requires one, please configure one.
 2009-08-08 23:51:48.196::WARN:  Failed startup of context
 org.mortbay.jetty.plugin.jetty6pluginwebappcont...@1270107
 {/jqms,E:\Netbeans\MyProjects\maven\jqms\src\main\webapp}
 java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.(ZipFile.java:114)
        at java.util.jar.JarFile.(JarFile.java:133)
        at java.util.jar.JarFile.(JarFile.java:97)
        at
 org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:168)
        at
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1231)
        at
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
        at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
        at
 org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124)
        at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at
 org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
        at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)

  But when i run the application using the start.java file i works perfectly
  and as i stated earlier hot deployment is not working

 On Sat, Aug 8, 2009 at 10:30 PM, Johannes Schneider
 wrote:

> Hi,
>
> I strongly suggest starting Jetty using Maven
>
> mvn jetty:run
>
> I add the following configuration
>
>
>
>
>
>        org.mortbay.jetty
>        maven-jetty-plugin
>
>          1
>          manual
>
>
>
>
>
>
> Reloading is triggered manually from the console. I like that behviour
> (so I can recompile/copy resources without restarting).
>
>
> Regards,
>
> Johannes Schneider
>
>
> Anantha Kumaran wrote:
>> hi
>> currently i am using ant and tomcat server (netbeans) to build my wicket
>> application.
>> The deployment and testing is taking lot of time.so i created a wicket
>> project using
>> the wicket-quickstart archetype.The problem is that i cannot view the
>> changes
>> made by me without restarting the jetty server.
>>
>> then i googled the net and found that i have to add   scanIntervals and
> some
>> other settings.
>> but i donn't know where to add this in the start.java file.
>>
>>
>> it will be helpful if anyone post the modified start.java file which
> suppor

Re: jetty hot deployment

2009-08-09 Thread John Armstrong
I use JavaRebel in my dev environment and its solved almost all of my
hot-swap issues. I recommend it highly.

John-

On Sun, Aug 9, 2009 at 2:45 AM, Martijn
Dashorst wrote:
> You need to start the Start class using the debugger. Then it works
> with hot swap.
>
> Martijn
>
> On Sat, Aug 8, 2009 at 8:26 PM, Anantha Kumaran 
> wrote:
>> hi johannes
>> i tried using mvn jetty:run
>>
>> but i am getting the following error
>>
>> Configuring Jetty for project: jqms
>> Webapp source directory = E:\Netbeans\MyProjects\maven\jqms\src\main\webapp
>> Reload Mechanic: automatic
>> web.xml file =
>> E:\Netbeans\MyProjects\maven\jqms\src\main\webapp\WEB-INF\web.xml
>> Classes = E:\Netbeans\MyProjects\maven\jqms\target\classes
>> 2009-08-08 23:51:47.251::INFO:  Logging to STDERR via
>> org.mortbay.log.StdErrLog
>> Context path = /jqms
>> Tmp directory =  determined at runtime
>> Web defaults = org/mortbay/jetty/webapp/webdefault.xml
>> Web overrides =  none
>> Webapp directory = E:\Netbeans\MyProjects\maven\jqms\src\main\webapp
>> Starting jetty 6.1.14 ...
>> 2009-08-08 23:51:47.581::INFO:  jetty-6.1.14
>> 2009-08-08 23:51:48.145::INFO:  No Transaction manager found - if your
>> webapp requires one, please configure one.
>> 2009-08-08 23:51:48.196::WARN:  Failed startup of context
>> org.mortbay.jetty.plugin.jetty6pluginwebappcont...@1270107
>> {/jqms,E:\Netbeans\MyProjects\maven\jqms\src\main\webapp}
>> java.util.zip.ZipException: error in opening zip file
>>        at java.util.zip.ZipFile.open(Native Method)
>>        at java.util.zip.ZipFile.(ZipFile.java:114)
>>        at java.util.jar.JarFile.(JarFile.java:133)
>>        at java.util.jar.JarFile.(JarFile.java:97)
>>        at
>> org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:168)
>>        at
>> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1231)
>>        at
>> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>>        at
>> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
>>        at
>> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124)
>>        at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>>        at
>> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>>        at
>> org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>>        at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>>        at
>> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>>
>>  But when i run the application using the start.java file i works perfectly
>>  and as i stated earlier hot deployment is not working
>>
>> On Sat, Aug 8, 2009 at 10:30 PM, Johannes Schneider
>> wrote:
>>
>>> Hi,
>>>
>>> I strongly suggest starting Jetty using Maven
>>>
>>> mvn jetty:run
>>>
>>> I add the following configuration
>>>
>>>
>>>  
>>>    
>>>      
>>>        org.mortbay.jetty
>>>        maven-jetty-plugin
>>>        
>>>          1
>>>          manual
>>>        
>>>      
>>>    
>>>  
>>>
>>>
>>> Reloading is triggered manually from the console. I like that behviour
>>> (so I can recompile/copy resources without restarting).
>>>
>>>
>>> Regards,
>>>
>>> Johannes Schneider
>>>
>>>
>>> Anantha Kumaran wrote:
>>> > hi
>>> > currently i am using ant and tomcat server (netbeans) to build my wicket
>>> > application.
>>> > The deployment and testing is taking lot of time.so i created a wicket
>>> > project using
>>> > the wicket-quickstart archetype.The problem is that i cannot view the
>>> > changes
>>> > made by me without restarting the jetty server.
>>> >
>>> > then i googled the net and found that i have to add   scanIntervals and
>>> some
>>> > other settings.
>>> > but i donn't know where to add this in the start.java file.
>>> >
>>> >
>>> > it will be helpful if anyone post the modified start.java file which
>>> support
>>> > the hot deployment
>>> >
>>> >
>>> >
>>> > thanks
>>> > Anantha Kumaran
>>> >
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.4 increases type safety for web applications
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How Wicket's big concepts/objects work together and in what order?

2009-08-06 Thread John Armstrong
This idea of 'just doing it' and a culture of incremental knowledge
attainment is crucial in my book.
I've made a point of building the most trivial webapps I have in wicket. For
example we recently re-did our WISP public homepage (
http://www.valleyinternet.com/) and I used it as an opportunity to learn
more wicket. The page is simple and minor andbarely worthy of 'wicketizing'
but doing something that specifically does -not- have a huge audience and
does -not- have massive features is a great way to learn more without the
pressures of developing a "real" app.
In that case I got to work with GMap2, learned some new ajax interactions
(including some gotchas) and was able to decisively break from my Ant past
and fully embrace Maven. So we got a new homepage but I got to pick up new
techniques that I am now applying to other trivial (and not so trivial)
webapps.

So, DO IT but do it often..

John-

On Thu, Aug 6, 2009 at 5:29 AM, T Ames  wrote:

> I think for most people anyway, you learn by doing.  I would think that by
> now you have a basic understanding to put together a really decent web
> application. There is quite a learning curve, but you do not have to
> understand all of the internals.
>
> I learn more about Wicket each time I do a web app.  I don't think you
> could
> really be a "good" Wicket programmer unless you have several apps under
> your
> belt.  Just go in a DO IT! The understanding will come with experience.
>
>
>
> On Thu, Aug 6, 2009 at 7:54 AM, jWeekend  >wrote:
>
> >
> > David,
> >
> > Jonathan Locke and I have started writing an article describing the
> Wicket
> > architecture (as opposed to the Architecture of A Wicket Application). It
> > will be the document I wish could have found when I had the good fortune
> to
> > come across Wicket in 2007.
> >
> > In the meantime, we have a few articles on the wiki by Dima (pen name
> syl)
> > like
> >
> >
> http://cwiki.apache.org/WICKET/request-cycle-and-request-cycle-processor.html
> > this  that you may find useful.
> >
> > Regards - Cemal
> > jWeekend
> > OO, Java Technologies, Wicket - Training & Consultancy
> > http://jWeekend.com
> >
> >
> >
> > David Chang-5 wrote:
> > >
> > >
> > > Hello, I am learning Wicket now and feel a bit confused by the new
> > > concepts in Wicket regarding how they work together and in what order.
> > >
> > > The big concepts I am talking about include:
> > >
> > > Application
> > > Session
> > > Request
> > > RequestCycle
> > > RequestCycleProcessor
> > > RequestTarget
> > > SessionStore
> > > Request
> > > Response
> > >
> > > Suppose I have a simple page with just one Wicket label. A user
> requests
> > > this page. I would like to know how the above objects/concepts get
> > > involved and in what order.
> > >
> > > If it needs too much description, then forget it. If it does not take
> too
> > > much of your time or you want to refresh yourself by give me an
> > > explanation, I really appreciate it.
> > >
> > > I want to be a good Wicket programmer.
> > >
> > > Thank you!
> > >
> > >
> > >
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> > >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/August-London-Wicket-Event-%28just-a-drink-%29-tp24834574p24845115.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: Firefox, be afraid be very afraid!!!

2009-08-05 Thread John Armstrong
I use both religiously. They make life oh so much better on oh so many
ways..
Anyhow, anyone touching the DOM, JavaScript and CSS should know these tools
IMHO. They really change the way you do webdev.

John-

On Wed, Aug 5, 2009 at 6:57 AM, Jeremy Thomerson
wrote:

> Oh, I use that too.  I couldn't survive without it.  I always use it
> to inspect the DOM and find out just where that weird styling is
> coming from.   :)  But for looking at request/response headers and
> details, I prefer HttpFox.  And if I need to try twiddling with
> requests, TamperData.  A tool for every situation.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Wed, Aug 5, 2009 at 5:47 AM, nino martinez
> wael wrote:
> > I prefer firebug .. :)
> >
> > 2009/8/5 John Armstrong :
> >> Install the web developers toolkit plugin for firefox. Its a must if
> your
> >> doing front-end web development. Among many many many other features it
> lets
> >> you do things like easily disable the cache, javascript etc.
> >> Its a must have IMHO.
> >>
> >> J
> >>
> >> On Tue, Aug 4, 2009 at 7:41 PM, Igor Vaynberg  >wrote:
> >>
> >>> SHIFT-F5 or SHIFT+clicking the refresh button will bypass the cache
> >>> when reloading the page. i use firefox almost exlucisvely as well and
> >>> had this problem happen sometimes to javascript files.
> >>>
> >>> -igor
> >>>
> >>> On Tue, Aug 4, 2009 at 7:31 PM, Ben Tilford
> wrote:
> >>> > It's not Wicket or Firefox its the caching settings (probably on the
> >>> > server). If the cached resources aren't expired the browser is
> supposed
> >>> to
> >>> > use what it has cached.
> >>> >
> >>> > Best to set the far future expires to something really short or 0 in
> >>> > development.
> >>> >
> >>> > On Tue, Aug 4, 2009 at 10:17 PM, Jeremy Thomerson <
> >>> jer...@wickettraining.com
> >>> >> wrote:
> >>> >
> >>> >> Strange - I use FF almost exclusively and have never had this
> problem.
> >>> >>  Did you use something like HttpFox or TamperData to look at the
> >>> >> headers and see if the expiry headers were coming back correctly?
> >>> >>
> >>> >> --
> >>> >> Jeremy Thomerson
> >>> >> http://www.wickettraining.com
> >>> >>
> >>> >>
> >>> >>
> >>> >>
> >>> >> On Tue, Aug 4, 2009 at 9:12 PM, Steve Tarlton
> >>> wrote:
> >>> >> > I just spent the better half of a day WASTED because I use Firefox
> for
> >>> >> > testing my Wicket development. For the life of me, I couldn't
> figure
> >>> out
> >>> >> why
> >>> >> > I couldn't get a simple data picker to center. I wouldn't call
> myself
> >>> an
> >>> >> > expert at html so I doubted myself. Turns out that Firefox decided
> >>> that
> >>> >> > there is no need to update changes if there is something in cache
> --
> >>> >> WTF!!!
> >>> >> > It wasn't until I got so fed up I tried Internet Explorer and saw
> that
> >>> >> what
> >>> >> > I was doing was working all along. I "exited" Firefox and
> restarted it
> >>> >> and
> >>> >> > still not working. It wasn't until I went in and cleared my
> "private
> >>> >> cache"
> >>> >> > and then visited my app again that it did what it was suppose to
> do. I
> >>> of
> >>> >> > course poked around in Firefox to turn that !...@#$%! cache off but
> the
> >>> only
> >>> >> > thing I found was a setting that would automatically flush it when
> I
> >>> >> > "exited" (not closed) Firefox. I will probably still use it for
> normal
> >>> >> > surfing but unless there is a way to stop it from not updating my
> html
> >>> >> > changes, I will NOT be useing it for Wicket development!
> >>> >> >
> >>> >>
> >>> >>
> -
> >>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>> >>
> >>> >>
> >>> >
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>
> >>>
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Firefox, be afraid be very afraid!!!

2009-08-04 Thread John Armstrong
Install the web developers toolkit plugin for firefox. Its a must if your
doing front-end web development. Among many many many other features it lets
you do things like easily disable the cache, javascript etc.
Its a must have IMHO.

J

On Tue, Aug 4, 2009 at 7:41 PM, Igor Vaynberg wrote:

> SHIFT-F5 or SHIFT+clicking the refresh button will bypass the cache
> when reloading the page. i use firefox almost exlucisvely as well and
> had this problem happen sometimes to javascript files.
>
> -igor
>
> On Tue, Aug 4, 2009 at 7:31 PM, Ben Tilford wrote:
> > It's not Wicket or Firefox its the caching settings (probably on the
> > server). If the cached resources aren't expired the browser is supposed
> to
> > use what it has cached.
> >
> > Best to set the far future expires to something really short or 0 in
> > development.
> >
> > On Tue, Aug 4, 2009 at 10:17 PM, Jeremy Thomerson <
> jer...@wickettraining.com
> >> wrote:
> >
> >> Strange - I use FF almost exclusively and have never had this problem.
> >>  Did you use something like HttpFox or TamperData to look at the
> >> headers and see if the expiry headers were coming back correctly?
> >>
> >> --
> >> Jeremy Thomerson
> >> http://www.wickettraining.com
> >>
> >>
> >>
> >>
> >> On Tue, Aug 4, 2009 at 9:12 PM, Steve Tarlton
> wrote:
> >> > I just spent the better half of a day WASTED because I use Firefox for
> >> > testing my Wicket development. For the life of me, I couldn't figure
> out
> >> why
> >> > I couldn't get a simple data picker to center. I wouldn't call myself
> an
> >> > expert at html so I doubted myself. Turns out that Firefox decided
> that
> >> > there is no need to update changes if there is something in cache --
> >> WTF!!!
> >> > It wasn't until I got so fed up I tried Internet Explorer and saw that
> >> what
> >> > I was doing was working all along. I "exited" Firefox and restarted it
> >> and
> >> > still not working. It wasn't until I went in and cleared my "private
> >> cache"
> >> > and then visited my app again that it did what it was suppose to do. I
> of
> >> > course poked around in Firefox to turn that !...@#$%! cache off but the
> only
> >> > thing I found was a setting that would automatically flush it when I
> >> > "exited" (not closed) Firefox. I will probably still use it for normal
> >> > surfing but unless there is a way to stop it from not updating my html
> >> > changes, I will NOT be useing it for Wicket development!
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Looking for Web Application Architecture Book

2009-08-04 Thread John Armstrong
What we do is take all of our /DAO/Model 'stuff' and package it up into its
own jar file that is then included in any projects that require it. This
allows us to
A) Version our data systems without impacting the apps using them (mostly)
B) Gives us a unified data layer for all of our applications
C) Allows us to distribute a data 'api' to internal and external parties
D) keeps things clean
E) reuse our data layer in web(wicket/servlets), desktop (swing) and command
line(cron etc) apps

Practically for us this manifests as a unique eclipse project that exists
just for data access. Its package is, for example, net.pnc.model.* and
net.pnc.model.dao. Devs put the maven dependancy in and their app magically
is data-enabled. Client apps just work on the model via the DAO which
retrieves and saves javabeans to and from the database etc.

Its probably very primitive, violates a lot of patterns and sucks for many
reasons but its great for us.

We also use Cayenne (shameless plug). Its really easy to work with for
someone not comfortable with Hibernate and in a wicket context follows some
of the same ethics (convention vs configuration, CPUs are faster then your
app etc).

Your Mileage May Vary, this has been sustainable for us.
John-

On Tue, Aug 4, 2009 at 12:46 PM, Dane Laverty  wrote:

>
> - In app v. session, one thing I've read in several places is "never put
> your DAOs in your application". I'm sure that's great advice, but I don't
> know why. From my perspective, a DAO is exactly the kind of thing I would
> put in the application -- it's the same for all users, and it would be
> really handy to have there. The phonebook app, OTOH, puts DAOs directly in
> the pages, so that's the model I'm following for my current application.
>


Re: Wicket, Ajax and JSON

2009-07-31 Thread John Armstrong
Maybe someone can document a workable solution in the Wiki for future
generations?
Tx
J

On Fri, Jul 31, 2009 at 10:22 AM, francisco treacy <
francisco.tre...@gmail.com> wrote:

> That's cool.
>
> I'm still surprised to see that whenever something remotely
> ressembling stateless/REST comes up in the mailing list, the gut
> reaction is: servlets. It might be simpler for a few usecases, but
> normally you also want to take advantage of other Wicket features -
> precisely the reason why Serban insists with the Ajax behaviour.
>
> If it is feasible already, what I really would like is to have better
> support for doing REST. Of course you don't want to "drive screw into
> a board with a hammer" but for many cases simple stateless suffices,
> where Jersey would be an overkill and servlets out of the picture.
> Those usecases include sites where you want to expose some
> functionality as stateless (including Ajax) and the rest are heavily
> interactive pages (like an admin or wizards) where Wicket excels.
>
> I just recall the interest there was when the creator of
> http://www.fitcomplex.sk/ mentioned what he was doing with jQuery.
>
> Just a general feeling I'm expressing here.
>
> Thanks,
>
> Francisco
>
>
>
> 2009/7/31 richardwilko :
> >
> > Hi,
> >
> > Instead of using AbstractDefaultAjaxBehavior you can use its superclass
> > AbstractAjaxBehavior as follows:
> >
> >AbstractAjaxBehavior behaviour = new AbstractAjaxBehavior()
> >{
> >private static final long serialVersionUID = 1L;
> >
> >@SuppressWarnings("unchecked")
> >public void onRequest()
> >{
> >//get parameters
> >final RequestCycle requestCycle = RequestCycle.get();
> >
> >final PageParameters pageParameters = new
> > PageParameters(requestCycle.getRequest().getParameterMap());
> >
> >//do something using nice json library to produce a string
> > of json
> >String json = ...
> >
> >
> >requestCycle.setRequestTarget(new
> > StringRequestTarget("application/json", "utf-8", data));
> >}
> >
> >};
> >add(behaviour);
> >
> > I can't see anything wrong with the servlet example, but this has the
> > advantage of being in a Wicket component, so you can easily access your
> > Wicket session, and the user wont have to remember to map extra servlets.
> >
> > I have also tried making a component out of flexigrid, but ran into
> issues
> > (which they may have fixed now), for example, I was getting rendering
> issues
> > in the grid when trying to resize the columns.
> >
> > I then moved onto another jQuery grid called jqGrid
> > (http://www.trirand.com/blog/) which I felt had more features and was
> more
> > robust.
> >
> > At jWeekend (http://www.jweekend.com) have almost completed the Wicket
> > mapping of this grid and we hope to release this in the future when we
> are
> > satisfied with our testing and API.  This will be released as a plugin to
> > the wiQuery project (http://code.google.com/p/wiquery/), which basically
> > means it will depend on wiQuery.
> >
> >
> > Regards - Richard Wilkinson
> > Developer
> > jWeekend: OO & Java Technologies - Development and Training
> > http://jWeekend.com
> >
> >
> >
> >
> >
> >
> > Serban Balamaci wrote:
> >>
> >> Hello. I'm trying to create a wicket component out of FlexiGrid
> >> http://www.flexigrid.info/ .
> >>
> >> The javascript for the component requires an address from which it will
> >> receive data in the form of a JSON response.
> >>
> >>
> >>
> >> I'm not sure what is the best way to go about it. Simple and most ugly
> >> approach would be to have something of a "Controller Page"
> >>
> >> a page that takes parameters such as the entity that is being retrieved
> >> and
> >> also paging info, sort order, etc and returns the JSON response.
> >>
> >> I do not like this aproach as, most obvious reason is that it would not
> be
> >> obvious from the component what you need to do in order to get it to
> work.
> >>
> >>
> >>
> >> I would much more preffer to having a callback method that returns the
> >> json.
> >> So I have created a
> >>
> >>
> >>
> >> AbstractDefaultAjaxBehavior clientConnectBehavior = new
> >> AbstractDefaultAjaxBehavior() {
> >>
> >>
> >>
> >> protected void respond(AjaxRequestTarget ajaxRequestTarget)
> {
> >>
> >>ajaxRequestTarget.prependJavascript("{page: 1, total:
> >> 239
> >> }");
> >>
> >>
> >>
> >> }
> >>
> >> and used clientConnectBehavior.getCallbackUrl() as the url passed to the
> >> flexigrid.
> >>
> >>
> >>
> >> Unfortunately the problem is the response when invoked is wrapped in a
> >> 
> >>
> >> 
> >>
> >> 
> >>
> >>
> >>
> >> So my question is how to get only the JSON part without the  >> version.>,
> >>  . and  decoration. Can it be bypassed? Shoul I
> >> override something in AbstractDefaultAjaxBehavior?
> >>
> >> Or any other ideea to g

Re: Wicket, Ajax and JSON

2009-07-31 Thread John Armstrong
Maybe you are trying to drive screw into a board with a hammer?
I recommend just creating servlet to serve up these json style responses and
then use the excellent json.org libraries(instead of hand constructing json
transform your data structures into json automatically). The only issue
you'll have here is authentication so if you need a unified auth system you
will need to get that up and running in your json responder (wicket would do
it automatically).

 

WebApplication

/*

  



 

This is the JSON Gatewayn

JSON Gateway

JsonGateway

your.package.json.JsonGateway

  



getSomeData

/json/getSomeData

  


John-

On Fri, Jul 31, 2009 at 6:34 AM, Serban Balamaci wrote:

> Hello. I'm trying to create a wicket component out of FlexiGrid
> http://www.flexigrid.info/ .
>
> The javascript for the component requires an address from which it will
> receive data in the form of a JSON response.
>
>
>
> I'm not sure what is the best way to go about it. Simple and most ugly
> approach would be to have something of a "Controller Page"
>
> a page that takes parameters such as the entity that is being retrieved and
> also paging info, sort order, etc and returns the JSON response.
>
> I do not like this aproach as, most obvious reason is that it would not be
> obvious from the component what you need to do in order to get it to work.
>
>
>
> I would much more preffer to having a callback method that returns the
> json.
> So I have created a
>
>
>
> AbstractDefaultAjaxBehavior clientConnectBehavior = new
> AbstractDefaultAjaxBehavior() {
>
>
>
>protected void respond(AjaxRequestTarget ajaxRequestTarget) {
>
>   ajaxRequestTarget.prependJavascript("{page: 1, total: 239
> }");
>
>
>
>}
>
> and used clientConnectBehavior.getCallbackUrl() as the url passed to the
> flexigrid.
>
>
>
> Unfortunately the problem is the response when invoked is wrapped in a
> 
>
> 
>
> 
>
>
>
> So my question is how to get only the JSON part without the  version.>,
>  . and  decoration. Can it be bypassed? Shoul I
> override something in AbstractDefaultAjaxBehavior?
>
> Or any other ideea to go about the problem.
>
>
>
> Thank you,
>
>
>
> Serban
>
>


Google Analytics and AJAX

2009-07-28 Thread John Armstrong
Is anyone doing this:
http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55519

If so can you share your code? If not I'll build it ;)

John-


Re: How to display validation error for a RadioGroup?

2009-07-24 Thread John Armstrong
My final solution was to just override isVisible() on the labels that
are in the enclosures rather then doing it in onComponentTag.

Label highspeedAvailableRadioGroupError = new
Label("highspeedavailablegrouperror", "*")  {
  public boolean isVisible() {
  SurveyForm theForm = 
(SurveyForm)this.getParent();

  if(theForm.isSubmitted()){
  return 
highspeedAvailableRadioGroup.hasErrorMessage();
  } else return false;
  }
};

Seems to work well so far. When the page renders the label it checks
the radio group to see if there was an error for that group. If so my
little red-enclosed * pops up to bother the user.

John-

On Fri, Jul 24, 2009 at 2:23 PM, John Armstrong wrote:
> I am trying to put a nice little '*' next to the RadioGroup when the
> user forgets to select an item and just having a bear of a time with
> something so simple.
>
> Somehow I've ended up with a wicket:enclosure in the form. I've
> created my own RadioGroup class (PNCRadioGroup) that overrides
> onComponentTag to do the visibility toggling and I have labels in my
> object that enable/disable visibility on to get the enclosures to show
> up in specific validation cases. Its not working well and there has
> got to be an easier way... Any tips?
>
> 
>        Do you have high 
> speed 
>       internet
>      ?
>        
>            class="invalid" style="padding: 2px 5px;">*
>           
>     
>     
>     
>     
>         
>              Yes 
>             
>             
>                wicket:id="No" type="radio" /> No  
>            
>          
>      
> 
> 
>
>
> John-
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to display validation error for a RadioGroup?

2009-07-24 Thread John Armstrong
I am trying to put a nice little '*' next to the RadioGroup when the
user forgets to select an item and just having a bear of a time with
something so simple.

Somehow I've ended up with a wicket:enclosure in the form. I've
created my own RadioGroup class (PNCRadioGroup) that overrides
onComponentTag to do the visibility toggling and I have labels in my
object that enable/disable visibility on to get the enclosures to show
up in specific validation cases. Its not working well and there has
got to be an easier way... Any tips?


Do you have high speed 

   internet
  ?

   *
   
 
 
 
 
 
  Yes 
 
 
    No  

  
  




John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



ExtJS

2009-07-23 Thread John Armstrong
Hi all,
  Does anyone have access to the javadocs for the ext-js
implementation at http://code.google.com/p/wicket-ext/ ? When I
attempt to download them with maven I get an empty archive that says
'not-available'.

  On that note, does anyone (Paolo?) know if the Grid supports inplace
cell editing via the form components as ext-js does?

  Seems like a cool project but I am not sure how mature it is and my
UX guy is getting pushy..

John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Generic Navigation Panel

2009-07-22 Thread John Armstrong
Good info, thanks Igor, I'll check it out.
J

On Wed, Jul 22, 2009 at 10:27 AM, Igor Vaynberg wrote:
> it is on component level. abstractlink has those methods i believe.
>
> -igor
>
> On Wed, Jul 22, 2009 at 10:16 AM, John Armstrong wrote:
>> Any plans to move this down to the Component level? I've had
>> situations where I needed to override this at the page level and even
>> within a panel within a page..
>>
>> John-
>>
>> On Wed, Jul 22, 2009 at 7:14 AM, Iain
>> Reddick wrote:
>>> You can actually configure the tags that are put around a disabled link at
>>> application level, like this:
>>>
>>> getMarkupSettings().setDefaultBeforeDisabledLink( "" );
>>> getMarkupSettings().setDefaultAfterDisabledLink( "" );
>>>
>>> This would give *linktext* for disabled lnks (such as an
>>> autolink to the current page).
>>>
>>> Matthias Keller wrote:
>>>>
>>>> Hi
>>>>
>>>> I'm creating a new website with wicket which should have a normal
>>>> navigation bar. I'd like to be able to detect whether a link points to the
>>>> current page to give the surrounding  a special class.
>>>> For example on page1:
>>>> 
>>>>   page1
>>>> 
>>>> 
>>>>   page2
>>>> 
>>>>
>>>> I thought about autolinking which does that automatically, except it adds
>>>> very ugly  tags. I also don't want to change this globally just 
>>>> to
>>>> have a nicer navigation autolinking going. In addition this would be tricky
>>>> as I need the s around the links, but with different CSS classes.
>>>>
>>>> I'm thinking about creating a panel (representing the  with the link)
>>>> which then adds the link and which has to be created by giving the current
>>>> page via the constructor in order for it to find out if the link represents
>>>> the current page. But this seems to be very complicated so I think there
>>>> must be a more elegant solution for that, as this requirement surely isn't
>>>> anything new?!
>>>>
>>>> Thanks for your hints
>>>>
>>>> Matt
>>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Generic Navigation Panel

2009-07-22 Thread John Armstrong
Any plans to move this down to the Component level? I've had
situations where I needed to override this at the page level and even
within a panel within a page..

John-

On Wed, Jul 22, 2009 at 7:14 AM, Iain
Reddick wrote:
> You can actually configure the tags that are put around a disabled link at
> application level, like this:
>
> getMarkupSettings().setDefaultBeforeDisabledLink( "" );
> getMarkupSettings().setDefaultAfterDisabledLink( "" );
>
> This would give *linktext* for disabled lnks (such as an
> autolink to the current page).
>
> Matthias Keller wrote:
>>
>> Hi
>>
>> I'm creating a new website with wicket which should have a normal
>> navigation bar. I'd like to be able to detect whether a link points to the
>> current page to give the surrounding  a special class.
>> For example on page1:
>> 
>>   page1
>> 
>> 
>>   page2
>> 
>>
>> I thought about autolinking which does that automatically, except it adds
>> very ugly  tags. I also don't want to change this globally just to
>> have a nicer navigation autolinking going. In addition this would be tricky
>> as I need the s around the links, but with different CSS classes.
>>
>> I'm thinking about creating a panel (representing the  with the link)
>> which then adds the link and which has to be created by giving the current
>> page via the constructor in order for it to find out if the link represents
>> the current page. But this seems to be very complicated so I think there
>> must be a more elegant solution for that, as this requirement surely isn't
>> anything new?!
>>
>> Thanks for your hints
>>
>> Matt
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: GMap2 / Ajax problem?

2009-07-15 Thread John Armstrong
Found it, sorry.

For the record its documented in wicket.contrib.examples.gmap2.many.ManyPage

For Gmap ajax to work the js has to be in the header. Solved by adding

add(new GMapHeaderContributor("YOUR GOOGLE API KEY"));

at the page level (for me).

Sorry, stepped away for a few hours and came back and the solution
presented itself,
John-


On Wed, Jul 15, 2009 at 8:12 PM, John Armstrong wrote:
> Hi WicketFolk,
>  I just started using GMap2 in my Ajax enabled page and requests seem
> to return sporadically. Regardless of if the Map shows up or not, once
> the map ajax request returns it keeps the AJAX channel busy and no
> other ajax elements will load. Seems like there is a line in
> wicket-ajax.js that errors out. I saw some traffic on the list about
> this topic but never any firm resolution. In my case the ajax channel
> shuts down (is busy) so my entire page dies out when the map panel
> load is attempted. In a bit of a bind on this one so any tips/pointers
> are really appreciated.
>
> Wicket Debug
> 
> INFO: Received ajax response (2685 characters)
> INFO:
>  encoding="UTF-8"?> encoding="wicket1" >
> INFO: Response parsed. Now invoking steps...
> INFO:
> INFO: Initiating Ajax GET request on
> http://www.google.com/jsapi?key=ABQIp6UE3oSYs7noHVX0mewLzBS9BjcApfNJ08uAehykY7vr0qS7hxSPEAoZY2PkM-N6TpMamhu5idGCPQ
> INFO: Invoking pre-call handler(s)...
> INFO: Channel busy - postponing...
> -
>
> Firebug error:
> 
> Access to restricted URI denied" code: "1012
> isPortlet()wicket-ajax.js (line 76)
> get()wicket-ajax.js (line 792)
> (?)()wicket-ajax.js (line 1465)
> [Break on this error] return Wicket.portlet == true;
> -
>
> Any ideas? I saw some posts from 2008 on the topic but never saw and
> definitive answer.
>
> John-
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



GMap2 / Ajax problem?

2009-07-15 Thread John Armstrong
Hi WicketFolk,
  I just started using GMap2 in my Ajax enabled page and requests seem
to return sporadically. Regardless of if the Map shows up or not, once
the map ajax request returns it keeps the AJAX channel busy and no
other ajax elements will load. Seems like there is a line in
wicket-ajax.js that errors out. I saw some traffic on the list about
this topic but never any firm resolution. In my case the ajax channel
shuts down (is busy) so my entire page dies out when the map panel
load is attempted. In a bit of a bind on this one so any tips/pointers
are really appreciated.

Wicket Debug

INFO: Received ajax response (2685 characters)
INFO:

INFO: Response parsed. Now invoking steps...
INFO:
INFO: Initiating Ajax GET request on
http://www.google.com/jsapi?key=ABQIp6UE3oSYs7noHVX0mewLzBS9BjcApfNJ08uAehykY7vr0qS7hxSPEAoZY2PkM-N6TpMamhu5idGCPQ
INFO: Invoking pre-call handler(s)...
INFO: Channel busy - postponing...
-

Firebug error:

Access to restricted URI denied" code: "1012
isPortlet()wicket-ajax.js (line 76)
get()wicket-ajax.js (line 792)
(?)()wicket-ajax.js (line 1465)
[Break on this error] return Wicket.portlet == true;
-

Any ideas? I saw some posts from 2008 on the topic but never saw and
definitive answer.

John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Ajax Panal update pattern?

2009-07-14 Thread John Armstrong
Hi Wicketeers,
   I've just started into using Ajax in my Wicket apps and somehow
ended up using a specific pattern. My question is "Is this pattern the
Wicket Way" and if not, what is the "Wicket Way".

   Situation:
   The pages I am ajax enabling consist of many panels. Some panels
have navigational elements that need to trigger changes in other
panels at different levels of the heirachy.

   The Pattern
   My pattern is to pass down the webpage to subsequent panels as
required. At the mainpage level I have a swap routine for each panel
that needs change via ajax.

   My code ends up looking like this :

   public class PublicBasePage extends WebPage {
public PublicBasePage(){
PublicLeftNavPanel publicLeftNavPanel = new
PublicLeftNavPanel("publicleftnavpanel",this);
add(publicLeftNavPanel);
...
...
}
void swapMainContent(Panel thePanel,AjaxRequestTarget target){
thePanel.setOutputMarkupId(true);
centerBox.replaceWith(thePanel);
if (target != null) {
  target.addComponent(thePanel);
}
centerBox = thePanel;
}
... More of these swaps for each element in the page that is
ajaxified. Could be abstracted a bit more
... I also have a version that works for the non-ajax
case so it falls back cleanly
}

--
public class PublicLeftNavPanel extends Panel {
public PublicLeftNavPanel(String id, final PublicBasePage 
mainPage){
super(id);
AjaxFallbackLink residentialLink =  new 
AjaxFallbackLink("residential") {
@Override
public void onClick(AjaxRequestTarget target) {
mainPage.swapMainContent(new
PublicResidentialMainPanel("centerbox"),target);
}
};
residentialLink.setAutoEnable(true);
add(residentialLink);
... More of these ajaxlinks for each link element in 
the navigation bar
}
}

So, what is happening is the navigation panel calls back into the
webpage to do the swap required in lower level panels that live in
different branches of the tree.

It works but doesn't feel right and in all my googling I could not
find a clear answer on specifically what to do when you have
disconnected panels and one panel needs to trigger an update in the
other one. I imagine its obvious so my apologies.

I did find a link to "Loose coupling"
(http://techblog.molindo.at/2008/09/wicket-loose-coupling-of-componens-for-ajax-updates.html)
but that seemed a bit of a ways to go to accomplish the task (although
very elegant).

Thanks for setting me straight before I go too far with this,
John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard help

2009-07-14 Thread John Armstrong
I haven't had time to nice it up but here is a class that does this.
Its a wizard that interviews the user based on pre-configured
questions in the database. There are 3 'types' of questions in this
app I wrote earlier this year (Text Field, Text Area and File) and
there can be any number of each type in each defined interview
process. The app was a website configuration engine essentially. The
user would select a template and the template would have
'Configuration Definitions' associated with it. The app would ask the
user for each of these defs what their answer was.

This example has all of the ugly data access stuff so you should get a
good idea how I pull the data in and add it to the model. This is not
shrinkwrap but just an example.

This is ugly but it should give you the idea:

MetadataWizard---
/*
 *
 */
package mypackage.wicket;

import org.apache.cayenne.DataObjectUtils;
import org.apache.cayenne.ObjectContext;
import org.apache.cayenne.exp.Expression;
import org.apache.cayenne.exp.ExpressionFactory;
import org.apache.cayenne.query.SelectQuery;
import org.apache.wicket.extensions.wizard.Wizard;
import org.apache.wicket.extensions.wizard.WizardModel;

import mypackage.cayenne.Template;

import org.apache.wicket.model.CompoundPropertyModel;

import util.SymLink;

// TODO: Auto-generated Javadoc
/**
 * The Class MetadataWizard is a wizard responsible for interviewing
the user during site configuration
 */
public class MetadataWizard extends Wizard {

/** The template. */
Template theTemplate;

/**
 * Instantiates a new metadata wizard.
 *
 * @param id
 *the id
 * @param theTemplateIn
 *the the template in
 */
public MetadataWizard(String id, Template theTemplateIn){
super(id, false);
theTemplate = theTemplateIn;

setModel(new CompoundPropertyModel(theTemplate));
WizardModel model = new WizardModel();

// We need to put a model on this that is the config DEFs value 
for this user
mypackage.cayenne.Account theAccount = 
MySession.get().getUser();
ObjectContext context = theAccount.getObjectContext();

for (mypackage.cayenne.ConfigurationDef configDefinition :
theTemplate.getConfigurationDefArray()) {

// Get this data element from the users data list
Expression qual = ExpressionFactory.likeIgnoreCaseExp(

mypackage.cayenne.ConfigurationData.TO_ACCOUNT_PROPERTY, theAccount)
.andExp(

ExpressionFactory.likeIgnoreCaseExp(

mypackage.cayenne.ConfigurationData.TO_CONFIGURATION_DEF_PROPERTY,

configDefinition));

SelectQuery query = new
SelectQuery(mypackage.cayenne.ConfigurationData.class, qual);
java.util.List defList = context.performQuery(query);
mypackage.cayenne.ConfigurationData data = null;

// If an element exists assign it so we can pass it to 
our
PropertyModel for population
// If it does not exist then create a new one, map it 
into the
account/template
if(defList.size()>0){
data = 
(mypackage.cayenne.ConfigurationData)defList.get(0);
} else {
data = (mypackage.cayenne.ConfigurationData)
context.newObject(mypackage.cayenne.ConfigurationData.class);
data.setToAccount(theAccount);
data.setToConfigurationDef(configDefinition);
}

if(configDefinition.getElementtype().equals("string")){
model.add(new TextStep(configDefinition, data));
} 
if(configDefinition.getElementtype().equals("textarea")){
model.add(new TextAreaStep(configDefinition, 
data));
} else 
if(configDefinition.getElementtype().equals("file")){
model.add(new FileStep(configDefinition, data));
}
}
init(model);
}

/**
 * On cancel.
 *
 * @see org.apache.wicket.extensions.wizard.Wizard#onCancel()
 */
@Override
public void onCancel()
{
setResponsePage(mypackage.wicket.MyPage.class);
}


/**
 * On finish.
 *
 * @

Re: Large internet rich UI Wicket websites?

2009-07-02 Thread John Armstrong
Nothing makes me think I can't but the point here is that nothing
makes me think I can ;)

I'll end up doing it at some point. it can't be helped, I've been wicketized.

John-

On Thu, Jul 2, 2009 at 12:53 PM, Igor Vaynberg wrote:
> what makes you think you need any special tweaking or scaling in
> wicket to handle that kind of load?
>
> -igor
>
> On Thu, Jul 2, 2009 at 12:43 PM, John Armstrong wrote:
>> I see 3 tiers of sites
>>
>> Intranet : Low traffic / high functionality with a small audience and
>> the common wicket use case from what I can tell.
>>
>> Mid-market : <5 million hits per day
>>
>> Premium : The ebays and googles of the world.
>>
>> No one stack can serve the Premium market but I instinctually think
>> that wicket can do well "out of the box" in the Mid-market as well if
>> we had just a bit more info about how people are scaling it in that
>> range.
>>
>> John-
>>
>> On Thu, Jul 2, 2009 at 12:26 PM, Randy S. wrote:
>>> For what it's worth, my employer is a large financial services organization
>>> and we are considering switching to Wicket for all our major internal and
>>> external development. I also have been disappointed while going through the
>>> Wiki page that lists sites using Wicket. Many are not even in existence
>>> anymore, and I saw no high volume sites.
>>>
>>> This is not a complaint to anyone. Wicket is what it is, including the
>>> community. My point is that despite the lack of (advertised) usage on high
>>> volume sites, some of us are lurking and see lots of potential.
>>>
>>> On Jul 2, 2009 2:16 PM, "David Chang"  wrote:
>>>
>>>
>>> Igor, thanks very much for your input and insight. I really mean it.
>>>
>>> All the best.
>>>
>>>
>>> --- On Thu, 7/2/09, Igor Vaynberg  wrote:
>>>
>>>> From: Igor Vaynberg 
>>>
>>>> Subject: Re: Large internet rich UI Wicket websites? > To:
>>> users@wicket.apache.org
>>>> Date: Thursday, July 2, 2009, 2:35 PM
>>>
>>>> lets say the entire backend of amazon > is written in wicket. would you >
>>> consider that to be a la...
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: JDeveloper - Can I get a show of hands?

2009-07-02 Thread John Armstrong
Since we are plugging our favorite DB tools I swear by Database
Workbench Pro (http://www.upscene.com/). The author is extremely
responsive (he'll give you a custom build, usually in 48 hours, when
you find a bug), it supports a nice variety of databases and has some
killer tools like cross-database data migration, schema migration,
schema differentiation, ERD generation etc etc.

Check it out, well worth the money but Windows only so I find myself
in VMWare with it these days.

John-

On Thu, Jul 2, 2009 at 4:55 AM, Richard Allen wrote:
> Now that Oracle bought Sun I wonder if JDev and Netbeans will cross paths.
>
> A great free, cross-platform SQL tool is SQuirreL (
> http://squirrel-sql.sourceforge.net/).
>
>
> On Sat, Jun 20, 2009 at 4:45 PM, Scott Swank  wrote:
>
>> I'm at best 50% DBA, by training.  You end up with multi-step
>> operations that work very well as sql*plus scripts.  I also run
>> analogous queries in TOAD, PL/SQL Dev or SQL Dev -- but no DBA worth
>> hiring works in the click-and-drag world.  But then I suppose this has
>> gotten off topic.
>>
>> On Sat, Jun 20, 2009 at 10:37 AM, James
>> Carman wrote:
>> > As a DBA, you use SQL Plus?  I would think most DBAs would either use the
>> > console thingy that comes with Oracle or Toad.  SQL Plus always seemed a
>> bit
>> > limiting to me, but that's probably because of my limited knowledge of
>> all
>> > the commands, so I need the nice GUI stuff to guide me along. :)
>> >
>> > On Sat, Jun 20, 2009 at 1:04 PM, Scott Swank 
>> wrote:
>> >
>> >> And if you're an Oracle DBA your main tool is called "SQL Plus".
>> >>
>> >> On Fri, Jun 19, 2009 at 8:58 PM, James
>> >> Carman wrote:
>> >> > +1 to sqldeveloper (java or native).  For developers (not DBAs), it's
>> a
>> >> very
>> >> > nice tool and does what you need for the majority of the cases.
>> >> >
>> >> > On Fri, Jun 19, 2009 at 11:28 PM, Vasu Srinivasan 
>> >> wrote:
>> >> >
>> >> >> JDeveloper is good to target a narrow Oracle infrastructure. We use
>> it
>> >> for
>> >> >> Oracle soa suite, and there are no other IDEs / plugins which can
>> match
>> >> >> that, it has good integration for ADF too. And thats pretty much it.
>> >> >>
>> >> >> Otherwise, it doesn't come half close to IDEA or Eclipse. The project
>> >> >> structure it generates is pretty un-intuitive. Bad IDE is indirectly
>> >> >> proportional to Productivity. Lack of good plugins is another major
>> >> reason.
>> >> >>
>> >> >> Our team has only a few licenses for TOAD, so I use sql developer
>> (the
>> >> >> windows native version, not the java version).. Pretty happy with it,
>> >> >> though
>> >> >> it gets a bit slow at times. Last I used the java version was buggy
>> and
>> >> >> low.
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Fri, Jun 19, 2009 at 9:09 PM, Daniel Toffetti <
>> dto...@yahoo.com.ar
>> >> >> >wrote:
>> >> >>
>> >> >> > Juan Carlos Garcia M.  gmail.com> writes:
>> >> >> > >
>> >> >> > > I always thought God used only in LISP :)
>> >> >> > >
>> >> >> > > Nicolas Melendez wrote:
>> >> >> > > >
>> >> >> > > > god used Eclipse 1.0 to develop universe.
>> >> >> > > >
>> >> >> > > > NM
>> >> >> > > > Software Developer - Buenos aires, Argentina.
>> >> >> > > >
>> >> >> >
>> >> >> >     No. Sadly, He didn't:
>> >> >> >
>> >> >> >    http://xkcd.com/224/
>> >> >> >
>> >> >> > Daniel
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> -
>> >> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> >> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Regards,
>> >> >> Vasu Srinivasan
>> >> >>
>> >> >
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>
>> >>
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Large internet rich UI Wicket websites?

2009-07-02 Thread John Armstrong
I see 3 tiers of sites

Intranet : Low traffic / high functionality with a small audience and
the common wicket use case from what I can tell.

Mid-market : <5 million hits per day

Premium : The ebays and googles of the world.

No one stack can serve the Premium market but I instinctually think
that wicket can do well "out of the box" in the Mid-market as well if
we had just a bit more info about how people are scaling it in that
range.

John-

On Thu, Jul 2, 2009 at 12:26 PM, Randy S. wrote:
> For what it's worth, my employer is a large financial services organization
> and we are considering switching to Wicket for all our major internal and
> external development. I also have been disappointed while going through the
> Wiki page that lists sites using Wicket. Many are not even in existence
> anymore, and I saw no high volume sites.
>
> This is not a complaint to anyone. Wicket is what it is, including the
> community. My point is that despite the lack of (advertised) usage on high
> volume sites, some of us are lurking and see lots of potential.
>
> On Jul 2, 2009 2:16 PM, "David Chang"  wrote:
>
>
> Igor, thanks very much for your input and insight. I really mean it.
>
> All the best.
>
>
> --- On Thu, 7/2/09, Igor Vaynberg  wrote:
>
>> From: Igor Vaynberg 
>
>> Subject: Re: Large internet rich UI Wicket websites? > To:
> users@wicket.apache.org
>> Date: Thursday, July 2, 2009, 2:35 PM
>
>> lets say the entire backend of amazon > is written in wicket. would you >
> consider that to be a la...
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Simple Custom Wizard tutorial

2009-06-24 Thread John Armstrong
Awhile back I had some trouble getting totally custom Wizard markup
out. Yes, I agree, its very simple but it still confused me for a bit.

After posting to the list I had a few folks ping me curious about what
I discovered so I wrote up a quick tutorial that illustrates how to
customize the major components of Wizard mark-up.

http://www.siberian.org/2009/06/24/customizing-wicket-wizard-markup/

I am probably missing some things and for certain I am misstating
other things but I thought this might be useful for other
Wizard/Wicket newbies.

John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OFF TOPIC] Java desktop applications

2009-06-11 Thread John Armstrong
I do a lot of swing using matisse for visual layout and it works fantastic. I 
then use install4j and create os native looking apps and installers with full 
os hinting etc (start menu etc).

Bummer is it that matisse is only windows compat.

Matisse is bundled in myeclipseide which I feel is reasonably priced.

John
Sent via BlackBerry by AT&T

-Original Message-
From: Jeremy Thomerson 

Date: Thu, 11 Jun 2009 16:54:47 
To: 
Subject: [OFF TOPIC] Java desktop applications


I would like to build a nice-looking java desktop application.  I hope
that isn't an oxymoron  :).  I have built some desktop apps before - a
lot of command line utilities in various languages, and some GUI apps
(perl, java, python, php, even vb (yikes!), c# etc...).

The question is - what framework do you use for your UI components and
layout on a desktop app?  I would like to use Java because I'll be
most efficient with it and it will work for me on linux machines and
others on Windoze, etc..  But when I've built Swing apps in the past,
I have hated having to layout everything in the code and I can never
make anything aesthetically pleasing.  So

1 - do you have any recommendations on a good framework for nice
looking desktop apps?
2 - any other recommendations for desktop apps in general?
3 - It should be a lightweight, easy install - and I would prefer to
stay away from using the Eclipse framework for building the app (I use
the IDE but it doesn't need to be something that heavy for the GUI)
4 - I have even thought about building an app that opens a swing
window that contains an embedded browser and jetty servlet running the
app so that I can use Wicket.  Has anyone thought of or done this
before?

Basically, it's a CRUD application, but containing personal data that
the user should not store on someone else's server.  I would use an
embedded database that stores the data with encryption.

Ideas?

--
Jeremy Thomerson
http://www.wickettraining.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard Custom Layout example

2009-06-01 Thread John Armstrong
I did and have been meaning to post to the wiki on it. I'll follow-up to the 
list later today with some info. Its a fantastic component.

I don't use maven yet so I can't send a quickstart but I will make some code 
available as well.

John
--Original Message--
From: shmicket
To: users@wicket.apache.org
ReplyTo: users@wicket.apache.org
Sent: Jun 1, 2009 7:06 AM
Subject: Re: Wizard Custom Layout example


Hi John,

Did you ever figure this out? I'm also looking to override layout markup,
but can't find the components that output table markup (which we want to
change to divs, etc). Overriding newForm() looks promising, but I don't know
where to start (and I certainly don't want to rewrite the functionally
that's already working very well).

Thanks,

- Nathan


John Armstrong-3 wrote:
> 
> I am already subclassing the wizard so that I can dynamically add
> steps based on entities in the object. I also have overridden the
> newButton(string) etc but the more subtle interactions are not clear
> to me.
> 

-- 
View this message in context: 
http://www.nabble.com/Wizard-Custom-Layout-example-tp21991811p23815530.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Sent via BlackBerry by AT&T

Re: Tools for Managing a Wicket Project

2009-05-18 Thread John Armstrong
I always have to do a 'Refresh' when changing the HTML. Its quite painful..

I tend to author the bulk of my html in an external editor that is
more suitable to the purpose and fast ( the eclipse validators are
painfully slow, particularly in Javascript intensive pages). Then I
tweak it in Eclipse and hit F5. A Lot.

John-

On Mon, May 18, 2009 at 5:03 PM, pete swulius  wrote:
> It appears that using external html editors causes sync issues.  Apparently
> eclipse doesn't monitor changes to the file system, except to warn you that
> it's out of sync.  I would love the know the truth of it as I could very
> well be missing something obvious.  In fact, I would bet that I am,
> considering that eclispe is so cool.
>
> I am currently using the Amateras plugin:
> http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor.
>  I have no problems with it, but I use it only for the syntax coloring
> and
> the occasional content assist.
>
> --pete
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Tools for Managing a Wicket Project

2009-05-18 Thread John Armstrong
I use the HTML formatter without problems. What issue are you having?

I use MyEclipse, it may be different?

J

On Mon, May 18, 2009 at 4:47 PM, Eduardo Nunes  wrote:
> I have just one problem with eclipse, I can't use the HTML formatter,
> that's very sucks. I tried tidy but it didn't work too. What do you
> use guys to format html code?
>
> On Mon, May 18, 2009 at 2:06 PM, Dane Laverty  wrote:
>> I just wanted to thank Jeremy, Scott, and Linda for recommending Effective
>> Java. I read through the book this week. It's wonderful -- accessible and
>> useful. Now I'm in the process of refactoring my project to start applying
>> the concepts.
>>
>> On Fri, May 1, 2009 at 8:53 AM, Carlo Camerino  wrote:
>>
>>> we used to be bugzilla, mediawiki, continuum statck.we moved to Trac. It
>>> was
>>> simply amazing with all those plugins.
>>>
>>> Code Review WIth Trac Is Good.
>>> Review Board is also good software but it doesn't suit our programming
>>> needs.
>>>
>>> On Fri, May 1, 2009 at 11:38 PM, Matt Welch  wrote:
>>>
>>> >
>>> > Tools that our team is using (after some trial and error):
>>> >
>>> > IDE - Eclipse/IDEA
>>> > Source Control - SVN
>>> > Build - Maven
>>> > Local Network Maven Repo - Nexus (after a year trying different ones)
>>> > Build Server  - TeamCity, which absolutely rocks (We actually purchased
>>> and
>>> > used Bamboo for 9 months. I can't believe it comes from the same company
>>> as
>>> > JIRA. Bamboo was terrible.)
>>> > Story Mgmt/Defects - Rally (hosted commercial app for agile projects; not
>>> > bad, but not fantastic either)
>>> > Code Review - Code Collaborator (again not bad and I'd rather have it
>>> than
>>> > nothing at all, but could be better)
>>> >
>>> >
>>> > Our QA team has used various testing tools from expensive commercial
>>> tools
>>> > like Mercury (now HP) Quality Center to Selenium. They use Rally for
>>> defect
>>> > management.
>>> >
>>> > My highest recommendations are for TeamCity, Nexus, and SVN.
>>> >
>>> > -Matt
>>> >
>>> >
>>> > --
>>> > View this message in context:
>>> >
>>> http://www.nabble.com/Tools-for-Managing-a-Wicket-Project-tp23299396p23334970.html
>>> > Sent from the Wicket - User mailing list archive at Nabble.com.
>>> >
>>>
>>
>
>
>
> --
> Eduardo S. Nunes
> http://e-nunes.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



TinyMCE resources directory

2009-05-12 Thread John Armstrong
This is probably a basic question and it may not even be wicket
related but I was hoping for a tip.

I am using wicket under tomcat. I am -not- using Maven for building it
so no quickstart exists.

Here is what happens, in my dev environment (Eclipse) tinymce works
fine. I  import the Jar as a library and everything is happy. When I
add the TinyMCE behavior to my TextArea it writes the resource link
into the page and accesses it fine from
WEB-INF/classes/wicket/contrib/tinymce/tiny_mce/tiny_mce.js

When I deploy to tomcat though the files are not located and the
tinymce behavior fails.

It feels like a classpath issue but I am unsure how to proceed fixing.

This is 100% my ignorance so I appreciate any sympathetic souls that
can point me in the right direction. And yes, I am reading the maven
book for future projects so I can get with the WicketWay but this
project was my first experimental wicket project and is to far along
to convert so I am where I am with it :(

Tx
John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Scribd

2009-04-19 Thread John Armstrong
Before I start into it, has anyone built a scribd component?

John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Wicket spirited conference?

2009-04-17 Thread John Armstrong
Somewhat on this topic, are there any gatherings of wicket folk in the
Bay Area (San Francisco)?

John-

On Fri, Apr 17, 2009 at 4:31 AM, nino martinez wael
 wrote:
> Yup.. So anyways, in order to justify the trip for the company (I do
> not know at current time if the budget will be approved). There has to
> be a minimum of serious content :)
>
> regarding dates it has to be after summer in my case.
>
> regards Nino
>
> 2009/4/17 Linda van der Pal :
>> Of course, we could also hold an unconference. Then you wouldn't need a
>> beamer and could still hold it anywhere. We could just discuss certain
>> topics that interest us, without it being merely a social event.
>>
>> nino martinez wael wrote:
>>>
>>> True..
>>>
>>> 2009/4/17 Linda van der Pal :
>>>

 If you want sessions, a sponsor will have to be found for a room (and a
 beamer).

 nino martinez wael wrote:

>
> For me it had to have some sessions etc, I'll be happy to on
> something. But otherwise it's hard to justify..
>
> regadrs Nino
>
> 2009/4/17 Linda van der Pal :
>
>
>>
>> Well we could just set a date somewhere in the future and just organize
>> something. I have no idea how large the Wicket community in the
>> Netherlands
>> is (I'm guessing the numbers were a bit skewed at the one meeting I was
>> at,
>> due to international guests who attended ApacheCon). But if the group
>> who
>> can attend isn't too large, we can just arrange a table at a bar or
>> restaurant.
>>
>> So how many people would be interested in an informal meeting (i.e.
>> without
>> sessions) in Amsterdam?
>>
>> Regards,
>> Linda
>>
>> Nino Martinez wrote:
>>
>>
>>>
>>> ... since meetups in netherlands seems to be rather spontaneous (and
>>> therefore
>>> hard to plan)...
>>>
>>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AppleTV!

2009-04-07 Thread John Armstrong
I just added my first post on this a few nights ago and I will be
filling in the blanks soon. There is a prototype roadmap I am moving
through that will ensure I have all the pieces to justify spending
time designing the actual app.

http://www.siberian.org/

John-

On Tue, Apr 7, 2009 at 6:30 AM, Matthew Hanlon  wrote:
> Very cool!  I am an AppleTV hobbyist myself.  Do you have a blog post or
> something regarding the steps you took to do this?  I'd be curious to check
> it out!
> -Matt.
>
> On Mon, Apr 6, 2009 at 23:55, Igor Vaynberg  wrote:
>
>> thats pretty freaking cool :)
>>
>> -igor
>>
>> On Mon, Apr 6, 2009 at 8:52 PM, John Armstrong  wrote:
>> > I think this may be a first but I am now running wicket on my AppleTV
>> > under Jetty.
>> >
>> > This is for a home automation project where wicket will be the glue
>> > between serial port communications and a USB-UIRT infrared input
>> > device.
>> >
>> > Hooray for Wicket, new frontiers.. Well, it wasn't that hard but I
>> > think its cool.
>> > John-
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Matthew Rollins Hanlon
> http://squareoftwo.com
> _
> Hanlon's Razor:
> "Never attribute to malice that which can be adequately explained by
> stupidity."
> http://wikipedia.org/wiki/Hanlon's_razor
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AppleTV!

2009-04-06 Thread John Armstrong
I think this may be a first but I am now running wicket on my AppleTV
under Jetty.

This is for a home automation project where wicket will be the glue
between serial port communications and a USB-UIRT infrared input
device.

Hooray for Wicket, new frontiers.. Well, it wasn't that hard but I
think its cool.
John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Blob or File for Images

2009-02-28 Thread John Armstrong
Always file systems. Never put images in a database unless it is an
absolute business requirement. You bypass every piece of the system
that is good at managing images (filesystem and webserver).

John-

On Sat, Feb 28, 2009 at 1:06 PM, Francisco Diaz Trepat - gmail
 wrote:
> Hi all.
>
> I am building a small shopping app for my girlfriend who sells women
> underwear (no, i do not get to run around with hot models, other than the
> uml ones).
>
> As the He-Man of this project I opted for Wicket (obviously) with
> ActiveObjects and Postgres.
>
> Now to the question or opinion request.
>
> I have to show a nice catalog display, maybe with the gallery style of small
> pic large image for enlargement.
>
> Should I put my images in the database and use a blob type or should I build
> file system hierarchy?
>
> Should I stay or Should I go? ;-)
>
> f(t)
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: HTML creation tool

2009-02-19 Thread John Armstrong
My favorite CSS based HTML creation tool is Rent-A-Coder.

John-

On Thu, Feb 19, 2009 at 2:59 AM, Edwin Ansicodd  wrote:
>
> Any css based HTML creation tool recommended by Wicket users?
> --
> View this message in context: 
> http://www.nabble.com/HTML-creation-tool-tp22098061p22098061.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wizard Step question

2009-02-16 Thread John Armstrong
Making progress on my Wizard (thanks Igor!) but I had another question
that I was not able to find an answer too.

Is there a way to send a WizardStep to another Step outside of
prev/next controls? In my example I have a Confirm Step that does
final validation on the data before sending it to the datastore. If
something is wrong I want to kick the user to the specific step that
will let them fix it rather then forcing them to find it on their own.

It felt like the DynamicStep functionality might apply but the docs
are sparse and no one has any comprehensive examples that I could
find.

Thanks,
John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Simple file repository?

2009-02-15 Thread John Armstrong
Jackrabbit is also great and does all of this and more with a nice
friendly API wrapped around it.

http://jackrabbit.apache.org/

And its an apache project..

I don't recommend rolling your own. Any Simple Content Repository soon
gets User Permissions, Versioning, Search, Mixed Content and will
eventually grow to consume all resources.

John-

On Sun, Feb 15, 2009 at 9:26 AM, Kaspar Fischer  wrote:
>
> On 15.02.2009, at 18:00, francesco dicarlo wrote:
>
>> Alfresco. And you have also lucene indexing.
>> Just deploy the repository and upload files via webservice...
>
> That is certainly an option: Alfresco even offers Content Transformers;
> writing one to convert the movies would be easy.
>
> Anything more lightweight?
>
> Thanks,
> Kaspar
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wizard Custom Layout example

2009-02-13 Thread John Armstrong
Thanks Igor,

I am already subclassing the wizard so that I can dynamically add
steps based on entities in the object. I also have overridden the
newButton(string) etc but the more subtle interactions are not clear
to me.

For example, I override newButtonBar(string). I get the basic table
markup with my panel injected but now I need to dig in and locate how
wicket is expecting the next/prev/finish/cancel buttons to be
presented and provide ID's for those etc.

Its not a huge problem and it will only take a few hours to dig
through the resources and see what is expected. I was just hoping for
a canned example. Sounds like that doesn't exist so I'll spend some
time and create one.

Thanks!
John-

On Fri, Feb 13, 2009 at 8:03 AM, Igor Vaynberg  wrote:
> simply subclass wizard and provide your own markup.
>
> -igor
>
> On Thu, Feb 12, 2009 at 11:57 PM, John Armstrong  wrote:
>> Hi WicketFolk,
>>  Can anyone point me to a relatively complete example of an Wizard
>> implementation with custom layout? I'm fairly new to the framework and
>> this would help me out quite a bit as the default table based
>> structure is causing my designer to get a bit crazy..
>>
>> API says :
>>
>> "This default implementation should be useful for basic cases, if the
>> layout is exactly what you need. If you want to provide your own
>> layout and/ or have more or less components (e.g. you want to
>> additionally provide an overview component), you can override this
>> class and add the components you want yourself using methods like
>> newButtonBar(String) et-cetera. "
>>
>>  If someone points me to one I'll generalize it and update the wiki
>> for future generations.
>>
>> Thanks
>> John-
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wizard Custom Layout example

2009-02-12 Thread John Armstrong
Hi WicketFolk,
  Can anyone point me to a relatively complete example of an Wizard
implementation with custom layout? I'm fairly new to the framework and
this would help me out quite a bit as the default table based
structure is causing my designer to get a bit crazy..

API says :

"This default implementation should be useful for basic cases, if the
layout is exactly what you need. If you want to provide your own
layout and/ or have more or less components (e.g. you want to
additionally provide an overview component), you can override this
class and add the components you want yourself using methods like
newButtonBar(String) et-cetera. "

  If someone points me to one I'll generalize it and update the wiki
for future generations.

Thanks
John-

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] Java hosting & USB stick deployment

2009-02-05 Thread John Armstrong
I meant 'if you have low data storage requirements'. The bump from 10GB to
20GB starts to erode the price competitiveness pretty quickly.
J

On Thu, Feb 5, 2009 at 3:05 PM, John Armstrong wrote:

> I did a test deploy on slicehost an it was great outside of disk space
> issues. Ultimately it was cheaper for me to pay ~$70 a month to cari.netfor a 
> dedicated server.
> Slicehost is great though, highly recommended if you have data storage
> requirements.
>
> J
>
> On Thu, Feb 5, 2009 at 2:45 PM, Ryan Gravener wrote:
>
>> I use slicehost. $20 a month 10gb/100gb + 250mb.. You have to set up
>> everything yourself except dns.
>>
>> On 2/5/09, Nick Heudecker  wrote:
>> > I use eapps.com for hosting.  Not sure what the problem is with USB
>> drives,
>> > since you can get a 2GB drive for $6.
>> >
>> >
>> >
>> > On Thu, Feb 5, 2009 at 1:29 PM, Kaspar Fischer 
>> wrote:
>> >
>> >> I am in the midst of deciding on the technology to use for an
>> application
>> >> that must be (i) cheap to host and (ii) must be deployable on USB
>> sticks
>> >> (Windows/Mac), for use in ad hoc networks. Options include
>> >> Wicket/Hibernate/Spring or a PHP framework like Drupal, in some web
>> >> container like e.g. Resin, XAMPP/MAMP, etc.
>> >>
>> >> Does anybody on the list know of very cheap Java hosting possibilities?
>> I
>> >> image most of us on the list are working in the enterprise sector but
>> >> maybe
>> >> somebody knows of a good deal?
>> >>
>> >> (There was once a rumor that Google would offer something,
>> >>
>> http://www.oreillynet.com/onjava/blog/2008/05/podraziks_prediction_java_next.html
>> ,
>> >> any guesses on this?)
>> >>
>> >> I am also interested in whether people from the list have made
>> experiences
>> >> with running Wicket on USB sticks?
>> >>
>> >> Thanks,
>> >> Kaspar
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> > Nick Heudecker
>> > Professional Wicket Training & Consulting
>> > http://www.systemmobile.com
>> >
>> > Eventful - Intelligent Event Management
>> > http://www.eventfulhq.com
>> >
>>
>>
>> --
>> Ryan Gravener
>> http://ryangravener.com/flex | http://twitter.com/ryangravener
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>


Re: [OT] Java hosting & USB stick deployment

2009-02-05 Thread John Armstrong
I did a test deploy on slicehost an it was great outside of disk space
issues. Ultimately it was cheaper for me to pay ~$70 a month to cari.net for
a dedicated server.
Slicehost is great though, highly recommended if you have data storage
requirements.

J

On Thu, Feb 5, 2009 at 2:45 PM, Ryan Gravener  wrote:

> I use slicehost. $20 a month 10gb/100gb + 250mb.. You have to set up
> everything yourself except dns.
>
> On 2/5/09, Nick Heudecker  wrote:
> > I use eapps.com for hosting.  Not sure what the problem is with USB
> drives,
> > since you can get a 2GB drive for $6.
> >
> >
> >
> > On Thu, Feb 5, 2009 at 1:29 PM, Kaspar Fischer 
> wrote:
> >
> >> I am in the midst of deciding on the technology to use for an
> application
> >> that must be (i) cheap to host and (ii) must be deployable on USB sticks
> >> (Windows/Mac), for use in ad hoc networks. Options include
> >> Wicket/Hibernate/Spring or a PHP framework like Drupal, in some web
> >> container like e.g. Resin, XAMPP/MAMP, etc.
> >>
> >> Does anybody on the list know of very cheap Java hosting possibilities?
> I
> >> image most of us on the list are working in the enterprise sector but
> >> maybe
> >> somebody knows of a good deal?
> >>
> >> (There was once a rumor that Google would offer something,
> >>
> http://www.oreillynet.com/onjava/blog/2008/05/podraziks_prediction_java_next.html
> ,
> >> any guesses on this?)
> >>
> >> I am also interested in whether people from the list have made
> experiences
> >> with running Wicket on USB sticks?
> >>
> >> Thanks,
> >> Kaspar
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Nick Heudecker
> > Professional Wicket Training & Consulting
> > http://www.systemmobile.com
> >
> > Eventful - Intelligent Event Management
> > http://www.eventfulhq.com
> >
>
>
> --
> Ryan Gravener
> http://ryangravener.com/flex | http://twitter.com/ryangravener
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: What is your experience on the time of development ?

2009-01-05 Thread John Armstrong
We've started using Cayenne and Wicket to refactor an existing Struts
based application.

I've found this combination lethally powerful and fast and so far we
are moving at a much quicker pace.

Just as important though, and the reason I chose wicket, is that the
true html view is allowing the designers and UI folks to participate
in the development as true partners, in real-time, directly out of
SVN.

So there are two measures of speed, the Java Coding Speed and the
overall speed of the organization.

We have not deployed anything yet but so far so good.

J

On Mon, Jan 5, 2009 at 8:24 AM, Curtis Cooley
 wrote:
> Xhelas wrote:
>> This is a very interesting and surprising post in this forum. Do you have
>> further explanation about your superior productivity using Grails? Is this
>> due to the kind of applications you developp or to special tools that comes
>> with this framework? Is the key stone groovy?
>> Thanks for your enlighments!
>>
> Like I said, it was a very rough estimate. I believe it was because I
> was so green in each framework. Grails does so much grunt work and code
> generation for you, that you can focus on getting your business logic done.
>
> We were trying to do a comparison of the two frameworks, so that is why
> we added Spring and Hibernate to the Wicket mix. Grails wires in your
> ORM and dependency injection so you don't have to.
>
> Also, this was a very short and pretty unscientific experiment. Just one
> of many 'opinions' one can consider when looking at frameworks.
>
>
>
> Confidential/Privileged information may be contained in this email. If you 
> are not the intended recipient, please do not copy, distribute or use it for 
> any purpose, nor disclose its contents to any other person. Please notify the 
> sender immediately if you receive this in error.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org