[Wicket-user] ajax failed to update a component (wicket-1.2)

2006-06-25 Thread Nili Adoram
I added a list in form with id statusForm as follows:

ListView list = new ListView(myList);
list.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30)));
list.setOutputMarkupId(true);
add(nodeGroups);

This is the corresponding markup:
table class=dataTable
tr wicket:id=list
tdspan wicket:id=namefoo/span/td
tdspan wicket:id=statusStarting/span/td
/tr
/table

But Ajax has failed to auto-refresh the page and produced the following 
error:
ERROR: Component with id [[statusForm_list]] a was not found while 
trying to perform markup update. Make sure you called 
component.setOutputMarkupId(true) on the component whose markup you are 
trying to update.

Why is markup update looking for component id statusForm_list and not list?

10x
Nili


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax failed to update a component (wicket-1.2)

2006-06-25 Thread Johan Compagner
because that is the complete path to that list (i guess new ListView(myList)) is wrong? it should be just list?but a ListView doesn't have a markup by itself. Only the list items. If you want to update a listview
you have to wrap in in a container and attach the ajax behaviiour to that.johanOn 6/25/06, Nili Adoram 
[EMAIL PROTECTED] wrote:I added a list in form with id statusForm as follows:
ListView list = new ListView(myList);list.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30)));list.setOutputMarkupId(true);add(nodeGroups);This is the corresponding markup:
table class=dataTabletr wicket:id=listtdspan wicket:id=namefoo/span/tdtdspan wicket:id=statusStarting/span/td
/tr/tableBut Ajax has failed to auto-refresh the page and produced the followingerror:ERROR: Component with id [[statusForm_list]] a was not found whiletrying to perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you aretrying to update.Why is markup update looking for component id statusForm_list and not list?10xNiliUsing Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] help writing an encoding strategy

2006-06-25 Thread Ittay Dror
Hello,

I'm trying to write a coding strategy that maps all pages with a given package 
prefix to a url prefix. so a.b.c.Page, and the prefix a.b, and url prefix 1/2, 
will be mapped to 1/2/c/Page.

I keep running into needing to reimplement functions in 
WebRequestCodingStrategy. Like encoding/decoding the page map (for the double 
window handling), encoding/decoding listener interface targets (btw, how is 
that bookmarkable?) - to handle redirects, encoding/decoding references to 
resources.

What is the best way to reuse the code/logic in WebRequestCodingStrategy?

Thank you,
Ittay

-- 
===
Ittay Dror, 
Chief architect, openQRM TL, 
RD, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] help writing an encoding strategy

2006-06-25 Thread Ittay Dror
also, i found that for redirects, only the query part of the url is used to 
save the rendered page. so i must create a url where all the details are in the 
query part, if i want to use REDIRECT_TO_BUFFER. is that true?

Ittay Dror wrote:
 Hello,
 
 I'm trying to write a coding strategy that maps all pages with a given 
 package prefix to a url prefix. so a.b.c.Page, and the prefix a.b, and url 
 prefix 1/2, will be mapped to 1/2/c/Page.
 
 I keep running into needing to reimplement functions in 
 WebRequestCodingStrategy. Like encoding/decoding the page map (for the double 
 window handling), encoding/decoding listener interface targets (btw, how is 
 that bookmarkable?) - to handle redirects, encoding/decoding references to 
 resources.
 
 What is the best way to reuse the code/logic in WebRequestCodingStrategy?
 
 Thank you,
 Ittay
 


-- 
===
Ittay Dror, 
Chief architect, openQRM TL, 
RD, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] help writing an encoding strategy

2006-06-25 Thread Johan Compagner
So you want a special bookmarkable url encoding?Can you just use Package mounting? Or see how that works and copy parts of it to fit your needs?Listener interface request are not bookmarkable they are internal wicket urls. And those urls are used for the redirect to buffer
So that shouldn't be a problem for you. Because bookmarkable urls don't use redirect to buffer at all.johanOn 6/25/06, Ittay Dror 
[EMAIL PROTECTED] wrote:also, i found that for redirects, only the query part of the url is used to save the rendered page. so i must create a url where all the details are in the query part, if i want to use REDIRECT_TO_BUFFER. is that true?
Ittay Dror wrote: Hello, I'm trying to write a coding strategy that maps all pages with a given package prefix to a url prefix. so a.b.c.Page, and the prefix a.b, and url prefix 1/2, will be mapped to 1/2/c/Page.
 I keep running into needing to reimplement functions in WebRequestCodingStrategy. Like encoding/decoding the page map (for the double window handling), encoding/decoding listener interface targets (btw, how is that bookmarkable?) - to handle redirects, encoding/decoding references to resources.
 What is the best way to reuse the code/logic in WebRequestCodingStrategy? Thank you, Ittay--===Ittay Dror,Chief architect, openQRM TL,
RD, Qlusters Inc.[EMAIL PROTECTED]+972-3-6081994 Fax: +972-3-6081841http://www.openQRM.org- Keeps your Data-Center Up and Running
Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Any known issues with tabbed browsing and external links?

2006-06-25 Thread Johan Compagner
no if he clicks it twice then you will again get a redirect to another one because the browser will detect that that one is already in use.In 2.0 pagemaps are not importand anymore by default so i don't want to give it much more time for 
1.2 What now sits in 1.2 pretty much works ok. If not then we have to backport some stuff from 2.0johanOn 6/14/06, JasonB 
[EMAIL PROTECTED] wrote:Johan Compagner wrote: for others not in ##wicket:
 the pagemap in the bookmarkable url can be get through the RequestCycle.urlFor(PageMap,Class,Params) method call give a pagemap there and the url will contain the pagemap param that will be used to hold the page in when it is clicked.
Is it be possible that, if the user clicks the email links twice, hecould have two open tabs using the same pagemap? Maybe we could have apagemap value or other parameter that would specify that a new (randomly
named?) pagemap should be created in response to this request. - Jason B.___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] page reloades infinitely

2006-06-25 Thread Johan Compagner
in 2.0 this is be default not a problem anymore. (the pagemap checker is disabled by default because it is not needed)Maybe if people do keep problems with this we should backport that change to 1.3 or something like that.
johanOn 6/21/06, Matej Knopp [EMAIL PROTECTED] wrote:
Yes, null is all right.For every page the _javascript_ checks, whether it's opened in newwindow/tab (therefore the cookie). If so, new pagemap is created, pageis cloned into the new pagemap and the browser tab/window is redirected
to the page in new pagemap).-MatejIttay Dror wrote: one other question. the original page map name is still 'null'. is this ok? Ittay Dror wrote: ok, i did the same magic in my coding strategy and it works. in new tabs
 the url now looks like http://localhost/page/SomePage?wicket:bookmarkablePage=wicket-0:com.package.SomePage
 can someone explain the mechanism to me? also, why should i take care of this and not WebRequestCodingStrategy? thanx, ittay
 Ittay Dror wrote: well, this is the code in WebRequestCodingStrategy: public final CharSequence encode(final RequestCycle requestCycle, final IRequestTarget requestTarget)
 { // first check whether the target was mounted CharSequence path = pathForTarget(requestTarget); if (path != null) {
 CharSequence prefix = urlPrefix(requestCycle); final AppendingStringBuffer buffer = new AppendingStringBuffer(prefix.length() + 
path.length()); buffer.append(prefix); buffer.append(path); return requestCycle.getOriginalResponse().encodeURL(buffer); }
  the page (target) is indeed mounted, so pathForTarget goes to the encoding strategy to encode the path. in case the target was not mounted, it would have encoded the url itself (in my case, the target
 is IBookmarkablePageRequestTarget) the code there is less than trivial, should i copy  paste? can i reference it somehow?
 ittay Matej Knopp wrote: Hmm.. The problem with this kind of bugs is that it's very difficult to reproduce.
 IMHO The problem is in this line: else {document.location.href =""> '/page/SomePage;jsessionid=E43E09C7B61190F3C8C5E98CB988F21F?';} The url should contain pagemap name (something like wicket-1).
 In wicket-1.2 the url is built in PageMapChecker#renderHead (WebPage.java line 388 - IBookmarkablePageRequestTarget current = (IBookmarkablePageRequestTarget)target;
 BookmarkablePageRequestTarget redirect = new BookmarkablePageRequestTarget( getSession().createAutoPageMapName(), current.getPageClass(), current.getPageParameters
()); url = ""> ) I wonder why the generated url doesn't contain the pageMap name. -Matej
 Ittay Dror wrote: further investigation shows that for IE and openning new windows, it works fine - a PageMap instance is created, and the page loads fine.
 i've also started firefox with a new profile (no extensions), to make sure it's not extension related, and no, it happens there also, and also when i open a new window instead of new tab. it seems to be
 related to differences in cookie (session) handling between firefox and IE. ittay Ittay Dror wrote:
 Hi, I'm using firefox. when i duplicate a tab, the tab reloads in an infinite loop.
 this is the reason: script type=text/_javascript_!--//--![CDATA[//!-- var pagemapcookie = getWicketCookie('pm-nullwicket');
 if(!pagemapcookie  pagemapcookie != '1'){setWicketCookie('pm-nullwicket',1);} else {document.location.href =""> '/page/SomePage;jsessionid=E43E09C7B61190F3C8C5E98CB988F21F?';}
 //--!]]/script /head body 
 what happens is that the pagemapcookie is there when the page is rendered, because the previous page was not unloaded, so the
 document's href is changed to itself. of course, when the page loads, the cookie is still 1, so the loop continues. the same will happen if i just open a new tab and load the same url.
 what gives? also, the code that writes this script is WebPage.PageMapChecker
 the comment in the code is: /*** Tries to determine whether this page was opened in a new window or tab.
* If it is (and this checker were able to recognize that), a new page map* is created for this page instance, so that it will start
 using it's own* history in sync with the browser window or tab.*/ i've tried to debug this, but it doesn't look like a new PageMap is
 created (i don't use it, so the PageMap instance is the default one). so it seems i *don't* get a history per tab. can/should i remove the AutomaticMultiWindowSupport setting?
 thanx, ittay ___ Wicket-user mailing list 
Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
___Wicket-user mailing listWicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

Re: [Wicket-user] help writing an encoding strategy

2006-06-25 Thread Ittay Dror


Johan Compagner wrote:
 So you want a special bookmarkable url encoding?
 Can you just use Package mounting? Or see how that works and copy parts 
 of it to fit your needs?

package mounting is for one package, i want all packages with the same prefix 
to be mounted. the problem i'm facing is not encoding the bookmarkable urls, 
this works fine. the problem is that it seems i have a lot of other targets i 
need to encode:
listener interface target (for redirects) - the rendering itself is found, but 
the page has relative urls to javascript/css (so it can be previewable) - 
because the encoding is something like /context?interface-params, the js/css 
can't be found
references to resources - less of an issue, because we worked around it 
differently, but for the same reason - i need to encode the urls that the page 
references.

 
 Listener interface request are not bookmarkable they are internal wicket 
 urls. And those urls are used for the redirect to buffer
 So that shouldn't be a problem for you. Because bookmarkable urls don't 
 use redirect to buffer at all.

but if i load a page, and it redirects to a url that is transient, i can't 
bookmark that url. 

 
 johan
 
 
 On 6/25/06, *Ittay Dror*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 also, i found that for redirects, only the query part of the url is
 used to save the rendered page. so i must create a url where all the
 details are in the query part, if i want to use REDIRECT_TO_BUFFER.
 is that true?
 
 Ittay Dror wrote:
   Hello,
  
   I'm trying to write a coding strategy that maps all pages with a
 given package prefix to a url prefix. so a.b.c.Page, and the prefix
 a.b, and url prefix 1/2, will be mapped to 1/2/c/Page.
  
   I keep running into needing to reimplement functions in
 WebRequestCodingStrategy. Like encoding/decoding the page map (for
 the double window handling), encoding/decoding listener interface
 targets (btw, how is that bookmarkable?) - to handle redirects,
 encoding/decoding references to resources.
  
   What is the best way to reuse the code/logic in
 WebRequestCodingStrategy?
  
   Thank you,
   Ittay
  
 
 
 --
 ===
 Ittay Dror,
 Chief architect, openQRM TL,
 RD, Qlusters Inc.
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 +972-3-6081994 Fax: +972-3-6081841
 
 http://www.openQRM.org
 - Keeps your Data-Center Up and Running
 
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
 
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-- 
===
Ittay Dror, 
Chief architect, openQRM TL, 
RD, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Portlet support checked in the 1.2 branch

2006-06-25 Thread middledot

Thanks,
have checked it out yestereday but had no time to test it. Will try lto play
with it later during the week.
Les
--
View this message in context: 
http://www.nabble.com/Portlet-support-checked-in-the-1.2-branch-t1840130.html#a5041049
Sent from the Wicket - User forum at Nabble.com.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax failed to update a component (wicket-1.2)

2006-06-25 Thread Nili Adoram
Thanks, I wrapped with a WebMarkupContainer and it worked!

Johan Compagner wrote:
 because that is the complete path to that list (i guess new 
 ListView(myList)) is wrong? it should be just list?

 but a ListView doesn't have a markup by itself. Only the list items. 
 If you want to update a listview
 you have to wrap in in a container and attach the ajax behaviiour to that.

 johan


 On 6/25/06, *Nili Adoram*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 I added a list in form with id statusForm as follows:

 ListView list = new ListView(myList);
 list.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30)));
 list.setOutputMarkupId(true);
 add(nodeGroups);

 This is the corresponding markup:
 table class=dataTable
 tr wicket:id=list
 tdspan wicket:id=namefoo/span/td
 tdspan wicket:id=statusStarting/span/td
 /tr
 /table

 But Ajax has failed to auto-refresh the page and produced the
 following
 error:
 ERROR: Component with id [[statusForm_list]] a was not found while
 trying to perform markup update. Make sure you called
 component.setOutputMarkupId(true) on the component whose markup
 you are
 trying to update.

 Why is markup update looking for component id statusForm_list and
 not list?

 10x
 Nili


 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 

 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user