Re: [Wicket-user] checkboxes in dataview...

2006-09-10 Thread Erik Brakkee
Igor Vaynberg wrote:
 that is an inelegant approach imho, this is how i would do it

 [...]

Ok that approach is clear. Although it would also be nice just to have
an API call for just accessing the items shown on the page.

 then after the form submit read the selected set for selected ids. if
 you have paging you need to write your own navigator that uses
 submitlink instead of linkor use an ajax checkbox
I don't understand this why does this have anything to do with paging?


-
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] Wicket-user Digest, Vol 4, Issue 72

2006-09-10 Thread ketan gote
hello
friends

there r some of the new example of ajax on the wicket site
but this are no mean of useful
as they doen't run properly
or there functionality is not clearly specified
pls specify all above problem

wating for reply
-
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] Wicket-user Digest, Vol 4, Issue 72

2006-09-10 Thread Frank Bille
HiI'm not sure I understand which examples you are talking about. Which of the AJAX examples doesn't work and what happens?FrankOn 9/10/06, 
ketan gote [EMAIL PROTECTED] wrote:
hello
friends

there r some of the new example of ajax on the wicket site
but this are no mean of useful
as they doen't run properly
or there functionality is not clearly specified
pls specify all above problem

wating for reply

-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.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] checkboxes in dataview...

2006-09-10 Thread Erik Brakkee




Igor Vaynberg wrote:

  
  
Ok that approach is clear. Although it would also be nice just to have
an API call for just accessing the items shown on the page.
  
  
in wicket we use models to glue components to properties just so we
dont have to go through components and see their values. in this
example the components drop off their selection in a set for you so you
can just traverse the set.
  
  
  

Aha, but I solved a problem with a back button yesterday which was
caused by the model (that I saved as a private instance variable of
the page) getting out of sync with the actual model. The problem was
that wicket components only call getters and setters on the model, but
they cannot manage associations. In my case, I had a one to many
relation in my model which was manipulated by the user (adding and
removing items). In this case, just accessing the model from my private
instance variable for the final save action on form submission gave the
wrong result, even though the model as seen by the components on the
page was correct (it was a copy of an old version including the
relations). 

So what I learned from this is that the page objects themselves are not
versioned, only the component models are. In other words, saving a
model as a private instance variable can cause problems if the model
has more operations than just getters and setters. 

In this particular case I am wondering about back button support for
the selections instance variable. Here, if a user goes back to the
previous version of the page and submits it, the selections instance
variable is not updated to reflect the current version, even though the
checkbox models are. The problem is that the selections instance
variable is not retrieved from a model. If it would be part of a model
and we would retrieve the selections through a component model then it
would be ok. 

Is there a simple way to put the selections in a model of some dummy
component just to get back button support? Thinking about this, I think
it would also solve my previous problem with the back button. For
instance: 

 VersionedObjectSet selections; // private instance variable

// pseudo code
class VersionedObjectT extends Serializable extends Component {

 VersionedObject(String aId, T aObject) { 
 super(aId, new Model(aObject));
 
 }

 T get() { 
 return (T) getModel().getObject(null);
 }
}

In this way, I can store any type of object as private instance
variable and make sure that its properly versioned no matter what. 

Cheers
 Erik

  
  
what you want is already there, see MarkupContainer.visitChildren() -
but in order for this to work you will need to know what entity the
checkbox is tied to. this is much less elegant imho because the likely
scenario is that you will build the set yourself by visiting these
components anyways.
  
  
  
  
 then after the form submit read the selected set for selected ids.
if

 you have paging you need to write your own navigator that uses
 submitlink instead of linkor use an ajax checkbox
I don't understand this why does this have anything to do with paging?
  
checkboxes are form components in html - in order for you to get their
value on serverside the form has to be submitted. the paging navigator
by default uses regular anchor links, when pressed they will not submit
the form and so you will lose your selection from that page.
  
  
-Igor
  
  
  
  
  

-
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


[Wicket-user] Link behaviour inconsistent

2006-09-10 Thread Imran M Yousuf
Dear Users,I am using Link implementation in my application to navigate. When the server restarts all the links that are of Link implementation starts behaving strangely and goes to a page that is not even navigateable from that page. Can someone let me know what the reason could be?
The links that cause problem looks like as follows: http://192.168.1.14:8080/sakura/home?wicket:interface=:5::Need help on this in urgent basis.
Thank you in advance.Imran
-
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] Link behaviour inconsistent

2006-09-10 Thread Martijn Dashorst
These links are not supposed to be bookmarkable. You should use
BookmarkablePageLInks when you want to provide bookmarks to your
pages.

You can read more on the subject here:
http://www.javalobby.org/java/forums/t61556.html

Martijn

On 9/10/06, Imran M Yousuf [EMAIL PROTECTED] wrote:
 Dear Users,

 I am using Link implementation in my application to navigate. When the
 server restarts all the links that are of Link implementation starts
 behaving strangely and goes to a page that is not even navigateable from
 that page. Can someone let me know what the reason could be?
 The links that cause problem looks like as follows:
 http://192.168.1.14:8080/sakura/home?wicket:interface=:5::
 Need help on this in urgent basis.
 Thank you in advance.

 Imran

 -
 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





-- 
Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow
-- http://wicketframework.org

-
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] Bread crumbs based on pages, not panels?

2006-09-10 Thread aaime74



igor.vaynberg wrote:
 
 i have an implementation but it is unique to this app. basically each page
 takes a back page in the constructor and then i iterate over the chain and
 create the breadcrumbs. this might be overkill for you if you are only
 interested in bookmarkable urls - not saving the actual state of previous
 pages.
 

In fact I'm porting an application made with Struts and all pages seem to be 
stateless (their structure does not change, state is held by a persisted
object model)
so I guess a list of beans describing how to build the link should be all I
need to
keep the breadcrumbs working, and yes, I can use page constructors and some
special
link subclass to complete a simple but working solution.

Thank you 
Best regards
Andrea Aime

-- 
View this message in context: 
http://www.nabble.com/Bread-crumbs-based-on-pages%2C-not-panels--tf2244730.html#a6233851
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] Link behaviour inconsistent

2006-09-10 Thread Gwyn Evans
The point is, non-bookmarkable links aren't intended to persist over
server restarts - in fact, they're only 'good' for the life of the
session in which they were created.  Can you explain a bit more about
the scenario you've intending them to cover.

/Gwyn

On 10/09/06, Imran M Yousuf [EMAIL PROTECTED] wrote:
 Sorry to disappoint you. But I already know what you have mentioned in your
 reply. The URL I sent in the mail was an example which URLs' cause such
 behavior. They were not used for bookmark purpose. I hoped I cleared myself.
 Please feel free to ask any question in regard to this.

 Thank you

 Imran

 -Original Message-
 From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
 Sent: Sunday, September 10, 2006 6:37 PM
 To: [EMAIL PROTECTED]; wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Link behaviour inconsistent

 These links are not supposed to be bookmarkable. You should use
 BookmarkablePageLInks when you want to provide bookmarks to your
 pages.

 You can read more on the subject here:
 http://www.javalobby.org/java/forums/t61556.html

 Martijn

 On 9/10/06, Imran M Yousuf [EMAIL PROTECTED] wrote:
  Dear Users,
 
  I am using Link implementation in my application to navigate. When the
  server restarts all the links that are of Link implementation starts
  behaving strangely and goes to a page that is not even navigateable from
  that page. Can someone let me know what the reason could be?
  The links that cause problem looks like as follows:
  http://192.168.1.14:8080/sakura/home?wicket:interface=:5::
  Need help on this in urgent basis.
  Thank you in advance.
 
  Imran
 
  -
  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
 
 
 


 --
 Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and
 ModalWindow
 -- http://wicketframework.org


 -
 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



-- 
Download Wicket 1.2.2 now! - http://wicketframework.org

-
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] Link behaviour inconsistent

2006-09-10 Thread Imran M Yousuf








The page that comes is not the link that I
click on. Thats the problem. I think you understood the problem. My wild
guess is that the Browser is messing things up so I trying to make the page
expire using the response header directive. Please let me know of any solution
you come across. 

Thank you



Imran











From: Johan Compagner
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 10, 2006
7:40 PM
To: [EMAIL PROTECTED];
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Link
behaviour inconsistent





is that also really the
link you click on?
that looks strange to me because that link is just a page request link.
It is not an url of a link on the page. that should be something like
this:

http://www.wicket-library.com/wicket-examples/linkomatic?wicket:interface=:0:actionLink::ILinkListener

johan





On 9/10/06, Imran M
Yousuf  [EMAIL PROTECTED]
wrote:



Dear Users, 

I am using Link implementation in my application to navigate. When the server
restarts all the links that are of Link implementation starts behaving
strangely and goes to a page that is not even navigateable from that page. Can
someone let me know what the reason could be? 
The links that cause problem looks like as follows: http://192.168.1.14:8080/sakura/home?wicket:interface=:5
::
Need help on this in urgent basis. 
Thank you in advance.






Imran




-
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


Re: [Wicket-user] checkboxes in dataview...

2006-09-10 Thread Johan Compagner
Components (when removed or added) are versioned and models when changed are versioned.Only we have to know that. So if you change an internal private model directly you have to call page.addStateChange(new Change());
and that change object has to be able to rollback your change you are doing now.johanOn 9/10/06, Erik Brakkee 
[EMAIL PROTECTED] wrote:


  
  


Igor Vaynberg wrote:

  
  
Ok that approach is clear. Although it would also be nice just to have
an API call for just accessing the items shown on the page.
  
  
in wicket we use models to glue components to properties just so we
dont have to go through components and see their values. in this
example the components drop off their selection in a set for you so you
can just traverse the set.
  
  
  

Aha, but I solved a problem with a back button yesterday which was
caused by the model (that I saved as a private instance variable of
the page) getting out of sync with the actual model. The problem was
that wicket components only call getters and setters on the model, but
they cannot manage associations. In my case, I had a one to many
relation in my model which was manipulated by the user (adding and
removing items). In this case, just accessing the model from my private
instance variable for the final save action on form submission gave the
wrong result, even though the model as seen by the components on the
page was correct (it was a copy of an old version including the
relations). 

So what I learned from this is that the page objects themselves are not
versioned, only the component models are. In other words, saving a
model as a private instance variable can cause problems if the model
has more operations than just getters and setters. 

In this particular case I am wondering about back button support for
the selections instance variable. Here, if a user goes back to the
previous version of the page and submits it, the selections instance
variable is not updated to reflect the current version, even though the
checkbox models are. The problem is that the selections instance
variable is not retrieved from a model. If it would be part of a model
and we would retrieve the selections through a component model then it
would be ok. 

Is there a simple way to put the selections in a model of some dummy
component just to get back button support? Thinking about this, I think
it would also solve my previous problem with the back button. For
instance: 

 VersionedObjectSet selections; // private instance variable

// pseudo code
class VersionedObjectT extends Serializable extends Component {

 VersionedObject(String aId, T aObject) { 
 super(aId, new Model(aObject));
 
 }

 T get() { 
 return (T) getModel().getObject(null);
 }
}

In this way, I can store any type of object as private instance
variable and make sure that its properly versioned no matter what. 

Cheers
 Erik

  
  
what you want is already there, see MarkupContainer.visitChildren() -
but in order for this to work you will need to know what entity the
checkbox is tied to. this is much less elegant imho because the likely
scenario is that you will build the set yourself by visiting these
components anyways.
  
  
  
  
 then after the form submit read the selected set for selected ids.
if

 you have paging you need to write your own navigator that uses
 submitlink instead of linkor use an ajax checkbox
I don't understand this why does this have anything to do with paging?
  
checkboxes are form components in html - in order for you to get their
value on serverside the form has to be submitted. the paging navigator
by default uses regular anchor links, when pressed they will not submit
the form and so you will lose your selection from that page.
  
  
-Igor
  
  
  
  
  
-
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 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
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 

Re: [Wicket-user] Link behaviour inconsistent

2006-09-10 Thread Johan Compagner
The strange thing is if you restart your server (without keeping sessions) then when you hit refresh in the browserit should give you a PageExpired page anyway. Because the page shouldn't/can't be found..when you some how also have another browser window and build up the session there (generate the page again)
and then in another window you do a refresh. Then maybe you can get another page then you saw first.johanOn 9/10/06, Imran M Yousuf 
[EMAIL PROTECTED] wrote:













The page that comes is not the link that I
click on. That's the problem. I think you understood the problem. My wild
guess is that the Browser is messing things up so I trying to make the page
expire using the response header directive. Please let me know of any solution
you come across. 

Thank you



Imran











From: Johan Compagner
[mailto:[EMAIL PROTECTED]] 
Sent: Sunday, September 10, 2006
7:40 PM
To: [EMAIL PROTECTED];
wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Link
behaviour inconsistent





is that also really the
link you click on?
that looks strange to me because that link is just a page request link.
It is not an url of a link on the page. that should be something like
this:

http://www.wicket-library.com/wicket-examples/linkomatic?wicket:interface=:0:actionLink::ILinkListener


johan





On 9/10/06, Imran M
Yousuf  [EMAIL PROTECTED]
wrote:



Dear Users, 

I am using Link implementation in my application to navigate. When the server
restarts all the links that are of Link implementation starts behaving
strangely and goes to a page that is not even navigateable from that page. Can
someone let me know what the reason could be? 
The links that cause problem looks like as follows: http://192.168.1.14:8080/sakura/home?wicket:interface=:5
::
Need help on this in urgent basis. 
Thank you in advance.






Imran




-
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


Re: [Wicket-user] CSS problems with DataTable in an AjaxTabbedPanel

2006-09-10 Thread Per Ejeklint
OK, I solved it but am not sure what I did wrong at first.My MainPage contains AjaxTabbedPanels, and each panel contains forms or tables.In my MainPage I added style with		add(new HeaderContributor.CSSHeaderContributor("tabs.css"));but after clicking on a table header in a sortable table (from Databinder), the rendered page lost the link to tabs.css.Removing the HeaderContributor and replace it withwicket:head	link rel="stylesheet" type="text/css" href="">"tabs.css" //wicket:headfixed it. Now my page looks nice again. :-)Is there an explanation for this or can it be a bug? I'm using 1.2-SNAPSHOT./Per9 sep 2006 kl. 23.43 skrev Per Ejeklint:Yes, I have those in place, so something else is going on...9 sep 2006 kl. 23.30 skrev Igor Vaynberg:make sure you have all the necessary styles for the link implementednamely th.wicket_orderDown/Up/None-IgorOn 9/9/06, Per Ejeklint  [EMAIL PROTECTED] wrote:I have a page with a few AjaxTabbedPanels. Two contains TreeTables and renders just fine. One contains a DataTable with a HeadersToolbar for sorting. This panel renders fine when first entered, but when I click on a header to sort, the CSS styling for the enclosing tab-row breaks. It's styling falls back to regular links in an "ul". I don't know where to start, so can anyone give me tips on where to put my bug-finding loupe at first? /Per -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 Geronimohttp://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   		Per Ejeklint: Consultant at Heimore Group AB, Kungsg. 33 11th floor, SE-111 56 Stockholm, Sweden 		Contact: [EMAIL PROTECTED]; mobile +4670-5090052  -
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] How to fire an onClick event programmatically ? (works in Firefox, not in IE6)

2006-09-10 Thread Pierre-Yves Saumont
Hello,

I need to call the onClick event handler containing a Wicket generated 
URL from a script. The id of the component holding the onClick event 
handler is 
rightColumn_pagePanel_dialogBoxReponses_tabs_panel_dialogBoxContent_confirmLink

On first page load, the event handler is:

onclick=var
wcall=wicketAjaxGet('/ceagrap/app?wicket:interface=:3:rightColumn:pagePanel:dialogBoxReponses:tabs:panel:dialogBoxContent:outside_partners:0:deleteGraphicButton::IBehaviorListenerwicket:behaviorId=0'

I am calling it as follow:

document.getElementById(rightColumn_pagePanel_dialogBoxReponses_tabs_panel_dialogBoxContent_confirmLink).onclick();

This works fine in Firefox but causes an error in IE6:

ERROR: error while processing response: [object Error].Objet attendu
  INFO: invoking failure handler...

If I reload the page, the onClick handler change to:

onclick=var
wcall=wicketAjaxGet('/ceagrap/app?wicket:interface=:3:rightColumn:pagePanel:dialogBoxReponses:tabs:panel:dialogBoxContent:outside_partners:0:deleteGraphicButton:1:IBehaviorListenerwicket:behaviorId=0'

and then it works fine event in IE6.

The only difference between the two handler is:

...deleteGraphicButton::IBehaviorListener...
...deleteGraphicButton:1:IBehaviorListener...

(Clicking on the link works in any case. Only calling it through 
Javascript make the first one fail)

Does anyone know how to solve this problem?

Pierre-Yves


-
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] CSS problems with DataTable in an AjaxTabbedPanel

2006-09-10 Thread Matej Knopp
Yes,

this bug is in 1.2.2 only, happened during backporting it seems.
Easiest solution (workaround) I can think of is to add empty 
WebMarkupContainer and add the header contributor there.

-Matej

Igor Vaynberg wrote:
 i think this is a known header contributor bug in 1.2.2 - headers are 
 contributed only once.
 
 -Igor
 
 On 9/10/06, *Per Ejeklint*  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:
 
 OK, I solved it but am not sure what I did wrong at first.
 
 My MainPage contains AjaxTabbedPanels, and each panel contains forms
 or tables.
 
 In my MainPage I added style with
 
 add(new HeaderContributor.CSSHeaderContributor(tabs.css ));
 
 but after clicking on a table header in a sortable table (from
 Databinder), the rendered page lost the link to tabs.css.
 
 Removing the HeaderContributor and replace it with
 
 wicket:head
 link rel=stylesheet type=text/css href= tabs.css /
 /wicket:head
 
 fixed it. Now my page looks nice again. :-)
 
 Is there an explanation for this or can it be a bug? I'm using
 1.2-SNAPSHOT.
 
 /Per
 
 
 9 sep 2006 kl. 23.43 skrev Per Ejeklint:
 
 Yes, I have those in place, so something else is going on...
 
 
 9 sep 2006 kl. 23.30 skrev Igor Vaynberg:
 
 make sure you have all the necessary styles for the link implemented

 namely th.wicket_orderDown/Up/None

 -Igor


 On 9/9/06, *Per Ejeklint*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 I have a page with a few AjaxTabbedPanels. Two contains
 TreeTables and renders just fine. One contains a DataTable
 with a HeadersToolbar for sorting. This panel renders fine
 when first entered, but when I click on a header to sort, the
 CSS styling for the enclosing tab-row breaks. It's styling
 falls back to regular links in an ul. I don't know where to
 start, so can anyone give me tips on where to put my
 bug-finding loupe at first?

 /Per

 
 -
 
 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
 
 My status *Per Ejeklint*: Consultant at Heimore Group AB
 http://www.heimore.com, Kungsg. 33 11th floor, SE-111 56 Stockholm
 http://www.stockholm.se, Sweden http://www.sweden.se
 Contact: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED];
 mobile +4670-5090052
 
 
 -
 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


-
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 

Re: [Wicket-user] Matej's Tree Overflow problems

2006-09-10 Thread Matej Knopp
This is a known problem. Unfortunately, the tree column can't 
automatically adjust the width according to the content. It's a 
limitation of css and there's not much I can do about it.

I couldn't use table for treetable, as there are issues in IE and 
opera when replacing table rows. Plus in FF it broke layout a bit. With 
tables it could be (in theory) possible to have the column grow if the 
text is too big, but there are other issues that prevented me from using 
tables.

I could attempt to make the text in tree column not disappear (so that 
it would be just cut), but I'm not sure it would work. We have to 
support all major browser and each one has its quirks.

-Matej

Karl M. Davis wrote:
 To clarify: preferably the tree would be set to add scroll bars if any 
 of the rows overflow the width.
 
 
 *From:* [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] *On Behalf Of *Karl 
 M. Davis
 *Sent:* Saturday, September 09, 2006 2:32 AM
 *To:* wicket-user@lists.sourceforge.net
 *Subject:* [Wicket-user] Matej's Tree Overflow problems
 
 Hey there,
  
 I'm having a problem with Matej's tree.  The way it's set up, if any of 
 the rows' text is too wide for the 20em space allocated to the tree, the 
 row disappears.  I can make the tree wider, but this becomes a problem 
 for arbitrarily-large trees.
 I'm hoping this is something I can fix by just overriding the default 
 tree's stylesheet but so far I've been unable to do that.  Can anyone 
 provide some guidance?
  
 Thanks,
 Karl
 
 
 
 
 -
 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


Re: [Wicket-user] CSS problems with DataTable in an AjaxTabbedPanel

2006-09-10 Thread Matej Knopp
Heh, I'm not even sure, but I guess not. I'm way too busy lately :(
Maybe frankbille could have a look at that?

-Matej

Igor Vaynberg wrote:
 did you fix it already in wicket-1.x?
 
 -Igor
 
 
 On 9/10/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:
 
 Yes,
 
 this bug is in 1.2.2 only, happened during backporting it seems.
 Easiest solution (workaround) I can think of is to add empty
 WebMarkupContainer and add the header contributor there.
 
 -Matej
 
 Igor Vaynberg wrote:
   i think this is a known header contributor bug in 1.2.2 - headers are
   contributed only once.
  
   -Igor
  
   On 9/10/06, *Per Ejeklint*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   wrote:
  
   OK, I solved it but am not sure what I did wrong at first.
  
   My MainPage contains AjaxTabbedPanels, and each panel
 contains forms
   or tables.
  
   In my MainPage I added style with
  
   add(new HeaderContributor.CSSHeaderContributor(tabs.css ));
  
   but after clicking on a table header in a sortable table (from
   Databinder), the rendered page lost the link to tabs.css.
  
   Removing the HeaderContributor and replace it with
  
   wicket:head
   link rel=stylesheet type=text/css href= tabs.css /
   /wicket:head
  
   fixed it. Now my page looks nice again. :-)
  
   Is there an explanation for this or can it be a bug? I'm using
   1.2-SNAPSHOT .
  
   /Per
  
  
   9 sep 2006 kl. 23.43 skrev Per Ejeklint:
  
   Yes, I have those in place, so something else is going on...
  
  
   9 sep 2006 kl. 23.30 skrev Igor Vaynberg:
  
   make sure you have all the necessary styles for the link
 implemented
  
   namely th.wicket_orderDown/Up/None
  
   -Igor
  
  
   On 9/9/06, *Per Ejeklint*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
  
   I have a page with a few AjaxTabbedPanels. Two contains
   TreeTables and renders just fine. One contains a DataTable
   with a HeadersToolbar for sorting. This panel renders fine
   when first entered, but when I click on a header to
 sort, the
   CSS styling for the enclosing tab-row breaks. It's styling
   falls back to regular links in an ul. I don't know
 where to
   start, so can anyone give me tips on where to put my
   bug-finding loupe at first?
  
   /Per
  
  
  
 -
 
  
   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___
  
 
 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
   mailto: Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
   My status *Per Ejeklint*: Consultant at Heimore Group AB
   http://www.heimore.com, Kungsg. 33 11th floor, SE-111 56
 Stockholm
   http://www.stockholm.se, Sweden  http://www.sweden.se
   Contact: [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED];
   mobile +4670-5090052
  
  
  
 -
   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
  
 

Re: [Wicket-user] checkboxes in dataview...

2006-09-10 Thread Erik Brakkee




Johan Compagner wrote:
Components (when removed or added) are versioned and
models when changed are versioned.
Only we have to know that. So if you change an internal private model
directly 
you have to call page.addStateChange(new Change());
  
  
and that change object has to be able to rollback your change you are
doing now.


Ok, thats very clear. So to complete the design I would have to create
a change implementation like this:

class SelectPersonChange extends Change { 

 private Set _selections;
 private int _id; 
 private boolean _selected; // true if it was selected, false if it
was unselected.
 
 public SelectPersonChange(Set aSelections, int aId, boolean
aSelected) { 
 _selections = aSelections; 
 _id = aId; 
 _selected = aSelected; 
 }

 protected void undo() { 
 if ( _selected ) { 
 _selections.remove(_id); 
 }
 else { 
 _selections.add(_id);
 }
 }
}

And this would be used by the check box model. 

Now one more question. What is the reason that the pages themselves are
not versioned? The way that versioning is implemented for model objects
is simply cloning them using Java Serialization. So in principle the
same approach would have been possible with pages. Oversimplifying it,
the 'only thing' to be done would be to reinject the pages and
components with any references to transient objects upon
deserialization. 

I am a bit confused now by the slogan 'transparent back button support'
since it now turns out that a lot of work needs to be done in a number
of cases to make sure back button support works. In other words, back
button support is not transparent at all, especially if I have to
implement version management myself. I think the knowledge level
required to solve the back button problem for applications transcends
the capabilities of average developers and in practice many
applications will be written with wicket that don't behave well with
the use of the back button. So at best wicket provides support for
solving the back button problem.

Right now, if I would have to develop a wicket application with full
back button support using inexperienced developers, I would probably
have to give design rules such as this: 

  do not store any data as instance variables but retrieve them
from the models of the components.
  Always call modelChanging() before changing a model and
modelChanged() after a change. 
  


Cheers
 Erik


johan
  




-
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] CSS problems with DataTable in an AjaxTabbedPanel

2006-09-10 Thread Frank Bille
Hehe I could try. I just have to read about a little bit. Haven't really looked into it. Give me until tuesday thenFrankOn 9/10/06, Matej Knopp
 [EMAIL PROTECTED] wrote:Heh, I'm not even sure, but I guess not. I'm way too busy lately :(
Maybe frankbille could have a look at that?-MatejIgor Vaynberg wrote: did you fix it already in wicket-1.x? -Igor On 9/10/06, *Matej Knopp* 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Yes, this bug is in 1.2.2 only, happened during backporting it seems. Easiest solution (workaround) I can think of is to add empty
 WebMarkupContainer and add the header contributor there. -Matej Igor Vaynberg wrote: i think this is a known header contributor bug in 1.2.2 - headers are
 contributed only once. -Igor On 9/10/06, *Per Ejeklint*  [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 OK, I solved it but am not sure what I did wrong at first. My MainPage contains AjaxTabbedPanels, and each panel contains forms
 or tables. In my MainPage I added style with add(new HeaderContributor.CSSHeaderContributor(tabs.css ));
 but after clicking on a table header in a sortable table (from Databinder), the rendered page lost the link to tabs.css. Removing the HeaderContributor and replace it with
 wicket:head link rel=stylesheet type=text/css href="" tabs.css / /wicket:head
 fixed it. Now my page looks nice again. :-) Is there an explanation for this or can it be a bug? I'm using 1.2-SNAPSHOT .
 /Per 9 sep 2006 kl. 23.43 skrev Per Ejeklint: Yes, I have those in place, so something else is going on...
 9 sep 2006 kl. 23.30 skrev Igor Vaynberg: make sure you have all the necessary styles for the link implemented
 namely th.wicket_orderDown/Up/None -Igor On 9/9/06, *Per Ejeklint*  
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote: I have a page with a few AjaxTabbedPanels. Two contains TreeTables and renders just fine. One contains a DataTable
 with a HeadersToolbar for sorting. This panel renders fine when first entered, but when I click on a header to sort, the CSS styling for the enclosing tab-row breaks. It's styling
 falls back to regular links in an ul. I don't know where to start, so can anyone give me tips on where to put my bug-finding loupe at first?
 /Per -
 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___ 
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 mailto: 
Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wicket-user My status *Per Ejeklint*: Consultant at Heimore Group AB http://www.heimore.com
, Kungsg. 33 11th floor, SE-111 56 Stockholm http://www.stockholm.se, Sweden  http://www.sweden.se
 Contact: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]; mobile +4670-5090052
 - 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
 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 mailto: 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 
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 

Re: [Wicket-user] How to fire an onClick event programmatically ? (works in Firefox, not in IE6)

2006-09-10 Thread Pierre-Yves Saumont
I eventually figured where the problem was: in IE6, scripts that are 
contained in Ajax responses seems not to be executed. If I place the 
script in a component that is loaded normally (not through Ajax), 
everthing is OK.

Is this problem a known issue with IE6 ?

In fact, I noticed some other strange behavior: If I place some HTML 
code that is to produce a Wicket error, such as wicket:head inside a 
wicket:panel, no error is detected if this code is loaded through 
Ajax. Only if I reload the page (so that everything is loaded normally) 
is the error detected.

Pierre-Yves

Pierre-Yves Saumont a écrit :
 Hello,
 
 I need to call the onClick event handler containing a Wicket generated 
 URL from a script. The id of the component holding the onClick event 
 handler is 
 rightColumn_pagePanel_dialogBoxReponses_tabs_panel_dialogBoxContent_confirmLink
 
 On first page load, the event handler is:
 
 onclick=var
 wcall=wicketAjaxGet('/ceagrap/app?wicket:interface=:3:rightColumn:pagePanel:dialogBoxReponses:tabs:panel:dialogBoxContent:outside_partners:0:deleteGraphicButton::IBehaviorListenerwicket:behaviorId=0'
 
 I am calling it as follow:
 
 document.getElementById(rightColumn_pagePanel_dialogBoxReponses_tabs_panel_dialogBoxContent_confirmLink).onclick();
 
 This works fine in Firefox but causes an error in IE6:
 
 ERROR: error while processing response: [object Error].Objet attendu
   INFO: invoking failure handler...
 
 If I reload the page, the onClick handler change to:
 
 onclick=var
 wcall=wicketAjaxGet('/ceagrap/app?wicket:interface=:3:rightColumn:pagePanel:dialogBoxReponses:tabs:panel:dialogBoxContent:outside_partners:0:deleteGraphicButton:1:IBehaviorListenerwicket:behaviorId=0'
 
 and then it works fine event in IE6.
 
 The only difference between the two handler is:
 
 ...deleteGraphicButton::IBehaviorListener...
 ...deleteGraphicButton:1:IBehaviorListener...
 
 (Clicking on the link works in any case. Only calling it through 
 Javascript make the first one fail)
 
 Does anyone know how to solve this problem?
 
 Pierre-Yves
 
 
 -
 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


Re: [Wicket-user] How to fire an onClick event programmatically ? (works in Firefox, not in IE6)

2006-09-10 Thread Igor Vaynberg
this is a browser issue more then anything. it is prety difficult to get scripts loaded through ajax to execute. this will be fixed in 1.3 and is already implemented in 2.0 with lots of sweat and pain.meanwhile if you want wicket to execute some _javascript_ you can use 
ajaxtarget.addjavascript(), dont know if it helps your usecase.-IgorOn 9/10/06, Pierre-Yves Saumont [EMAIL PROTECTED]
 wrote:I eventually figured where the problem was: in IE6, scripts that are
contained in Ajax responses seems not to be executed. If I place thescript in a component that is loaded normally (not through Ajax),everthing is OK.Is this problem a known issue with IE6 ?In fact, I noticed some other strange behavior: If I place some HTML
code that is to produce a Wicket error, such as wicket:head inside awicket:panel, no error is detected if this code is loaded throughAjax. Only if I reload the page (so that everything is loaded normally)
is the error detected.Pierre-YvesPierre-Yves Saumont a écrit : Hello, I need to call the onClick event handler containing a Wicket generated URL from a script. The id of the component holding the onClick event
 handler is rightColumn_pagePanel_dialogBoxReponses_tabs_panel_dialogBoxContent_confirmLink On first page load, the event handler is: > wcall=wicketAjaxGet('/ceagrap/app?wicket:interface=:3:rightColumn:pagePanel:dialogBoxReponses:tabs:panel:dialogBoxContent:outside_partners:0:deleteGraphicButton::IBehaviorListenerwicket:behaviorId=0'
 I am calling it as follow: document.getElementById(rightColumn_pagePanel_dialogBoxReponses_tabs_panel_dialogBoxContent_confirmLink).onclick(); This works fine in Firefox but causes an error in IE6:
 ERROR: error while processing response: [object Error].Objet attendu INFO: invoking failure handler... If I reload the page, the onClick handler change to: 
 wcall=wicketAjaxGet('/ceagrap/app?wicket:interface=:3:rightColumn:pagePanel:dialogBoxReponses:tabs:panel:dialogBoxContent:outside_partners:0:deleteGraphicButton:1:IBehaviorListenerwicket:behaviorId=0'
 and then it works fine event in IE6. The only difference between the two handler is: ...deleteGraphicButton::IBehaviorListener... ...deleteGraphicButton:1:IBehaviorListener...
 (Clicking on the link works in any case. Only calling it through _javascript_ make the first one fail) Does anyone know how to solve this problem? Pierre-Yves
 - 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 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


Re: [Wicket-user] Alternating row colors in ListView

2006-09-10 Thread Igor Vaynberg
you should key off the listitems' index property-IgorOn 9/10/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:
How is is possible to reset a boolean indicating if the row is odd oreven at the start of ListView rendering ?
I need this because with alternating row color, if the number of row isodd, each time the list is rerendered, row colours are switched.I worked around this by setting the value of the boolean flag to false
in each link that could redisplay the component, but I have now 7 placeswhere the flag is reinitialised.Isn't there a smarter way to do this?Pierre-Yves-
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