Re: [Wicket-user] Custom ISessionStore

2007-08-09 Thread Matej Knopp
There is SimpleSynchronousFilePageStore in trunk that acts as a simple
example implementation of IPageStore. Beware, it's slow and
unoptimized, as it's is only for example purposes.

If you need fast IPageStore try DiskPageStore.

-Matej

On 8/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> DiskPageStore , SecondLevelCacheSessionStore in core
>
> -igor
>
>
> On 8/9/07, Seldon, Richard <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hello. Does anyone have any working example implementations of a custom
> > ISessionStore.
> > Perhaps writing to disk / database etc. Hoping to get up to speed
> > v.quickly.
> > Best regards,
> >
> > Richard.
> >
> >
> > This e-mail (and any attachments) may contain privileged and/or
> > confidential information. If you are not the intended recipient please do
> > not disclose, copy, distribute, disseminate or take any action in reliance
> > on it. If you have received this message in error please reply and tell us
> > and then delete it. Should you wish to communicate with us by e-mail we
> > cannot guarantee the security of any data outside our own computer systems.
> > For the protection of Legal & General's systems and staff, incoming emails
> > will be automatically scanned.
> >
> > Any information contained in this message may be subject to applicable
> > terms and conditions and must not be construed as giving investment advice
> > within or outside the United Kingdom.
> >
> > The following companies are subsidiary companies of the Legal & General
> > Group Plc which are authorised and regulated by the Financial Services
> > Authority for advising and arranging the products shown: Legal & General
> > Partnership Services Limited (insurance and mortgages), Legal & General
> > Insurance Limited (insurance), Legal & General Assurance Society Limited
> > (life assurance, pensions and investments), Legal & General Unit Trust
> > Managers Limited and Legal & General Portfolio Management Services Limited
> > (investments).
> >
> > They are registered in England under numbers shown.
> > The registered office is Temple Court, 11 Queen Victoria Street, London
> > EC4N 4TP.
> >
> > Legal & General Partnership Services Limited: 5045000 Legal & General
> > Assurance Society Limited: 166055 Legal & General (Unit Trust Managers)
> > Limited: 1009418 Legal & General (Portfolio Management Services) Limited:
> > 2457525 Legal & General Insurance Limited: 423930
> >
> > They are registered with the Financial Services Authority under numbers
> > shown. You can check this at www.fsa.gov.uk/register
> >
> > Legal & General Partnership Services Limited: 300792 Legal & General
> > Assurance Society Limited: 117659 Legal & General (Unit Trust Managers)
> > Limited: 119273 Legal & General (Portfolio Management Services) Limited:
> > 146786 Legal & General Insurance Limited: 202050
> >
> >
> > -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > ___
> > IMPORTANT NOTICE:
> >
> > This mailing list is shutting down. Please subscribe to the Apache Wicket
> > user list. Send a message to: "users-subscribe at wicket.apache.org" and
> > follow the instructions.
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> IMPORTANT NOTICE:
>
> This mailing list is shutting down. Please subscribe to the Apache Wicket 
> user list. Send a message to: "users-subscribe at wicket.apache.org" and 
> follow the instructions.
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
___
Wicket-user mail

Re: [Wicket-user] Form inside a modalWindow inside a Form :-/

2007-08-06 Thread Matej Knopp
That's weird. If you really don't have nested forms this shouldn't
happen. Can you plese provide a testcase?

-Matej

On 8/6/07, Tim O'Brien <[EMAIL PROTECTED]> wrote:
> I'm having a similar problem in 1.3.0-SNAPSHOT without any nested
> forms.   I simply have a ModelWindow with a Panel, in the panel I
> define (among other things):
>
>   Form reorder = new Form("reorder");
>   reorder.setOutputMarkupId(true);
>   add( reorder );
>
> But in the generated HTML, the  element was missing when I tried
> to use a Model dialog with a Panel vs. a Page.When I switched to
> using a Page everything worked perfectly.
>
>
> On 6/22/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > What wicket version are you using? Nested forms are only supported in
> > 1.3. If you are using modal window with 1.2, the only reliable way to
> > use forms is putting a page inside modal window.
> >
> > -Matej
> >
> > On 6/22/07, Frank Bille <[EMAIL PROTECTED]> wrote:
> > > On 6/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
> > > > Hi, i'm having an strange behavior in my application.
> > > > i have a form with a listview inside and the items in this listview can 
> > > > be
> > > > reordered using buttons (that's why the list is inside a form). In the
> > > > form i have a link that opens a modalWindow to add a new element to my
> > > > list (the link and the modal are defined as elements inside the form).
> > > >
> > >
> > > Why is the modal component defined inside the form? Couldn't you just move
> > > it out of the form?
> > >
> > > Frank
> > >
> > > -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
>
> --
> --
> Tim O'Brien: (847) 863-7045
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> IMPORTANT NOTICE:
>
> This mailing list is shutting down. Please subscribe to the Apache Wicket 
> user list. Send a message to: "users-subscribe at wicket.apache.org" and 
> follow the instructions.
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DropDown within ModalWindow does not work in Camino

2007-08-01 Thread Matej Knopp
It's weird, what version of wicket are you testing it with?

-Matej

On 8/2/07, Michael Day <[EMAIL PROTECTED]> wrote:
> That one works, but it's a page.  Maybe that's why?  I'm using a panel.
>
> On Aug 1, 2007, at 6:16 PM, Eelco Hillenius wrote:
>
> > Works fine for me. Btw, the modal windows example in
> > wicket-examples/ajax has a dropdown in it (the AM/PM field of the
> > first modal window).
> >
> > Eelco
> >
> >
> > On 7/31/07, Michael Day <[EMAIL PROTECTED]> wrote:
> >> DropDown within ModalWindow does not work in Camino.  It displays,
> >> but nothing happens when I click it to expand.  Has anybody else
> >> experienced this?
> >>
> >> -
> >> 
> >> This SF.net email is sponsored by: Splunk Inc.
> >> Still grepping through log files to find problems?  Stop.
> >> Now Search log events and configuration files using AJAX and a
> >> browser.
> >> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> >> ___
> >> IMPORTANT NOTICE:
> >>
> >> This mailing list is shutting down. Please subscribe to the Apache
> >> Wicket user list. Send a message to: "users-subscribe at
> >> wicket.apache.org" and follow the instructions.
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >
> > --
> > ---
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a
> > browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > ___
> > IMPORTANT NOTICE:
> >
> > This mailing list is shutting down. Please subscribe to the Apache
> > Wicket user list. Send a message to: "users-subscribe at
> > wicket.apache.org" and follow the instructions.
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> IMPORTANT NOTICE:
>
> This mailing list is shutting down. Please subscribe to the Apache Wicket 
> user list. Send a message to: "users-subscribe at wicket.apache.org" and 
> follow the instructions.
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: "users-subscribe at wicket.apache.org" and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Matej Knopp
Problem is when you call getMarkupId(). If you call this method before
the first page render, Wicket is not able to get the markup attribute
for some components (because of borders and transparent resolvers
which break the 1:1 mapping of component tree <-> markup.

-Matej

On 7/26/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> How hard would it be to add a method like useHtmlElementId()?  It
> would default to false, but when a component returns "true" then the
> element id from the template would be used.
>
> Scott
>
> On 7/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > the general problem here is that hardcoding ids into wicket markup is mostly
> > dangerous because things are so reusable.
> >
> > if you put an id into a repeater then it will be repeated all the time -
> > causing multiple elements with the same id - which will lead to invalid
> > html.
> >
> > hardcoding an id inside a panel or a fragment will lead to the same problem.
> > it isnt something obvious until you start reusing code and then it gets
> > nasty all of a sudden. so my two cents are to discourage this.
> >
> > however, as a workaround for cases where you _must_ do this we have
> > component.setmarkupid(string) in trunk - you can use that to force any id
> > you want.
> >
> > -igor
> >
> >
> > On 7/26/07, Kirk Israel <[EMAIL PROTECTED]> wrote:
> > >
> > > On 7/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > > http://issues.apache.org/jira/browse/WICKET-694
> > > > > i guess there were problems when implementing this, maybe eelco can
> > > > > ellaborate more on the "unforeseen side effects"
> > > >
> > > > Yeah, they were listed in the thread that is mentioned in the issue:
> > > >
> > > http://www.nabble.com/Re%3A-getMarkupId-doesn%27t-return-the-id-from-the-markup-p11294903.html
> > > >
> > > > I don't really know what to do with it tbh. I hope someone else has
> > > > some suggestions.
> > >
> > > I'm a little surprised this isn't more of a high priority item... I
> > > know Repeaters et al might need some special casing, but could the
> > > "usual" cases do what the coder probably expects, i.e. if you specify
> > > in html markup, that id is preserved (and therefore usable in
> > > javascript's getElementById ??)
> > >
> > > Or... I'm not sure what else might depend on that Id as it gets spit
> > > out into what's finally sent to the browser, but maybe there could be
> > > a some kind of mapping function in javascript,
> > > .getElementByWicketId(id)? and
> > > getRepeaterElementByIdAndIterationNumber(id,num)
> > > (I tend to make my function names a bit long :-)
> > >
> > > As a thinking point, my group has come up with 3 possible workarounds
> > > until the real solution appears:
> > > * temporary, awful hack bandaid currently in use: our javascript
> > > getElementById added a "6" to the id... the fragile nature of this
> > > "fix" is not lost on us
> > > * go through some function along the lines of getElementByPrefixOfId()
> > > , so we can get what was specified
> > > * every form has a hidden field like  > > name="OUR_ID" value="XYZ">, and then we have a specific
> > > getFormByOurId()
> > >
> > > Again, I'm not sure what getMarkupId(Component) is called by, if it's
> > > mostly wicket internal use or what... most of what I've talked about
> > > here is javascript workarounds, though i guess the underlying Java
> > > equivalents should be obvious.
> > >
> > > -
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a browser.
> > > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > > ___
> > > IMPORTANT NOTICE:
> > >
> > > This mailing list is shutting down. Please subscribe to the Apache Wicket
> > > user list. Send a message to: "users-subscribe at wicket.apache.org" and
> > > follow the instructions.
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > ___
> > IMPORTANT NOTICE:
> >
> > This mailing list is shutting down. Please subscribe to the Apache Wicket 
> > user list. Send a message to: "users-subscribe at wicket.apache.org" and 
> > follow the instructions.
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wi

Re: [Wicket-user] modal window image resources

2007-07-24 Thread Matej Knopp
There is more of it in the archives, this one might be most relevant

http://www.nabble.com/Magic-to-replace-ModalWindow-images-tf3811156.html#a10788038

-Matej

On 7/24/07, NateBot2000 <[EMAIL PROTECTED]> wrote:
>
>
> NateBot20002 wrote:
> >
> > Can you explain how the image resources in the ModalWindow package work?
> >
>
> Here is an answer to this question:
>
> http://www.thinksharp.org/?cat=16 http://www.thinksharp.org/?cat=16
>
> NateBot2000
> --
> View this message in context: 
> http://www.nabble.com/modal-window-image-resources-tf4014448.html#a11770901
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom session not working...

2007-07-24 Thread Matej Knopp
On 7/24/07, spencer.c <[EMAIL PROTECTED]> wrote:
>
> Thanks Eelco, that did the trick.
>
> Couple of follow up questions/comments that anyone can field:
> 1) I understand why you would want a stateless application, however I don't
> understand why you would ever want your session to be regenerated on each
> request if during the request you specifically set a session value.  It
> seems like once you set a session value, the session should become bound.
> Is there a logical reason this isn't the case, or is it just a
> technological/implementation reason?  I'm just trying to understand this
> better.
It's because wicket uses the session object internally, and it can't
function without having at least a temporary session. While I
understand this is not the most intuitive solution for users, changing
this behavior would require a massive change to wicket, something
which we can't do now due to the 1.3 release.

If you have changed your session state you might want to call the
bind() method on session explicitly.

-Matej

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Custom session not working...

2007-07-24 Thread Matej Knopp
You need to call session.bind().

We've been discussing this many times. It's no good to make
session.dirty() bind the session, because it's called internally even
on sessions that should not be bound.

-Matej

On 7/24/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On 7/24/07, spencer.c <[EMAIL PROTECTED]> wrote:
> >
> > Alright, so from what you guys have said, I think there is a bug.
>
> Darn! :) Could you open an issue please? I'll look into it asap.
>
> Eelco
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IComponent*POST*InstantiationListener

2007-07-24 Thread Matej Knopp
You can use the component.hasBeenRendererd() method to determine if it
is the first time or not.

-Matej

On 7/24/07, Carlos Pita <[EMAIL PROTECTED]> wrote:
> > Erm, how would you implement that?
>
> I'm overriding onAttach and setting a flag for doing initialization
> just during the first attachment. Is this wrong?
>
> > I think you should use IComponentOnBeforeRenderListener in this case
>
> Still, I would have to keep the "is first time?" check, wouldn't I? I
> think that's the mistmatch between current events and sort of
> postinitialization: they are executed upon every request.
>
> Cheers,
> Carlos
>
>
> > (and note there is also IComponentOnAfterRenderListener).
> >
> > Eelco
> >
> > -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Panels with Scrollbar

2007-07-24 Thread Matej Knopp
It's a css thing rather then wicket related. You need to use overflow:
scroll or overflow: auto in the div style to show scrollbars when the
content is too big.

-Matej

On 7/24/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote:
>
> Hi everybody,
>
> I am new to wicket and I am wondering if ther is an Panel-Componet with a
> scrollbar, so that I can scroll inside a website. Or do I have to use Frames
> for this? (I dont really like Frames)
>
> Thanks in advance,
>
> Benjamin
> --
> View this message in context: 
> http://www.nabble.com/Panels-with-Scrollbar-tf4134758.html#a11759731
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Having problems with ModalWindow and AjaxSubmitButton

2007-07-23 Thread Matej Knopp
Are you sure the form validates right?

-Matej

On 7/23/07, carbonbasednerd <[EMAIL PROTECTED]> wrote:
>
> In my parent page I create a ModalWindow which has ajaxsubmitbuttons and
> works just fine.  Within that modal window I have a link which will take the
> user to another page within the same ModalWindow.  That also has
> AjaxSubmitButtons but they do not appear to be called.  The onclick in the
> source is showing the link to be:
>
>  onclick="var wcall=wicketSubmitFormById('blendedBuyForm',
> '/?wicket:interface=modal-dialog-pagemap:1:blendedBuyForm:cancel:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true',
> null, function() { }, function() { });;; return false;"
>
> that -1 next to cancel doesn't look right.  Did I miss something when
> setting this up?
>
> This is the ajax debug:
>
> NFO:
> INFO: Initiating Ajax POST request on
> /?wicket:interface=modal-dialog-pagemap:1:blendedBuyForm:cancel:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random=0.5978146078408596
> INFO: Invoking pre-call handler(s)...
> INFO: Received ajax response (69 characters)
> INFO:
> 
> INFO: Response parsed. Now invoking steps...
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> --
> View this message in context: 
> http://www.nabble.com/Having-problems-with-ModalWindow-and-AjaxSubmitButton-tf4131281.html#a11749014
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Modal Window and "Page Expired" - SOLVED

2007-07-20 Thread Matej Knopp
Problem is that we evict it also on refresh. But then you still can go
to the page B. Anyway, there are more problems then this with
HttpSessionStore. I think that upgrade to 1.3 is really recommended,
as the default SecondLevelCacheSessionStore doesn't suffer from this
problem any more.

-Matej

On 7/20/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> On 7/19/07, Laurent Brucher <[EMAIL PROTECTED]> wrote:
> >
> > Ok, my bad...
> > Cutting out the details, the page that included a ref to the modal window
> > had a piece of javascript, which generated an  tag with a src
> > attribute
> > starting with a '#' (this is some code ported from a JSF version of the
> > application). The browser was then trying to fetch the page again looking
> > for the (inexistent) bookmark, hence the double hit to the page.
> >
> > Now, I'm wondering if it is normal that the framework evicts the page when
> > removing one of the 2 versions of that page from the access stack since
> > the
> > other version is still there and may be referenced again. But I don't know
> > wicket enough to make a valid statement on this.
>
>
> well, the idea here is that we can evict it because it is no longer
> reachable via the browser. for example you go to page A then go to page B,
> then click back and go to page C. you can no longer access page B via the
> browser, so wicket evicts it from pagemap since at that point its just
> wasting space. however when you have the kinds of problems you have it
> becomes a pita to figure out whats going on.
>
> -igor
>
>
>
>
>
> Many thanks for the helps here and there though.
> > Laurent.
> >
> >
> >
> >   _
> >
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Laurent
> > Brucher
> > Sent: vendredi 13 juillet 2007 22:42
> > To: wicket-user@lists.sourceforge.net
> > Subject: [Wicket-user] Modal Window and "Page Expired".
> >
> >
> > Hi all,
> >
> > There was a post last December about the same problem that I'm facing
> > right
> > now, which is getting a page expired error page after I close a modal
> > window.
> > The post was called "Firefox and ModalWindow" and seemed to talk about the
> > issue for FF only.
> > I've encountered the problem first with FF (2.0.0.4). After reading the
> > post, I tried with IE7 and it worked ok (that was this afternoon).
> > This evening, neither IE7 or FF work anymore. Darn! Clearing cookies and
> > stuff don't change a thing.
> > Oh, and of course, the Ajax ModalWindow example works just fine (my code
> > is
> > heavily inspired from that example)...
> > I'm using Wicket 1.2.6, Tomcat 5.5.20, Jdk1.6u2.
> >
> > Have you guys shed any light on this issue at all?
> > I've tried to trace the code, but as I'm rather new to Wicket, I couldn't
> > really figure out what's going on...
> >
> > Anything I can do to help address this?
> > Below is the code I use, just in case.
> >
> > Reagrds,
> > Laurent.
> >
> >
> > // Page containing the modal window
> > public class MainPage extends WebPage {
> > public MainPage()
> > {
> > ...
> > add( new PreferredStationsDialog("prefStationsDialog") );
> > ...
> > }
> > }
> >
> > // The modal window impl.
> > public class PreferredStationsDialog extends ModalWindow {
> > public PreferredStationsDialog(String id)
> > {
> > super(id);
> >
> > setTitle("xyz");
> > setCookieName("prefStationsDialog");
> > setPageMapName("prefStationsDialogPageMap");
> > setPageCreator( new ModalWindow.PageCreator() {
> > @Override
> > public Page createPage() {
> > return new
> > PreferredStationsDialogPage(PreferredStationsDialog.this);
> > }
> > });
> >
> > setCloseButtonCallback(new ModalWindow.CloseButtonCallback() {
> > public boolean onCloseButtonClicked(AjaxRequestTarget target)
> > {
> > return true;
> > }
> > });
> > }
> > }
> >
> > // The content of the modal window, as a Page
> > public class PreferredStationsDialogPage extends WebPage
> > {
> > public PreferredStationsDialogPage( final PreferredStationsDialog
> > dialog
> > )
> > {
> > super();
> >
> > add( new AjaxLink("button.save") {
> > @Override
> > public void onClick(AjaxRequestTarget target) {
> > dialog.close(target);
> > }
> > }.add( new Label("text", "Save")) );
> >
> > add( new AjaxLink("button.cancel") {
> > @Override
> > public void onClick(AjaxRequestTarget target) {
> > dialog.close(target);
> > }
> > }.add( new Label("text", "Cancel")) );
> > }
> > }
> >
> > -
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/

Re: [Wicket-user] Repaint single row of a DataTable

2007-07-19 Thread Matej Knopp
AjaxRequestTarget target;
target.addComponent(item);

where item is a repeater Item.

This doesn't work for you? What wicket version are you using?

-Matej

On 7/19/07, ChuckDeal <[EMAIL PROTECTED]> wrote:
>
>
> ptrthomas wrote:
> >
> > How about this thread:
> >
> > http://www.nabble.com/Adding-item-to-ListView-over-Ajax---refresh-only-newest-row-t3971491.html#a11572531
> >
> > Does this help?
> >
> > Thanks,
> >
> > Peter.
> >
>
> Not quite, I want to be able to repaint a row that has already been output.
> Although, this does give me some insight on the next feature that I have to
> add to the grid...
>
> Chuck
> --
> View this message in context: 
> http://www.nabble.com/Repaint-single-row-of-a-DataTable-tf4111859.html#a11693796
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] .properties encoding

2007-07-19 Thread Matej Knopp
You can't. Java property files are always encoded in ISO-8859-1. In
order to use other characters you need to escape them properly. There
is an encoder/decoder for it and/or eclipse plugin.

-Matej

On 7/19/07, wheleph <[EMAIL PROTECTED]> wrote:
>
> Hi everyone!
>
> I've got the following problem.
>
> My component needs to display a cyrillic string. I put it in corresponding
> .propreties with encoding cp1251.
>
> But it's read like
> Íåïðàâèëüíûé ëîãèí/ïàðîëü
> instead of
> Неправильный логин/пароль
>
> The problem is that the file is read like iso-8859-1. How can I set the
> desired encoding?
>
> Any ideas?
> --
> View this message in context: 
> http://www.nabble.com/.properties-encoding-tf4110226.html#a11687794
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Modal Window and "Page Expired".

2007-07-19 Thread Matej Knopp
Five modal windows? At the same time? It might be that you are running
out of pagemaps.

This is very weird, hovewer, seems to be reproducable. Can you post a
quickstart? Also, could you check if this is working with wicket 1.3?

-Matej

On 7/18/07, Laurent Brucher <[EMAIL PROTECTED]> wrote:
> Cookies have been cleared many times, without any success ;-)
>
> But I found out what is "causing" (directly or indirectly) the problem:
> In the page that includes the ajax button that is used to bring up the modal
> window, there is a  section at the top of the page.
> If I remove this  section, there is no problem with the modal
> window anymore.
>
> The page globally looks like:
> 
> 
> ...
> 
> 
> ...
> 
> 
> 
> 
> 
>
> Somehow, I've noticed that including the  triggers an
> additional HTTP request to the same URL (that is, the URL to display the
> above page).
> Dunno why this is happening but the end result is that the pagemap then
> contains 2 versions for the same page ID.
> Then, when I hit the button that brings up the modal window, the framework
> is trying to access the above page, version 0. This has the effect of
> putting that page's version at the top of the pagemap's access stack
> (PageMap.access() method). By doing this, the version 1 of the page is
> removed from the access stack, but also the page itself (call to
> PageMap.remove(Page)).
> Thus, once the modal window gets closed and the original page needs to be
> rendered, we get a page expired since it was removed from the cache.
>
> That's as far as I can describe what I've seen & understood tracing the
> code.
> I'm not sure where the problem lies: second request because of the
>  or incorrectly evicting the page.
>
> Maybe there is something funky in my own code but I don't see what. Or maybe
> there is an issue here.
> Any input would be helpful at this point.
>
> Thanks!
> Laurent.
>
>
>
>   _
>
> From: Igor Vaynberg [mailto:[EMAIL PROTECTED]
> Sent: mercredi 18 juillet 2007 8:50
> To: [EMAIL PROTECTED]; wicket-user@lists.sourceforge.net
> Subject: Re: [Wicket-user] Modal Window and "Page Expired".
>
>
> On 7/13/07, Laurent Brucher <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> There was a post last December about the same problem that I'm facing right
> now, which is getting a page expired error page after I close a modal
> window.
> The post was called "Firefox and ModalWindow" and seemed to talk about the
> issue for FF only.
> I've encountered the problem first with FF (2.0.0.4). After reading the
> post, I tried with IE7 and it worked ok (that was this afternoon).
> This evening, neither IE7 or FF work anymore. Darn! Clearing cookies and
> stuff don't change a thing.
> Oh, and of course, the Ajax ModalWindow example works just fine (my code is
> heavily inspired from that example)...
> I'm using Wicket 1.2.6, Tomcat 5.5.20, Jdk1.6u2.
>
> Have you guys shed any light on this issue at all?
> I've tried to trace the code, but as I'm rather new to Wicket, I couldn't
> really figure out what's going on...
>
> Anything I can do to help address this?
>
>
> i wonder, clear cookies in firefox and try again. i know there was a similar
> problem if you didnt set the cookie name in the modal window using
> setcookiename(), but looks like you did that. still, try clearing the
> cookies.
>
> -igor
>
>
>
>
>
> Below is the code I use, just in case.
>
> Reagrds,
> Laurent.
>
>
> // Page containing the modal window
> public class MainPage extends WebPage {
> public MainPage()
> {
> ...
> add( new PreferredStationsDialog("prefStationsDialog") );
> ...
> }
> }
>
> // The modal window impl.
> public class PreferredStationsDialog extends ModalWindow {
> public PreferredStationsDialog(String id)
> {
> super(id);
>
> setTitle("xyz");
> setCookieName("prefStationsDialog");
> setPageMapName("prefStationsDialogPageMap");
> setPageCreator( new ModalWindow.PageCreator() {
> @Override
> public Page createPage() {
> return new
> PreferredStationsDialogPage(PreferredStationsDialog.this);
> }
> });
>
> setCloseButtonCallback(new ModalWindow.CloseButtonCallback() {
> public boolean onCloseButtonClicked(AjaxRequestTarget target) {
> return true;
> }
> });
> }
> }
>
> // The content of the modal window, as a Page
> public class PreferredStationsDialogPage extends WebPage
> {
> public PreferredStationsDialogPage( final PreferredStationsDialog dialog
> )
> {
> super();
>
> add( new AjaxLink("button.save") {
> @Override
> public void onClick(AjaxRequestTarget target) {
> dialog.close(target);
> }
> }.add( new Label("text", "Save")) );
>
> add( new AjaxLink("button.cancel" ) {
> @Override
> public void onClick(AjaxRequestTarg

Re: [Wicket-user] Random ModalWindow exception

2007-07-18 Thread Matej Knopp
What wicket version are you using?

-Matej

On 7/18/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
>
> I have a strange issue when using ModalWindow in my application. Sometimes
> (randomly), I got the following error in ajax-debug window:
>
> [MESSAGE]
>
> INFO: Response parsed. Now invoking steps...
> ERROR: Exception evaluating javascript: TypeError: Wicket.Window has no
> properties
>
> [/MESSAGE]
>
> The reason, seems to be the fact that the modal.js is not always included. I
> didn't manage to find out why this is happening. Can anybody help me?
>
> Thank you!
> --
> View this message in context: 
> http://www.nabble.com/Random-ModalWindow-exception-tf4102507.html#a11666379
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] stateless wicket?

2007-07-16 Thread Matej Knopp
> I think it is wrong. Why would we set the pagemaps as attributes in
> the session when using the second level cache page map? The whole idea
> of storing in the session of page maps was clustering, and that works
> for HttpSessionStore. But it doesn't make sense for SLCSS and
> variants.
>

Because the default pagestore implementations are not clustered. So
would have no failover if you didn't put the pagemap (that reference
the last accessed page) to session.

-Matej

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] stateless wicket?

2007-07-16 Thread Matej Knopp
Okay, I missed this conversation a bit so let me explain current state
of wicket and clustering:

With SecondLevelCacheSessionStore only last accessed page per pagemap
is stored in http session (not directly as attribute, but as a
property of pagemap object, which is a session attribute).

With the standard (File/DiskPageStore) the older accessed pages
(history) are stored only on local computer and are not clustered.
Thus in the event of failover, you will lose the history, as on the
node where session was transfered only the last accessed page is
available (which got there through session replication).

However, you can implement a ClusteredPageStore, which distributes the
last accessed pages on the cluster, and in this case, the lastPage in
secondlevelsessionstore pagemap will not be serialized with the
session (as the pagestore will be responsible for making serialized
pages accessible to other nodes in case of failover).

I'm working on a simple jetty clustering solution that will include an
implementation of ClusteredPageStore.

-Matej

-Matej

On 7/16/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On 7/16/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > not directly as a session attribute
> > but hold on to through the pagemap.
>
> I realized this last week, but forgot about it again.
>
> I think it is wrong. Why would we set the pagemaps as attributes in
> the session when using the second level cache page map? The whole idea
> of storing in the session of page maps was clustering, and that works
> for HttpSessionStore. But it doesn't make sense for SLCSS and
> variants.
>
> Eelco
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to include *.htc files in css files?

2007-07-11 Thread Matej Knopp
It's probably a bug (or intended behavior) if IE. Wicket can't really
control the http request the browser makes to get the .htc file.

-Matej

On 7/11/07, rc.china <[EMAIL PROTECTED]> wrote:
>  I have do some further tests. This is the content of my original CSS file:
> body {background: #EEE; color: #000; behavior: url(csshover.htc);} /* WinIE
> behavior call */ ul.menu1 li.submenu li.submenu {background:
> url(submenu.gif) 95% 50% no-repeat;} 1)If I change like this (Just for
> test): body {background: #EEE; color: #000; background: url(csshover.htc);}
> /* WinIE behavior call */ ul.menu1 li.submenu li.submenu {background:
> url(submenu.gif) 95% 50% no-repeat;} Then I can see that the htc file is
> downloaded correctly: GET
> /mytest/nested/resources/wicket.examples.nested.MenuPanel/csshover.htc
> 2)Or if I change like this (Just for test): body {background: #EEE; color:
> #000; behavior: url(csshover.htc);} /* WinIE behavior call */ ul.menu1
> li.submenu li.submenu {background: url(csshover.htc) 95% 50% no-repeat;}
> Then I can also see that the htc file is downloaded corrently: GET
> /mytest/nested/resources/wicket.examples.nested.MenuPanel/csshover.htc
> So it seesm that only "background:url(...)" in CSS can be processed
> correctly while "behavior:url(...)" can not. Is this a bug in Wicket or IE ?
> 
>  View this message in context: Re: How to include *.htc files in css files?
>
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with "Close the top-level modal window first" message

2007-07-10 Thread Matej Knopp
No it does not. When you click the second window's close button, it
tells you to close the window with the link inside window instead.
That's intentional and demonstrates that you can suppress the action
on close button.

Your problem is that you have modal window with panel inside modal
window with page. If you want to nest those windows, the inner modal
window must be with page too.

-Matej

On 7/10/07, jamieballing <[EMAIL PROTECTED]> wrote:
>
> It turns out if you have a modal within an iframe (i.e. backed by a page) and
> want a secondary modal, that modal also needs to be in an iframe.
>
> Incidentally, the problem occurs in one of the wicketstuff examples. If you
> go to:
> http://wicketstuff.org/wicket13/ajax/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.ajax.builtin.modal.ModalWindowPage
>* open the modal with a page
>* click the open another modal link
>* click the "X" in the uppper right of the secondary modal
>
> --
> View this message in context: 
> http://www.nabble.com/Problem-with-%22Close-the-top-level-modal-window-first%22-message-tf4047233.html#a11512558
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Extra caret ^ symbol in AjaxCallDecorator output

2007-07-09 Thread Matej Knopp
The ]^ sequence is perfectly valid and it should be properly decoded
client side (thus encoding='wicket1'). There might be another
javascript problem, quickstart would be helpful, as well as full ajax
console output.

-Matej

On 7/10/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> On 7/9/07, NateBot2000 <[EMAIL PROTECTED]> wrote:
>
> >
> > Hello:
> >
> > I'm seeing some weirdness in the javascript output by an
> AjaxCallDecorator.
> > This is my call decorator:
> >
> >
> >   protected IAjaxCallDecorator getAjaxCallDecorator()
> >   {
> >
> >  return new AjaxCallDecorator() {
> >
> > static final long serialVersionUID = 1L;
> >
> > public CharSequence decorateScript(CharSequence script) {
> >
> >final StringBuffer buff = new StringBuffer();
> >buff.append("var myFields =
> > this.parentNode.getElementsByTagName('input');" +
> >"var thisWindow =
> > document.getElementById(myFields[1].value);" +
> >"myFields[2].value = thisWindow.style.left +
> ','
> > + " +
> >
> "thisWindow.style.top + ',' +
> > " +
> >
> "thisWindow.style.width + ','
> > + " +
> >
> > "this.parentNode.parentNode.style.height;");
> >buff.append(script);
> >return buff;
> >
> >}
> >  };
> >   }
> >
> > The javascript output has some extra caret "^" symbols in it and then I
> get
> > a "Syntax Error: syntax error" in the Wicket Ajax Debug window:
> >
> > 
> > INFO: Response parsed. Now invoking steps...
> > ERROR: Exception evaluating javascript: SyntaxError: syntax error
> >
> > I'm not exactly sure what the syntax error is pointing to, but I'm
> assuming
> > it's the weird ^'s inserted into myFields[#].value.  Can anyone tell what
> > I'm doing wrong?
> >
> > Please Note: this is more messing around with Matej's modal window to make
> > it a dashboard component.  The code is still really rough...
>
>
> ai, there must be a bug somewhere in the ajax handling on clientside. you
> see, because we allow html not necessary xhtml markup to be sent via ajax to
> clientside we put it into cdata section, but because that markup can easily
> contain cdata end sequence ]]> we escape all ] chars with ^], then on
> clientside we should be stripping them back. looks like that is not
> happening. please file a bug report - in this case it would be really useful
> if you could create a quickstart to reproduce the problem.
>
> -igor
>
>
>
> > Thanks for your help!
> >
> > >From NateBot2000
> > --
> > View this message in context:
> http://www.nabble.com/Extra-caret-%5E-symbol-in-AjaxCallDecorator-output-tf4052693.html#a11511381
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can not resize iframe in FireFox to 100%. HELP!

2007-07-09 Thread Matej Knopp
This is hardly a wicket fault. It's a html/css problem.

-Matej

On 7/9/07, westpine <[EMAIL PROTECTED]> wrote:
>
> Hi... I use iframe on my page
> 
> Like this. In IE and Opera everything is OK. But in FF this iframe just
> couple hundreds pixels height and i have to scroll it's content. How to
> solve this problem?
> --
> View this message in context: 
> http://www.nabble.com/Can-not-resize-iframe-in-FireFox-to-100-.-HELP%21-tf4049250.html#a11501571
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cant see all the word in a displayed tree- node

2007-07-09 Thread Matej Knopp
This is a known bug in the Tree class. To get around it you need to
use LabelTree (or LinkTree) from wicket 1.3.

-Matej

On 7/9/07, kenixwong <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> i had build a tree explore and also given each node with the name (
> displayed in the screen) . But then some of the word is hide at the back. As
> i tried out the wicket example, the rectangle was auto re-size when the node
> link is clicked. can anybody help me on this ? I had attached a image file
> for reference...
>
> http://www.nabble.com/file/p11495721/report_explore.gif
>
> thanks
> --
> View this message in context: 
> http://www.nabble.com/cant-see-all-the-word-in-a-displayed-tree--node-tf4047095.html#a11495721
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Classloader for selectively reload web tier

2007-07-08 Thread Matej Knopp
Eclipse "run" will not run the program in debug mode. Thus you have no
reloading at all. To have at least basic jvm reloading (when the class
shape doesn't change), you must "debug" you application in eclipse.

-Matej

On 7/7/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:
> Hi
>
> Just a small question : could you document what you need the beta
> testers to do ? As such I could try to have a more efficient auto
> reload ^^
>
> Currently, with 1.3 and the quickstart example running on jetty (from
> eclipse's "run"), I've no reloading at all, that's quite annoying.
>
> Cheers
> ZedroS
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] access to private fields

2007-07-08 Thread Matej Knopp
We could do the restriction, but then the question will be how
predicable and confusing this behavior will be.

-Matej

On 7/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> On 7/7/07, Kent Tong <[EMAIL PROTECTED]> wrote:
> >
> > I've never said saving typing is always bad. As I said in another post,
> > saving typing at the cost of static type checking sometimes is a
> > justified tradeoff (eg, regex). Just that I've never seen that being
> > done at the cost of exposing implementation details.
>
> see, this is where we disagree. i think putting public setters and getters
> for things that are really meant to be only private is exposing
> implementation details. if someone goes hunting for a private field - and
> they do have to go hunting for it unless it is code they wrote - that is by
> their choice. you havent leaked anything, they went looking and they can
> access it with or without property model.
>
> the securitymanager concern is valid, albeit having a functioning
> securitymanager is a rare occurence. i was going to suggest having an
> application setting to enable this feature in propertymodel, but now that i
> think about it it can break libraries that were written with this feature
> being enabled in mind. so i think it is best to simply leave it the way it
> is - always on.
>
> but, i think what we can do and what is simple and elegant is to restrict
> access to fields that are declared on the class being introspected -
> ignoring its superclass hierarchy. that way we limit the scope and still
> have it viable for usecases where it is really useful.
>
> -igor
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] access to private fields

2007-07-08 Thread Matej Knopp
I'm a strong -1 on removing access to private fields. This wouldn't
really change anything. When someone wants to access private fields,
he/she will do that, with or without PropertyModel.

-Matej

On 7/8/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> On 7/7/07, Kent Tong <[EMAIL PROTECTED]> wrote:
> >
> > I've never said saving typing is always bad. As I said in another post,
> > saving typing at the cost of static type checking sometimes is a
> > justified tradeoff (eg, regex). Just that I've never seen that being
> > done at the cost of exposing implementation details.
>
> see, this is where we disagree. i think putting public setters and getters
> for things that are really meant to be only private is exposing
> implementation details. if someone goes hunting for a private field - and
> they do have to go hunting for it unless it is code they wrote - that is by
> their choice. you havent leaked anything, they went looking and they can
> access it with or without property model.
>
> the securitymanager concern is valid, albeit having a functioning
> securitymanager is a rare occurence. i was going to suggest having an
> application setting to enable this feature in propertymodel, but now that i
> think about it it can break libraries that were written with this feature
> being enabled in mind. so i think it is best to simply leave it the way it
> is - always on.
>
> but, i think what we can do and what is simple and elegant is to restrict
> access to fields that are declared on the class being introspected -
> ignoring its superclass hierarchy. that way we limit the scope and still
> have it viable for usecases where it is really useful.
>
> -igor
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-04 Thread Matej Knopp
I believe, that what you want, is not to set response page, but rather
to switch panel components. At least that sounds much more reasonable
to me.

-Matej

On 7/4/07, kenixwong <[EMAIL PROTECTED]> wrote:
>
> the reason i using the tree is my menu will be cover a lot of reports ( i m
> develop the report module). So if using the tree style, the interface will
> be look more nicer and structure. Plus the dynamic feel to the user :p (more
> attractive). is that the wicket - tree is hard to maintain? Actually i had
> build the tree, sub tree and report name. All i listed in array and then
> called up the array to execute became a tree.
>
> Anyway, i found that the wicket example did not show the use of the node
> link. Any place can help ? As i went through this forum but still cant get
> any idea to solve it .. :( how ar??
>
>
>
> Eelco Hillenius wrote:
> >
> >> sorry for understood.. i m not just play around. i wish to build a new
> >> module for my current project. And i wish to manage all the menus in a
> >> tree
> >> style outlook. So, can i get some guide frou u , Eelco ..
> >
> > If you are looking for menus, why not use something like this:
> > http://developer.yahoo.com/yui/menu/? That will be much easier to set
> > up than bending the Tree component into something it is not meant for.
> >
> > Eelco
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11426246
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket ModalWindow, MaskType and opacity

2007-07-04 Thread Matej Knopp
Unfortunately, there is no control of the opacity. The problem is that
for certain browsers, the opacity attribute doesn't work well and we
need to use a masking transparent picture.

-Matej

On 7/4/07, Sean Sullivan <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am using a Wicket 1.3.0 SNAPSHOT from the trunk.
>
> In the ModalWindow class, there are two masks available:
>
>MaskType.TRANSPARENT
>MaskType.SEMI-TRANSPARENT  (10% opacity)
>
> Is there a way for me to have finer control of the degree of opacity?   I'd
> love to be able to control it through a Java API.
>
> For what its worth, I inspected the Wicket's ModalWindow implementation and
> noticed that the mask is implemented in the modal.css file:
>
>
>
> div.wicket-mask-dark {
>  position: fixed;
>  top: 0px;
>  left: 0px;
>  width: 100%;
>  height: 100%;
>  opacity: 0.1;
>  -moz-opacity:0.1;
>  background-color: black;
>  filter: alpha(opacity=10);
>  background-image: url('transparent2.png');
> }
>
> div.wicket-mask-transparent {
>  position: fixed;
>  top: 0px;
>  left: 0px;
>  width: 100%;
>  height: 100%;
>
>  background-image: url('transparent1.gif');
> }
>
>
>
> Cheers,
>
> Sean
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket-based dashboard

2007-07-03 Thread Matej Knopp
You're welcome :)

-Matej

On 7/3/07, Nathan Beach <[EMAIL PROTECTED]> wrote:
>
> With some simple changes to ModalWindow, I'm able to get the basics to
> work (see attached gif).  Just turned off the masking, added x and
> yOffsets, and altered the loadPosition function to take settings
> parameters rather than loading from a cookie.  There's still a lot of
> work left to make an actual lightweight dashboard, but it's a start...
>
> It's such a nice-looking component -- thanks Matej!
>
> Nathan B.
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Eelco
> Hillenius
> Sent: Monday, July 02, 2007 10:44 PM
> To: wicket-user@lists.sourceforge.net
> Subject: Re: [Wicket-user] wicket-based dashboard
>
> > I'm looking for some advice on how to create a Wicket-based dashboard
> with
> > functionality along the lines of iGoogle.com.  That is, resizable and
> > drag/drop-able sub-window components that can be arranged by the user.
> And
> > the dashboard layout must be serialized for the next time the user
> logs in.
>
> The drag and drop part is probably the most difficult. Though there's
> plenty of JavaScript libs (and probably some Wicket components in one
> of the wicket-stuff projects) you can use, you'll probably have to do
> a decent amount of writing code yourself as well.
>
> In can imagine that the modal window can serve as inspiration, though
> you don't need the ajax loading it has, and I definitively wouldn't
> make it page based (but rather panel based).
>
> It would be a great set of components to have, and it sounds fun to
> develop.
>
> Eelco
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket mailing list rules with regards to jobs

2007-07-03 Thread Matej Knopp
Hi Matt, as far as I know there are no strict rules.

Basically, if the position involves Wicket, nobody objects against such posts.

-Matej

On 7/3/07, Watter <[EMAIL PROTECTED]> wrote:
>
> Are there any rules about a company posting to this list about potential open
> positions around Wicket?
>
> Matt
>
> --
> View this message in context: 
> http://www.nabble.com/Wicket-mailing-list-rules-with-regards-to-jobs-tf4019684.html#a11416655
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to manage state / session for different windows/tabs

2007-06-29 Thread Matej Knopp
Err, the fact is, it turned out that there are some flaws considering
multi window support and secondlevelcachesessionstore (default). So in
case you are experiencing any problems, you should turn on multiwindow
support (manually) even for SecondLevelCacheSessionStore.

-Matej

On 6/29/07, Francisco Diaz Trepat - gmail
<[EMAIL PROTECTED]> wrote:
> Excelent.
>
> Thanks Igor.
>
>
> On 6/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >
> > On 6/29/07, Francisco Diaz Trepat - gmail <
> [EMAIL PROTECTED]> wrote:
> >
> > >
> > > I think you misunderstood. First of all, I don't have any problems.
> > >
> > > Is just a question, that is intended to get insight in this matter.
> > >
> > > If you have an adding link like the one in the samples. And click it any
> number of times, it adds +1, the number of times you click on it.
> > >
> > > If you click 3 times, you get a 3. Then if you open a new tab, and click
> on the link on the new tab, you get 4. not 3. Again, to dissipate
> confusions, I don't think that is wrong at all. But I was just asking if it
> is possible to have multiple states in multiple tabs.
> >
> >
> > the answer is yes, and it is also transparent - eg you dont have to do
> anything as long as you use default page store
> >
> > if you use sessionstore then you need to turn on that setting i told you
> about.
> >
> > -igor
> >
> >
> >
> >
> > >
> > >
> > > thanks,
> > >
> > > f(t)
> > >
> > >
> > >
> > > On 6/29/07, Matej Knopp <[EMAIL PROTECTED] > wrote:
> > > > It is possible what you have one page instance/version opened in three
> > > > tabs. How does the link you are clicking on when creating new tabs
> > > > look like?
> > > >
> > > > -Matej
> > > >
> > > > On 6/29/07, Francisco Diaz Trepat - gmail
> > > > <[EMAIL PROTECTED] > wrote:
> > > > > 1.3 incubator beta and currently STILL drooling for the beta 2.
> > > > >
> > > > > I'll check it out. Thanks igor.
> > > > >
> > > > >
> > > > > On 6/29/07, Igor Vaynberg < [EMAIL PROTECTED] > wrote:
> > > > > > what version of wicket are you using?
> > > > > > see
> IPageSettings.setAutomaticMultiWindowSupport(boolean)
> > > > > >
> > > > > > -igor
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 6/29/07, Francisco Diaz Trepat - gmail <
> > > > > [EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > >
> > > > > > > Hi guys, I have the following task. I'm building a simple
> calculation
> > > > > page, but for sake of simplicity lets say I'm doing the adding link
> sample
> > > > > we all know.
> > > > > > >
> > > > > > > I might need to be able to open two browsers or tabs to be able
> to do
> > > > > parallel calculations and compare both results. Lets say click 3
> times on
> > > > > the link and have 3 on one window/tab and click 4 times in the other
> one and
> > > > > have 4, instead of 7 which is the default behavior.
> > > > > > >
> > > > > > >
> > > > > > > Know this point its kind of arguable, so I need to find ways to
> both
> > > > > doit and may be recommend against it as it may not be a good
> practice.
> > > > > > >
> > > > > > > To put this in a concrete question:
> > > > > > >
> > > > > > > Is it possible to handle each instance of a browser (Being this
> a
> > > > > window, either a new tab or new window, or even a new process)  like
> a new
> > > > > session instance?
> > > > > > >
> > > > > > > To do a little test I built a small application with only a home
> page
> > > > > that prints out a UUID randomly generated in my MyWicketSession.
> Very simple
> > > > > code, in the session constructor:
> > > > > > >
> > > > > > > this.UUID=uuid = UUID.randomUUID().toString();
> > > > > > >
> > > > > > > a

Re: [Wicket-user] How to manage state / session for different windows/tabs

2007-06-29 Thread Matej Knopp
It is possible what you have one page instance/version opened in three
tabs. How does the link you are clicking on when creating new tabs
look like?

-Matej

On 6/29/07, Francisco Diaz Trepat - gmail
<[EMAIL PROTECTED]> wrote:
> 1.3 incubator beta and currently STILL drooling for the beta 2.
>
> I'll check it out. Thanks igor.
>
>
> On 6/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > what version of wicket are you using?
> > see IPageSettings.setAutomaticMultiWindowSupport(boolean)
> >
> > -igor
> >
> >
> >
> >
> >
> >
> > On 6/29/07, Francisco Diaz Trepat - gmail <
> [EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Hi guys, I have the following task. I'm building a simple calculation
> page, but for sake of simplicity lets say I'm doing the adding link sample
> we all know.
> > >
> > > I might need to be able to open two browsers or tabs to be able to do
> parallel calculations and compare both results. Lets say click 3 times on
> the link and have 3 on one window/tab and click 4 times in the other one and
> have 4, instead of 7 which is the default behavior.
> > >
> > >
> > > Know this point its kind of arguable, so I need to find ways to both
> doit and may be recommend against it as it may not be a good practice.
> > >
> > > To put this in a concrete question:
> > >
> > > Is it possible to handle each instance of a browser (Being this a
> window, either a new tab or new window, or even a new process)  like a new
> session instance?
> > >
> > > To do a little test I built a small application with only a home page
> that prints out a UUID randomly generated in my MyWicketSession. Very simple
> code, in the session constructor:
> > >
> > > this.UUID=uuid = UUID.randomUUID().toString();
> > >
> > > and in the Home page
> > >
> > > info(getMyWicketSession().getUUID());
> > >
> > > This generates the same value when I hit a new tab and enter the URL or
> when I ask the browser for a new Window.
> > >
> > > This must be the correct behavior and I have nothing against it, but can
> I have independent state management. I don't want to go sessionless.
> > >
> > >
> > > Best regards,
> > > f(t)
> > >
> -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] pagemap locking

2007-06-29 Thread Matej Knopp
What we should have is some kind of listener. Which you could use to
easily plugin your own behavior (even dumpThreads if you want). I
wated to do this some time ago, but then we stopped getting those
exception so i let it be.

-Matej

On 6/29/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> its a native call that isn't there in java 4
>
> private native static StackTraceElement[][] dumpThreads(Thread[] threads);
>
> johan
>
>
>
> On 6/29/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > We could try retrotranslator to see what kind of code is emitted?
> >
> > Martijn
> >
> > On 6/29/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > Yeah i think that code i also did see, this should go into the next
> version
> > > yes.
> > > But i dont see how we can do that easy for java 4
> > >
> > > johan
> > >
> > >
> > > On 6/28/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > yeah, i just figured that out.  i'll just patch our wicket for now.
> but
> > > we
> > > > should add this for wicket 1.4 (in a nicer way than this (generic
> utility
> > > > method), of course):
> > > >
> > > > final
> > > StringBuilder builder = new StringBuilder();
> > > >
> > >
> StackTraceElement[]
> > > elements = t.getStackTrace();
> > > > for
> (int
> > > i = 0; i < elements.length; i++) {
> > > >
> > > builder.append(elements[i]);
> > > > }
> > > > throw
> new
> > > WicketRuntimeException("After " + timeout + " the Pagemap "
> > > >
> > >
> +
> > > pageMapName + " is still locked by: " + t
> > > >
> > >
> +
> > > ", giving up trying to get the page for path: " + path + "\nStack
> > > > Trace: " + builder.toString());
> > > >
> > > >
> > > >
> > > > Eelco Hillenius wrote:
> > > > >
> > > > >> makes sense all right.  is there any way we could print out a stack
> > > trace
> > > > >> of
> > > > >> the thread that's holding the monitor we're trying to grab?  maybe
> via
> > > > >> JMX?
> > > > >> this would be extremely useful when this exception is thrown!
> > > > >
> > > > > We've had a thread about that, and the conclusion was that this is
> > > > > possible (I believe Johan built it) but only with Java 5.
> > > > >
> > > > > Eelco
> > > > >
> > > > >
> > >
> -
> > > > > This SF.net email is sponsored by DB2 Express
> > > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > > control of your XML. No limits. Just data. Click to get it now.
> > > > > http://sourceforge.net/powerbar/db2/
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > > >
> > > >
> > > > --
> > > > View this message in context:
> > >
> http://www.nabble.com/pagemap-locking-tf3996742.html#a11351736
> > > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > > >
> > > >
> > > >
> > >
> -
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > >
> -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> > --
> > Wicket joins the Apache Software Foundation as Apache Wicket
> > Join the wicket community at irc.freenode.net: ##wicket
> > Wicket 1.2.6 contains a very important fix. Download Wicket now!
> > http://wicketframework.org
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> --

Re: [Wicket-user] css-styles

2007-06-28 Thread Matej Knopp
That wouldn't work, it would break Ajax header contribution filtering.

-Matej

On 6/28/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> i've come across the "problem" that many components add special css-files and
> that those headercontributions cummulate to a certain amount of lines with 
>  rel="stylesheet"...> - in my case up to 12.
>
> so, the idea comes, having only one  line within the html-response and
> within that all @import: url()-lines. but that would be a certain amount of
> voodoo - not to mention to return the refs depending on the referrer...
>
> just thinking loud... ;-)
>
> cheers, --- jan.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Force page refresh after Ajax request completes?

2007-06-28 Thread Matej Knopp
Then you might need to update wicket.

-Matej

On 6/28/07, dukejansen <[EMAIL PROTECTED]> wrote:
>
> Tried this. It still gives the warning. :(
>
>
> James McLaughlin-3 wrote:
> >
> > Its a shameless hack, but you could try it in a setTimeout.  Or possibly,
> > target.appendJavascript("Wicket.Window.unloadConfirmation=false;window.location.reload()")
> > Otherwise, I believe the semantics of onClose make it necessary for
> > the modal to be around until onClose returns.
> >
> > hth,
> >
> > jim
> >
> > On 5/31/07, dukejansen <[EMAIL PROTECTED]> wrote:
> >>
> >> Any chance anyone has any input on this? I still think this is a bug in
> >> Wicket, that I can't set Javascript to reload the page after the modal
> >> window is closed, since the page still thinks the modal is open.
> >>
> >>
> >> dukejansen wrote:
> >> >
> >> > Yup. That's why I was trying to do it using
> >> > target.appendJavascript("window.location.reload()") instead of doing
> >> the
> >> > setResponsePage server side...? Since I'm appending that Javascript
> >> AFTER
> >> > the 'close modal window' call, it seems like it should be able to close
> >> > the modal window client side, THEN call my javascript to refresh the
> >> page,
> >> > without the warning, since the modal has been closed.. ?
> >> >
> >> >
> >> > Matej Knopp-2 wrote:
> >> >>
> >> >> The problem is that when setResponsePage() is called, no appended
> >> >> Javascript is evaluated. In fact, wicket doesn't process the ajax
> >> >> response at all. Just sets window.location.
> >> >>
> >> >> -Matej
> >> >>
> >> >> On 5/9/07, dukejansen <[EMAIL PROTECTED]> wrote:
> >> >>>
> >> >>> Yeah, but I don't want to disable that warning. That warning is valid
> >> if
> >> >>> the
> >> >>> user really does try to navigate away while the modal is still being
> >> >>> displayed.
> >> >>>
> >> >>> The problem is that I am actually closing the modal before I do the
> >> >>> redirect, so it shouldn't show the warning at all.
> >> >>>
> >> >>> -Jason
> >> >>>
> >> >>>
> >> >>> Matej Knopp-2 wrote:
> >> >>> >
> >> >>> > There is a way that should also work in recent 1.x. To disable the
> >> >>> > confirmation dialog you need to put this inside the page with modal
> >> >>> > window:
> >> >>> > 
> >> >>> >   Wicket.Window.unloadConfirmation=false;
> >> >>> > 
> >> >>> >
> >> >>> > -Matej
> >> >>> >
> >> >>> > On 5/9/07, Arnout Engelen <[EMAIL PROTECTED]> wrote:
> >> >>> >> dukejansen schreef:
> >> >>> >> > My Ajax event handler needs to first close the current modal
> >> window
> >> >>> and
> >> >>> >> then refresh the entire page. Is there a better way to do this?
> >> >>> >> >
> >> >>> >> I once worked around something like this by putting the redirect
> >> in
> >> >>> the
> >> >>> >> windowClosedCallback of the ModalWindow. That was sufficient in
> >> our
> >> >>> >> case, but I too would be interested in some more enlightenment in
> >> >>> this
> >> >>> >> area :).
> >> >>> >>
> >> >>> >>
> >> >>> >> Arnout
> >> >>> >>
> >> >>> >>
> >> >>>
> >> -
> >> >>> >> This SF.net email is sponsored by DB2 Express
> >> >>> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> >>> >> control of your XML. No limits. Just data. Click to get it now.
> >> >>> >> http://sourceforge.net/powerbar/db2/
> >> >>> >> ___
> >> >>> >> Wicket-

Re: [Wicket-user] Page Expire in subsequent AJAX requests (Wicket 1.3)

2007-06-28 Thread Matej Knopp
Hi, there was a significant change to ajax requests after beta1, so
please test this when beta 2 is out. If the problem persists, we will
certainly look into it.

-Matej

On 6/28/07, Chris Lintz <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I am hoping there is a work around or at least a known issue by now.
> Basically I am making a AJAX request (via AjaxSubmitButton in 1.3 beta).
> The first requests works fine...but if i click on AjaxSubmitButton a 2nd
> time, I get a Page Expired.
>
> I found this related issue in the Jira but doesn't mention 1.3.
> http://issues.apache.org/jira/browse/WICKET-117
>
> Is this related to the PageMap maybe versioned pages?   Does any one have a
> work around for this right now?
>
> Any help would be greatly appreciated.  I want to stay working in 1.3
> beta... but this is a real downer for the app i am working in.
>
>
>
> chris
> --
> View this message in context: 
> http://www.nabble.com/Page-Expire-in-subsequent-AJAX-requests-%28Wicket-1.3%29-tf3995391.html#a11346573
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] replaceWith() not working

2007-06-28 Thread Matej Knopp
huh, if you have  in your markup, then i wouldn't be surprised if
things didn't work as expected. You should try to replace a panel with
panel, possible attached to 

-Matej

On 6/28/07, Evan Chooly <[EMAIL PROTECTED]> wrote:
> On 6/28/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > public void onClick() {
> > > DeleteLink.this.replaceWith(new
> > > ConfirmDeletePanel(DeleteLink.this.getId(), "really delete?") {
> > > @Override
> > > protected void onCancel() {
> > > replaceWith(DeleteLink.this);
> > > }
> > >
> > > @Override
> > > protected void onConfirm() {
> > > Filter filter =
> > > (Filter)getParent().getParent().getModelObject();
> > > service.delete(filter);
> > > replaceWith(DeleteLink.this);
> > > }
> > > });
> > > }
> >
> > Code looks fine to me. And I'm using replaceWith quite a bit and it
> > works fine. Can you try to set a break point in onClick, see if it
> > arrives there and step into the replace code?
>
>
> The onClick() is definitely getting called (I set breakpoints this
> morning...) but the panel just isn't getting replaced.  Now, is there any
> problem with replacing a link (in this case) with a panel?  There's no
> impedence mismatch between the  and the  that would normally get
> used?
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Oracle Application Server 10g (10.1.2) and Wicket / ajax

2007-06-28 Thread Matej Knopp
You can try subclassing HttpServletRequest and filter the headers.

-Matej

On 6/28/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> it could be that we set the headers again after that in the chain.doFilter
> call.
>
>
>
>
> On 6/28/07, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]>
> wrote:
> > Hi Matej
> >
> > I've tried adding this:
> >
> > public void doFilter(ServletRequest servletRequest,
> > ServletResponse servletResponse, FilterChain filterChain)
> > throws IOException, ServletException {
> >
> > if (servletRequest instanceof HttpServletRequest) {
> > HttpServletRequest request = (HttpServletRequest)
> > servletRequest;
> >
> > /*
> >  * First check if wicket ajax header are present, if true
> > then add
> >  * missing parameter
> >  */
> >
> > if (isHeaderPresent(request, Wicket_AJAX_HEADER)) {
> > if (LOG.isDebugEnabled()) {
> > LOG.debug("Got a wicket ajax header for domain: "
> > + request.getServerName());
> > }
> >
> > if (servletResponse instanceof HttpServletResponse) {
> > if (LOG.isDebugEnabled()) {
> >  LOG.debug("Trying to add " + CACHE_HEADER + ", "
> > + CACHE_NO_STORE);
> >
> > }
> > HttpServletResponse response =
> (HttpServletResponse)
> > servletResponse;
> > response.addHeader(CACHE_HEADER, CACHE_NO_STORE);
> > if (LOG.isDebugEnabled()) {
> > LOG.debug("Header added sucessfully, has these "
> > + CACHE_HEADER + "'s:");
> > Enumeration enum =
> request.getHeaders(CACHE_HEADER);
> > while (enum.hasMoreElements()) {
> >
> > String header = (String)
> enum.nextElement();
> > LOG.debug(header);
> > }
> >
> > }
> >
> > }
> > }
> > }
> > filterChain.doFilter(servletRequest, servletResponse);
> > }
> >
> > However it does not seem to add the header? Hoping you can tell what
> > wrong? Log tells me that the filter does get activated and adds to
> > header.. But on the web page firebug does not report that the header are
> > there...
> >
> >
> > regards Nino
> >
> > Matej Knopp wrote:
> > > I think we could make this by default in wicket. Until then, you can
> > > make a filter, that checks if the request contains wicket-ajax header,
> > > and when it does, add the cache-control no-store header.
> > >
> > > -Matej
> > >
> > > On 6/27/07, Nino Saturnino Martinez Vazquez Wael
> > > <[EMAIL PROTECTED] > wrote:
> > >
> > >> Hi
> > >>
> > >> We are having some troubles using wicket and Oracle web server. It's
> > >> some of our ajax calls that just hangs. By hanging I mean that if we
> > >> click an ajax triggering control, if fires the event and just never
> gets
> > >> a response. Debuggin a little deeper it seems that wicket does not even
> > >> gets the request. We are suspecting that it has something todo with the
> > >> oracle web cache.
> > >>
> > >> So the ajax call sends some attributs with it to avoid being cached,
> > >> however it's missing the  cache-control="no-store". We are not sure
> > >> that this are causing our troubles. How can I make the ajax call
> include
> > >> the attribute?
> > >>
> > >> Has anybody some ideas about this?
> > >>
> > >>
> > >> I've tested the application on jetty, and here it works without any
> > >> problems.
> > >>
> > >>
> > >> any help highly appreciated.
> > >>
> > >>
> > >> regards Nino
> > >>
> > >>
> -
> > >> This SF.net email is sponsored by DB2 Express
> > >> Download DB2 Express C - the FREE version of DB2 express and take
> > >> co

Re: [Wicket-user] Oracle Application Server 10g (10.1.2) and Wicket / ajax

2007-06-27 Thread Matej Knopp
I think we could make this by default in wicket. Until then, you can
make a filter, that checks if the request contains wicket-ajax header,
and when it does, add the cache-control no-store header.

-Matej

On 6/27/07, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> Hi
>
> We are having some troubles using wicket and Oracle web server. It's
> some of our ajax calls that just hangs. By hanging I mean that if we
> click an ajax triggering control, if fires the event and just never gets
> a response. Debuggin a little deeper it seems that wicket does not even
> gets the request. We are suspecting that it has something todo with the
> oracle web cache.
>
> So the ajax call sends some attributs with it to avoid being cached,
> however it's missing the  cache-control="no-store". We are not sure
> that this are causing our troubles. How can I make the ajax call include
> the attribute?
>
> Has anybody some ideas about this?
>
>
> I've tested the application on jetty, and here it works without any
> problems.
>
>
> any help highly appreciated.
>
>
> regards Nino
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] javascript error 'too much recursion 'ifcalendar.js is included more than once

2007-06-26 Thread Matej Knopp
Of course not. I believe we did our best. But there were couple of
changes (such as short->int, etc) that needs recompiling. And again,
this was not intentional, it just happened.

-Matej

On 6/27/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> I remember many quarrels about maintaining binary compatibility... Are
> you saying those were for nothing?
>
> /me crawls back in cave
>
> Martijn
>
> On 6/27/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > I believe even i 1.2.6 isn't binary compatible (there might be some
> > very small minor changes that slipped in by accident), it's still
> > should be almost drop-in replacement, and the upgrade should be rather
> > painless.
> >
> > Wicket 1.2.2 is from august 2006, that's almost a year ago.
> >
> > -Matej
>
>
> --
> Wicket joins the Apache Software Foundation as Apache Wicket
> Join the wicket community at irc.freenode.net: ##wicket
> Wicket 1.2.6 contains a very important fix. Download Wicket now!
> http://wicketframework.org
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] javascript error 'too much recursion 'ifcalendar.js is included more than once

2007-06-26 Thread Matej Knopp
I believe even i 1.2.6 isn't binary compatible (there might be some
very small minor changes that slipped in by accident), it's still
should be almost drop-in replacement, and the upgrade should be rather
painless.

Wicket 1.2.2 is from august 2006, that's almost a year ago.

-Matej

On 6/26/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> What are you talking about? 1.2.6 is binary compatible with 1.2.2, or
> at least that should be the case. If it is not, then that is a bug.
>
> Martijn
>
> On 6/26/07, Nili Adoram <[EMAIL PROTECTED]> wrote:
> > even upgrade to 1.2.6  is involved with lots of adoptions.
> > the question is whether it will solve this issue.
> >
> > Timo Rantalaiho wrote:
> > > On Tue, 26 Jun 2007, Nili Adoram wrote:
> > >
> > >> I am afraid I cannot upgrade at the moment since we don't have the time
> > >> for massive API changes of 1.3.
> > >>
> > >
> > > 1.2.2 is really ancient, you should use 1.2.6.
> > >
> > > - Timo
> > >
> > >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> --
> Wicket joins the Apache Software Foundation as Apache Wicket
> Join the wicket community at irc.freenode.net: ##wicket
> Wicket 1.2.6 contains a very important fix. Download Wicket now!
> http://wicketframework.org
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] javascript error 'too much recursion ' if calendar.js is included more than once

2007-06-26 Thread Matej Knopp
Btw, next time, you don't need to post 1000 lines of
setFullYear(2007)calendar.js (line 1796)
:)

-Matej

On 6/26/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> You need to use more recent version. Wicket 1.2.2 is really ancient.
> Also after upgrade, don't forget to clean browser cache.
>
> -Matej
>
> On 6/26/07, Nili Adoram <[EMAIL PROTECTED]> wrote:
> > Hi all,
> > I am working with wicket-1.2.2.
> > I included datepicker calendar.js twice in the same page, and the
> > following error occurred when clicked on the datepicker.
> > Any suggestions?
> >
> > too much recursion
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (line 1796)
> > setFullYear(2007)calendar.js (li

Re: [Wicket-user] javascript error 'too much recursion ' if calendar.js is included more than once

2007-06-26 Thread Matej Knopp
You need to use more recent version. Wicket 1.2.2 is really ancient.
Also after upgrade, don't forget to clean browser cache.

-Matej

On 6/26/07, Nili Adoram <[EMAIL PROTECTED]> wrote:
> Hi all,
> I am working with wicket-1.2.2.
> I included datepicker calendar.js twice in the same page, and the
> following error occurred when clicked on the datepicker.
> Any suggestions?
>
> too much recursion
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)
> setFullYear(2007)calendar.js (line 1796)

Re: [Wicket-user] HibernateAnnotationComponentConfigurator

2007-06-24 Thread Matej Knopp
Hi,

I noticed that you get the field like this:

String fieldName = propertyModel.getPropertyExpression();
Class type = propertyModel.getTarget().getClass();
...
Field field = type.getDeclaredField(fieldName);
...

That means that the lookup is done on every configuration. Also will
this work for expression such as "property1.property2.property3"?

Property and CompoundProperty models in wicket implement the
IPropertyReflectionAwareModel interface which can be used to get the
reflection information. I think you should use those instead.

-Matej


On 6/23/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> I don't want to sound like a databinder basher, but I want to make this
> solution very *non-invasive*.  I don't want to have to implement specific
> interfaces or use specific components for this to work.
>
> My solution works with "standard" wicket components and property models.  No
> need to change your whole application just to get UI validation.
>
>
> On 6/23/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> > I've looked at databinder in the past, and although it may be useful, I
> think it's a bit heavyweight for what I'm trying to achieve.
> >
> > In my opinion, database access should be abstracted away from the UI layer
> altogether, which leaves the goals of databinder questionable.  Does anyone
> remember the horror of the JSP tags that directly connected to datbases??
> Spring integration is a much more desirable location for database access,
> and there  is already excellent spring integration with wicket.
> >
> > My goal is simply to integrate hibernate into wicket for "relevant" UI
> features.  Validation is an excellent example where wicket should simply
> re-use the same backend validation and display good user feedback instead of
> waiting for the hibernate validation fire and throwing a big fat stacktrace.
> >
> >
> >
> > On 6/23/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > >
> > > On 6/23/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > > Just sending out a quick "release announcement" for a new
> Hibernate/Wicket integration in the wicketstuff project.  The
> HibernateAnnotationComponentConfigurator automatically
> configures a wicket component based on the POJO's Hibernate annotations.
> > > >
> > > > one especially cool feature is that you can register this behavior for
> your *entire* application, without worrying about adding this functionality
> to each page/component.
> > > >
> > > > Take a look and let me know what you think!
> > > >
> > > >
> http://jroller.com/page/wireframe?entry=hibernateannotationcomponentconfigurator
> > >
> > >
> > > you should consider teaming up with databinder and working on this
> there.
> > >
> > > -igor
> > >
> > >
> > >
> -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Matej Knopp
As far as I know id is a property of DOMElement, so there should be no
need to call setAttribute.

-Matej

On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> > On 6/24/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> >
> > > There's nothing javascript heavy on this :)
> > >
> > > You add new item like this:
> > > String id = rv.newChildId();
> > > Item item = rv.newItem(id, index, model);
> > > rv.populateItem(item);
> > > rv.add(item);
> > >
> > > (where rv is the refreshing view. Some of the methods might be
> > > protected, so you will need to subclass the view, but you have to do
> > > it anyway, as you need to implement populateItem);
> > >
> > > after you call rv.add(item) you can call item.getMarkupId();
> > >
> > > Creating DOM in javascript is simple:
> > >
> > > var div = document.createElement("div");
> > > refreshingViewContiner.appendChild(div);
> > > div.id = 
> >
>
> One more thing Matej - last line above you meant div.setAttribute('id',
> ) right?  Or is there some js foo I should know about?
>
> >
> >
> > > -Matej
> >
> >
> > Just as I was thinking Wicket was not so perfect for Ajax...
> >
> > It works!  Thanks Matej :)  I really did need that guidance on
> constructing and adding new item to RefreshingView.  And of course now I get
> why ListView would not have worked.
> >
> >
> >
> > > On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> > > > On 6/24/07, Timo Rantalaiho < [EMAIL PROTECTED]> wrote:
> > > > > On Sun, 24 Jun 2007, Peter Thomas wrote:
> > > > > > I haven't used repeaters that much, but would newItem() be the
> right way
> > > > to
> > > > > > create a new Item?  Anyway, I am now stuck because to ensure that
> the id
> > > > of
> > > > > > the DOM element is same as the newly created item, I have to call
> > > > > > getMarkupId() on the item then I get the exception "This component
> is
> > > > not
> > > > > > (yet) coupled to a page"  Help!
> > > > >
> > > > > Are you sure it's going to be a problem to update the whole
> > > > > Repeater? Because if not, your whole work of dynamic DOM
> > > > > appending might turn out to be premature optimisation.
> > > >
> > > > Agreed, I'm now curious to see how far I can get, and I may not
> actually use
> > > > a javascript heavy approach in the end.  Also I've created a decent
> size app
> > > > using only ListView (including a custom datatable with pagination) and
> am
> > > > curious to know what the other repeaters ( e.g. RefreshingView) have
> to
> > > > offer.
> > > >
> > > > Also searching Nabble I see that someone else had some success, not
> sure if
> > > > this is the same approach:
> > > >
> http://www.nabble.com/treetable-with-table-markup-tf3557655.html#a9974461
> > > >
> > > > > Maybe you can override getMarkupId() for your item components
> > > > > to return e.g. "myId" + domainObject.getdId ()" or something
> > > > > such.
> > > > >
> > > > > (Btw, now that we're on it, all-numeric ids that repeaters
> > > > > produce by default are invalid HTML. Maybe I should file a
> > > > > Jira issue about that.)
> > > > >
> > > > > - Timo
> > > > >
> > > > > --
> > > > > Timo Rantalaiho
> > > > > Reaktor Innovations Oyhttp://www.ri.fi/ >
> > > > >
> > > > >
> > > >
> -
> > > > > This SF.net email is sponsored by DB2 Express
> > > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > > control of your XML. No limits. Just data. Click to get it now.
> > > > > http://sourceforge.net/powerbar/db2/
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > >
> > > >
>

Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Matej Knopp
There's nothing javascript heavy on this :)

You add new item like this:
String id = rv.newChildId();
Item item = rv.newItem(id, index, model);
rv.populateItem(item);
rv.add(item);

(where rv is the refreshing view. Some of the methods might be
protected, so you will need to subclass the view, but you have to do
it anyway, as you need to implement populateItem);

after you call rv.add(item) you can call item.getMarkupId();

Creating DOM in javascript is simple:

var div = document.createElement("div");
refreshingViewContiner.appendChild(div);
div.id = 

-Matej
On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> On 6/24/07, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
> > On Sun, 24 Jun 2007, Peter Thomas wrote:
> > > I haven't used repeaters that much, but would newItem() be the right way
> to
> > > create a new Item?  Anyway, I am now stuck because to ensure that the id
> of
> > > the DOM element is same as the newly created item, I have to call
> > > getMarkupId() on the item then I get the exception "This component is
> not
> > > (yet) coupled to a page"  Help!
> >
> > Are you sure it's going to be a problem to update the whole
> > Repeater? Because if not, your whole work of dynamic DOM
> > appending might turn out to be premature optimisation.
>
> Agreed, I'm now curious to see how far I can get, and I may not actually use
> a javascript heavy approach in the end.  Also I've created a decent size app
> using only ListView (including a custom datatable with pagination) and am
> curious to know what the other repeaters ( e.g. RefreshingView) have to
> offer.
>
> Also searching Nabble I see that someone else had some success, not sure if
> this is the same approach:
> http://www.nabble.com/treetable-with-table-markup-tf3557655.html#a9974461
>
> > Maybe you can override getMarkupId() for your item components
> > to return e.g. "myId" + domainObject.getdId()" or something
> > such.
> >
> > (Btw, now that we're on it, all-numeric ids that repeaters
> > produce by default are invalid HTML. Maybe I should file a
> > Jira issue about that.)
> >
> > - Timo
> >
> > --
> > Timo Rantalaiho
> > Reaktor Innovations Oyhttp://www.ri.fi/ >
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Adding item to ListView over Ajax - refresh only newest row

2007-06-24 Thread Matej Knopp
You can create the DOM element using custom javascript (it's very
simple, basic DOM manipulation) invoked from
ajaxRequestTarget.prependJavascript(). Be sure that the id attribute
of new DOM element is same as new list item id.

Then just render the newly created item (target.addComponent) which
you create manually during the ajax request.

Actually, rather then using ListView for this, I suggest you using
RefreshingView, as it's more flexible.

-Matej

On 6/24/07, Peter Thomas <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to create a kind of "expression builder" UI, so I was thinking of
> a ListView and there is this "add" button on the page that will add an item
> to the List.  I am able to do this over Ajax, and I am aware that to refresh
> a ListView over Ajax, you have to target a container of the ListView and all
> this is working fine.  But this means that in the Ajax response, the HTML
> for the entire list is retrieved from the server.
>
> Since the list may get big and the content is complex, is it possible to
> only get the last ListItem and do a DOM "append" operation over Ajax?  Does
> Wicket's built in Ajax support this.  Any ideas would be appreciated.
>
> Thanks,
>
> Peter.
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cannot add CSS to web page?

2007-06-24 Thread Matej Knopp
But add(HeaderContributor.forCss()) does not modify component tag. It
affects header contribution. Header contribution and component tag
modifications are two different things.

page.add(HeaderContributor.forCss()) works as long as we don't have
that check that throws exception when you add behavior to page.

-Matej

On 6/24/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> Jan - in the other thread - quite rightly pointed out that
> HeaderContribution does work on pages. It only does not work if a
> component is attached to . What makes  different is that
> it must partially be rendered befor the  section. Why exactly "a
> component starts rendering before the  tag" causes the problem I
> don't know yet.
>
> Juergen
>
> On 6/24/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > All behaviors are invoked from Component.onComponentTag(). When a web
> > page renders it does not call onComponentTag() for the page, as the
> > page as no associated markup tag.
> >
> > That means, though you can do add(HeaderContributor.forCss()) (assume
> > you are adding to a page) nothing will happen. The CSS will not be
> > added to the  section and you will not get any warning etc..
> > Instead you may use any other component on your page.
> >
> > I agree that throwing an exception is not the preferred solution, but
> > at least it give users a hint that they are doing something that
> > currently doesn't work. I thought this is better than nothing while we
> > could discuss a much better solution for the problem.
> >
> > Using :
> > - means we need to create yet another auto-component (automatically
> > assign a wicket:id; automatically create an associated
> > WebMarkupContainer - which will need some special behavior to be
> > invisible/transparent for users - and of course at runtime you need to
> > execute it. We already had discusions on how to reduce the number of
> > auto components.
> > - do we need to change all relevant WebPage methods to refer to that
> > component? Or only for adding behaviors (e.g.
> > getHtmlComponent().add(behavior). By sometime referring to that that
> > html component and sometimes not, are we not creating yet another
> > inconsistency (or magic).
> >
> > I was thinking of using the  component which already is
> > automatically created. BUT it only make sense for HeaderContributors.
> >  make more sense for AMs which realy modify an attribute (e.g.
> > lang).
> >
> > >I know onComponentTag doesn't make sense, but that's IMHO not valid
> > >reason to forbid header contribution as well.
> >
> > I agree but would be a suitable technical solution:
> > E.g. keep throwing an exception for IBhavior and implement
> > public void WebPage.add(HeaderContributor contrib)
> > {
> > getBodyContainer().add(contrib)
> > }
> >
> > lets discuss the pros and cons of all alternatives in order to find
> > the best solution for Wicket and all its users.
> >
> > Juergen
> >
> > On 6/24/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > > Arrgh. Discard my previous reply. This is wrong. Why shouldn't I be
> > > able to do header contribution on behavior attached to a page? This
> > > doesn't make sense!
> > >
> > > I know onComponentTag doesn't make sense, but that's IMHO not valid
> > > reason to forbid header contribution as well.
> > >
> > > -Matej
> > >
> > >
> > > On 6/24/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
> > > >
> > > > my code which does this:
> > > >
> > > > add(HeaderContributor.forCss(CSS));
> > > >
> > > > now throws the following exception.  my web page needs to contribute 
> > > > CSS to
> > > > the header.  i'm wondering, why can't i do it this way anymore (it seems
> > > > like WebPage is a component like any other and my code did work fine 
> > > > before
> > > > this exception)? and what's the best alternative? thanks!
> > > >
> > > > Caused by: org.apache.wicket.WicketRuntimeException: You can not
> > > > attach behaviors onto WebPages. Web pages do require a markup file but 
> > > > no
> > > > specific tag to attach the page to. This is why behaviors such as
> > > > HeaderContributor for example don't work if attached to a WebPage. 
> > > > Please
> > > > attach the behavior to any other of your components.
> > >

Re: [Wicket-user] [Fwd: Re: && CSS]

2007-06-23 Thread Matej Knopp
I also think this would be a good solution.

-Matej

On 6/24/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> On 6/23/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > Modifying the tag (onComponentTag) and rendering header contribution
> > (renderHead) are two different thing. While onComponentTag on a
> > behavior attached to page won't work (for reasons as you stated),
> > there is no reason why renderHead shouldn't work as well.
> >
> > -Matej
>
> attach the page to  tag and the entire ibehavior should make sense i
> think.
>
> -igor
>
>
>
> >
> > On 6/23/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > > Jan,
> > >
> > > the problem is that though you can attach attribute modifier (that is
> > > what HeaderContributor is as well) to a Page (or WebPage), it'll not
> > > work. WebPage doesn't have a tag. Since there is no tag, the attribute
> > > modifier are not invoked, hence the nothing gets added to the header
> > > section.
> > >
> > > Solution: you simply must attach HeaderContributor.forCss to any other
> > > of your components (e.g. html in your code)
> > >
> > > In order to prevent such errors, Wicket should detect (if not prevent)
> > > that attribute modifiers are added to WebPage. I've no idea right now
> > > how to make it a compile error, but we certainly can make it a runtime
> > > exception.
> > >
> > > Juergen
> > >
> > > On 6/22/07, Jan Kriesten < [EMAIL PROTECTED]> wrote:
> > > >
> > > > copy to the list, as sourceforge doesn't allow zip-attachments atm.
> > > >
> > > >
> > > >  Original Message 
> > > > Subject: Re: [Wicket-user]  && CSS
> > > > Date: Fri, 22 Jun 2007 08:53:23 +0200
> > > > From: Jan Kriesten < [EMAIL PROTECTED]>
> > > >
> > > >
> > > > Hi Juergen,
> > > >
> > > > > I'll try my best to find some spare time to do it. Hopefully over
> the weekend.
> > > >
> > > > much appreciated, thank you! :-)
> > > >
> > > > I attached a zip-file containing the example.
> > > >
> > > > Best regards, --- Jan.
> > > >
> > > >
> > > >
> > > >
> -
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question on Serialization

2007-06-23 Thread Matej Knopp
Two weeks? No, we started doing that on apache con :)

-Matej

On 6/23/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On 6/23/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > no, also normal serialization.
> > 1 page instance (id/version) is never saved in more then 1 file
>
> Oh. See, I go on vacation for two weeks and I miss the serialization
> magic you've put into Page :)
>
> Nice job though!
>
> Eelco
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cannot add CSS to web page?

2007-06-23 Thread Matej Knopp
Arrgh. Discard my previous reply. This is wrong. Why shouldn't I be
able to do header contribution on behavior attached to a page? This
doesn't make sense!

I know onComponentTag doesn't make sense, but that's IMHO not valid
reason to forbid header contribution as well.

-Matej


On 6/24/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
> my code which does this:
>
> add(HeaderContributor.forCss(CSS));
>
> now throws the following exception.  my web page needs to contribute CSS to
> the header.  i'm wondering, why can't i do it this way anymore (it seems
> like WebPage is a component like any other and my code did work fine before
> this exception)? and what's the best alternative? thanks!
>
> Caused by: org.apache.wicket.WicketRuntimeException: You can not
> attach behaviors onto WebPages. Web pages do require a markup file but no
> specific tag to attach the page to. This is why behaviors such as
> HeaderContributor for example don't work if attached to a WebPage. Please
> attach the behavior to any other of your components.
>
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/cannot-add-CSS-to-web-page--tf3970619.html#a11270671
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Fwd: Re: && CSS]

2007-06-23 Thread Matej Knopp
Modifying the tag (onComponentTag) and rendering header contribution
(renderHead) are two different thing. While onComponentTag on a
behavior attached to page won't work (for reasons as you stated),
there is no reason why renderHead shouldn't work as well.

-Matej

On 6/23/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> Jan,
>
> the problem is that though you can attach attribute modifier (that is
> what HeaderContributor is as well) to a Page (or WebPage), it'll not
> work. WebPage doesn't have a tag. Since there is no tag, the attribute
> modifier are not invoked, hence the nothing gets added to the header
> section.
>
> Solution: you simply must attach HeaderContributor.forCss to any other
> of your components (e.g. html in your code)
>
> In order to prevent such errors, Wicket should detect (if not prevent)
> that attribute modifiers are added to WebPage. I've no idea right now
> how to make it a compile error, but we certainly can make it a runtime
> exception.
>
> Juergen
>
> On 6/22/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:
> >
> > copy to the list, as sourceforge doesn't allow zip-attachments atm.
> >
> >
> >  Original Message 
> > Subject: Re: [Wicket-user]  && CSS
> > Date: Fri, 22 Jun 2007 08:53:23 +0200
> > From: Jan Kriesten <[EMAIL PROTECTED]>
> >
> >
> > Hi Juergen,
> >
> > > I'll try my best to find some spare time to do it. Hopefully over the 
> > > weekend.
> >
> > much appreciated, thank you! :-)
> >
> > I attached a zip-file containing the example.
> >
> > Best regards, --- Jan.
> >
> >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Fwd: Re: && CSS]

2007-06-23 Thread Matej Knopp
Why? Component.renderHead renders the attached behaviors and it's not
overriden for Page, so i does what components do.

HtmlHeaderContainer#renderHeaderSection calls page.renderHead().

So why this shouldn't work?

-Matej

On 6/24/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
>
> not anymore.
>
>
> Matej Knopp-2 wrote:
> >
> > Err, I believe that you can do add(HeaderContributor.forCss(...)) in
> > page constructor.
> >
> > -Matej
> >
> > On 6/23/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> >> Jan,
> >>
> >> the problem is that though you can attach attribute modifier (that is
> >> what HeaderContributor is as well) to a Page (or WebPage), it'll not
> >> work. WebPage doesn't have a tag. Since there is no tag, the attribute
> >> modifier are not invoked, hence the nothing gets added to the header
> >> section.
> >>
> >> Solution: you simply must attach HeaderContributor.forCss to any other
> >> of your components (e.g. html in your code)
> >>
> >> In order to prevent such errors, Wicket should detect (if not prevent)
> >> that attribute modifiers are added to WebPage. I've no idea right now
> >> how to make it a compile error, but we certainly can make it a runtime
> >> exception.
> >>
> >> Juergen
> >>
> >> On 6/22/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:
> >> >
> >> > copy to the list, as sourceforge doesn't allow zip-attachments atm.
> >> >
> >> >
> >> >  Original Message 
> >> > Subject: Re: [Wicket-user]  && CSS
> >> > Date: Fri, 22 Jun 2007 08:53:23 +0200
> >> > From: Jan Kriesten <[EMAIL PROTECTED]>
> >> >
> >> >
> >> > Hi Juergen,
> >> >
> >> > > I'll try my best to find some spare time to do it. Hopefully over the
> >> weekend.
> >> >
> >> > much appreciated, thank you! :-)
> >> >
> >> > I attached a zip-file containing the example.
> >> >
> >> > Best regards, --- Jan.
> >> >
> >> >
> >> >
> >> >
> >> -
> >> > This SF.net email is sponsored by DB2 Express
> >> > Download DB2 Express C - the FREE version of DB2 express and take
> >> > control of your XML. No limits. Just data. Click to get it now.
> >> > http://sourceforge.net/powerbar/db2/
> >> > ___
> >> > Wicket-user mailing list
> >> > Wicket-user@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >
> >>
> >> -
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/-Fwd%3A-Re%3A--%3Chtml-wicket%3Aid%3D%22html%22%3ECSS--tf3963106.html#a11270955
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Fwd: Re: && CSS]

2007-06-23 Thread Matej Knopp
Err, I believe that you can do add(HeaderContributor.forCss(...)) in
page constructor.

-Matej

On 6/23/07, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> Jan,
>
> the problem is that though you can attach attribute modifier (that is
> what HeaderContributor is as well) to a Page (or WebPage), it'll not
> work. WebPage doesn't have a tag. Since there is no tag, the attribute
> modifier are not invoked, hence the nothing gets added to the header
> section.
>
> Solution: you simply must attach HeaderContributor.forCss to any other
> of your components (e.g. html in your code)
>
> In order to prevent such errors, Wicket should detect (if not prevent)
> that attribute modifiers are added to WebPage. I've no idea right now
> how to make it a compile error, but we certainly can make it a runtime
> exception.
>
> Juergen
>
> On 6/22/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:
> >
> > copy to the list, as sourceforge doesn't allow zip-attachments atm.
> >
> >
> >  Original Message 
> > Subject: Re: [Wicket-user]  && CSS
> > Date: Fri, 22 Jun 2007 08:53:23 +0200
> > From: Jan Kriesten <[EMAIL PROTECTED]>
> >
> >
> > Hi Juergen,
> >
> > > I'll try my best to find some spare time to do it. Hopefully over the 
> > > weekend.
> >
> > much appreciated, thank you! :-)
> >
> > I attached a zip-file containing the example.
> >
> > Best regards, --- Jan.
> >
> >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] modifying component from IComponentOnBeforeRenderListener

2007-06-22 Thread Matej Knopp
That's weird. You should be able to call setRequired from that
listener, that's the point why i have introduced it!

-Matej

On 6/22/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote:
> I'm *still* trying to find a way to modify a component *when the model is
> bound*.  The new IComponentOnBeforeRenderListener seems
> close, but I can't *modify* the component since it's already started the
> rendering cycle.  I'm trying to call Component.setRequired(true) on the
> component, and that throws an exception right now.
>
> for a more exact usecase (and even a unit test!), check out the
> wicketstuff-hibernate codebase.  The test is currently disabled to not break
> the build...
> http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicketstuff-hibernate-behavior/src/test/java/org/wicketstuff/hibernate/HibernateAnnotationComponentInstantiaionListenerTest.java?revision=2456&view=markup
>
> Again, my goal is to have an *application wide* hook for when the model is
> bound on *any* component.  I like the direction of
> IComponentInstantiationListener and
> IComponentOnBeforeRenderListener.  Maybe just need to
> introduce an IComponentOnModelBoundListener?
>
> Ryan
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Form inside a modalWindow inside a Form :-/

2007-06-22 Thread Matej Knopp
What wicket version are you using? Nested forms are only supported in
1.3. If you are using modal window with 1.2, the only reliable way to
use forms is putting a page inside modal window.

-Matej

On 6/22/07, Frank Bille <[EMAIL PROTECTED]> wrote:
> On 6/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
> > Hi, i'm having an strange behavior in my application.
> > i have a form with a listview inside and the items in this listview can be
> > reordered using buttons (that's why the list is inside a form). In the
> > form i have a link that opens a modalWindow to add a new element to my
> > list (the link and the modal are defined as elements inside the form).
> >
>
> Why is the modal component defined inside the form? Couldn't you just move
> it out of the form?
>
> Frank
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TreeTable with nodes that are not links + rows with alternate background colours

2007-06-22 Thread Matej Knopp
All you need to do is override newNodeLink imho. Also to change row
background color you'll need to tweak the styles and add attribute
modifier inside populateItem, it's not really trivial, but it's not a
rocket science as well.

Simple alternateive in 1.3 would be to call setEnabled(false) on the
links. Unfurtunately, this doesn't work for AjaxLink in 1.2. So what
you can do is this:

override newNodeLink:
protected MarkupContainer newNodeLink(MarkupContainer parent, String
id, final TreeNode node)
{
Link link = new Link(id) { public void onSubmit() { } };
link.setEnabled(false);
parent.add(link);
};  

This should give you disabled links.

-Matej

On 6/22/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Did you try overriding #newLink, #newJunctionLink or #newNodeLink? I
> don't really know the component, but it looks like you can return any
> markup component you like there...
>
> I think your best best is to browse around the code of the component
> and it's superclasses and experiment a bit.
>
> Eelco
>
>
> I have no experience with the component, but it
>
> On 6/17/07, howzat <[EMAIL PROTECTED]> wrote:
> >
> > Does any body have any ideas re the below from a few weeks ago?
> > wicket: 1.2.6
> > wicket-extensions: 1.2.6
> >
> > A couple of questions re TreeTable
> >
> > Is it possible to configure a TreeTable so its nodes are not links?
> > So far, I have only found/tried
> > tree.setLinkType(null)
> > without achieving the desired effect.
> >
> > Is it possible to have rows with different background colours based on the
> > value of fields in that row? (eg red if variance to budget is worse than
> > -10%, green if variance to budget > +5%  etc...
> >
> >
> >
> >
> > howzat wrote:
> > >
> > > Has anybody got any further thoughts on this?
> > >
> > >
> > > howzat wrote:
> > >>
> > >> wicket: 1.2.6
> > >> wicket-extensions: 1.2.6
> > >>
> > >> A couple of questions re TreeTable
> > >>
> > >> Is it possible to configure a TreeTable so its nodes are not links?
> > >> So far, I have only found/tried
> > >> tree.setLinkType(null)
> > >> without achieving the desired effect.
> > >>
> > >> Is it possible to have rows with different background colours based on
> > >> the value of fields in that row? (eg red if variance to budget is worse
> > >> than -10%, green if variance to budget > +5%  etc...
> > >>
> > >> PS Now that I've spent a few more hours looking at wicket, I must say
> > >> that it is not always easy to work out the best (or, at least a good) way
> > >> to do something (possibly partly down to lack of complete and/or up to
> > >> date documentation), but once one works out how to do things, it's quite
> > >> satisfying (in an OO and "clever" sort of way) and generally, very neat;
> > >> the amount of reuse I have benefited from already just by using markup
> > >> inheritance and panels has already covered the time I have put into
> > >> learning (some of the) the basics.
> > >>
> > >
> > >
> >
> > --
> > View this message in context: 
> > http://www.nabble.com/TreeTable-with-nodes-that-are-not-links-%2B-rows-with-alternate-background-colours-tf3822476.html#a11162491
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxLink works in FF2,IE7, Page Expired in IE6

2007-06-18 Thread Matej Knopp
Weird, wicket-ajax works for me well in IE6.

-Matej

On 6/17/07, Thies Edeling <[EMAIL PROTECTED]> wrote:
> AjaxLink works in FF2 and IE7, however in IE6 I get a Page Expired
> immediately. I saw some previous threads about the jsessionid not set
> but I doubt this is the same problem as it works in ff2/ie7. Any ideas?
>
> gr,
> Thies
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Matej Knopp

On 6/14/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


Actually the dirty bit is only relevant when you use session replication
using a 'standard' clustering technology (e.g. like Tomcat provides). If
the dirty bit is set, Wicket will explicitly set an attribute on the
session, which will typically trigger the object to be sent over the wire.

What we currently don't do, but what we should - maybe - is trigger a
session bind when the dirty bit is set. We'll have to trace carefully that
we don't create sessions too soon again then, but I think this is a good
idea.



Actually i believe this is already true for 1.3. Unless someone broke it
again :)

-Matej


Johan/ others, wdyt?


Eelco

On 6/14/07, Thies Edeling <[EMAIL PROTECTED]> wrote:

>  Also in 1.3? Yesterday I noticed that a Calendar which I retrieved from
> the session and modified afterwards was updated in the session as well.
>
> Thies
>
> Johan Compagner wrote:
>
> when you do this:
>
> CSSession session = (CSSession) getSession();
>
> session.setUser(loggedInUser);
>
> then that method:
>
> CSSession.setUser(User)
> {
>this.user = user;
>dirty(); <<< You have to do this here!
> }
>
> if you alter your session data you have to call dirty
> Then you session wil be stored.
>
> johan
>
>
> On 6/14/07, verbal evasion <[EMAIL PROTECTED] > wrote:
> >
> > yeah i got it to work. it wasnt the code, it was some maven weirdness
> > that was going on. i have a few more questions. currently, when i login, my
> > authentication mechanism tells me that i have successfully logged in, but it
> > seems like the session information is not stored?? i have a print in my
> > isVisible checks and it always says that the user variable is null. i may be
> > returning the incorrect ResponsePage?
> >
> > // in constructor
> > WebMarkupContainer loggedOut = new WebMarkupContainer("loggedOut") {
> > public boolean isVisible() {
> > boolean rv;
> > rv = ((CSSession) getSession()).getUser() == null;
> > System.out.println("loggedOut - isVisible? " + rv);
> > return rv;
> > }
> > };
> > ...
> > WebMarkupContainer loggedIn = new WebMarkupContainer("loggedIn") {
> >
> > public boolean isVisible() {
> > boolean rv;
> > rv = ((CSSession) getSession()).getUser() != null;
> > System.out.println("loggedIn - isVisible? " + rv);
> >
> > return rv;
> > }
> > };
> > // In submit form
> > public void onSubmit() {
> > String userId = getUserId();
> > String password = getPassword();
> >
> > User loggedInUser = null;
> >
> > try {
> > loggedInUser = UserImpl.authenticate(userId,
> > password);
> > // Components can access the Session through
> > getSession()
> > CSSession session = (CSSession) getSession();
> >
> > session.setUser(loggedInUser);
> > System.out.println("Logged in as " + userId);
> > logger.debug("Logged in as " + userId);
> > //session.get().info("Logged in as " + userId);
> >
> > //Index indexPage = new Index(userId, BasePage.this);
> > //setResponsePage(indexPage);
> > setResponsePage(new Index());
> > } catch (AuthenticationException ae) {
> > String errMsg = getLocalizer().getString(
> > "login.errors.invalidCredentials ", this);
> > // Register this message with the form component.
> > error(errMsg);
> > }
> > }
> >
> > when i keep logging in, it'll say the following:
> >
> > 20:06:14,806 INFO  [STDOUT] loggedOut - isVisible? true
> > 20:06:14,806 INFO  [STDOUT] loggedIn - isVisible? false
> > 20:06:14,810 INFO  [STDOUT] loggedOut - isVisible? true
> > 20:06:14,810 INFO  [STDOUT] loggedOut - isVisible? true
> > 20:06:14,811 INFO  [STDOUT] loggedOut - isVisible? true
> > 20:06:14,811 INFO  [STDOUT] loggedIn - isVisible? false
> > 20:06:14,813 INFO  [STDOUT] loggedIn - isVisible? false
> > 20:06:14,814 INFO  [STDOUT] loggedOut - isVisible? true
> > 20:06:14,814 INFO  [STDOUT] loggedOut - isVisible? true
> > 20:06:14,815 INFO  [STDOUT] loggedOut - isVisible? true
> > 20:06:14,815 INFO  [STDOUT] loggedOut - isVisible? true
> > 20:06:14,816 INFO  [STDOUT] loggedIn - isVisible? false
> >
> > this is for *one* successful login attempt. why is the constructor run
> > so many times?  also, the output is wrong. what should i be returning as the
> > setResponsePage from the onSubmit?
> >
> > thanks,
> >
> > verbal
> >
> >
> >
> >
> > On 6/13/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > >
> > > the form is added to loggedout container, also notice that the form
> > > tag is inside a div wicket:id="loggedout" so it matches the java 
hiera

Re: [Wicket-user] AJAX causing UI state corruption....

2007-06-14 Thread Matej Knopp
What wicket version are you using?

-Matej

On 6/14/07, Seldon, Richard <[EMAIL PROTECTED]> wrote:
>
> Experiencing a wicket problem to do with UI state corruption when using ajax
> tabbed panel. When the ajax links are rapidly clicked in succession various
> validation errors appear relating  to panels that are hidden, form component
> drop downs lose their display UI values and UI state basically becomes
> "v.confused". Have not observed this behavior elsewhere but somehow it seems
> like  the ajax requests are not stacking correctly or at least are losing
> synch with the UI rerendering somehow.
>
> Below are all the steps (in brevity) so far attempted and some unanswered
> questions I still have:-
>
> (1) Tried IAjaxIndicatorAware on individual form components and overridden
> tabbed panel links. Used this in conjunction with a server side request
> throttler.  Basically wrote a timer class that intercepts onsubmit requests
> and rejects (returns without processing further) on any entered with given 2
> second interval  using standard Java api class implementations. This
> approach does actually work but doesn't explain why we're having this
> problem in first place?
>
> (2) Tried a DIV interceptor approach hooking into
> Wicket.Ajax.registerPreCallHandler, postcall, and failure. The idea was to
> cover the entire screen with a  transparent div whilst asynch call being
> made - however, problematic using IE 6 but works with firefox. Essentially,
> seems IE deals with windowed and  windowless components and certain html
> form components are windowed such as select. z-indexes are not respected
> between the two types and therefore setting  div z-index higher than select
> z-index doesn't work. tried workaround using an iframe (which covers both
> z-indexes in IE6) but iframe transparency issues  meant access to underlying
> form component.
>
> (3) Looked at wicket-ajax.js - was interested with configuration of the
> channels settings - but unsure how to get an appropriate configuration fix.
> There is  an indicator between setting which gets read by reading  out of a
> regex a character value of either 'd' or 's' where from what i can see 's'
> ensures requests  are stacked. Found some help in an older newsgroup which
> mentions that "{wicket has "ajax channels" with different channel modes such
> as queue/disregard. that way you can disable certain groups of components
> only by assigning them to the same ajax channel.}" Looking at the wicket
> java api i  couldn't manage to find any handle to setting this flag up. Is
> this a direct wicket-ajax.js edit and if so then my question would be "What
> is an "elegant"  way to override the default to use 'd'?"
>
> (4) Finally, switched the asynch flag to "false" by editing wicket-ajax.js
> directly (this.type in request prototype class). This resolved the original
> problem but uncertain what the consequences of doing this are. Is this safe
> and is there any Java api accessible means to do this? In firefox by
> inspecting  ajax responses via an ajax plugin, it seemed to indicate ajax
> requests yet the page is flickering on rerender much like a full page
> resubmission would. Does  ajax submission still work or is it the main UI
> thread that now handles form submissions?
>
>
> This e-mail (and any attachments) may contain privileged and/or confidential 
> information. If you are not the intended recipient please do not disclose, 
> copy, distribute, disseminate or take any action in reliance on it. If you 
> have received this message in error please reply and tell us and then delete 
> it. Should you wish to communicate with us by e-mail we cannot guarantee the 
> security of any data outside our own computer systems. For the protection of 
> Legal & General's systems and staff, incoming emails will be automatically 
> scanned.
>
> Any information contained in this message may be subject to applicable terms 
> and conditions and must not be construed as giving investment advice within 
> or outside the United Kingdom.
>
> The following companies are subsidiary companies of the Legal & General Group 
> Plc which are authorised and regulated by the Financial Services Authority 
> for advising and arranging the products shown: Legal & General Partnership 
> Services Limited (insurance and mortgages), Legal & General Insurance Limited 
> (insurance), Legal & General Assurance Society Limited
> (life assurance, pensions and investments), Legal & General Unit Trust 
> Managers Limited and Legal & General Portfolio Management Services Limited 
> (investments).
>
> They are registered in England under numbers shown.
> The registered office is Temple Court, 11 Queen Victoria Street, London EC4N 
> 4TP.
>
> Legal & General Partnership Services Limited: 5045000 Legal & General 
> Assurance Society Limited: 166055 Legal & General (Unit Trust Managers) 
> Limited: 1009418 Legal & General (Portfolio Management Services) Limited: 
> 2457525 Legal & General Insurance Limi

Re: [Wicket-user] [ajax]Replace Javascript component fails on IE

2007-06-14 Thread Matej Knopp
Hi, I've fixed this for 1.3.

As a workaround for 1.2, this is what you can do:

Don't update the script tag directly, but enclose it in a div, like this:


  This is an invisible tag to prevent buggy
IE ignoring the script>
  here comes the script


Btw, as a sidenote, i noticed this in your code:

protected void onComponentTag(final ComponentTag tag)
 {
   add(new AttributeModifier("type", true, new Model("text/javascript")));
   add(new AttributeModifier("language", true, new Model("JavaScript")));
}
This is wrong. As a result on every render two attribute modifiers
will be added (this would even throw an exception in 1.3, as you are
changing component during the render).
This is how it should look like:

tag.put("type", "text/javascript");
tag.put("language", "JavaScript");

-Matej

On 6/14/07, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> Forgot to mention this is on 1.2.6 havent tried with 1.3.
>
> Nino Saturnino Martinez Vazquez Wael wrote:
> > Hi Im starting a new thread as my old one has died.
> >
> > You can see it here :
> > http://www.nabble.com/-GMAP-contrib--IE7-Ajax-target-appendJavascript-not-working--t3883506.html
> >
> > But to make a long story short.
> >
> > Problem are when we replace our javascript container via ajax IE doesnt
> > update it or calls the old one. If we create new javascript
> > functions(function myfunction1..2..3) instead it gives a javascript
> > exception shown in wicket ajax debug window, again this is only on IE
> > browsers.
> >
> > I've looked trough JIRA and could not find anything that poped into my
> > eyes say that it was related.
> >
> > I've created a quickstart project showing the behavior, see that its
> > working with FF and not with IE6 and IE7:
> >
> > http://www.badongo.com/file/3410432
> >
> > regards Nino
> >
> >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help: modalwindow question

2007-06-14 Thread Matej Knopp
You need to use AjaxSubmitButton inside the modal window. And to
refresh the parent window you need to add WindowClosedCallback to it,
just like in the wicket-examples.

-Matej

On 6/14/07, Nili Adoram <[EMAIL PROTECTED]> wrote:
> add AjaxSubmitButton to the form embedded inside the modal window:
>
>  AjaxSubmitButton submit = new AjaxSubmitButton("submitSearch",
> AdvancedSearchForm.this) {
>
>
> @Override
> protected void onSubmit(AjaxRequestTarget target, Form form) {
> ModalWindow.close(target);
>
> }
> };
>
> Crag wrote:
> > sorry.
> >
> > An opener modalwindow has a form,  when  the form onSubmit( ) , I want to
> > refresh
> > parent window , and close current window, how to do ?
> >
> >
> >
> > "Crag" <[EMAIL PROTECTED]>  news:[EMAIL PROTECTED]
> >
> >> thanks Nili.
> >>
> >>
> >> but   it's not my meaning.
> >>
> >> An open modalwindow has a form, when the form had been submmitted( where
> >> form onSubmit( )  I will do something here), I want to refresh
> >> parent window , and close current window, how to do ?
> >>
> >>
> >>
> >>
> >> "Nili Adoram" <[EMAIL PROTECTED]> 
> >> news:[EMAIL PROTECTED]
> >>
> >>> in your panel:
> >>>
> >>>
> >>> final ModalWindow modal;
> >>> add(modal = new ModalWindow("modalAdvancedSearch"));
> >>> add(new AjaxLink("openModal") {
> >>>
> >>>@Override
> >>>public void onClick(AjaxRequestTarget target) {
> >>>
> >>>modal.show(target);
> >>>
> >>>}
> >>>});
> >>>
> >>> modal.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() {
> >>>
> >>>public boolean onCloseButtonClicked(AjaxRequestTarget target)
> >>> {
> >>>return true;
> >>>}
> >>>});
> >>>
> >>>modal.setWindowClosedCallback(new
> >>> ModalWindow.WindowClosedCallback() {
> >>>
> >>>public void onClose(AjaxRequestTarget target) {
> >>>
> >>>setResponsePage();
> >>>}
> >>>});
> >>> Crag wrote:
> >>>
>  An open modalwindow, when the form had been submmitted, I want to
>  refresh
>  parent window , and close current window, how to do ?
> 
>  the simple code:
> 
>  
>   
>   
>    
> 
>  
>   
>    
>   
>  
>  
>   
>  onclick="return confirm('Are you sure you want to edit?')" />
>   
>  
> 
>    
>   
>  
> 
> 
>  public class EditModal extends WebPage {
>   private static final long serialVersionUID = 1L;
> 
>   public Tree0EditModal(final ModalWindowPage modalWindowPage, IModel
>  model)
>  {
> 
>    final NodeForm form = new NodeForm("nodeForm", model);
> 
>    Button btnEdit = new Button("edit") {
> protected void onSubmit( ) {
>  System.out.println("submit...");
>  // now I want to refresh parent window(modalWindowPage), and
>  close
>  current window(EditModal), how to do ?
>  //ModalWindow.close(target);
> }
>    };
> 
>    form.add(btnEdit);
>    TextField name = new TextField("name");
> 
>    form.add(name);
> 
>    add(form);
>   }
> 
>   class NodeForm extends Form {
>    private static final long serialVersionUID = 1L;
> 
>    public NodeForm(String id, IModel model) {
> super(id, model);
>    }
>   }
>  }
> 
> 
> 
> 
>  -
>  This SF.net email is sponsored by DB2 Express
>  Download DB2 Express C - the FREE version of DB2 express and take
>  control of your XML. No limits. Just data. Click to get it now.
>  http://sourceforge.net/powerbar/db2/
>  ___
>  Wicket-user mailing list
>  Wicket-user@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> 
> >>> -
> >>> This SF.net email is sponsored by DB2 Express
> >>> Download DB2 Express C - the FREE version of DB2 express and take
> >>> control of your XML. No limits. Just data. Click to get it now.
> >>> http://sourceforge.net/powerbar/db2/
> >>>
> >>
> >>
> >> -
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >>
> >
> >
> >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > contro

Re: [Wicket-user] Form with ajaxsubmitbutton won't submit after error

2007-06-13 Thread Matej Knopp
Hi, it might be a book. Could you please create a JIRA entry and
assign it to me, so that it won't get lost? Thanks

-Matej

On 6/13/07, Marieke Vandamme <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm using the Apache Wicket incubating 1.3 and updated my existing
> application.
> One of my forms wasn't working anymore. I isolated my problem in the code
> below.
> I'm using a form with an AjaxSubmitButton. On my form, one of my components
> is required.
> When user doesn't fill in field and presses the ajaxsubmitbutton, he gets an
> alert telling hem to fill in the required field.
> When user then fills in field and presses submitbutton again, the onError is
> again called instead of the onsubmit.
>
> Is this a bug (or is it already reported)?
> Thanks in advance.
>
> --
>
> public class TestPage extends WebPage {
>   public TestPage() {
> Form frm = new TestForm("form");
> frm.add(new TestSubmitButton("button", frm));
> frm.add(new RequiredTextField("name", new PropertyModel(frm, "name")));
> add(frm);
>   }
>
>   public class TestForm extends Form {
> private String name = null;
> public TestForm(String id){
>   super(id);
> }
> public void setName(String name){
>   name = name;
> }
> public String getName(){
>   return name;
> }
>   }
>
>   public class TestSubmitButton extends AjaxSubmitButton {
> public TestSubmitButton(String id, Form form) {
>   super(id, form);
> }
>
> protected void onSubmit(AjaxRequestTarget ajaxRequestTarget, Form form){
>   System.out.println("Form submitted");
> }
>
> protected void onError(final AjaxRequestTarget target, Form form) {
>   target.appendJavascript("alert('Fill in all fields.');");
> }
>   }
> }
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Question] render(final MarkupStream markupStream)

2007-06-13 Thread Matej Knopp
Sure, i can look into it, as soon as someone give me a code that can
reproduce the problem :)

-Matej

On 6/13/07, Al Maw <[EMAIL PROTECTED]> wrote:
> Hmmm,
>
> This bug looks suspiciously like another onAttach/onBeforeRender issue.
> Matej seems good at debugging those, care to comment? :-)
>
> Al
>
> Alex Objelean wrote:
> > I have a question about the render method. Why, before rendering, instead of
> > checking isVisibleInHierarchy(),  isVisible() is called?
> >   public final void render(final MarkupStream markupStream)
> >   {
> >   setMarkupStream(markupStream);
> >   setFlag(FLAG_IS_RENDERED_ONCE, true);
> >
> >   // Determine if component is visible using it's authorization 
> > status
> >   // and the isVisible property.
> >   if (isRenderAllowed() && isVisible()) //why not 
> > isVisibleInHierarchy() ??
> >   {
> >//etc...
> > }
> > //more code.
> >  }
> >
> > I am asking because I suspect a bug with the following StackTrace:
> >
> > Caused by: java.lang.NullPointerException
> >   at wicket.markup.html.list.ListView.renderItem(ListView.java:676)
> >   at wicket.markup.html.list.ListView.onRender(ListView.java:637)
> >
> > I happens when an AjaxTabbedPanel is updated via ajax. The tabbedPanel
> > contains a holder Panel with a ListView child component. The visibility of
> > the holder Panel is decided dynamicaly by overriding isVisible method.
> >
> > Maybe later I will try to isolate this situation and to make it more clear.
> > Still, I would like to know if you've encountered something like this.
> >
> > Thank you!
>
>
> --
> Alastair Maw
> Wicket-biased blog at http://herebebeasties.com
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?

2007-06-11 Thread Matej Knopp
this doesn't really makes sense. you have different action for IE and
different for firefox?

On 6/11/07, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> I can see in my form I have a action that looks like this(on IE):
> /quickstart/gmap/;jsessionid=blabla?wicket:interface:0:gmap
>
> in firefox it looks like this:
>
> /quickstart/gmap/?wicket:interface=:0:gmap:gmapUpdatingForm::IFormSubmitListener
>
> im not sure if that does affect anything?
>
> regards Nino
>
>
>
> Nino Saturnino Martinez Vazquez Wael wrote:
> > Looking even further into the problem I can see that the values are
> > correct after the ajax post. So it seems that the models of our hidden
> > fields arent updated. Im not sure what todo about this, Matej mentioned
> > that it could be a problem with wicket 1.2.6 and IE7, im using IE6 are
> > the same problem there?
> >
> > regards Nino
> >
> > Nino Saturnino Martinez Vazquez Wael wrote:
> >
> >> In addition to the previous mail I would like to add, that we would like
> >> to resolve this using wicket 1.2.6.
> >>
> >> Now if anything are unclear or so please write and I'll try to explain
> >> further.
> >>
> >> Also the current version are the one available from SVN, I belive Iulian
> >> upgraded the example so that its now using that aswell. So you can just
> >> check out the code from wicket stuff repo if you want to see the code..
> >>
> >>
> >> regards Nino
> >>
> >> Nino Saturnino Martinez Vazquez Wael wrote:
> >>
> >>
> >>> Hi Matej
> >>>
> >>> Currently gmap contrib are using wicket 1.2.6. And currently im testing
> >>> with IE 6 which has the problems I mentioned, the ajax calls seems to
> >>> yield no problems so far I can see we get a call when the form are
> >>> submitted and it calls back after processing. However form values arent
> >>> updated, im not sure if that has anything to do with the ajax part?
> >>>
> >>> Im not sure how far we are in the process of upgrading the gmap contrib
> >>> to 1.3.
> >>>
> >>>
> >>> regards Nino
> >>>
> >>> Matej Knopp wrote:
> >>>
> >>>
> >>>
> >>>> Can you please test it with latest wicket 1.3? There was a bug that
> >>>> prevented IE7 from processing ajax requests properly, it might be
> >>>> related.
> >>>>
> >>>> -Matej
> >>>>
> >>>> On 6/11/07, Nino Saturnino Martinez Vazquez Wael
> >>>> <[EMAIL PROTECTED]> wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>> Yes i'll try to explain in greater detail.
> >>>>>
> >>>>> Looks like it was not the appendjavascript that wasnt working. But
> >>>>> something else.:)
> >>>>>
> >>>>> Our hidden variables arent updated when using IE. Why they arent updated
> >>>>> correctly puzzles me, because just before the ajax call they seem to
> >>>>> have the correct values.
> >>>>>
> >>>>> heres a snip of what I try to do(working everywhere but IE):
> >>>>>
> >>>>> GEvent.addListener(googleMap, "dragend", function () {
> >>>>> var center = googleMap.getCenter();
> >>>>> var sW = googleMap.getBounds().getSouthWest();
> >>>>> var nE = googleMap.getBounds().getNorthEast();
> >>>>> document.getElementById("latitudeCenter").value=center.lat();
> >>>>> document.getElementById("longitudeCenter").value=center.lng();
> >>>>> document.getElementById("latitudeSW").value=sW.lat();
> >>>>> document.getElementById("longitudeSW").value=sW.lng();
> >>>>> document.getElementById("latitudeNE").value=nE.lat();
> >>>>> document.getElementById("longitudeNE").value=nE.lng();
> >>>>> document.getElementById("zoomLevel").value=googleMap.getZoom();
> >>>>> document.getElementById("gmap_ajaxGMapUpdatingFormSubmit").onclick();
> >>>>> });
> >>>>>
> >>>>> So the different variables are stored in hidden fields. Just before the
> >>>>> last entry above, every value looks ok.
> >>>>

Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?

2007-06-11 Thread Matej Knopp
I dunno. Could be problem with ajax form serialization. Can you
intercept the post request to see what parameters are submitted?

-Matej

On 6/11/07, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> Looking even further into the problem I can see that the values are
> correct after the ajax post. So it seems that the models of our hidden
> fields arent updated. Im not sure what todo about this, Matej mentioned
> that it could be a problem with wicket 1.2.6 and IE7, im using IE6 are
> the same problem there?
>
> regards Nino
>
> Nino Saturnino Martinez Vazquez Wael wrote:
> > In addition to the previous mail I would like to add, that we would like
> > to resolve this using wicket 1.2.6.
> >
> > Now if anything are unclear or so please write and I'll try to explain
> > further.
> >
> > Also the current version are the one available from SVN, I belive Iulian
> > upgraded the example so that its now using that aswell. So you can just
> > check out the code from wicket stuff repo if you want to see the code..
> >
> >
> > regards Nino
> >
> > Nino Saturnino Martinez Vazquez Wael wrote:
> >
> >> Hi Matej
> >>
> >> Currently gmap contrib are using wicket 1.2.6. And currently im testing
> >> with IE 6 which has the problems I mentioned, the ajax calls seems to
> >> yield no problems so far I can see we get a call when the form are
> >> submitted and it calls back after processing. However form values arent
> >> updated, im not sure if that has anything to do with the ajax part?
> >>
> >> Im not sure how far we are in the process of upgrading the gmap contrib
> >> to 1.3.
> >>
> >>
> >> regards Nino
> >>
> >> Matej Knopp wrote:
> >>
> >>
> >>> Can you please test it with latest wicket 1.3? There was a bug that
> >>> prevented IE7 from processing ajax requests properly, it might be
> >>> related.
> >>>
> >>> -Matej
> >>>
> >>> On 6/11/07, Nino Saturnino Martinez Vazquez Wael
> >>> <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>>> Yes i'll try to explain in greater detail.
> >>>>
> >>>> Looks like it was not the appendjavascript that wasnt working. But
> >>>> something else.:)
> >>>>
> >>>> Our hidden variables arent updated when using IE. Why they arent updated
> >>>> correctly puzzles me, because just before the ajax call they seem to
> >>>> have the correct values.
> >>>>
> >>>> heres a snip of what I try to do(working everywhere but IE):
> >>>>
> >>>> GEvent.addListener(googleMap, "dragend", function () {
> >>>> var center = googleMap.getCenter();
> >>>> var sW = googleMap.getBounds().getSouthWest();
> >>>> var nE = googleMap.getBounds().getNorthEast();
> >>>> document.getElementById("latitudeCenter").value=center.lat();
> >>>> document.getElementById("longitudeCenter").value=center.lng();
> >>>> document.getElementById("latitudeSW").value=sW.lat();
> >>>> document.getElementById("longitudeSW").value=sW.lng();
> >>>> document.getElementById("latitudeNE").value=nE.lat();
> >>>> document.getElementById("longitudeNE").value=nE.lng();
> >>>> document.getElementById("zoomLevel").value=googleMap.getZoom();
> >>>> document.getElementById("gmap_ajaxGMapUpdatingFormSubmit").onclick();
> >>>> });
> >>>>
> >>>> So the different variables are stored in hidden fields. Just before the
> >>>> last entry above, every value looks ok.
> >>>>
> >>>> Here are some of the java server side code:
> >>>> Form gMapUpdatingForm = new Form("gmapUpdatingForm");
> >>>> gMapUpdatingForm.setOutputMarkupId(true);
> >>>> gMapUpdatingForm.add(new HiddenField("latitudeCenter", new
> >>>> PropertyModel(gMap.getCenter(),
> >>>> "latitude"))
> >>>> {
> >>>> public IConverter getConverter()
> >>>> {
> >>>> return getUSConverter();
> >>>> }
> >>>> });
> >>>> gMapUpdatingForm.add(n

Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?

2007-06-11 Thread Matej Knopp
Can you please test it with latest wicket 1.3? There was a bug that
prevented IE7 from processing ajax requests properly, it might be
related.

-Matej

On 6/11/07, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> Yes i'll try to explain in greater detail.
>
> Looks like it was not the appendjavascript that wasnt working. But
> something else.:)
>
> Our hidden variables arent updated when using IE. Why they arent updated
> correctly puzzles me, because just before the ajax call they seem to
> have the correct values.
>
> heres a snip of what I try to do(working everywhere but IE):
>
> GEvent.addListener(googleMap, "dragend", function () {
> var center = googleMap.getCenter();
> var sW = googleMap.getBounds().getSouthWest();
> var nE = googleMap.getBounds().getNorthEast();
> document.getElementById("latitudeCenter").value=center.lat();
> document.getElementById("longitudeCenter").value=center.lng();
> document.getElementById("latitudeSW").value=sW.lat();
> document.getElementById("longitudeSW").value=sW.lng();
> document.getElementById("latitudeNE").value=nE.lat();
> document.getElementById("longitudeNE").value=nE.lng();
> document.getElementById("zoomLevel").value=googleMap.getZoom();
> document.getElementById("gmap_ajaxGMapUpdatingFormSubmit").onclick();
> });
>
> So the different variables are stored in hidden fields. Just before the
> last entry above, every value looks ok.
>
> Here are some of the java server side code:
> Form gMapUpdatingForm = new Form("gmapUpdatingForm");
> gMapUpdatingForm.setOutputMarkupId(true);
> gMapUpdatingForm.add(new HiddenField("latitudeCenter", new
> PropertyModel(gMap.getCenter(),
> "latitude"))
> {
> public IConverter getConverter()
> {
> return getUSConverter();
> }
> });
> gMapUpdatingForm.add(new HiddenField("longitudeCenter", new
> PropertyModel(gMap.getCenter(),
> "longitude"))
> {
> public IConverter getConverter()
> {
> return getUSConverter();
> }
> });
>
> Please remember that it is actually working in both FF and safari. Ajax
> calls goes through as it should, values arent updated.
>
>
> regards Nino
>
> Eelco Hillenius wrote:
> > I still only half understand the issue tbh. Can you elaborate about
> > the problems you are experiencing?
> >
> > Eelco
> >
> >
> > On 6/7/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote:
> >
> >> Hi
> >>
> >> We are experiencing some issues with ajax in IE7, possibly IE6 as well
> >> when using the target.appendjavascript. Are there any workarounds?
> >>
> >>
> >> I've looked a bit at
> >> http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-t3839952.html
> >> but it does not seem to work.
> >>
> >>
> >> Any ideas, solutions will be highly appreciated, as this are a
> >> showstopper for the v1 release of the gmap contrib.
> >>
> >> regards Nino
> >>
> >> -
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >>
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CheckBox with AjaxEvent vs AjaxCheckBox

2007-06-06 Thread Matej Knopp
I'd guess that you've used the onchange event, whereas you should have
used the onclick (as AjaxCheckBox does). Or am I wrong? :)

-Matej

On 6/6/07, Gustavo Yoshizaki <[EMAIL PROTECTED]> wrote:
> Hi, I had a strange problem with the CheckBox and ajax in the Internet
> Explorer. First I created a CheckBox and then added an AjaxEventBehavior to
> do some stuff. In Firefox it works fine, but in the explorer, the ajax is
> only triggered after doing something else in the form. I mea, i clicked in
> the CheckBox and nothing happened. But if I clicked in a DropDownChoice I
> had below, everything was fine.
> I changed the CheckBox for an AjaxCheckBox and now it works perfect in both
> browsers. Any idea what I was doing bad?
> Thanks
>
> Gustavo
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] extending and reusing form (and eventually any component)

2007-06-06 Thread Matej Knopp
Not an easy one I'm afraid. The way you've described (creating a panel
with form) is actually a preferred one.

If you really need to have form with own markup, you'll probably have
to look at WebMarkupContainerWithAssociatedMarkup and Panel classes,
and add the functionality from those to your form subclass. E.g. you
can have a FormWithMarkup class that you can use as base of your form
components.

-Matej

On 6/6/07, diego <[EMAIL PROTECTED]> wrote:
> Hi, i have an inner form that i want to modularize (the class and the
> html), but the only way that came up to my mind to do this is creating a
> new class that extends Panel, add the form to it (as inner too but this
> time into the extended panel) and put in a html file my code inside
> . It works, but at this time i'm not
> modularizing a form but a panel...  Is there some way to get
> BarForm.java BarForm.html and in the html code of the page where i want
> to add this extended form put just something like
>  and in my page just add(new
> BarForm("myBarForm")) and the form rendered had been taken from
> BarForm.html?
>
> tanks. :P
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Click Framework

2007-06-06 Thread Matej Knopp
It's not only about the binding. Form values <-> Form bean that's just
one part. The other is  deciding where the bean is stored. In session?
Sure. But if you manually store it into session you are going to get
into troubles sooner or later.

Will you store it under a key? Great. But what if user opens the page
in another window and wants to edit another entity. Will you not
forget to remove the state from session? All model 2 applications I've
seen leaked somehow when it went to session state. And it was not nice
numbers.

It's all about state management.

-Matej

On 6/6/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote:
> Thanks, I also pointed out here that Click didn't use model binding.
>
> But I am failing in the way to transmit the importance of that.
>
> Because it is argued that from the form. you can do a one line:
>
>  form.copyTo(YourModel);
>
> as long as the field names in your form matches the field names in the
> model.
>
> Can you comment a bit more?
>
> Can you please help me on how can I show the importance of model binding?
>
> Thanks,
> f(t)
>
>
>
> On 6/6/07, pixotec <[EMAIL PROTECTED]> wrote:
> >
> > I was an user of click.
> > I was fed up of self handling model data. click has no direct linking of
> > pagefields to modelfields.
> > I asked the developers, but they did not see the advantage of doing click
> > the model binding.
> > click uses velocity, wicket html.
> > I prefer the wicket way.
> >
> >
> >
> > Francisco Diaz Trepat - gmail wrote:
> > >
> > > Hi guys, can I have some of your thoughts on the Click Framework?
> > >
> > > f(t)
> > >
> > >
> -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> > --
> > View this message in context:
> http://www.nabble.com/Click-Framework-tf3878438.html#a10991337
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best Practices for accessing/repainting sibling/cousin components?

2007-06-05 Thread Matej Knopp
TBH I don't see this as a very common usecase. And it's not difficult
to implement on your own (although the code isn't entirely trivial).

-Matej

On 6/5/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> That looks like a lot of work actually. Johan, others, you think we
> should build in better support for this in Wicket?
>
> Eelco
>
> On 6/5/07, dukejansen <[EMAIL PROTECTED]> wrote:
> >  I've gone ahead and implemented this, but instead of using the
> > Component.saveInnermostModel method, I coded up my own. The implementation
> > in Component only traverses IWrapModel implementations, not IChainedModel
> > implementations. My implementation handles both. Note that this will only
> > find components backed by the exact same IModel instance. Two distinct model
> > objects wrapping the exact same object will not match. /**
> >  * Searches the component tree and finds any components backed by the same
> > model as the model passed in, then
> >  * adds those components to the given AjaxRequestTarget to be rendered
> > (after first verifying that they have
> >  * outputMarkupId set to true).
> >  *
> >  * @param root the root MarkupContainer whose descendents will be examined
> > for matching backing models
> >  * @param target the AjaxRequestTarget to add all the matching components to
> >  * @param model the model to match
> >  */
> >  public static void
> > addComponentsBackedBySameModel(MarkupContainer root, final
> > AjaxRequestTarget target, final IModel model) {
> >
> >  // Visit all children, looking for components backed by the same model.
> >  root.visitChildren(new IVisitor() {
> >  public Object component(Component component) {
> >  if (WicketUtils.isSameInnermostModel(component.getModel(),
> > model)) {
> >  if (component.getOutputMarkupId()) {
> >  // Refresh the component.
> >  target.addComponent(component);
> >  // No need to go deeper if we're already refreshing the entire component!
> >  return IVisitor.CONTINUE_TRAVERSAL_BUT_DONT_GO_DEEPER;
> >  }
> >  }
> >  return IVisitor.CONTINUE_TRAVERSAL;
> >  }
> >  });
> >
> >  // TODO: Return the list of components that were re-rendered?
> >  // See also:
> >  //
> > http://www.nabble.com/Best-Practices-for-accessing-repainting-sibling-cousin-components--tf3841514.html
> >
> >  }
> >
> >  /**
> >  * Returns true if the given models ultimately share the same innermost
> > model;
> >  * otherwise returns false.
> >  *
> >  * @param model1 the first model
> >  * @param model2 the second model
> >  * @return true if they share the same innermost model; otherwise
> >  * false
> >  */
> >  public static boolean isSameInnermostModel(IModel model1, IModel model2) {
> >  // There is a version of this on Component, but it is only aware of
> > IWrapModel.
> >  // Our version knows how to traverse chained models as well as warpped
> > models.
> >  if (model1 != null && model2 != null) {
> >  return getInnermostModel(model1) == getInnermostModel(model2);
> >  } else {
> >  return false;
> >  }
> >  }
> >
> >  /**
> >  * Returns the innermost model within the given model; similar to
> > Component.getInnermostModel,
> >  * except that it follows both IWrapModel and IChainingModel, not just the
> > former.
> >  *
> >  * @param model the model
> >  * @return the innermost model within that model
> >  */
> >  public static IModel getInnermostModel(IModel model) {
> >
> >  // Pass through nulls.
> >  if (model == null) {
> >  return null;
> >  }
> >
> >  // Try to figure out an inner model.
> >  IModel innerModel = null;
> >  if (model instanceof IWrapModel) {
> >  innerModel =
> > getInnermostModel(((IWrapModel)model).getWrappedModel());
> >  } else if (model instanceof IChainingModel) {
> >  innerModel =
> > getInnermostModel(((IChainingModel)model).getChainedModel());
> >  }
> >
> >  if (innerModel != null) {
> >  // If we got an inner model, return it.
> >  return innerModel;
> >  } else {
> >  // Otherwise the given model was the innermost, so return it.
> >  return model;
> >  }
> >
> >  }
> >
> >  /**
> >  * Returns the root ancestor of this component by walking up the parent tree
> > until a component is found with no parent;
> >  * note that this could return the same component passed in.
> >  *
> >  * @param component the component whose root ancestor should be returned;
> > must be non-null
> >  * @return the root ancestor
> >  */
> >  public static Component getRootAncestor(Component component) {
> >  ExceptionUtils.throwIfNull(component, "component");
> >  Component cur = component;
> >  while (cur.getParent() != null) {
> >  cur = cur.getParent();
> >  }
> >  return cur;
> >  }
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wic

Re: [Wicket-user] How do I change the look and feel of a wicket tree component?

2007-06-05 Thread Matej Knopp
I assume you are using wicket 1.2.x, so the new tree.
You can change the colors using css, just look at the generated markup
to see what css applies for the tree. Same goes for width.

To customize images you need to use image references and override the
getFolderOpen(), getFolderClosed(), getItem() methods. Look at
DefraultAbstractTree to see how it's done.

-Matej

On 6/5/07, Saad, Salma <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I am using a wicket.extensions.markup.html.tree.Tree and
> need to change the background color and the image used for the folder. I
> also need to make it wider. Does anyone have an idea how I could do this?
>
>
> 
>
>
> CONFIDENTIAL: This e-mail, including its contents and attachments, if any,
> are confidential. It is neither an offer to buy or sell, nor a solicitation
> of an offer to buy or sell, any securities or any related financial
> instruments mentioned in it. If you are not the named recipient please
> notify the sender and immediately delete it. You may not disseminate,
> distribute, or forward this e-mail message or disclose its contents to
> anybody else. Unless otherwise indicated, copyright and any other
> intellectual property rights in its contents are the sole property of Mizuho
> Securities USA Inc.
>
> E-mail transmission cannot be guaranteed to be secure or error-free. The
> sender therefore does not accept liability for any errors or omissions in
> the contents of this message which arise as a result of e-mail transmission.
> If verification is required please request a hard-copy version.
>
> Although we routinely screen for viruses, addressees should check this
> e-mail and any attachments for viruses. We make no representation or
> warranty as to the absence of viruses in this e-mail or any attachments.
> Please note that to ensure regulatory compliance and for the protection of
> our customers and business, we may monitor and read e-mails sent to and from
> our server(s). 
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket did not make the grade.

2007-06-05 Thread Matej Knopp
But you've decided to use struts2. Struts 2 is a complete rewrite,
it's different than struts 1.

-Matej

On 6/5/07, Florian Hehlen <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
>  The 3 key arguments against wicket were:
>  -It will be easier to hire someone with Struts knowledge on top of the fact
> that we have some in-house knowledge with it.
>  -Struts is the de-facto standard with a lot of
> community/vendor/documentation support
>  -Struts seems heavy on the java-code required for things that are pretty
> simple with struts
>
>  I agree that it was not a pure technology issue in the end and that the
> comparison was not purely on technical capabilities. The ability to build
> clean self-contained components as wicket allows was not at all appreciated.
> They did not see the potential for us to build our own custom components on
> top. Oddly enough that was seen as an "improper separation of concern"
> because then java is used for presentation aspects like layout. Frankly I
> think this is an idea that has been manufactured by other frameworks to sell
> their scattered technology/markup/syntax framework approaches.
>
>  I have dabbled with other frameworks and thought that for default behavior
> it would be nice not to have a line of code per label in a table. There was
> a comment that there is different handling in a DataView. But is that true?
> I have used them and I had to add new Label(...) in the populateItem()
> method.
>
>  anyways... what can you do... I still think wicket is a pretty dam good
> framework.
>
>  thanks,
>  florian
>
>
>
>  Peter Thomas wrote:
>
>
> > > I am sad to announce that my company did not choose to use wicket after
> > > comparison with struts 2. :-(
> > >
> > > One criticism that came out as we were looking at Wicket code was that
> > > there seems to be a need to write a lot of Java code in a ListView for
> > > such things as displaying a table. Although I did not see this issue as
> > > out-weighing all the benefits, many of my colleagues did.
>
>
>  All I'll say is that I'm personally sure this is not about technology -
> this has to be politics, and these colleagues must have already learnt
> Struts2 and want to protect their investment or have the misconception that
> Struts2 == Struts1.  Or maybe they were swayed by some presentation that
> used job search statistics to compare web ui frameworks...
>
>  Sometimes it is a waste of time to try and convince people.  Been there
> done that.  Just move on.
>
>  Regards,
>
>  Peter.
>
>  
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
>  
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Confused about relative paths and my css.

2007-06-01 Thread Matej Knopp
Look at what url is your stylesheet. The images withing stylesheet are
always located relatively to the stylesheet itself.

-Matej

On 6/1/07, Thomas R. Corbin <[EMAIL PROTECTED]> wrote:
>
> I have a line like this in my css.  the css is in the package
> com.samsix.wicket.style.   But I expected, presumably falsely that the gif
> file would be found at the root of my application, not relative to that
> package's path.
>
>   background:url("images/tabs/left.gif") no-repeat left top;
>
> Yet it seems to be looking relative to the package path.   I can go ahead and
> change the location of the gif file, but wondered what I would do if I didn't
> or couldn't move the gif files.
>
> Currently it seems to be looking in
>
> localhost:8084/nrg/app/resources/com.samsix.wicket.NrgPage/style/images/tab/left.gif
>
> Thanks,
> Tom
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dynamic number of columns in TreeTable

2007-05-31 Thread Matej Knopp
I'm affraid this is not possible at the moment and I can see some
issues with implementing this. What you can do now is either override
isVisible to hide particular columns, or recreate the tree every time
the columns change.

-Matej

On 5/31/07, Mats Norén <[EMAIL PROTECTED]> wrote:
> Hi,
> Would it be possible to let the TreeTable take a model of columns
> instead of a fixed array?
> So that it would be possible to dynamically alter the number of
> columns based on a model?
>
> My usecase is a timeplanning tree with activities as rows and time as columns.
> Looking at the code it seems that the tree is initialized with at
> fixed number of columns?
>
> /Mats
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] form silently failing to load data when template and pojo are different

2007-05-24 Thread Matej Knopp
This is not a bug. You need to add TextField to form if you want to
use , not TextArea. TextArea is for the  wrote:
>
>  hi,
>
>  I have just found that if a form contains an  and the
> corresponding pojo contains myForm.add(new TextAre(...)) then wicket fails
> to load data into the form but it will correctly read the data onSubmit.
>
>  is this a known bug it sure took me a long time to resolve it.
>
>  regards,
>  Florian.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Magic to replace ModalWindow images

2007-05-24 Thread Matej Knopp
Okay, so if I understand correctly you want to replace modal window
images. It is possible, but if you don't want to touch other css
things, you need to make sure that the new image match the exact
dimensions of the old images.

First little introduction about modal window images. Modal window
images are optimized for fast download time, meaning that for the
entire modal window only two images are loaded. This is done by
stuffing multiple elements into a single image. As a result of this,
it's not possible to use filter hack for alpha blending in IE6.
Therefore there have to be two versions of the images - one with alpha
blending (shadows) - for sane browsers, and one without alpha blending
- for IE6. While this means more work for designer, I still think it's
worth it as normally (without the grouping) the modal window would
require to load up to ten different images.

So. If you want alpha blending (on supported browsers - other then
IE6), you'll have to have four images. Two with alpha blending and two
without. To use these images, you'll have to define your own
stylesheet and put your images in the same folder. The stylesheet
should look like this:

div.wicket-modal div.my-window-style div.w_left,
div.wicket-modal div.my-window-style div.w_right {
background-image: url('my-window-style-2-alpha.png');
_background-image: url('my-window-style-2-ie.png');
}


div.wicket-modal div.my-window-style div.w_top,
div.wicket-modal div.my-window-style div.w_bottom,
div.wicket-modal div.my-window-style div.w_topLeft,
div.wicket-modal div.my-window-style div.w_topRight,
div.wicket-modal div.my-window-style div.w_bottomRight,
div.wicket-modal div.my-window-style div.w_bottomLeft,
div.wicket-modal div.my-window-style a.w_close {
background-image: url('my-window-style-1-alpha.png');
_background-image: url('my-window-style-1-ie.png');
}

To make modal window use this style you call
window.setCssClassName("my-window-style").

Unless I forgot something, this should give you the possibility to
replace default modal window images.

-Matej

On 5/24/07, Jonathan Locke <[EMAIL PROTECTED]> wrote:
>
> Matej, we were talking on ##wicket and you were about to tell me what the
> magic is to replace ModalWindow images with something my designer cooks up
> (pixel accurate replacements for existing images) without modifying Wicket.
> What was that magic?  (Thought I'd post here since others might benefit from
> the answer to this question... maybe someone can post the reply into our FAQ
> too).  Thanks!
> --
> View this message in context: 
> http://www.nabble.com/Magic-to-replace-ModalWindow-images-tf3811156.html#a10787365
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FireFox 1.5 macos, ajax fails..

2007-05-22 Thread Matej Knopp
What kind of errors?

-Matej

On 5/22/07, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> Hi
>
> any had trouble with this. My Ajax calls fails with FF 1.5 on macos.
> Also following the wiki any trying the wicket examples fails or gives
> aleast a couple of errors.
>
> regards Nino
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Header contribution in ModalWindow

2007-05-21 Thread Matej Knopp
I don't really see why this shouldn't work. Can you please open a bug
report and provide a reproducable testcase? What wicket version are
you using?

-Matej

On 5/21/07, OHKAWA Tomohisa <[EMAIL PROTECTED]> wrote:
>  Is it possible to use header contribution on the panel in ModalWindow?
> I want to define some style for ModalWindow, but it doesn't work.
>
> SomePanel.html is like:
> 
> 
> ...some styles...
> 
> 
> 
> ...components using the styles...
> 
>
> SomeDialog.java is like:
> class SomeDialog extends ModalWindow {
> SomePanel _panel;
> SomeDialog(String id) {
> setContent(_panel = new SomePanel(getContentId()));
> }
> }
>
> Thanks in advance,
> --
> OHKAWA Tomohisa
> [EMAIL PROTECTED]
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Receive event when user navigates away from current page

2007-05-21 Thread Matej Knopp
Yeah, this will work but only for IE and Firefox. For other browsers
(opera, safari) there is no way to get this event i'm affraid.

-Matej

On 5/21/07, Flavius <[EMAIL PROTECTED]> wrote:
>
>
> Thanks Martijn.
>
> getBodyContainer().getBodyContainer().add(new AjaxEventBehavior("onunload")
> {
> protected void onEvent(AjaxRequestTarget target)
> {
> //handle cleanup here
> }
> });
>
> This works well, except it doesn't fire when the browser is closed.
> I'm keeping a ref to uploaded files in a list on the session.  When
> valueUnbound fires in my session, any remaining files that have
> not been handled can be removed then.
>
> That should cover BSOD, and any other client issues.
>
>
>
>
>
> Martijn Dashorst wrote:
> >
> > body.onunload could be your friend
> >
> > However, don't depend on this behavior to be a failsafe: kill -9 will
> > not trigger the body onunload in the browser, or a power failure on
> > the client side, or a BSOD, or ...
> >
> > Martijn
> >
> > On 5/18/07, Flavius <[EMAIL PROTECTED]> wrote:
> >>
> >> I would like to receive an event when the user tries to navigate
> >> away from the current page.
> >>
> >> So if the user is on the page and navigates to any other page, closes
> >> the window, etc., I'll get an event.
> >>
> >> I have a page that allows the user to upload files to a record.  I store
> >> the physical file in a temp location until the record is saved.  If they
> >> navigate away / close the window without saving, I want to be able
> >> to delete the uploaded files on the fly.
> >>
> >> Also, later, I may want to keep a dirty flag on the page.  So if the
> >> user has not made any changes, it will just navigate away.  But if
> >> they have dirty changes, it will prompt them with an alert box.
> >>
> >> I was looking at the source for ModalWindow.  It seems that I can
> >> probably attach a behavior to page.  I'd thought I'd ask to see
> >> if that's the best approach.
> >>
> >> Currently I am using wicket 1.2.6 on Tomcat 5.5
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Receive-event-when-user-navigates-away-from-current-page-tf3779542.html#a10688196
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >
> >
> > --
> > Learn Wicket at ApacheCon Europe: http://apachecon.com
> > Join the wicket community at irc.freenode.net: ##wicket
> > Wicket 1.2.6 contains a very important fix. Download Wicket now!
> > http://wicketframework.org
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Receive-event-when-user-navigates-away-from-current-page-tf3779542.html#a10723397
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to customize Modal Window`s appearance

2007-05-18 Thread Matej Knopp
It is customizable, but you need a rather complicated CSS magic to do
it. Or, you can just override the images. Look at the images in the
modal window package to see how it works.

-Matej

On 5/18/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> you can try applying your own css, but i doubt it. the window is not made to
> be too customizable atm.probably next major ver of wicket will include a
> rework of it. for now, you can integrate any of the zillion of javascript
> libs out there that produce a simple modal pane.
>
> -igor
>
>
>
> On 5/17/07, Nikhil Gahlot <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I am using ModalWindow for my login screen. In that I have used panel as
> its
> > content. Now I want to hide everything (including title bar, close link,
> > etc) on Modal Window except the rich panel I am using. In other words, is
> > there a way I can remove modal window`s title bar with close link and
> > borders(left, right and bottom) keeping only body active that houses my
> > login panel?
> >
> > Thanks
> > Nikhil
> > --
> > View this message in context:
> http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10676785
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> >
> -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Modal window warning message

2007-05-17 Thread Matej Knopp
You should use AjaxSubmitButton and submit the form using Ajax.

-Matej

On 5/17/07, Nikhil Gahlot <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am using Modal Window with a form. But whenever I click Submit button
> on this window to submit a form
> I am getting an alert message "Are you sure you want to navigate away
> from this page? Reloading this page will cause the modal window disappear.
> Press OK to continue, or Cancel to stay on the current page".
> Now I want to prevent this alert message from getting displayed. Is
> there any way to do that?
>
> Thanks
> Nikhil
> --
> View this message in context: 
> http://www.nabble.com/Modal-window-warning-message-tf3770780.html#a10661044
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Question] Asynchronous Ajax

2007-05-17 Thread Matej Knopp
You can't. The requests are asynchronous (they don't block request),
but they are scheduled in channel so one request waits until the
previous one finishes.

Problem is that the pagemap is locked, so you can't have two requests
running on parallel on the same pagemap. If you have operation that
takes too long you should use a worker thread and a periodical
polling.

Btw. I don't understand why you are using AjaxEventBehavior on button
instead of just using AjaxLink?

-Matej

On 5/17/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
>
> I've noticed that having two components with AjaxEventBehavior attached to
> each of them, trigger a synchronous ajax call:
>
> Button b1 = new Button("b1");
> b1.add(new AjaxEventBehavior("onclick") {
>   protected void onEvent(final AjaxRequestTarget target) {
> doSomethingSlow1();
>   }
> });
> Button b2 = new Button("b2");
> b2.add(new AjaxEventBehavior("onclick") {
>   protected void onEvent(final AjaxRequestTarget target) {
> doSomethingSlow2();
>   }
> });
>
> Clicking b1, and immediately after that b2 cause the following message in
> wicket-debug window:  "INFO: Chanel busy - postponing...".
> Can I force a parallel execution of doSomethingSlow1 and doSomethingSlow2?
>
> Thank you,
> Alex.
>
> just wondering if it is possible to make them asynchronous.
> --
> View this message in context: 
> http://www.nabble.com/-Question--Asynchronous-Ajax-tf3770294.html#a10659589
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] trunk build error?!

2007-05-17 Thread Matej Knopp
Yeah, the test is broken. But it shouldn't hinder wicket
functionality. For now you can build it with -Dmaven.test.skip=true.

-Matej

On 5/17/07, Jan Kriesten <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> i just checked out the latest trunk (revision 538801) and get this test error:
>
> [surefire] Running org.apache.wicket.util.io.WicketOutputStreamTest
> [surefire] Tests run: 5, Failures: 0, Errors: 1, Time elapsed: 0,213 sec
>  FAILURE !!
>
> system: mac os x / jdk 1.5 / maven 2.0.5
>
> should i worry?
>
> other revisions were ok. since i need to change Radio.java and
> FormComponent.java so i can use FormComponentLabel for Radio, i somewhat 
> depend
> on building wicket myself. :-)
>
> regards, --- jan.
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Partial page rendering with AjaxSubmitButton

2007-05-16 Thread Matej Knopp
But there must be a reason why pagemap is returned as null. Session
expiration maybe?

-Matej

On 5/16/07, Mark van Leeuwen <[EMAIL PROTECTED]> wrote:
> > From: [EMAIL PROTECTED] [mailto:wicket-user-
> > [EMAIL PROTECTED] On Behalf Of Matej Knopp
> > Sent: Wednesday, 16 May 2007 7:17 PM
> > To: wicket-user@lists.sourceforge.net
> > Subject: Re: [Wicket-user] Partial page rendering with AjaxSubmitButton
> >
> > 1. Yes, it should be invoked.
>
> I get the same and other errors with the AJAX "Form Example" on
> http://www.wicket-library.com/wicket-examples/ajax.
>
> Without entering Name or Email, clicking the "submit via ajax" button does
> not display error messages. However clicking the non-ajax "submit" button
> does display errors.
>
> Curiously, when I downloaded the examples (ver 1.2.6) and ran them locally
> it works correctly at first. However if I wait a few minutes, then the ajax
> submit stops working.
>
> The issue seems to be in the following code from
> DefaultRequestTargetResolverStrategy.java:
>
> Session session = Session.get();
> PageMap pageMap = session.pageMapForName(requestParameters.getPageMapName(),
> false);
> if (pageMap == null)
> {
> // requested pagemap no longer exists - ignore this
> // request
> processRequest = false;
> }
>
> In the above code, the ajax submit fails to do anything when pageMap is
> returned as null.
>
>
> >
> > 2. form.replaceWith(anotherComponent);
> >
> > -Matej
> >
> > On 5/16/07, Mark van Leeuwen <[EMAIL PROTECTED]> wrote:
> > > I have a form on a page which I want to replace with another form when a
> > > Next button is pressed. I want to do this with AJAX. The form should
> > only be
> > > replaced if there are no validation errors.
> > >
> > > Two questions:
> > > - the AjaxSubmitButton.onSubmit method is not being invoked when the
> > button
> > > is clicked. Should I expect it to be?
> > > - assuming that it was invoked, how can can I replace the enclosing form
> > > with a new form?
> > >
> > > Mark
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Partial page rendering with AjaxSubmitButton

2007-05-16 Thread Matej Knopp
1. Yes, it should be invoked.

2. form.replaceWith(anotherComponent);

-Matej

On 5/16/07, Mark van Leeuwen <[EMAIL PROTECTED]> wrote:
> I have a form on a page which I want to replace with another form when a
> Next button is pressed. I want to do this with AJAX. The form should only be
> replaced if there are no validation errors.
>
> Two questions:
> - the AjaxSubmitButton.onSubmit method is not being invoked when the button
> is clicked. Should I expect it to be?
> - assuming that it was invoked, how can can I replace the enclosing form
> with a new form?
>
> Mark
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator doesn't work as "custom" class

2007-05-15 Thread Matej Knopp
That is an internal error. Which means that you got an exception. We
need to see the exception (from your server logs).

-Matej

On 5/15/07, Tremelune <[EMAIL PROTECTED]> wrote:
>
> INFO:
> INFO: Initiating Ajax GET request on
> /app?wicket:interface=:1:topDogsBlock:pager:next::IBehaviorListener&wicket:behaviorId=0&random=0.28339447129400336
> INFO: Invoking pre-call handler(s)...
> ERROR: Received Ajax response with code: 500
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
>
> --
> View this message in context: 
> http://www.nabble.com/AjaxPagingNavigator-doesn%27t-work-as-%22custom%22-class-tf3760248.html#a10628665
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] dynamically populate tree

2007-05-15 Thread Matej Knopp
It's not really question about the wicket component. It's about the
TreeModel you need to implement.

-Matej

On 5/15/07, galbu <[EMAIL PROTECTED]> wrote:
>
> Hello world
> I have a problem with a data tree: I need to generate a data tree that shows
> the structure of products' classification from this table:
>
> Object: ClasseCND
> id| anno | livello | descrizione | classemadre|
> A| 2005 |0| d   | null  |
> A01| 2005 |1|  g  |  A|
> B| 2005 |0| gg | null  |
> B01| 2005 |1| g   |  B|
> B02| 2005 |1| g   |  B|  etc...
> I have more levels of depth in the tree...and I have a great number of
> classes to show
> At first time I would show to the user only the level 0 of my data structure
> and, when the user select one node of the
> tree, I would show the requested subtree expanded. There is a way to do
> something like that without generate and cache all the classification tree
> in the session ? Some way to dynamically populate the tree when the user
> select the node he wants to see expanded ?
> Any suggest will be appreciate
> Thanks in advance
>   Galbu
> --
> View this message in context: 
> http://www.nabble.com/dynamically-populate-tree-tf3758317.html#a10622286
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ModalWindow & AjaxLink

2007-05-14 Thread Matej Knopp
Well, you can create a RFE and assign it to me, i can add this to 1.3.

-Matej

On 5/14/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> It just saves a few lines of code.
>
> yourPanel.add(new AjaxLink("foo"){
>private static final long serialVersionUID = 0L;
>@Override
>public void onClick(AjaxRequestTarget target)
>{
>   yourModalWindow.show(target);
>});
>
> vs.
>
> yourPanel.add(yourModalWindow.createAjaxLink("foo"));
>
> It's purely a convenience method, but to my eyes it reads a bit more cleanly.
>
> Scott
>
>
> On 5/14/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > Hi.
> >
> > Not that I know of :) But what is it supposed to solve?
> >
> > -Matej
> >
> > On 5/14/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> > > Is there any reason not to have a factory method like the following on
> > > ModalWindow?
> > >
> > > public AjaxLink createAjaxLink(String linkId)
> > > {
> > > return new AjaxLink(linkId)
> > > {
> > > private static final long serialVersionUID = 0L;
> > >
> > > @Override
> > > public void onClick(AjaxRequestTarget target)
> > > {
> > > ModalWindow.this.show(target);
> > > }
> > > };
> > > }
> > >
> > > Thank you,
> > > Scott
> > >
> > > --
> > > Scott Swank
> > > reformed mathematician
> > >
> > > -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> --
> Scott Swank
> reformed mathematician
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ModalWindow & AjaxLink

2007-05-14 Thread Matej Knopp
Hi.

Not that I know of :) But what is it supposed to solve?

-Matej

On 5/14/07, Scott Swank <[EMAIL PROTECTED]> wrote:
> Is there any reason not to have a factory method like the following on
> ModalWindow?
>
> public AjaxLink createAjaxLink(String linkId)
> {
> return new AjaxLink(linkId)
> {
> private static final long serialVersionUID = 0L;
>
> @Override
> public void onClick(AjaxRequestTarget target)
> {
> ModalWindow.this.show(target);
> }
> };
> }
>
> Thank you,
> Scott
>
> --
> Scott Swank
> reformed mathematician
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] have problems with AjaxSelfUpdatingTimerBehavior and AjaxTabbedPanel

2007-05-12 Thread Matej Knopp
Should be fixed for 1.3.

-Matej

On 5/11/07, James McLaughlin <[EMAIL PROTECTED]> wrote:
> done!
> https://issues.apache.org/jira/browse/WICKET-556
>
> with a brief discussion of other possibilities.
>
> best,
> jim
>
>
>  On 5/11/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > Yeah, looks like a good idea :)
> >
> > On 5/11/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > please make a jira issue with the fix you now have
> > >
> > > On 5/10/07, Murat Yücel < [EMAIL PROTECTED]> wrote:
> > > > Hi James
> > > >
> > > > Thanks for the fix. It works like a charm :)... Is this something that
> > > > wicket will solve
> > > > in a future release?
> > > >
> > > > /Murat
> > > >
> > > > 2007/5/10, James McLaughlin <[EMAIL PROTECTED]>:
> > > > >
> > > > > erm, sorry that was:
> > > > >
> > > > >
> http://www.nabble.com/Re%3A-AjaxTimer-clearTimeout-p9401965.html
> > > > >
> > > > > On 5/10/07, James McLaughlin < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Hi Murat,
> > > > > > I posted a hack to fix this several months back:
> > > > > >
> > > > > >
> http://www.nabble.com/AjaxTimer-clearTimeout-tf3364438.html#a9360559
> > > > > >
> > > > > > Essentially, I have the timer check if the markup for the
> component it
> > > > > > was bound to is still in the page, and return without firing if it
> is
> > > > not.
> > > > > > Hope this helps.
> > > > > >
> > > > > > best,
> > > > > > jim
> > > > > >
> > > > > >  On 5/10/07, Murat Yücel <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > > Hi All
> > > > > > >
> > > > > > > I had some problem with ajax when using wicket 1.2.6. I read the
> > > > > > > thread with the following subject:
> > > > > > > Problem with concurren ajax requests on page
> > > > > > >
> > > > > > > Matej suggested that a upgrade to wicket 1.3 would solve the
> ajax
> > > > > > > problem. So i upgraded the application
> > > > > > > to wicket-1.3.0-incubating-SNAPSHOT.
> > > > > > >
> > > > > > > Now I have problems with AjaxSelfUpdatingTimerBehavior when
> using it
> > > > > > > together with AjaxTabbedPanel.
> > > > > > >
> > > > > > > Panel 1 includes a subpanel which has an
> > > > > > > AjaxSelfUpdatingTimerBehavior.
> > > > > > > Panel 2 has another subpanel and it doesnt include the subpanel
> from
> > > > > > > panel 1.
> > > > > > >
> > > > > > > When swithing "page" from panel 1 to panel 2 then after 5
> seconds
> > > > > > > which is the duration of the first subpanel
> > > > > > > then i get the following error:
> > > > > > >
> > > > > > > org.apache.wicket.WicketRuntimeException:
> component
> > > > > > > contentpanel:menu:panel:showthreads not found
> on page
> > > > > > > dk.team.ninan.web.wicket.BasePage[id = 1],
> listener interface =
> > > > > > > [RequestListenerInterface name=IBehaviorListener, method=public
> > > > abstract
> > > > > > > void
> org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> > > > > > > at
> > > > > > >
> > > >
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget
> > > > > > > (AbstractRequestCycleProcessor.java:394)
> > > > > > > at
> > > > > > >
> > > >
> org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(
> > > > > > > AbstractRequestCycleProcessor.java:440)
> > > > > > > at
> > > > > > >
> org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
> > > > > > > WebRequestCycleProcessor.java:137)
> > > > > > >
> &g

Re: [Wicket-user] I have problem with custom component

2007-05-12 Thread Matej Knopp
One possible solution (for 1.2) is to call updateModel on each
checkbox in your submit handler.

For wicket 1.3, the solution would be much nicer. Just put a form in
your component. Wicket 1.3 supports nested forms and if any button in
the nested form (the one you place in your component) is submited,
only the inner form is processed. So no required fields outside the
inner form will be validated.

-Matej

On 5/12/07, blackboy zabaha <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>  Â Â Â  I'm trying to make a custom component. It shows list of items, user
> can check the checkboxs then click delete button to delete all selected
> items, or can click add button to go to an add item page.
>
>  Â Â Â  At first I test it alone in a form, it work ok, but later when I try
> it in real work that the form might contains some required fields or some
> validations, I got a problem that when some required fields not set or some
> inputs not valid then I click add/delete, error message will shown up, of
> course it is not good idea to fill and validate all other fields first
> before using this component.
>
>  Â Â Â  So I have to do setDefaultFormProcessing(false) on add button and
> delete button. but now I face the problem that my selected checkboxs not
> update their models , so I can't remove the selected items, even I try
> form.updateFormComponentModels(); but they still not updated.
>
>  Â Â Â  I can't find out what I do wrong and how to solve it, so I attach
> source code of my component and simple test page here and need somebody
> kindly help me solve this, Thanks you.
>
>  Â Â Â  P.S.
>  Â Â Â  - I'm using wicket 1.2.4, tomcat 5.5, java 5
>  Â Â Â  - something has been removed (javascript, css, img) to make the code
> more simple and concerned with the problem only
>
>  Blackzabaha
>
>
>  
> Give spam the boot. Take control with tough spam protection
> in the all-new Yahoo! Mail Beta.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] have problems with AjaxSelfUpdatingTimerBehavior and AjaxTabbedPanel

2007-05-11 Thread Matej Knopp
Yeah, looks like a good idea :)

On 5/11/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> please make a jira issue with the fix you now have
>
> On 5/10/07, Murat Yücel <[EMAIL PROTECTED]> wrote:
> > Hi James
> >
> > Thanks for the fix. It works like a charm :)... Is this something that
> > wicket will solve
> > in a future release?
> >
> > /Murat
> >
> > 2007/5/10, James McLaughlin <[EMAIL PROTECTED]>:
> > >
> > > erm, sorry that was:
> > >
> > > http://www.nabble.com/Re%3A-AjaxTimer-clearTimeout-p9401965.html
> > >
> > > On 5/10/07, James McLaughlin <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi Murat,
> > > > I posted a hack to fix this several months back:
> > > >
> > > > http://www.nabble.com/AjaxTimer-clearTimeout-tf3364438.html#a9360559
> > > >
> > > > Essentially, I have the timer check if the markup for the component it
> > > > was bound to is still in the page, and return without firing if it is
> > not.
> > > > Hope this helps.
> > > >
> > > > best,
> > > > jim
> > > >
> > > >  On 5/10/07, Murat Yücel <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > Hi All
> > > > >
> > > > > I had some problem with ajax when using wicket 1.2.6. I read the
> > > > > thread with the following subject:
> > > > > Problem with concurren ajax requests on page
> > > > >
> > > > > Matej suggested that a upgrade to wicket 1.3 would solve the ajax
> > > > > problem. So i upgraded the application
> > > > > to wicket-1.3.0-incubating-SNAPSHOT.
> > > > >
> > > > > Now I have problems with AjaxSelfUpdatingTimerBehavior when using it
> > > > > together with AjaxTabbedPanel.
> > > > >
> > > > > Panel 1 includes a subpanel which has an
> > > > > AjaxSelfUpdatingTimerBehavior.
> > > > > Panel 2 has another subpanel and it doesnt include the subpanel from
> > > > > panel 1.
> > > > >
> > > > > When swithing "page" from panel 1 to panel 2 then after 5 seconds
> > > > > which is the duration of the first subpanel
> > > > > then i get the following error:
> > > > >
> > > > > org.apache.wicket.WicketRuntimeException: component
> > > > > contentpanel:menu:panel:showthreads not found on page
> > > > > dk.team.ninan.web.wicket.BasePage[id = 1], listener interface =
> > > > > [RequestListenerInterface name=IBehaviorListener, method=public
> > abstract
> > > > > void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> > > > > at
> > > > >
> > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget
> > > > > (AbstractRequestCycleProcessor.java:394)
> > > > > at
> > > > >
> > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(
> > > > > AbstractRequestCycleProcessor.java:440)
> > > > > at
> > > > > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(
> > > > > WebRequestCycleProcessor.java:137)
> > > > >
> > > > > The error message is correct because the panel showthreads is no
> > > > > longer a part of BasePage, but why doesnt the behaviour disappear
> > > > > when replacing panels? What am i doing wrong? :)
> > > > >
> > > > > /Murat
> > > > >
> > > > >
> > > > >
> > -
> > > > > This SF.net email is sponsored by DB2 Express
> > > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > > control of your XML. No limits. Just data. Click to get it now.
> > > > > http://sourceforge.net/powerbar/db2/
> > > > > ___
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > > >
> > > >
> > >
> > > -
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicke

Re: [Wicket-user] How to close a modal window backed by a page?

2007-05-11 Thread Matej Knopp
There's not an easy solution for this right now. It's on my todo list though :-)

As an workaround you can manually print the javascript to close modal
window (just conditionaly render it on page, show it after the files
were uploaded). You can get the javascript by copying it from
ModalWindow.getcloseJavascript().

-Matej

On 5/11/07, jamieballing <[EMAIL PROTECTED]> wrote:
>
> We have a modal window which is backed by a Page (rather than a Panel). We
> are using a Page because we have a file upload control which doesn't work
> with Ajax.
>
> The modal window has a form on it with a submit link. How do I get the modal
> window to close after the form is submitted (i.e. during the submit
> processing)? There is no AjaxRequestTarget for the form onSubmit().
>
> Thanks,
> Jamie
>
>
> --
> View this message in context: 
> http://www.nabble.com/How-to-close-a-modal-window-backed-by-a-page--tf3728622.html#a10436196
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-10 Thread Matej Knopp
Okay. Can you please create a quickstart that can be used to reproduce
this and add attach it to a jira bug entry?

Thanks
-Matej

On 5/10/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
>
> I managed to migrate my application to wicket-1.3 ... but the same problem
> still persist...:( -> this time it is complaining that  he is unable to find
> the componentRelativePath of the component which is supposed to be added to
> the target. :(
>
>
> The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be
> the way wicket retrieves the component using its relative component path...
> [code]
> page.get(pageRelativeComponentPath);
> [code]
> The component which cause the problem was removed and then added back by the
> AjaxTabbedPanel before the exception is thrown.
>
> PS: Btw, when the stable wicket-1.3 version is planned to be released?
>
> Regards,
> Alex.
>
>
> Matej Knopp-2 wrote:
> >
> > Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as
> > there was a refactoring done. But even if you have problem with the
> > NPE, we can fix much easier than in 1.2.
> >
> > As for the migration, it depends on how complex your application is.
> >
> > -Matej
> >
> > On 5/9/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
> >>
> >> Well, it's a bad-bad news for me :(
> >> As far as I know, the wicket-1.3 does not have yet stable release, is it
> >> correct? If so, when approximately it will be available?
> >>
> >> And another two questions:
> >> 1) Does the wicket-1.3 solve the
> >> "java.lang.NullPointerException
> >> at
> >> wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295)"
> >> problem?
> >> 2) How much pain involves the process of migration from wicket-1.2.6 to
> >> wicket-1.3?
> >>
> >> Thank you!
> >>
> >>
> >>
> >> Matej Knopp-2 wrote:
> >> >
> >> > If you are developing ajax-heavy web application I'd certainly suggest
> >> > you migrating to 1.3. There are issues in 1.2 with AJAX that are
> >> > unfixable, because they would require API breaks, which is something
> >> > we can't do.
> >> >
> >> > -Matej
> >> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] div id problem

2007-05-10 Thread Matej Knopp
Right now, when you set outputmarkupid on component wicket doesn't
honor the id specified in markup. One of the reasons is that when you
use the component twice, the id is no longer unique. In you case I
suggest you use css class instead of id to assign stylesheet to your
elements.

-Matej

On 5/10/07, Bernatet Mathieu <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I try to apply css style on several div but wicket changes their id
> attributes defined in the html file.
> I have 3 custom panels that contain a DataView and I want to refresh
> them with ajax, so I make a call to setOutputMarkupId() method. This
> call changes the id defined in html file.
> I add an AttributeModifier to force the use of the defined id, that
> works but now ajax refresh don't work.
> What I'm doing wrong?
>
> code:
>
> dashboard.html:
>
> ...
> 
> 
> 
> 
> 
> 
> 
> ---
>
> viewPanel.html:
>
> 
> 
> [agents 
> navigator]
> 
> 
>
> ViewPanel.java:
>
> public class ViewPanel extends Panel {
> private static final long serialVersionUID = 1L;
>
> public ViewPanel(String id, DataView dataView, int 
> itemsPerPage) {
> super(id);
> setOutputMarkupId(true);
> add(dataView);
> dataView.setItemsPerPage(itemsPerPage);
> add(new AttributeModifier("id", true, new Model(id)));
> add(new FancyPagingNavigator("navigator", dataView));
> }
> }
> -
>
> Dashboard.java:
>
> public class Dashboard extends WebPage {
> public Dashboard() {
> ...
> add(new ProjectsPanel("projects-panel", projects, 5));
> add(new AgentsPanel("agents-panel", scheduler, 5));
> add(new QueuePanel("builds-panel", scheduler, 5));
> }
> }
>
> Mathieu
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Force page refresh after Ajax request completes?

2007-05-09 Thread Matej Knopp
The problem is that when setResponsePage() is called, no appended
Javascript is evaluated. In fact, wicket doesn't process the ajax
response at all. Just sets window.location.

-Matej

On 5/9/07, dukejansen <[EMAIL PROTECTED]> wrote:
>
> Yeah, but I don't want to disable that warning. That warning is valid if the
> user really does try to navigate away while the modal is still being
> displayed.
>
> The problem is that I am actually closing the modal before I do the
> redirect, so it shouldn't show the warning at all.
>
> -Jason
>
>
> Matej Knopp-2 wrote:
> >
> > There is a way that should also work in recent 1.x. To disable the
> > confirmation dialog you need to put this inside the page with modal
> > window:
> > 
> >   Wicket.Window.unloadConfirmation=false;
> > 
> >
> > -Matej
> >
> > On 5/9/07, Arnout Engelen <[EMAIL PROTECTED]> wrote:
> >> dukejansen schreef:
> >> > My Ajax event handler needs to first close the current modal window and
> >> then refresh the entire page. Is there a better way to do this?
> >> >
> >> I once worked around something like this by putting the redirect in the
> >> windowClosedCallback of the ModalWindow. That was sufficient in our
> >> case, but I too would be interested in some more enlightenment in this
> >> area :).
> >>
> >>
> >> Arnout
> >>
> >> -
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> ___
> >> Wicket-user mailing list
> >> Wicket-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Force-page-refresh-after-Ajax-request-completes--tf3714279.html#a10400468
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-09 Thread Matej Knopp
Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as
there was a refactoring done. But even if you have problem with the
NPE, we can fix much easier than in 1.2.

As for the migration, it depends on how complex your application is.

-Matej

On 5/9/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
>
> Well, it's a bad-bad news for me :(
> As far as I know, the wicket-1.3 does not have yet stable release, is it
> correct? If so, when approximately it will be available?
>
> And another two questions:
> 1) Does the wicket-1.3 solve the
> "java.lang.NullPointerException
> at
> wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget(DefaultRequestTargetResolverStrategy.java:295)"
> problem?
> 2) How much pain involves the process of migration from wicket-1.2.6 to
> wicket-1.3?
>
> Thank you!
>
>
>
> Matej Knopp-2 wrote:
> >
> > If you are developing ajax-heavy web application I'd certainly suggest
> > you migrating to 1.3. There are issues in 1.2 with AJAX that are
> > unfixable, because they would require API breaks, which is something
> > we can't do.
> >
> > -Matej
> >
> > On 5/9/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
> >>
> >> I have the same issue and I am using wicket 1.2.6..
> >> I am also developing an ajax application (desktop like)... Is it a known
> >> issue or bug in my code?
> >>
> >> Thank you!
> >> Regards,
> >> Alex.
> >>
> >>
> >> Matej Knopp-2 wrote:
> >> >
> >> > You seem to be using 1.2, is that right?
> >> >
> >> > -Matej
> >> >
> >> > On 4/30/07, RedFury <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> Hi all,  just want to say that I've relatively new to Wicket but am
> >> >> loving
> >> >> every minute of it!  In just a few weeks of learning and programming I
> >> >> have
> >> >> been able to create a robust, javascripted, ajaxified app for our
> >> >> company.
> >> >> Great work to the devs!
> >> >>
> >> >> However, I have one problem which I'm a little unsure how to solve,
> >> its
> >> >> not
> >> >> an inherent problem with Wicket but more a problem with my ajax in
> >> >> wicket.
> >> >> I will try to go into as much detail as possible.
> >> >>
> >> >> I have a page with a set of tabs.  Each tab will replace the main body
> >> of
> >> >> the page with different components using ajax. this is all working
> >> great.
> >> >> On top of this, the main page of the app has a global timer (using
> >> >> AbstractAjaxTimerBehavior) which does any updates required for the
> >> >> current
> >> >> tab.  So lets say I have component C1 on tab T1 (T1 is a wicket panel
> >> >> which
> >> >> I replace when needed.)  The ajax update will call an update()
> >> function
> >> >> which is overloaded for the different tab types. So T1.update() will
> >> call
> >> >> target.addComponent(C1); etc..
> >> >>
> >> >> The problem I am having is in the timing between the ajax timer
> >> request
> >> >> and
> >> >> the ajax update request when the user hits a new tab.  I am getting
> >> the
> >> >> following error:
> >> >>
> >> >> java.lang.NullPointerException
> >> >> at
> >> >>
> >> wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn
> >> >> terfaceTarget(DefaultRequestTargetResolverStrategy.java:295)
> >> >> at
> >> >>
> >> wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa
> >> >> ge(DefaultRequestTargetResolverStrategy.java:228)
> >> >> at
> >> >>
> >> wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRe
> >> >> questTargetResolverStrategy.java:153)
> >> >> at
> >> >>
> >> wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(Abstract
> >> >> CompoundRequestCycleProcessor.java:48)
> >> >> at wicket.RequestCycle.step(RequestCycle.java:992)
> >> >> at wicket.RequestCycle.steps(RequestCycle.java:1084)
&g

Re: [Wicket-user] Force page refresh after Ajax request completes?

2007-05-09 Thread Matej Knopp
There is a way that should also work in recent 1.x. To disable the
confirmation dialog you need to put this inside the page with modal
window:

  Wicket.Window.unloadConfirmation=false;


-Matej

On 5/9/07, Arnout Engelen <[EMAIL PROTECTED]> wrote:
> dukejansen schreef:
> > My Ajax event handler needs to first close the current modal window and 
> > then refresh the entire page. Is there a better way to do this?
> >
> I once worked around something like this by putting the redirect in the
> windowClosedCallback of the ModalWindow. That was sufficient in our
> case, but I too would be interested in some more enlightenment in this
> area :).
>
>
> Arnout
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-09 Thread Matej Knopp
If you are developing ajax-heavy web application I'd certainly suggest
you migrating to 1.3. There are issues in 1.2 with AJAX that are
unfixable, because they would require API breaks, which is something
we can't do.

-Matej

On 5/9/07, Alex Objelean <[EMAIL PROTECTED]> wrote:
>
> I have the same issue and I am using wicket 1.2.6..
> I am also developing an ajax application (desktop like)... Is it a known
> issue or bug in my code?
>
> Thank you!
> Regards,
> Alex.
>
>
> Matej Knopp-2 wrote:
> >
> > You seem to be using 1.2, is that right?
> >
> > -Matej
> >
> > On 4/30/07, RedFury <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi all,  just want to say that I've relatively new to Wicket but am
> >> loving
> >> every minute of it!  In just a few weeks of learning and programming I
> >> have
> >> been able to create a robust, javascripted, ajaxified app for our
> >> company.
> >> Great work to the devs!
> >>
> >> However, I have one problem which I'm a little unsure how to solve, its
> >> not
> >> an inherent problem with Wicket but more a problem with my ajax in
> >> wicket.
> >> I will try to go into as much detail as possible.
> >>
> >> I have a page with a set of tabs.  Each tab will replace the main body of
> >> the page with different components using ajax. this is all working great.
> >> On top of this, the main page of the app has a global timer (using
> >> AbstractAjaxTimerBehavior) which does any updates required for the
> >> current
> >> tab.  So lets say I have component C1 on tab T1 (T1 is a wicket panel
> >> which
> >> I replace when needed.)  The ajax update will call an update() function
> >> which is overloaded for the different tab types. So T1.update() will call
> >> target.addComponent(C1); etc..
> >>
> >> The problem I am having is in the timing between the ajax timer request
> >> and
> >> the ajax update request when the user hits a new tab.  I am getting the
> >> following error:
> >>
> >> java.lang.NullPointerException
> >> at
> >> wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn
> >> terfaceTarget(DefaultRequestTargetResolverStrategy.java:295)
> >> at
> >> wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa
> >> ge(DefaultRequestTargetResolverStrategy.java:228)
> >> at
> >> wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRe
> >> questTargetResolverStrategy.java:153)
> >> at
> >> wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(Abstract
> >> CompoundRequestCycleProcessor.java:48)
> >> at wicket.RequestCycle.step(RequestCycle.java:992)
> >> at wicket.RequestCycle.steps(RequestCycle.java:1084)
> >> at wicket.RequestCycle.request(RequestCycle.java:454)
> >>
> >>
> >> So it seems what is happening (this is my guess) is that the ajax
> >> requests
> >> for the timer update and the new tab update are being sent almost
> >> simultaneously.  The first request is processed by the server and this
> >> actually changes the comoponents on the page. Then the second request
> >> comes
> >> in and its target behavior no longer exists because the first request
> >> replaced that component (panel) with something different.
> >>
> >> So I guess what I'm looking for is ideas on how to solve this problem?
> >> How
> >> does Wicket ajax work client side? Does it organize ajax request-response
> >> cycles one at a time, or can they be sent simultaneously?  Also, is there
> >> a
> >> way I can hoook into the client code and stop the timer update from being
> >> called if we've already got a pending page-change ajax request.
> >>
> >> So I've waffled a bit, in short how do I stop the second ajax request
> >> from
> >> referencing behavior that the first one just got rid of ?
> >>
> >> Thanks,
> >> Red Fury
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10247552
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> This SF.net

Re: [Wicket-user] expression to get property

2007-05-08 Thread Matej Knopp
new Label("name", new Model() {
   public Object getObject() {
  return myBean.getName(3);
   }
});

-Matej

On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:
>
> it is easy to reference the property of a model by using "java bean" notation
> as:
>
> add(new Label("name", new PropertyModel(myModel, "name")));
>
> (get the value of name property from the myModel)
>
> what about if I want to insert some parameters in my property getter method?
> e.g. I have a getter method:
> String getName(int)
>
> is it possible to "use" this getter method by passing an integer value in
> PropertyModel?
>
> -Wing
> --
> View this message in context: 
> http://www.nabble.com/expression-to-get-property-tf3707591.html#a10369629
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


  1   2   3   4   5   6   7   8   >