Re: robots.txt

2010-08-10 Thread Per Lundholm
WicketApplication.mountBookmarkablePage(String path, Class page)?

/Per

On Mon, Aug 9, 2010 at 5:42 PM, Sefa Irken  wrote:
> Thank you everyone, that works.
>
> But a bit of curiosity, is there a wicket or servlet way? More clearly, how
> can a singe file mounted to a single url ? like  /bob/static.html.
>

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



Re: KonaKart shopping cart integration

2010-08-02 Thread Per Lundholm
When you wrote "shopping cart", I assumed it was only the widget which
presents what the customer bought and some mechanism for keeping that
in the session. KonaKart seems to be a lot more than that.

/Per

On Tue, Aug 3, 2010 at 2:35 AM, Steve Coughlan
 wrote:
> I've been looking for a shopping cart solution that I can properly integrate
> with wicket.  There's been a few threads on this list where people have
> indicated they were building one but as far as I know nothing has ever
> eventuated.
>
> I don't really want to build to whole engine from scratch so I've been
> looking around and come across konakart.  It's partially open source.
>  Meaning the engine itself is closed but it has a complete (and well
> documented) integration layer.  I think this would be a good solution
> because all the backend functionality is there along with a nice admin
> panel.
>
> The interface is either Java or SOAP (one line of code to switch between the
> two) which means you can run your cart engine on another server if you want.
>
> So what I'm proposing is build a set of front-end wicket components.  I'd
> prefer a fully open source solution but in the free java space this seems to
> be the easiest solution I can find.  I really don't have time to build an
> engine from the ground up.
>
> So before I get going I just wanted to bounce it off the community and see
> if anyone can think of a better solution?
>
> I only just come across brix and I'm still trying to get my head around it.
>  Any comments on whether  I should make this brix centric or pure wicket?
>
> p.s. If I do build these components then I will release them as LGPL...
>
> -
> 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



[BLOG] Canned Wicket Test Examples

2010-07-10 Thread Per Lundholm
Hello!

Just wanted to honk my horn: three examples of using the built in
wicket test facilities to test AJAX enabled controls, the check box,
radio group and the drop down.

http://blog.crisp.se/perlundholm/2010/06/20/127701780.html

/Per

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



Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-26 Thread Per Lundholm
We have put all lookup in the wicket application class. Thus all pages
do: getApplication().getWhatEverService().

I belive this make unit testing a bit easier since you mock the
application the same way every time.

/Per

On Tue, Mar 23, 2010 at 6:05 PM, smallufo  wrote:
> 2010/3/24 smallufo 
>
>> Thank you , I tried it , and it can successfully
>> inject EntityManagerFactory into a WebPage ,
>> But it seems unable to inject EntityManager , is it because of some
>> thread-safe limitation here ?
>>
>>
> Sorry , I meant wicket-contrib-javaee here.
>
>
>
>>  2010/3/23 Major Péter 
>>
>>> I think yes, Wicket is already depending on cglib, so you could create
>>>
>>> something like this:
>>>
>>> http://fisheye6.atlassian.com/browse/wicket/branches/wicket-1.4.x/wicket-spring/src/main/java/org/apache/wicket/spring/SpringBeanLocator.java?r=HEAD
>>> or for non-spring code check out the wicketstuff javaee-inject project.
>>>
>>> Best Regards,
>>> Peter
>>>
>>
>

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



Re: Worldwide address form

2010-02-03 Thread Per Lundholm
If you do that, you will be a hero. ;-)

But why not, a component that handles all kinds of addresses in the world is
a typical joint effort.

 If it is in the drop-down of countries, then it is supported. If not your
country is supported, then contribute!

/Per

On Thu, Jan 28, 2010 at 11:30 PM, Chris Colman  wrote:

> I'm just wondering if anyone knows of a sample 'world address' entry
> form built using wicket.
>
> Ideally the data entry fields for the top level attributes:
>
> - world region
> - country
> - state/zone
>
> Would be drop down list boxes. The contents of any drop down (except the
> world region) would be dictated by the option(s) chosen in the drop down
> lists above it. Eg., if you change the country from Australia to USA
> then the state/zone drop down is populated with the US states.
>
> I was thinking of creating an interface for the data so that a generic
> world wide address form could be written to the interface but the
> implementation of the interface could be tailored to the way an
> individual app stores it's world data.
>
>
> > -Original Message-
> > From: Per Lundholm [mailto:per.lundh...@gmail.com]
> > Sent: Friday, 29 January 2010 8:26 AM
> > To: users@wicket.apache.org
> > Subject: Re: functional testing
> >
> > We write tests first and use Wicket's built-in testing.
> >
> > It has some quirks so you may have to spend time with figuring out how
> to
> > click an AjaxCheckBox, for instance.
> >
> > The tests target the logic of the view, such as "when clicking here,
> that
> > other thing should be disabled".
> >
> > Good test coverage really pays off when you have 20 different webapps
> and
> > need to work some here and some there.
> >
> > /Per
> >
> > On Mon, Jan 25, 2010 at 3:52 AM, Kent Tong  wrote:
> >
> > >
> > > For functional testing, I'd suggest Selenium.
> > >
> > > For unit testing of Wicket pages, I'd suggest "Wicket Page Test"
> > > (http://wicketpagetest.sourceforge.net).
> > >
> > > -
> > > --
> > > Kent Tong
> > > Better way to unit test Wicket pages (
> > > http://wicketpagetest.sourceforge.net)
> > > Books on CXF, Axis2, Wicket, JSF (http://http://agileskills2.org)
> > > --
> > > View this message in context:
> > > http://old.nabble.com/functional-testing-tp27278781p27301553.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: functional testing

2010-01-28 Thread Per Lundholm
We write tests first and use Wicket's built-in testing.

It has some quirks so you may have to spend time with figuring out how to
click an AjaxCheckBox, for instance.

The tests target the logic of the view, such as "when clicking here, that
other thing should be disabled".

Good test coverage really pays off when you have 20 different webapps and
need to work some here and some there.

/Per

On Mon, Jan 25, 2010 at 3:52 AM, Kent Tong  wrote:

>
> For functional testing, I'd suggest Selenium.
>
> For unit testing of Wicket pages, I'd suggest "Wicket Page Test"
> (http://wicketpagetest.sourceforge.net).
>
> -
> --
> Kent Tong
> Better way to unit test Wicket pages (
> http://wicketpagetest.sourceforge.net)
> Books on CXF, Axis2, Wicket, JSF (http://http://agileskills2.org)
> --
> View this message in context:
> http://old.nabble.com/functional-testing-tp27278781p27301553.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: Help with Wicket Adoption Numbers

2010-01-11 Thread Per Lundholm
Since the PHB like to stay on the safe side of the fence, make them feel
safe with Wicket.

Tell successtories about Wicket. Tell failstories about other systems. :-)

/Per

On Mon, Jan 11, 2010 at 10:06 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi Lester,
>
> Right now I'm in a similar situation: I'm working for a company that wants
> to (possibly) change from struts 1.X to something else and it is my job
> "present" the choices to the developers and managers, so that they can
> decide which will be the next framework the company will adopt for WEB
> development. I'm also trying to get Wicket adopted over the other
> candidates
> but that won't be easy...
>
> I fully agree with Jonathan: the only thing PHBs care about is theirs own
> personal interests... So, they pay special attention to keep themselves "on
> the safe side of the fence".
>
> Cheers,
>
> Ernesto
>
> On Mon, Jan 11, 2010 at 8:17 AM, Lester Chua  wrote:
>
> > Jonathan,
> >
> > Bingo, I think you may have hit it on the spot.
> >
> > Igor,
> >
> > I have not managed to get a reply on how they determined Struts2 to be
> > better supported compared to Wicket. But I suspect the list of a approved
> > technologies is not very updated. I.e. the evaluation was probably done 2
> > years ago.
> >
> > Thanks for all the responses. The anecdotes and points made were very
> > helpful and have helped out get out of my depression over the weekend.
> And I
> > have written a long and hopefully thoughtful reply to the technical
> > committee and will keep you guys posted.
> >
> > Lester
> >
> >
> >
> > Jonathan Locke wrote:
> >
> >> honestly, your response is too thoughtful. these pointy haired bosses
> are
> >> self-serving. they don't care about training costs or developer pain and
> >> they don't really care if their org runs efficiently.  what they care
> >> about
> >> is that if there is a failure, their choice didn't cause it.  which is
> why
> >> the old saying goes "nobody ever got fired for buying IBM."  same seems
> to
> >> go for struts.  an idiotic technology choice, but you won't get fired
> for
> >> making the same idiotic choice everyone else is making.
> >>
> >>
> >> Loritsch, Berin C. wrote:
> >>
> >>
> >>> "But why choose an inferior technology just because of its adoption
> >>> numbers?"
> >>>
> >>> The pointy haired bosses that do this believe in their heart of hearts
> >>> that if you choose the same technology everyone else is using that they
> >>> can turn thinking developers for mindless drones.  It has more to do
> >>> with avoiding training costs and rational thought, and more to do with
> >>> trying to turn software development into an assembly line process.
> >>> Reality never fits this mold, but it doesn't stop the pointy haired
> boss
> >>> from trying.  In this respect they are eternal optimists.
> >>>
> >>> -Original Message-
> >>> From: leo.erlands...@tyringe.com [mailto:leo.erlands...@tyringe.com]
> >>> Sent: Friday, January 08, 2010 4:09 AM
> >>> To: users@wicket.apache.org
> >>> Subject: Re: Help with Wicket Adoption Numbers
> >>>
> >>> Hi,
> >>>
> >>> We also had the same consideration when we chose Wicket. But why choose
> >>> an inferior technology just because of it's Adoption Numbers? Also,
> >>> Wicket
> >>> is becoming more and more popular as people see the light :)
> >>>
> >>> Check out Jobs Trends (Relative Growth) here (JSF vs Struts vs Wicket):
> >>>
> http://www.indeed.com/jobtrends?q=Struts%2C+JSF%2C+Wicket&l=&relative=1
> >>>
> >>> We have a couple of hundred customers and so far the feedback is great
> >>> both from our Developers and our Software Architects. Customers like
> >>> that the GUIs are faster due to the simplicity of Ajax Adoption in
> >>> Wicket.
> >>>
> >>> I also know that several large privately held companies in Sweden are
> >>> using Wicket, as well as large Government Agencies (e.g. the Swedish
> >>> Immigration Office).
> >>>
> >>>
> >>> Sincerely yours
> >>> Leo Erlandsson
> >>>
> >>>
> >>> -
> >>> 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: building tons of ajax links

2009-12-09 Thread Per Lundholm
... or do not use ajax ... what happens when you click ... are you not taken
to a search result ... might as well redraw the page.

/Per

On Thu, Dec 10, 2009 at 7:47 AM, Douglas Ferguson <
doug...@douglasferguson.us> wrote:

> I'm supporting some code that builds an ajax link per "tag" aka. tag cloud.
>
> When there are tons of tags, this can take quite some time.
> My guess is all the overhead in having wicket build all the callbacks for
> each link.
>
> Is there a way to implement a group of ajax links that share the same
> callback?
>
> D/
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Hippo's patch for wicket ids

2009-10-15 Thread Per Lundholm
Looks like a patch to make it easier to use Selenium to test your
webapplication.

Selenium is very fond of id in tags.

/Per

On Thu, Oct 15, 2009 at 9:58 AM, Daniel Frisk  wrote:
> Ok, I'm lazy and couldn't decipher that code at a glance. What does it do?
>
> // Daniel
> jalbum.net
>
>
>
> On 2009-10-15, at 03:09, Douglas Ferguson wrote:
>
>> Has anybody seen this:
>>
>> http://www.onehippo.org/cms7/integration_testing.html
>>
>> Seems like a nice alternative vs. having to set markupIds on all
>> components.
>>
>> Thoughts?
>>
>> 
>>
>> They have a patch for wicket:
>>
>>> Index: jdk-1.4/wicket/src/main/java/org/apache/wicket/Session.java
>>> ===
>>> *** jdk-1.4/wicket/src/main/java/org/apache/wicket/Session.java
>>> (revision 724306)
>>> --- jdk-1.4/wicket/src/main/java/org/apache/wicket/Session.java
>>> (working copy)
>>> ***
>>> *** 1475,1478 
>>> --- 1475,1489 
>>>        {
>>>                return sequence++;
>>>        }
>>> +
>>> +       /**
>>> +        * Retrieves the next available session-unique value for the
>>> supplied Component
>>> +        *
>>> +        * @param component
>>> +        *            the component which requests the generation of a
>>> markup identifier
>>> +        * @return session-unique value
>>> +        */
>>> +       public Object getMarkupId(Component component) {
>>> +               return new Integer(nextSequenceValue());
>>> +       }
>>>  }
>>> Index: jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
>>> ===
>>> *** jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
>>> (revision 724306)
>>> --- jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
>>> (working copy)
>>> ***
>>> *** 1426,1437 
>>>                        return null;
>>>                }
>>>
>>> !               final int generatedMarkupId = storedMarkupId instanceof
>>> Integer
>>> !                       ? ((Integer)storedMarkupId).intValue() :
>>> Session.get
>>> ().nextSequenceValue();
>>> !
>>> !               if (storedMarkupId == null)
>>> !               {
>>> !                       setMarkupIdImpl(new Integer(generatedMarkupId));
>>>                }
>>>
>>>                // try to read from markup
>>> --- 1426,1445 
>>>                        return null;
>>>                }
>>>
>>> !               String markupIdPostfix;
>>> !               if (!(storedMarkupId instanceof Integer)) {
>>> !                       Object markupIdFromSession =
>>> Session.get().getMarkupId(this);
>>> !                       if (storedMarkupId == null && markupIdFromSession
>>> != null) {
>>> !                               setMarkupIdImpl(markupIdFromSession);
>>> !                       }
>>> !                       storedMarkupId = markupIdFromSession;
>>> !               }
>>> !               if (storedMarkupId instanceof Integer) {
>>> !                       markupIdPostfix = Integer.toHexString(((Integer)
>>> storedMarkupId).intValue()).toLowerCase();
>>> !               } else if (storedMarkupId instanceof String) {
>>> !                       return (String) storedMarkupId;
>>> !               } else {
>>> !                       markupIdPostfix = storedMarkupId.toString();
>>>                }
>>>
>>>                // try to read from markup
>>> ***
>>> *** 1449,1455 
>>>                        markupIdPrefix = getId();
>>>                }
>>>
>>> -               String markupIdPostfix = Integer.toHexString
>>> (generatedMarkupId).toLowerCase();
>>>                markupIdPostfix = RequestContext.get().encodeMarkupId
>>> (markupIdPostfix);
>>>
>>>                String markupId = markupIdPrefix + markupIdPostfix;
>>> --- 1457,1462 
>>
>>
>> Then in their session, they return stable ids
>>
>>>   private Map pluginComponentCounters = new
>>> HashMap();
>>>
>>>   // Do not add the @Override annotation on this
>>>   public Object getMarkupId(Component component) {
>>>       String markupId = null;
>>>       for (Component ancestor=component.getParent(); ancestor!
>>> =null && markupId==null; ancestor=ancestor.getParent()) {
>>>           if (ancestor instanceof IPlugin || ancestor instanceof
>>> Home) {
>>>               markupId = ancestor.getMarkupId(true);
>>>               break;
>>>           }
>>>       }
>>>       if (markupId == null) {
>>>           return "root";
>>>       }
>>>       int componentNum = 0;
>>>       if (pluginComponentCounters.containsKey(markupId)) {
>>>           componentNum = pluginComponentCounters.get
>>> (markupId).intValue();
>>>       }
>>>       ++componentNum;
>>>       pluginComponentCounters.put(markupId, new Integer
>>> (componentNum));
>>>       return markupId + "_" + componentNum;
>>>   }
>>> }
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apa

Re: google-sitebricks

2009-09-27 Thread Per Lundholm
It seems to be targetting a different category of webapps: " ... that have a
lot of textual content and some components that are inserted or modified by
Javascript interactively ... ".

That opposed to: " ... web UI design using the abstraction of a desktop UI:
Events, components and widgets interacting with user clicks and actions... "

Being one that writes the latter kind of webapps, I think it is not for me.

There is also an expression language which may be interesting to learn but I
really appreciate that I can write my logic (and test it) in Java.

So from that interview, I can't see how Sitebricks makes any sense to me.

/Per

On Sat, Sep 26, 2009 at 11:20 PM, Objelean Alex wrote:

> It seems that google created a yet-another-web-framework (as it used to be
> called). It is called google-sitebricks. Below is a link on infoq.
> http://www.infoq.com/news/2009/09/google-sitebricks
> What do you think about it?
>
> Regards,
> Alex Objelean
>


Re: Date validation in a form

2009-09-24 Thread Per Lundholm
Hi!

Don't forget to setLenient false.

Hope snippet below is enough.

/Per

public final class LocalDateFormatValidator extends StringValidator {
private static final long serialVersionUID = 1L;
private final SimpleDateFormat dateFormat;

public LocalDateFormatValidator(Locale locale) {
this.dateFormat = (SimpleDateFormat) new
DateConverter().getDateFormat(locale);
this.dateFormat.setLenient(false);
}

(...)

@Override
protected void onValidate(IValidatable validatable) {
String dateString = validatable.getValue();
try {
dateFormat.parse(dateString);
} catch (ParseException e) {
error(validatable);
}
}
}

On Thu, Sep 24, 2009 at 10:10 AM, Charles Moulliard wrote:

> I would like to know How I can validate the string date inputted by a
> user in a textfield of my form ?
>
> e.g : The SimpleDateformat to be used to create a java Date is : dd/MM/
> So I would like to check that the user has well introduced its date
> using this format
>
> Regards,
>
> Charles Moulliard
> Senior Enterprise Architect
> Apache Camel Committer
>
> *
> blog : http://cmoulliard.blogspot.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: history.go(-1) in wickets?

2009-09-10 Thread Per Lundholm
"page parameters retained"?

The parameters of which page? The one you are going back to?

"browser back button is not to be used"?

The browser has a back button whether you like it or not. Users may not see
if you hide it but still press "ALT-LEFT" while cursing over you.

The back button can be available through link:

 ExternalLink backLink = new ExternalLink("backLink",
"javascript:history.go(-1)");
add(backLink);

The semantics of the back button is like "undo". This is not always exactly
what you want, e.g. a webshop where the shopping cart must be kept in the
session so that when you go back the things in your cart does not disappear.

/Per


On Fri, Sep 11, 2009 at 5:45 AM, Jade  wrote:

> Hi people,
>
>  I want to have a hyperlink or button on click of which does a
> history.go(-1) similar to javascript.(browser back button is not be used in
> our application) with page parameters retained.
>
>  I did see couple of posts on this, like the isVersioned of the page is to
> be set to true and do some manipulations with PageReference. However, it
> was
> not so clear to me.
>
>  Could any one please explain how to do this? Does making isVersioned true
> cause any performance issues?
>
> Thanks,
> J
>


Re: How test modal windows with wicket tester?

2009-09-09 Thread Per Lundholm
   /**
 * Execute a close on a modal window.
 */
private void executeClose() {

ModalWindow window = (ModalWindow)
tester.getComponentFromLastRenderedPage(MODAL);

tester.clickLink(MODAL + ":content:closeOK", true);

List behaviors = window.getBehaviors();
for (IBehavior behavior : behaviors) {
if (behavior instanceof AbstractAjaxBehavior) {
tester.executeBehavior((AbstractAjaxBehavior) behavior);
}
}
}


2009/9/8 Martin Makundi 

> Hi!
>
> There is nothing special in testing modal windows. It is just a panel
> with a panel inside. You can use tester.assertVisible...
>
> THe only trick is if you have windowCloseCallbacks.. you need to
> invoke those manually using tester.executeBehavior...
>
> **
> Martin
>
> 2009/9/8 Denis Kandrov :
> > I have dashboard, that have modal windows for adding comments and view
> > dashboard message.
> >
> > How can I get this modal window for testing with wicket tester?
> > And how to check that modal window is opened?
> >
> > Denis.
> >
> >
> > -
> > 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: cwiki code blocks render poorly on firefox, chrome, safari

2009-08-11 Thread Per Lundholm
The ones working is not using a "code" block. Don't know much about the wiki
used, but it seems not to set up the width of textareas, leaving them to
default width.

/Per

On Tue, Aug 11, 2009 at 9:37 PM, Troy Cauble  wrote:

> I couldn't find a place on the wiki to point this out, so
>
> FYI, many of the wiki pages have code blocks that render poorly on firefox,
> chrome & safari (all on the Mac).
>
> For example, http://cwiki.apache.org/WICKET/dropdownchoice-examples.html
>
> I see code blocks with nested scrollpanes and the inner one is only about
> 20
> characters wide, so the code is wrapped tightly.  On chrome and safari
> there's
> a drag handle where you can pull each one out horizontally to make it
> readable,
> but not on firefox.  Many of the wiki pages are like this.
>
> OTOH, many similar pages are fine.  For example
> http://cwiki.apache.org/WICKET/conditional-validation.html
>
> -troy
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: setResponsePage() Not Working

2009-08-11 Thread Per Lundholm
You shouldn't need to mount anything. Did you try to reconfigure the app
server? Typically, "use cookies" instead of "url rewrite"+

On Tue, Aug 11, 2009 at 6:23 PM, Jeff Longland wrote:

> In my quest to solve this problem, I'm mounting all my pages using
> HybridUrlCodingStrategy to see if that will negate the extra ?wicket
> param in the URL.  Worked fine on GlassFish, but as soon as I moved it
> over to Sun App Server 7 I got:
>
> Exception in rendering component: [MarkupContainer [Component id =
> stylesheet]]
>org.apache.wicket.WicketRuntimeException: Exception in rendering
> component: [MarkupContainer [Component id = stylesheet]]
>at org.apache.wicket.Component.renderComponent(Component.java:2564)
>at
> org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1504)
>at org.apache.wicket.Component.render(Component.java:2361)
>at
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1387)
>at
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1569)
>at
> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1493)
>at
> org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:135)
>at org.apache.wicket.Component.renderComponent(Component.java:2525)
>at
> org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1504)
>at org.apache.wicket.Component.render(Component.java:2361)
>at
> org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:232)
>at
> org.apache.wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:78)
>at
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414)
>at
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1520)
>at org.apache.wicket.Page.onRender(Page.java:1502)
>at org.apache.wicket.Component.render(Component.java:2361)
>at org.apache.wicket.Page.renderPage(Page.java:906)
>at
> org.apache.wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:166)
>at
> org.apache.wicket.request.target.coding.HybridUrlCodingStrategy$HybridBookmarkablePageRequestTarget.respond(HybridUrlCodingStrategy.java:872)
>at
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
>at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1194)
>at org.apache.wicket.RequestCycle.step(RequestCycle.java:1265)
>at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
>at org.apache.wicket.RequestCycle.request(RequestCycle.java:498)
>at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:444)
>at
> org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
> org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
>at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:309)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
>at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
>at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
>at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
>at
> com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
>at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
>Caused by: java.lang.IllegalArgumentException:
> ../../../../../../resources/ca.uwo.owl.gradeexport.PublicPage/style.css
>at
> com.iplanet.ias.web.connector.nsapi.NSAPIResponse.toAbsolute(NSAPIResponse.java:355)
>at
> com.iplanet.ias.web.connector.nsapi.NSAPIResponse.encodeURL(NSAPIResponse.java:423)
>at
> org.apache.catalina.connector.HttpResponseFacade.encodeURL(HttpResponseFacade.java:122
> [11/Aug/2009:11:49:12] SEVERE (13977):  )
>at
> org.apache.wicket.protocol.http.WebResponse.encodeURL(WebResponse.java:146)
>at
> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.encode(WebRequestCodingStrategy.java:362)
>at
> org.apache.wicket.RequestCycle.encodeUrlFor(RequestCycle.java:761)
>at org.apache.wicket.RequestCycle.urlFor(RequestCycle.java:1034)
>at org.apache.wicket.RequestCycle.urlFor(RequestCycle.java:1003)
>at org.apache.wicket.Component.urlFor(Component.java:3258)
>at
> org.apache.wicket.markup.html.resources.PackagedResourceReference$1.getObject(PackagedResourceR

Re: setResponsePage() Not Working

2009-08-11 Thread Per Lundholm
Don't know if I am making a fool of myself here but isn't the first
"?wicket" part of the jessionid?

The jsessionid is generated by the container, right? Try changing the
settings for that and see if something becomes different.

/Per

On Tue, Aug 11, 2009 at 3:28 AM, Jeff Longland wrote:

> That's the thing that I can't seem to figure out.  The app works on
> GlassFish v2 and Tomcat, but I'm having this problem on Sun Java App
> Server 7.
>
> As suggested in ##wicket, I switched from the wicket filter to the
> wicket servlet - but I'm still having the problem where there are two
> "?wicket" in the URL after onSubmit.  ex.
>
> https://host/app/;jsessionid=24DE33C36DE4E699D304CD19573DDB31?wicket:?wicket:interface=:1::
> ::
>  I'm assuming this is what's causing the HomePage to be rendered even
> though the ResultPage is being requested?
>
> Anyone have any thoughts on why I'm getting two ?wicket params in the
> URL?  This doesn't happen on either GlassFish or Tomcat.
>
> Jeff
>
> On Mon, Aug 10, 2009 at 4:22 PM, Igor Vaynberg
> wrote:
> > no clue either. wicket is just a filter, if it works in one container
> > it should work in them all. try a couple of other containers, maybe it
> > will help you to narrow the problem.
> >
> > -igor
> >
> > On Mon, Aug 10, 2009 at 12:31 PM, Jeff Longland
> wrote:
> >> Not much in the way of clues...  The ResultPage is being instantiated,
> >> but instead of being rendered the HomePage is reloaded.  Everything is
> >> fine on GlassFish v2..  but Sun Java App Server 7 = no dice.  I'm at a
> >> loss for what to do next.
> >>
> >> On Mon, Aug 10, 2009 at 10:29 AM, Igor Vaynberg
> wrote:
> >>> turn the logging to debug level and look at the logs for any clues.
> >>>
> >>> -igor
> >>>
> >>> On Mon, Aug 10, 2009 at 7:22 AM, Jeff Longland
> wrote:
>  I've been developing a Wicket app on GlassFish v2 and everything works
>  fine.  But when I deploy the application to our production server
>  which runs Sun Java App Server 7, setResponsePage() isn't working
>  properly.  What's particularly infuriating is that I can see in the
>  database that the request is being processed (new rows) but in the
>  browser the page isn't being redirected.  Does anyone have any
>  suggestions for troubleshooting this problem?  And no, I can't upgrade
>  the production server to a newer version or Jetty for that matter :(
>  Any help would be greatly appreciated as I need to get this app
>  running.
> 
>  Thanks again,
>  Jeff
> 
>  -
>  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: pannels with diffrent width and height

2009-08-10 Thread Per Lundholm
Hi!

Does not the following spread across the window, or what do you mean?






col1col2col3




/Per

On Mon, Aug 10, 2009 at 2:35 PM, Gerald Fernando <
gerald.anto.ferna...@gmail.com> wrote:

> i used table but it will not be placed in the full page even i put table
> height and width = 100%
> if possible please explain little bit about
>
> div with CSS float: etc. in the page template.
>
>
>
> On Mon, Aug 10, 2009 at 5:24 PM, Wilhelmsen Tor Iver  >wrote:
>
> > > it will place one bye one
> > > but i need next to next.column wise
> >
> > Well, either use a Table with three columns to represent the panels or
> use
> > div with CSS float: etc. in the page template.
> >
> > - Tor Iver
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Thanks®ards,
> Gerald A
>


Re: 1.4 is ready for production?

2009-07-20 Thread Per Lundholm
The site works for me, running FF 3.0.11 on Ubuntu.

My browser is currently set to prefer Spanish but that does not apply to all
texts, some are still English. Guess that was expected.

/Per

On Tue, Jul 21, 2009 at 6:22 AM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Does not help for me. You do have logs ;) ?
>
> **
> Martin
>
> 2009/7/21 Steamus :
> >
> > M-m-m...
> >
> > May be it is some redirect problems?
> >
> > Try this:
> >
> > http://www.sport-pferde-portal.net/shglobal/home
> >
> > It is the same.
> >
> > I just cheked the site by using http://browsershots.org/
> >
> > Truly, I am puzzled, I got message - The server at
> > www.sport-pferde-portal.de sent a HTTP redirect. Your web address has
> been
> > updated. Please try again.
> >
> > But for URL above (http://www.sport-pferde-portal.net/shglobal/home) I
> got
> > snapshots for my site from a lot of browsers (3 minutes ago). I can't
> > explain it for this moment.
> >
> >
> >
> >
> >
> > aldaris wrote:
> >>
> >> Crash for me too:
> >> Mozilla/5.0 (X11; U; Linux x86_64; hu-HU; rv:1.9.1) Gecko/20090630
> >> Fedora/3.5-1.fc11 Firefox/3.5
> >> Maybe something locale-related stuff isn't working. Log files could be
> >> helpful to debug this.
> >>
> >> Peter
> >>
> >> 2009-07-20 23:15 keltezéssel, Martin Makundi írta:
> >>> Crashes or me, Mozilla/5.0 (Windows; U; Windows NT 5.1; fi;
> >>> rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11
> >>>
> >>> **
> >>> Martin
> >>>
> >>> 2009/7/21 Carl-Eric Menzel:
>  On Tue, 21 Jul 2009 00:00:04 +0300
>  Martin Makundi  wrote:
> 
> > No. It crashes. Restart your browser and you will see.
>  Works for me.
> 
>  Carl-Eric
> >>
> >> -
> >> 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/1.4-is-ready-for-production--tp24572049p24578364.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: best or common practice for application plug-ins

2009-07-20 Thread Per Lundholm
Well, plug-ins, are they compile-time or run-time?  Sounds like compile-time
from your description.

Also, from your description, it sounds that it is more than web-tier.
Remember Wicket is web-tier only.

There are solutions for the server tier for plug-ins. Look att OSGi
http://www.osgi.org and ESB.

/Per

On Mon, Jul 20, 2009 at 8:08 AM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Different form wicket-stuff?
>
> http://wicketstuff.org/confluence/display/STUFFWEB/Home
>
> **
> Martin
>
> 2009/7/20 Sam Stainsby :
> > Providing modules for others. And also providing an environment for
> third-
> > party modules. See for example:
> >
> > https://svn.plone.org/svn/collective/
> >
> > On Mon, 20 Jul 2009 08:29:51 +0300, Martin Makundi wrote:
> >
> >> What are you aiming at? Providing modules to others or building software
> >> to your client/own company?
> >>
> >> In my opinnion modules are good for the public but not for internal /
> >> sophisticated (=educated) use.
> >>
> >> **
> >> Martin
> >>
> >> 2009/7/20 Sam Stainsby :
> >>> I'm probably revealing my inexperience with J2EE environments in asking
> >>> this, but how do Wicket programmers typically handle application "add-
> >>> ons" (or "plug-ins" or "modules").
> >>>
> >>> I'm interested in emulating what happens in the Zope/Plone world (which
> >>> is where I've come from). In the case of Zope, you have a tool called
> >>> 'buildout' and configuration file (buildout.cfg) where you can, among
> >>> other things, tell buildout what modules/plug-ins you want to install.
> >>> You then run the buildout script, which will take care of finding
> >>> dependencies, downloading your modules and dependencies and installing
> >>> them into the right place. Then the next time you run Zope, those
> >>> modules are available.
> >>>
> >>> Buildout used in this way is a tool used by sys admins after you have
> >>> deployed your Zope instance. A concrete example might be to add LDAP
> >>> authentication to Zope - this would involve using buildout to install
> >>> the correct modules, and then going into Zope and configuring the LDAP
> >>> components. I know it sounds very much like maven, and perhaps maven
> >>> can be used in this way. But generally I have considered maven to be a
> >>> developer tool - at least that is how I use it.
> >>>
> >>> In my current case, I have created a web application framework built
> >>> using Wicket. I want to have a core component and the add-ons/plug-ins
> >>> such as LDAP authentication, CMS components, etc. that can be installed
> >>> easily into a generic Granite deployment.
> >>>
> >>> Does that makes sense? How have Wicket people approached this?
> >>>
> >>> Buidlout can also build and install modules you are developing, as well
> >>> as configure parts of Zope (such as the timezone). Sometime you just
> >>> use buildout to upgrade your modules. I'm interested in approaches that
> >>> encompass that as well. I'm not to fussed about having to restart the
> >>> server.
> >>>
> >>>
> >>> -
> >>> 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: Bug in modal window.onBeforeRender <-> tests

2009-07-19 Thread Per Lundholm
Was it your intention to attach some code?

/Per

On Sun, Jul 19, 2009 at 9:59 AM, Martin
Makundi wrote:
> Hi!
>
> For some reason ModalWindow assumes request is not ajax even though it
> is clicked via executeAjaxEvent:
>                if (getWebRequest().isAjax() == false)
>                {
>                        shown = false; // This hides the button
>                }
>
> Thread [main] (Suspended (breakpoint at line 3191 in Component))
>        SettingsModalPanelContents$8$3$1(Component).setVisible(boolean) line: 
> 3191
>        ModalWindow.onBeforeRender() line: 820
>        ModalWindow(Component).internalBeforeRender() line: 1061
>        ModalWindow(Component).beforeRender() line: 1095
>        RedirectPageRequestTarget(PageRequestTarget).respond(RequestCycle) 
> line: 63
>        
> WicketTester(MockWebApplication).postProcessRequestCycle(WebRequestCycle)
> line: 558
>        WicketTester(MockWebApplication).processRequestCycle(WebRequestCycle)
> line: 517
>        WicketTester(BaseWicketTester).executeAjaxEvent(Component, String) 
> line: 1233
>        WicketTester(BaseWicketTester).executeAjaxEvent(String, String) line: 
> 1109
>        TestSettings.testModalSettings() line: 157
>        NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not
> available [native method]
>        NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available
>        DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not 
> available
>        Method.invoke(Object, Object...) line: not available
>
> So the test fails with no good reason when the modal window assumes it
> is not visible.
>
> Basically what the test does is the following:
> 1. submit form
> 2. click links
> 3. executeajaxevent
> 4. submit form
> 5. executeajaxevent to open modal window
> 6. exceuteajaxevent on a button on the modal window 
>
> I found a workaround by placing "tester.setupRequestAndResponse()"
> just before line 5. Ofcourse a true fix would we nice.
>
> **
> Martin
>
> -
> 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



Possible bug in interaction between FeedbackMessages and FeedbackMessagesModel

2009-07-12 Thread Per Lundholm
Hi!

I've bumped into a problem with feedback messages not being rendered and
given the warning about it in the log.

While tracing down how this really works, it is complicated I think, I
bumped into some code that looks a bit nasty to me. It may have effect on my
problem.

If the getObjcet method is called on FeedbackMessageModel is called, it
checks whether it has set its internal "messages" variable, else it asks the
current Session for messages.

public final List getObject()
{
if (messages == null)
{
// Get filtered messages from page where component lives
messages = Session.get().getFeedbackMessages().messages(filter);

// Sort the list before returning it
if (sortingComparator != null)
{
Collections.sort(messages, sortingComparator);
}

// Let subclass do any extra processing it wants to on the
messages.
// It may want to do something special, such as removing a given
// message under some special condition or perhaps eliminate
// duplicate messages. It could even add a message under certain
// conditions.
messages = processMessages(messages);
}
return messages;
}

That means that it actually *cache* the address to the list of message. Ok,
why is that a good idea?

However, if we look how the Session returns the list of messages we see that
it will return what FeedbackMessages returns. And here comes the
interaction, FeedbackMessages returns the Collections.emptyList() if there
are no messages. In effect, FeedbackMessageModel is *caching* the address of
the Collections.emptyList() result.

If somebody later adds a message, FeedbackMesssageModel will be unaware of
that since it will keep looking at Collections.emtyList() that it has cached
and not take the trouble to ask FeedbackMessages again.

public final List messages(final IFeedbackMessageFilter
filter)
{
if (messages.size() == 0)
{
return Collections.emptyList();
}

final List list = new ArrayList();
for (final Iterator iterator = messages.iterator();
iterator.hasNext();)
{
final FeedbackMessage message = iterator.next();
if (filter == null || filter.accept(message))
{
list.add(message);
}
}
return list;
}

Now, I think it is complicated with how these feedback messages work, but
this does not look good, IMHO.

I am talking about 1.4rc6 and earlier versions as well.

Regards,
  Per


Re: Detaching and ModalWindow causes race condition

2009-07-04 Thread Per Lundholm
Oh, that is a good one.

You could make it a modal window. After a while that window (I assume)
would get to contain more and more settings. Then all of a sudden, the
last setting you added will really make statistics take a very long
time. Since the user probably can't foresee that, you wish to confirm
that the user have understood the implications. So you need a modal
window that ... oops ... you are already in a modal window.

The first thing is to think about as an alternative is to start with
direct manipulation. Is there any way you could change the settings
right when you are looking at the statistics? Typical example is the
familiar "click on column heading to sort table on contents of that
column".  Consider drag-n-drop objects if that is natural.

Second is to have the modal window inline on the page in panel. After
all, selected settings and the result in the same window feels better
than switching to another window, modal or not and then back. But
there may not be room for that. Can you split the settings in groups
to inline on several places on the page?

Next thing to consider is to have it on another page and here comes
another concern in regarding the concept of settings, life cycle. Do
all settings have the same settings? Which are per request, per
session, per user, per application? Side point? Well, it sure controls
presentation since settings with different life cycle should not be
presented together.

If the selection of statistics is a very separate activity, maybe it
should be on separate page before the page that presents the result?
Changing settings would be reached by pressing the back button.

As you understand, I am guessing here as I have not much to go on. But
these are my thoughts. Try direct manipulation, keep selections
visible all the time or resort to a separate page. Save modal windows
for that yes/no confirmation. You will need it eventually.

Kindly,
  Per


On Sat, Jul 4, 2009 at 2:13 PM, Eyal Golan wrote:
> Per,
> I see what you're saying and I have a question.
> How would you implement (UI concern) a setting page?
> What I mean is, suppose I have a page that shows some statistics.
> The statistics can be set by the user.
> We implemented a link / button that opens up a modal window to select the
> statistics.
> How would you do it?
>
>
> 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 Sat, Jul 4, 2009 at 1:40 PM, Per Lundholm  wrote:
>
>> Sorry Martijn but you are so ahead of me that I can't even follow the
>> suggestion you make.
>>
>> However, I just can support you on not using modal windows. We have a
>> back office application written in Swing that use modal windows a lot
>> and it is just getting worse by each feature added.
>>
>> Modal windows are really a last resort and should not be used at all,
>> if you can avoid it. What I have seen is that they tend to grow in
>> functionality over time and suddenly you are faced with the question:
>> "should I put a modal window here, oh, I am already in a modal
>> window".
>>
>> (Ranting further), modal windows are primarily for non-expert users
>> that need guidance when you wish to be certain that they know the
>> implications of what they do. There should be nothing but some
>> information and a yes/no question.
>>
>> Apparently, it seems that the users are pushing you around and
>> customer is always right, so what to do? I suggest a step back and
>> present a complete new style of interaction that would give users a
>> much better flow in the interaction than now.
>>
>> Thanks for reading. :-)
>>
>> Kindly,
>>   Per
>>
>> On Fri, Jul 3, 2009 at 3:11 PM, Martijn
>> Dashorst wrote:
>> > In our apps we (wrongfully IMO) make heavily use of ModalWindow (our
>> > users seem to like them). We ran into an issue/race condition where we
>> > have shared a model between the calling page and the ModalWindow. We
>> > have an autocomplete textfield with an onblur handler attached. This
>> > onblur handler is triggered when the modal window is shown resulting
>> > in two parallel Ajax requests to the server. This causes the shared
>> > model to be attached and detached at the same time, resulting in
>> > rather funky behavior.
>> >
>> > I know that one solution is to not share the model between the
>> > ModalWindow and the calling page. But we are looking for alternative
>> > (more general) solutions.
>> >
>> > Options we thought of:
>> >  - would

Re: Detaching and ModalWindow causes race condition

2009-07-04 Thread Per Lundholm
Sorry Martijn but you are so ahead of me that I can't even follow the
suggestion you make.

However, I just can support you on not using modal windows. We have a
back office application written in Swing that use modal windows a lot
and it is just getting worse by each feature added.

Modal windows are really a last resort and should not be used at all,
if you can avoid it. What I have seen is that they tend to grow in
functionality over time and suddenly you are faced with the question:
"should I put a modal window here, oh, I am already in a modal
window".

(Ranting further), modal windows are primarily for non-expert users
that need guidance when you wish to be certain that they know the
implications of what they do. There should be nothing but some
information and a yes/no question.

Apparently, it seems that the users are pushing you around and
customer is always right, so what to do? I suggest a step back and
present a complete new style of interaction that would give users a
much better flow in the interaction than now.

Thanks for reading. :-)

Kindly,
  Per

On Fri, Jul 3, 2009 at 3:11 PM, Martijn
Dashorst wrote:
> In our apps we (wrongfully IMO) make heavily use of ModalWindow (our
> users seem to like them). We ran into an issue/race condition where we
> have shared a model between the calling page and the ModalWindow. We
> have an autocomplete textfield with an onblur handler attached. This
> onblur handler is triggered when the modal window is shown resulting
> in two parallel Ajax requests to the server. This causes the shared
> model to be attached and detached at the same time, resulting in
> rather funky behavior.
>
> I know that one solution is to not share the model between the
> ModalWindow and the calling page. But we are looking for alternative
> (more general) solutions.
>
> Options we thought of:
>  - would locking the session for page directed requests implementable
> (i.e. let resource requests through the barrier, but not both requests
> to the calling page and the modalwindow page)
>  - would it work to set a client side flag when the ModalWindow is
> requested, that disables wicket-ajax for the current window to happen
> (preventing the onblur to trigger Ajax), and is reset when the
> ModalWindow is rendering in the client?
>  - render the modalwindow page in the current pagemap instead of a new
> one (would make refresh behavior pretty weird I think)
>
> Any other suggestions?
>
> Martijn
>
> -
> 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: ie6 & HybridUrlCodingStrategy using ajax and an anchor results in a 404

2009-06-30 Thread Per Lundholm
Well, of course, you should know your users, I was joking.

Still, a rumour told me that Aftonbladet.se, a major newspaper site in
Sweden, is advising IE6 users to switch to something newer. On top of
their suggestion, FireFox.

/Per

On Tue, Jun 30, 2009 at 5:59 PM,
mailingl...@jorgenpersson.se wrote:
> For what my 2 cents are worth, I think browser support should be based on
> the popularity, not release date, of the browser.
>
> If I were to run a business, and was chosing between web frameworks, I
> certainly would not want to a quarter of my potential customers to have
> problem viewing my website.
>
> Look here for some stats (of course, this is only one source, I'm sure
> you'll be able to find other stats showing other figures)
> http://www.w3counter.com/globalstats.php
>
> /Jörgen
>
> Per Lundholm skrev:
>>
>> No.
>>
>> ;-)
>>
>> /Per
>>
>> On Tue, Jun 30, 2009 at 5:02 PM, Igor Vaynberg
>> wrote:
>>
>>>
>>> do we still have to wreck our brains thinking about how to support a
>>> browser released in 2001?
>>>
>>> -igor
>>>
>>> On Tue, Jun 30, 2009 at 2:16 AM, Thijs wrote:
>>>
>>>>
>>>> I have the following setup:
>>>>
>>>> * Page mounted using a HybridUrlCodingStrategy
>>>> * AjaxLink
>>>> * And an anchor to jump to a certain section of page.
>>>>
>>>> When I jump to a section of the page using the anchor and then try to
>>>> use
>>>> the ajaxlink the page is not found.
>>>> I've traced it down to IE6 appending the #anchor in the link. While
>>>> other
>>>> browsers don't
>>>> So the requestUri in IE6 = "/home.0%23anchor"
>>>> and in other browsers it is "/home.0"
>>>>
>>>> Is this a known issue or should I open a JIRA issue?
>>>>
>>>> Thanks
>>>>
>>>> Thijs
>>>>
>>>> -
>>>> 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: ie6 & HybridUrlCodingStrategy using ajax and an anchor results in a 404

2009-06-30 Thread Per Lundholm
No.

;-)

/Per

On Tue, Jun 30, 2009 at 5:02 PM, Igor Vaynberg wrote:
> do we still have to wreck our brains thinking about how to support a
> browser released in 2001?
>
> -igor
>
> On Tue, Jun 30, 2009 at 2:16 AM, Thijs wrote:
>> I have the following setup:
>>
>> * Page mounted using a HybridUrlCodingStrategy
>> * AjaxLink
>> * And an anchor to jump to a certain section of page.
>>
>> When I jump to a section of the page using the anchor and then try to use
>> the ajaxlink the page is not found.
>> I've traced it down to IE6 appending the #anchor in the link. While other
>> browsers don't
>> So the requestUri in IE6 = "/home.0%23anchor"
>> and in other browsers it is "/home.0"
>>
>> Is this a known issue or should I open a JIRA issue?
>>
>> Thanks
>>
>> Thijs
>>
>> -
>> 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: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-26 Thread Per Lundholm
What do you mean, "not using Maven"? How can you not use Maven?

:-)

Jokes, aside. If I knew how, I would put it in the central repo, but I
guess there are people on this list that are more prominent in that
matter.

/Per

On Fri, Jun 26, 2009 at 9:12 AM, rrmlwt wrote:
> Per Lundholm wrote:
>>
>> Well done!
>>
>> +1 for Swit in maven repo.
>
> Ha, I'm not using maven, and I'm too busy right now to manage that. But
> maybe people can just add the lib in their local maven repo.
>
> Rodrigo
>
> -
> 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: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-25 Thread Per Lundholm
Well done!

+1 for Swit in maven repo.

/Per

On Fri, Jun 26, 2009 at 7:28 AM, rrmlwt wrote:
> Jeremy Thomerson wrote:
>
>> Ahh... thanks - missed that!
>>>
>>> Must say a very nice, useful package. regarding creating buttons with
>>> images.
>>> yes, this is from the sourcecode of AmazonianButton
>
> Actually the amazonian button accepts a specific, round image that fits one
> of its border(because it's a feature of this kind of button). Adding an icon
> to arbitrary buttons is definitely in the "to do" list.
>
> Rodrigo
>
> -
> 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: ModalWindow and IE8 question

2009-06-24 Thread Per Lundholm
A reset button! Should we laugh or cry? :-/

/Per

On Tue, Jun 23, 2009 at 10:26 PM, Flavius wrote:
>
>
> I cleared all cache and it still wasn't prompting the modal window.
> What I did do was go and "reset" IE8 by going to tools -> Internet Options
> -> Advanced tab and pressing the "Reset" button.  Apparently this
> makes it "just like a fresh install" and that fixed it!
>
> Don't ask me why clearing the cache didn't do it but that did, unless
> clearing the cache and closing the browser really doesn't clear
> the cache completely.  I did uncheck the "Preserve Favorites website data"
> in the Delete Browsing History dialog.
>
> Anyway, thanks Matej!  I appreciate your help.
>
>
>
>
> Matej Knopp-2 wrote:
>>
>> couldn't it be old javascript file in your browser cache?
>>
>> -Matej
>>
>> On Tue, Jun 23, 2009 at 8:25 PM, Per Lundholm
>> wrote:
>>> I don't know if it helps, but it works with IE8 on XP so there is
>>> something nasty about Vista
>>>
>>> /Per
>>>
>>> On Tue, Jun 23, 2009 at 8:17 PM, Flavius wrote:
>>>>
>>>> I'm starting to get users running Vista with IE8 (8.0.6001.18783)
>>>> report that they can't open modal dialog boxes.
>>>>
>>>> I searched through nabble and jira.  I found issue 2207 which I
>>>> understood to correct this:
>>>>
>>>> https://issues.apache.org/jira/browse/WICKET-2207
>>>>
>>>> However, I'm testing with Wicket 1.3.6 (and extensions and datetime
>>>> 1.3.6 as well) and the modal dialog is not opening.
>>>>
>>>> I also tested this with 1.4-rc4 and it's not working there either.
>>>>
>>>> I put the examples up here:
>>>>
>>>> http://68.15.93.72/wicket-examples-1.3.6/ajax/modal-window
>>>> http://68.15.93.72/wicket-examples-1.4-rc4/ajax/modal-window
>>>>
>>>> If I go here and try to open these with IE8 on Vista, they don't
>>>> open.  It works with other browsers I've tested with (ff, safari 3/4,
>>>> IE6/7).
>>>>
>>>> Can anybody give me any insight to this?
>>>> Thanks very much.
>>>>
>>>>
>>>> -
>>>> 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
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/ModalWindow-and-IE8-question-tp24171801p24173623.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: ModalWindow and IE8 question

2009-06-23 Thread Per Lundholm
I don't know if it helps, but it works with IE8 on XP so there is
something nasty about Vista

/Per

On Tue, Jun 23, 2009 at 8:17 PM, Flavius wrote:
>
> I'm starting to get users running Vista with IE8 (8.0.6001.18783)
> report that they can't open modal dialog boxes.
>
> I searched through nabble and jira.  I found issue 2207 which I
> understood to correct this:
>
> https://issues.apache.org/jira/browse/WICKET-2207
>
> However, I'm testing with Wicket 1.3.6 (and extensions and datetime
> 1.3.6 as well) and the modal dialog is not opening.
>
> I also tested this with 1.4-rc4 and it's not working there either.
>
> I put the examples up here:
>
> http://68.15.93.72/wicket-examples-1.3.6/ajax/modal-window
> http://68.15.93.72/wicket-examples-1.4-rc4/ajax/modal-window
>
> If I go here and try to open these with IE8 on Vista, they don't
> open.  It works with other browsers I've tested with (ff, safari 3/4,
> IE6/7).
>
> Can anybody give me any insight to this?
> Thanks very much.
>
>
> -
> 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: TinyMCE bug: http://readystate4.com/2009/05/15/tinymce-typeerror-twindocument-is-null-in-firebug-console/

2009-06-18 Thread Per Lundholm
Possible to use the close-callback of Modalwindow?

http://wicket.apache.org/docs/1.4/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.html#setCloseButtonCallback(org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.CloseButtonCallback)

/Per
On Fri, Jun 19, 2009 at 2:45 AM, Fernando
Wermus wrote:
> I am trying to run a TinyMCE in a ModalWindow. If the modalWindow is closed
> TinyMCE requires removes some instances through its api:
>
> tinyMCE.execCommand('mceRemoveControl', false, 'idTextArea');
> tinyMCE.execCommand('mceAddControl', false, 'idTextArea');
>
> But modalWindow close button didn't inform anything to its content. Thus I
> don't find a way to run this two sentences by tinyMCEBehavior.
>
> thanks
>
> --
> 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



Re: Mysterious NullPointerException

2009-06-18 Thread Per Lundholm
No. ;-)

Are you suggesting that the version of Wicket matters?

How does the stack dump look in your logs?

/Per


On Thu, Jun 18, 2009 at 4:25 PM, Jeremy Levy wrote:
> I see the following a few times a day, this is with Wicket 1.3.6.  It
> results in a 500 being displayed to the user...
>
> 2009-06-18 00:53:09,485 ERROR Web [RequestCycle] :
> java.lang.NullPointerException
>
> I realize this isn't much to go on, any ideas?
>
> j
>

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



Re: default integer form values

2009-06-18 Thread Per Lundholm
What is the initial value of "residueNumber"?

/Per

On Thu, Jun 18, 2009 at 3:35 PM, Bas Vroling wrote:
> I have a form with a textfield bound to an object containing interger
> values:
>
> TextField residueNumber = new TextField(
>                                "residueNumber", new
> PropertyModel(pso,
>                                                "residueNumber"));
>
> when this field is rendered it shows "0" as the 'empty' value, whereas
> string members are rendered real empty. It look strange this way, is there a
> way to display an empty field for an int?
>
> -
> 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: [OFF TOPIC] Java desktop applications

2009-06-15 Thread Per Lundholm
To clarify: JavaFX is another language, which is what I believe Nino
means by "some scripting language". It has some features that makes
GUI design easier, such as binding variable to position of a slider.
You can skin your JavaFX app with CSS, if you like.

It is seamlessly integrated with Java.

/Per

On Mon, Jun 15, 2009 at 8:22 AM, nino martinez
wael wrote:
> My conclusion are.. Go for Wicket solution if you can (also because I
> want to hear some experiences with it as a desktop solution) :) The
> only thing holding you back are if need todo heavy graphics or need to
> manipulate the desktop somehow (control mouse or keyboard etc)..
>
> The largest issue about going towards a desktop solution with java are
> that designing the ui really are a pain if you dont use something like
> mattise, it's even worse that hacking html.. I'll agree on the javaFX
> thing, although it seems that you really can do some nice looking
> stuff in it. I havent checked if there are some simple and easy
> frameworks built around javaFX... afair it's a minus that javaFX uses
> some scripting language, but thats just me.
>
> regards Nino
>
> 2009/6/13 Jeremy Thomerson :
>> Yeah - I was considering using JRex [1] as an embedded browser, and
>> basically making a simple Swing app that loads up, starts an embedded
>> Jetty instance, has a window that loads the homepage of the local app
>> running within Jetty, and viola - instant desktop app using Wicket!
>> Probably not as simple as it sounds, but it's a thought.  At least I
>> wouldn't have to worry about cross-browser CSS hacks :)
>>
>> I will probably try a full-fledged Swing app using one or more of the
>> suggestions here... perhaps with Spring Rich Client, which can provide
>> a lot of the bootstrap code.  Glazed lists looks like a definite
>> must-have.  JavaFX looks nice, but I don't think I'm really in to
>> learning that many new things all on one project.  So I'll probably
>> stay away from JavaFX for this first project, unless someone with
>> JavaFX experience convinces me otherwise.
>>
>> [1] - http://jrex.mozdev.org/index.html
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Sat, Jun 13, 2009 at 10:01 AM, nino martinez
>> wael wrote:
>>> Hi Jeremy
>>>
>>> I'd say either use netbeans (matisse) or something a bit more
>>> experimental, pack wicket with jetty as a desktop app I considered
>>> this a couple of times. You could even put in something like
>>> http://lobobrowser.org/java-browser.jsp.. Might too extreme though:)
>>>
>>>
>>>
>>> 2009/6/11 Jeremy Thomerson :
 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


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

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Per Lundholm
GWT is nice until you have too many objects on screen, then
performance drops to horrible.

What I like about doing HTML is that a lot of the layout problems have
been solved. Crude, yes, but solved.

Here is some hundreds of JavaFX examples, http://jfxstudio.wordpress.com

One is mine :-)

/Per

On Fri, Jun 12, 2009 at 8:59 AM, Martin Sachs wrote:
>
> 1: Maybe QT  or what about java.net!
> 3: Adope AIR is really nice looking
> 4: if you have in mind, that you would need the app also in web
> (intranet) build a wicket application. Desktop apps have better
> usability in general.
>   GWT-application is an option to have both worlds !
>
>
> Jeremy Thomerson schrieb:
>> 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
>>
>>
>>
>
>
> -
> 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: [OFF TOPIC] Java desktop applications

2009-06-11 Thread Per Lundholm
Hi

I second that about JavaFX if youo really mean NICE looking.

http://weblogs.java.net/blog/aim/archive/2009/06/insiders_guide.html

http://weblogs.java.net/blog/aim/archive/javaone09/TS-5575ExtremeGUI.pdf

/Per

On Fri, Jun 12, 2009 at 8:38 AM, Jade wrote:
> Yes and be aware that netbeans adds its own library files or jar files for
> the UI layouts. I had problems with it because we had to maintain those jars
> in the local maven repository which not all of them liked apparently :-s
> On Fri, Jun 12, 2009 at 10:23 AM, Jon Laidler  wrote:
>
>>
>> Netbeans v6.5 Windows and Linux version is bundled with a GUI builder,
>> earlier version of Netbeans used Matisse.
>>
>>
>> John Armstrong-3 wrote:
>> >
>> > 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
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-OFF-TOPIC--Java-desktop-applications-tp23989810p23992828.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: singletons, pools, wicket, web services and architecture

2009-05-28 Thread Per Lundholm
IMHO: Sounds like you need an J2EE application server more than just a
servlet container (tomcat) with all integration issues.

/Per

2009/5/28 Martijn Dashorst :
> Might be a dumb question, but why not make your wicket front end use
> the JAX-WS services as well?
>
> Martijn
>
> On Thu, May 28, 2009 at 10:01 PM, Christopher L Merrill
>  wrote:
>> I've got a few questions that are somewhat general to web development,
>> but since we've chosen Wicket as one of our front-end frameworks, I
>> thought I would ask here first for pointers...especially where there
>> may be a "wicket way" of doing things that we need to be aware of.
>>
>> The system we're developing will have 2 UIs - a browser-based UI
>> developed in Wicket and an Eclipse-based rich-client app (Java).  The
>> available functionality will be a little different in each but with a
>> good bit of overlap.  There must be common authentication - a user
>> might use either UI or both at any given time.  We'll likely be using
>> JAX-WS for communicating between the rich client and server. The server
>> will be Tomcat.
>>
>> We obviously need to keep very good separation between the business logic
>> and presentation layers, since there will be 2 presentation layers :>
>>
>> 1) We need to have an "application" object/singleton to hold things
>> like "online/offline" mode - so we can, for example, bring the application
>> down for maintenance and give the user an intelligent response.  In
>> Wicket, I think that would be the Application object?  I assume we'll
>> need to make that reference a MyApplication object - how do I expose
>> that to both Wicket and the WS APIs?  JNDI?
>>
>> 2) We'll want our database connection pools to also be shared...one
>> of the databases is an odd-ball - Filemaker (groan) - and I'm not sure
>> how to pool connections for it and share the pool between the Wicket
>> app and the WS APIs?  When I've used connection pools in the past,
>> it has always been something common, like MySQL, so the Tomcat configuration
>> was pretty well-documented.  I'm not sure where to start with this one?
>>
>> 3) Any other architecture issues I should be thinking about?  Pointers?
>> Good articles that might address some of these issues?
>>
>> Thanks in advance!
>> Chris
>>
>>
>> --
>>  -
>> Chris Merrill                           |  Web Performance, Inc.
>> ch...@webperformance.com                |  http://webperformance.com
>> 919-433-1762                            |  919-845-7601
>>
>> Website Load Testing and Stress Testing Software & Services
>>  -
>>
>> -
>> 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.3.5 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
FaceBush, min insamling i Mustaschkampen:
http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243

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



Re: Tips to start writing tests

2009-05-26 Thread Per Lundholm
Hi

How about inserting the User object into the session before each test?

private WicketTester tester;

@Before
public void beforeEachTest() {

 User fakeUser = new User();

 tester.setupRequestAndResponse();
 MySession wicketSession = (MySession) tester.getWicketSession();
 wicketSession.setUser(fakeUser);
}


/Per


2009/5/26 HHB :
> Hey,
> I want to write tests for my Wicket pages and panels.
> The application is guarded via login functionality and all
> the pages and panels are depending on a User object in the session.
> I know who to write tests for Wicket, but I'm not sure what
> to do in my case due the authentication and authorization strategy.
> Any tips?
> Basically, the application is just one page and navigation is
> done via panels sweeping.
> Thanks.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
FaceBush, min insamling i Mustaschkampen:
http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243

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



Re: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread Per Lundholm
I assume you have read the parts about validation in Wicket.

There are several examples of integrating Wicket with various
JavaScript libraries, such as Dojo.

/Per


2009/5/25 David Chang :
>
>
> I am now reading the book "Wicket in Action" to learn about Wicket. The more 
> I read and the more I like it!
>
> I did a few projects with Spring MVC in the past. In these projects, I 
> defined form field validation rules in an XML file and Spring adds both 
> client side and server-side, which I think is quite helpful.
>
> I just want to know how to do the same thing in Wicket. The validation rules 
> dont have to be in an XML file and they can be in Wicket's Java files, but I 
> hope Wicket can generate client-side validation.
>
> Please dont argue with me about the good or bad things about client-side 
> validation. I simply want to know whether Wicket can do it or how to it, as 
> well as any attempt in this regard.
>
> Thanks so much for your help!
>
> Cheers!
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
FaceBush, min insamling i Mustaschkampen:
http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243

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



Re: Whats wrong with my component?

2009-05-24 Thread Per Lundholm
So the TextArea gets a CompoundPropertyModel that has a MessageVO object.

The MessageVO has a method "getLanguage" ?

How should the TextArea display the contents of MessageVO?

HTH

/Per

2009/5/24 HHB :
>
> Ok, the TextArea has its own model so I passed the model parameter of the
>  component constructor to the TextArea:
>
> final TextArea textArea = new TextArea("text", model);
>
> And in the panel:
>
> CompoundPropertyModel formModel =
>        new CompoundPropertyModel(new MessageVO());
> MessageTextArea textArea = new MessageTextArea("text", formModel);
>
> Now, the custom textarea is displaying the toString() method of MessageVO
> object and upon submitting the form, I got the exception:
>
>  Attempted to set property value on a null object. Property expression:
> language Value: English
> org.apache.wicket.WicketRuntimeException: Attempted to set property value on
> a null object. Property expression: language Value: English
>
>
>
>
> James Carman-3 wrote:
>>
>> Just think to yourself what models are being used here.  The TextArea
>> inside the MessageTextArea is bound to what?  And, the
>> MessageTextArea's model is bound to what?
>>
>> On Sun, May 24, 2009 at 7:32 AM, HHB  wrote:
>>>
>>> Would you please tell me in code (my code I posted earlier) what do you
>>> mean?
>>> I really appreciate your time and help.
>>>
>>>
>>> igor.vaynberg wrote:

 you do not bind the model of the textarea to the model of the
 messagetextarea, so why are you surprised the value never makes it
 into your model?

 -igor

 On Thu, May 21, 2009 at 4:45 AM, HHB  wrote:
> Hey,
> I'm trying to create my first component in Wicket:
> +
> public class MessageTextArea extends
>    FormComponentPanel {
>
>    private String text;
>
>    public MessageTextArea(String id) {
>        this(id, null);
>    }
>
>    public MessageTextArea(String id, IModel model) {
>        super(id, model);
>        setType(String.class);
>        setOutputMarkupId(true);
>
>        final PropertyModel textModel =
>              new PropertyModel(this, "text");
>        final TextArea textArea =
>              new TextArea("text", textModel);
>        textArea.setRequired(true);
>        textArea.setOutputMarkupId(true);
>        add(textArea);
>    }
>
> }
> +
> And to use the component:
> +
> CompoundPropertyModel formModel =
>      new CompoundPropertyModel(new MessageVO());
> form.setModel(formModel);
> add(form);
> MessageTextArea textArea = new MessageTextArea("text");
> +
> The problem is when I pass formModel to textArea component,
> I got a value expression error, and a NPE if I don't pass the model.
> What I'm doing wrong?
> Thanks for help and time.
>
>
> -
> 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://www.nabble.com/Whats-wrong-with-my-component--tp23651847p23692734.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
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Whats-wrong-with-my-component--tp23651847p23692862.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
>
>



-- 
FaceBush, min insamling i Mustaschkampen:
http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243

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



Re: Storing css and image files

2009-05-24 Thread Per Lundholm
Check out the tag 

/Per

2009/5/24 Lucas Bonansea :
> Hello.
>           I'm new to web development and to Wicket. I created an Wicket
> project in Eclipse following the instructions in the website, from there and
> following the examples I have been able to create a couple of simple web
> pages. The problem I am having, is that I don't know where to store my css
> file and my image files so that they would be loaded when I execute my new
> web pages.
>           If possible I would like to do it using relative paths so then I
> can deploy my war elsewhere
>
> Thanks
>
> Lucas B
>



-- 
FaceBush, min insamling i Mustaschkampen:
http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243

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



Re: 60% waste

2009-05-08 Thread Per Lundholm
Well, strings all over the place, if I get what you mean.

But I write the tests first and they define what the paths and ids
should be and Wicket is really quick about discovering when the
implementation doesn't follow spec (i.e. tests).

Doing a small step at a time takes you there faster.

"Let's see there should be a label here, let's write a test for it and
run it. Oh, it failed. Guess I add a label to the code. Oh it throw an
exception, guess I add it to the markup as well. Green bar. Perhaps
another label..."

if you do this in steps instead of doing a page at the time, you don't
need chasing typos so much since you immediatley discovers any
mistakes much more quickly.

/Per

On Fri, May 8, 2009 at 5:48 PM, Martin Makundi
 wrote:
> Hi!
>
> I use TDD: I spend 60% of my time type-checking and path-checking my
> wicketTests and components.
>
> I always have the wrong path and I must prinDocument and iterate to
> get it right
>
> Anybody have the same experience?
>
> How about introducing type-safety and path-safety/identity into
> component hierarchies?
>
> Can this be done?
>
> **
> Martin
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
FaceBush, min insamling i Mustaschkampen:
http://www.cancerfonden.se//sv/Mustaschkampen/Kampa/Insamlingar/?collection=243

-
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-04-30 Thread Per Lundholm
No tools require an internet connection all the time. The repositories
Nexus, Archiva etc are local to your site. They only download from the
internet when you ask for something the first time.

That is one reason for having a local repository manager. Then you
have your personal repository as always with Maven.

If you are offline, but have a class library on some media, e.g. a USB
stick, you can deploy that to your local repository.

Hope this helps.

/Per

On Thu, Apr 30, 2009 at 12:47 PM, Geeta Madhavi  wrote:
> Hi...
>
> U can use Maven,Eclipse latest version for development..Server as Tomcat or
> any other you wish..but use Maven instead of ant. And for reference you can
> check the Wicket in Action book
>
>
>
> On Wed, Apr 29, 2009 at 8:43 PM, Dane Laverty  wrote:
>
>> My boss has asked me to manage development for a Java project. I'm going to
>> be working with two other programmers and one designer.
>>
>> This is the first time that our organization has tried to formally
>> coordinate several programmers on a project together, and it is also the
>> first Java project we've done here (I'm the only programmer with extensive
>> Java experience). I chose to use Wicket for this project because it seemed
>> to be the most intuitive framework, and because I hope it will make it easy
>> for the designer and programmers to work together without stepping on each
>> others toes.
>>
>> At my previous job, we used CVS for managing code contribution and Ant for
>> deployment. Is that still a good solution, or should I be looking at other
>> tools? Also, how do you coordinate the designer's work with the
>> programmers'
>> work?
>>
>> My goal is to find a few tools that
>> - work well with Wicket
>> - make it easy for programmers to check code in and out
>> - manage project dependencies
>> - are easy to set up
>> - are easy to use
>> - are free
>>
>> I appreciate any and all suggestions. Thanks for your help!
>>
>
>
>
> --
> Regards.
> Geeta Madhavi. K
>



-- 
Varning! E-post till och från Sverige, eller som passerar
servrar i Sverige, avlyssnas av Försvarets Radioanstalt, FRA.

WARNING! E-mail to and from Sweden, or via servers in Sweden,
is monitored by the National Defence Radio Establishment.

-
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-04-29 Thread Per Lundholm
+1 for that book but we are reaching beyond the scope of the question.

I would prefer that designers and programmers stepped on each others
toes all the time rather than working on separate branches. The former
is more agile.

/Per

On Wed, Apr 29, 2009 at 10:21 PM, Brill Pappin  wrote:
> Heres another book for you.
> This is actually one of my favorites, particularly if you working with
> existing code.
>
> http://www.amazon.com/Working-Effectively-Legacy-Robert-Martin/dp/0131177052
>
>
>
>
> - Brill Pappin
>
>
>
>
>
> On 29-Apr-09, at 4:11 PM, Dane Laverty wrote:
>
>> Thanks again to everyone for all the feedback. I'm reading through Design
>> Patterns and Wicket in Action, but I've never heard of Effective Java. The
>> Amazon reviews for that book are also amazing. I've got it ordered now and
>> am excited to see what it will bring.
>>
>> On Wed, Apr 29, 2009 at 12:37 PM, Scott Swank 
>> wrote:
>>
>>> I agree with Jeremy, that tech books are probably far more important
>>> than project management books for a first Java project.
>>>
>>> Basics
>>> -Effective Java, Joshua Block
>>> -Wicket in Action, Dashorst & Hillenius
>>> -one more on jdbc or hibernate or ibatis -- your persistence api
>>>
>>> Design (language agnostic)
>>> -Design Patterns, gang of four
>>> -Domain Driven Design, Eric Evans
>>>
>>> Advanced (as needed)
>>> -Java Concurrency in Practice, Goetz
>>> -NIO from O'Reilly
>>> -whatever...
>>>
>>> Scott
>>>
>>>
>>> On Wed, Apr 29, 2009 at 12:19 PM, Jeremy Thomerson
>>>  wrote:

 I would HIGHLY recommend that each of you get a copy of Joshua Bloch's
 Effective Java, now in it's second edition.  It's not really project
 management, but since your team as a whole is not mature with Java, it
 will offer some good advice.  Of course, make sure everyone is
 familiar with Wicket in Action and has gone through the exercises -
 that will give them a good foundation.

 As far as books on Java project management, I don't have any
 recommendations.  I've perused some but never been fascinated.  Maybe
 someone else will have a good recommendation.

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



-- 
Varning! E-post till och från Sverige, eller som passerar
servrar i Sverige, avlyssnas av Försvarets Radioanstalt, FRA.

WARNING! E-mail to and from Sweden, or via servers in Sweden,
is monitored by the National Defence Radio Establishment.

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



Re: GWT-like

2009-04-29 Thread Per Lundholm
Yeah but I have a really bad experience with GWT. If the number of
objects that are on a page goes up, performance decreases drastically
due to the use of Javascript. No wonder Google wrote a browser of
their own.

Take a look at AjaxLazyLoadPanel if it might do the trick for your
heavier parts.

Javadoc: "A panel where you can lazy load another panel. This can be
used if you have a panel/component that is pretty heavy in creation
and you first want to show the user the page and the replace the panel
when it is ready. "

/per

On Wed, Apr 29, 2009 at 9:11 PM, Igor Vaynberg  wrote:
> dont try to make wicket into gwt. if you want a fat client then use
> gwt, if you want a server-side app then use wicket.
>
> -igor
>
> On Wed, Apr 29, 2009 at 8:06 AM, kan  wrote:
>> Is there any easy way to make wicket applications like GWT? I mean to
>> make a "heavy client side", so it will allow easy manage data
>> pre-loading and requests (AJAX too) caching. The aim is to minimize
>> amount of web-server requests.
>> Say, I have several tabs on a page. Some tabs should have all data
>> pre-loaded and switched immediately (no requests to server). Some tabs
>> are "big", so they do an AJAX request for data, but only if a tab is
>> opened first time.
>>
>> --
>> WBR, kan.
>>
>> -
>> 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
>
>



-- 
Varning! E-post till och från Sverige, eller som passerar
servrar i Sverige, avlyssnas av Försvarets Radioanstalt, FRA.

WARNING! E-mail to and from Sweden, or via servers in Sweden,
is monitored by the National Defence Radio Establishment.

-
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-04-29 Thread Per Lundholm
Hi

Have you seen the Maven guide?
http://www.sonatype.com/books/maven-book/reference/

It presents Nexus instead of Archiva which we use at my current contract.

We also use Hudson and it was really easy to setup. You can try it
with a simple click on the webstart button here:
http://wiki.hudson-ci.org/display/HUDSON/Meet+Hudson

Good Luck!

mvh
  Per


On Wed, Apr 29, 2009 at 6:43 PM, Dane Laverty  wrote:
> Thanks for the suggestions of Continuum, Hudson, and Archiva. I'm not
> familiar with any of them, so that at least gives me some direction. Also,
> is there a book or website you would recommend that explains some best
> practices for Java project management?
>
> I would love to get a team training course in here. That's what we really
> need, but recent budget cuts have forced the college to cut way back on its
> training budget. As soon as the funding is back, I'm planning to give you
> guys a call :)
>
> On Wed, Apr 29, 2009 at 8:39 AM, Jeremy Thomerson > wrote:
>
>> I'd definitely suggest SVN over CVS and Maven over Ant.  Maven truly
>> manages dependencies.  Ant does not.
>>
>> I'd suggest Continuum rather than Hudson simply because it is quick
>> and easy to set up and it is built to build Maven projects - so it
>> will be easier for your inexperienced team to do so.
>>
>> And of course, a team training course is never a bad idea :)
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Wed, Apr 29, 2009 at 10:19 AM, Florian Sperber 
>> wrote:
>> > Hi Dane,
>> >
>> > Dane Laverty schrieb:
>> >>
>> >> My goal is to find a few tools that
>> >> - work well with Wicket
>> >> - make it easy for programmers to check code in and out
>> >> - manage project dependencies
>> >> - are easy to set up
>> >> - are easy to use
>> >> - are free
>> >>
>> >> I appreciate any and all suggestions. Thanks for your help!
>> >>
>> >
>> > what about:
>> >
>> > - svn (instead of cvs)
>> > - maven (check the quickstart project on the wicket page)
>> > - archiva (your own maven repository)
>> > - hudson (continous integration build system)
>> >
>> >
>> > Kind regards
>> > Florian Sperber
>> >
>> > -
>> > 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
>>
>>
>



-- 
Varning! E-post till och från Sverige, eller som passerar
servrar i Sverige, avlyssnas av Försvarets Radioanstalt, FRA.

WARNING! E-mail to and from Sweden, or via servers in Sweden,
is monitored by the National Defence Radio Establishment.

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